From e3e897c65ca30e2bfe6e2b3f6636916c0596886a Mon Sep 17 00:00:00 2001 From: Zhong Wang Date: Sun, 6 Mar 2016 22:42:16 -0800 Subject: [PATCH 01/11] refine pr-190 --- zeppelin-web/src/app/home/home.controller.js | 5 ++ zeppelin-web/src/app/home/home.css | 59 +++++++++++++++++++ zeppelin-web/src/app/home/home.html | 29 +++++++-- .../src/components/navbar/navbar.html | 18 ++++-- .../notebookList.datafactory.js | 41 ++++++++++++- 5 files changed, 141 insertions(+), 11 deletions(-) diff --git a/zeppelin-web/src/app/home/home.controller.js b/zeppelin-web/src/app/home/home.controller.js index 14f15870e37..7d84465a456 100644 --- a/zeppelin-web/src/app/home/home.controller.js +++ b/zeppelin-web/src/app/home/home.controller.js @@ -71,4 +71,9 @@ angular.module('zeppelinWebApp').controller('HomeCtrl', function($scope, noteboo websocketMsgSrv.reloadAllNotesFromRepo(); $scope.isReloadingNotes = true; }; + + $scope.toggleFolderNode = function(node) { + node.hidden = node.hidden ? false : true; + }; + }); diff --git a/zeppelin-web/src/app/home/home.css b/zeppelin-web/src/app/home/home.css index 281ffb4168f..9c2c9edee20 100644 --- a/zeppelin-web/src/app/home/home.css +++ b/zeppelin-web/src/app/home/home.css @@ -151,6 +151,64 @@ a.navbar-brand:hover { font: normal normal normal 14px/1 FontAwesome; } +.dropdown-submenu { + position: relative; +} + +.dropdown-submenu a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333; + white-space: nowrap; + text-decoration: none; +} + +.dropdown-submenu a:hover { + background-color: #f5f5f5; +} + +.dropdown-submenu > .dropdown-menu { + top:0; + left:100%; + margin-top:-6px; + margin-left:-1px; + -webkit-border-radius:0 6px 6px 6px; + -moz-border-radius:0 6px 6px 6px; + border-radius:0 6px 6px 6px; +} +.dropdown-submenu:hover > .dropdown-menu { + display:block; +} +.dropdown-submenu > a:after { + display:block; + content:" "; + float:right; + width:0; + height:0; + border-color:transparent; + border-style:solid; + border-width:5px 0 5px 5px; + border-left-color:#cccccc; + margin-top:5px; + margin-right:-10px; +} +.dropdown-submenu:hover > a:after { + border-left-color:#ffffff; +} +.dropdown-submenu.pull-left { + float:none; +} +.dropdown-submenu.pull-left > .dropdown-menu { + left:-100%; + margin-left:10px; + -webkit-border-radius:6px 0 6px 6px; + -moz-border-radius:6px 0 6px 6px; + border-radius:6px 0 6px 6px; +} + @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #D3D3D3; @@ -199,6 +257,7 @@ a.navbar-brand:hover { #notebook-list { position: relative; overflow: hidden; + display: inline; } @media (min-width: 768px) { diff --git a/zeppelin-web/src/app/home/home.html b/zeppelin-web/src/app/home/home.html index 71a7a1ad7ad..92c14893e4d 100644 --- a/zeppelin-web/src/app/home/home.html +++ b/zeppelin-web/src/app/home/home.html @@ -12,6 +12,22 @@ limitations under the License. --> + +
diff --git a/zeppelin-web/src/components/navbar/navbar.html b/zeppelin-web/src/components/navbar/navbar.html index bdc57901055..e3d971f27a3 100644 --- a/zeppelin-web/src/components/navbar/navbar.html +++ b/zeppelin-web/src/components/navbar/navbar.html @@ -10,7 +10,18 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ---> + --> + +