From b16af5fe3e2ed4fde82af26305efa84d0d9b5b46 Mon Sep 17 00:00:00 2001 From: shale Date: Wed, 22 Jul 2015 15:43:28 -0700 Subject: [PATCH] [Search] Renaming search and searchbar Changed what was previously just 'search' and renamed to 'search view'. Then, took what was previously 'searchbar' and renamed to 'search'. --- .../commonUI/browse/res/templates/browse.html | 4 +- platform/commonUI/general/res/css/tree.css | 12 ++--- .../general/res/sass/search/_search.scss | 2 +- platform/features/search/bundle.json | 16 +++--- .../{searchbar-item.html => search-item.html} | 2 +- .../{searchbar.html => search-view.html} | 49 +++++++++++-------- .../features/search/res/templates/search.html | 49 ++++++++----------- .../src/controllers/SearchController.js | 2 +- ...mController.js => SearchItemController.js} | 0 ...rController.js => SearchViewController.js} | 6 +-- 10 files changed, 71 insertions(+), 71 deletions(-) rename platform/features/search/res/templates/{searchbar-item.html => search-item.html} (96%) rename platform/features/search/res/templates/{searchbar.html => search-view.html} (57%) rename platform/features/search/src/controllers/{SearchbarItemController.js => SearchItemController.js} (100%) rename platform/features/search/src/controllers/{SearchbarController.js => SearchViewController.js} (95%) diff --git a/platform/commonUI/browse/res/templates/browse.html b/platform/commonUI/browse/res/templates/browse.html index aa4816a882..992e851bee 100644 --- a/platform/commonUI/browse/res/templates/browse.html +++ b/platform/commonUI/browse/res/templates/browse.html @@ -28,8 +28,8 @@ > -
- +
diff --git a/platform/commonUI/general/res/css/tree.css b/platform/commonUI/general/res/css/tree.css index f3c5ba6fbf..35c1b1d17e 100644 --- a/platform/commonUI/general/res/css/tree.css +++ b/platform/commonUI/general/res/css/tree.css @@ -272,25 +272,25 @@ ul.tree { * at runtime from the About dialog for additional information. *****************************************************************************/ /* line 27, ../sass/search/_search.scss */ -.search-holder .searchbar { +.search .searchbar { width: 100%; margin-top: 20px; } /* line 32, ../sass/search/_search.scss */ -.search-holder .results { +.search .results { margin-top: 10px; } /* line 35, ../sass/search/_search.scss */ - .search-holder .results .search-result-item { + .search .results .search-result-item { margin-bottom: 5px; background: #005177; border-radius: 2px; padding-top: 2px; padding-bottom: 1px; } /* line 42, ../sass/search/_search.scss */ - .search-holder .results .search-result-item .label { + .search .results .search-result-item .label { left: 15px; margin-left: 6px; } /* line 51, ../sass/search/_search.scss */ - .search-holder .results .search-result-item .label .title-label { + .search .results .search-result-item .label .title-label { display: inline-block; position: absolute; width: auto; @@ -302,7 +302,7 @@ ul.tree { text-overflow: ellipsis; white-space: nowrap; } /* line 70, ../sass/search/_search.scss */ -.search-holder .load-more-button { +.search .load-more-button { margin-top: 5px; position: relative; left: 25%; diff --git a/platform/commonUI/general/res/sass/search/_search.scss b/platform/commonUI/general/res/sass/search/_search.scss index 097b500934..bee4f0fc2f 100644 --- a/platform/commonUI/general/res/sass/search/_search.scss +++ b/platform/commonUI/general/res/sass/search/_search.scss @@ -20,7 +20,7 @@ * at runtime from the About dialog for additional information. *****************************************************************************/ -.search-holder { +.search { $iconWidth: 20px; $leftMargin: 6px; diff --git a/platform/features/search/bundle.json b/platform/features/search/bundle.json index c7fe967012..fed5f05e9d 100644 --- a/platform/features/search/bundle.json +++ b/platform/features/search/bundle.json @@ -4,13 +4,13 @@ "extensions": { "controllers": [ { - "key": "SearchbarController", - "implementation": "controllers/SearchbarController.js", + "key": "SearchController", + "implementation": "controllers/SearchController.js", "depends": [ "$scope", "$timeout", "searchService" ] }, { - "key": "SearchbarItemController", - "implementation": "controllers/SearchbarItemController.js", + "key": "SearchItemController", + "implementation": "controllers/SearchItemController.js", "depends": [ "$scope" ] }, { @@ -21,15 +21,15 @@ ], "templates": [ { - "key": "searchbar", - "templateUrl": "templates/searchbar.html", + "key": "search", + "templateUrl": "templates/search.html", "uses": [ "composition" ] } ], "representations": [ { - "key": "searchbar-item", - "templateUrl": "templates/searchbar-item.html", + "key": "search-item", + "templateUrl": "templates/search-item.html", "uses": [ "composition" ] } ], diff --git a/platform/features/search/res/templates/searchbar-item.html b/platform/features/search/res/templates/search-item.html similarity index 96% rename from platform/features/search/res/templates/searchbar-item.html rename to platform/features/search/res/templates/search-item.html index 9ef432e35a..9640efc19c 100644 --- a/platform/features/search/res/templates/searchbar-item.html +++ b/platform/features/search/res/templates/search-item.html @@ -22,7 +22,7 @@
+ ng-controller="SearchItemController as controller"> - - + +
+ +
- Search:
+ + ng-keyup="controller.search('searchinput')" + style="width: 66%"/>
+ +
+ -
- +
+

+ Results: +

+
+ +
+
+
+
- - -
- -
- \ No newline at end of file +
\ No newline at end of file diff --git a/platform/features/search/res/templates/search.html b/platform/features/search/res/templates/search.html index b6e5d47a27..7201f2d9af 100644 --- a/platform/features/search/res/templates/search.html +++ b/platform/features/search/res/templates/search.html @@ -19,39 +19,30 @@ this source code distribution or the Licensing information page available at runtime from the About dialog for additional information. --> - -
- - + +
-
Search:
- + ng-keyup="controller.search('searchbarinput')" />
- -
- -
-

- Results: -

-
- -
-
-
- +
+
-
\ No newline at end of file + + +
+ +
+
\ No newline at end of file diff --git a/platform/features/search/src/controllers/SearchController.js b/platform/features/search/src/controllers/SearchController.js index 34104c5aa0..c84ac34143 100644 --- a/platform/features/search/src/controllers/SearchController.js +++ b/platform/features/search/src/controllers/SearchController.js @@ -22,7 +22,7 @@ /*global define*/ /** - * Module defining SearchController. Created by shale on 07/08/2015. + * Module defining SearchController. Created by shale on 07/15/2015. */ define(function () { "use strict"; diff --git a/platform/features/search/src/controllers/SearchbarItemController.js b/platform/features/search/src/controllers/SearchItemController.js similarity index 100% rename from platform/features/search/src/controllers/SearchbarItemController.js rename to platform/features/search/src/controllers/SearchItemController.js diff --git a/platform/features/search/src/controllers/SearchbarController.js b/platform/features/search/src/controllers/SearchViewController.js similarity index 95% rename from platform/features/search/src/controllers/SearchbarController.js rename to platform/features/search/src/controllers/SearchViewController.js index 5fa81793a5..e4ed78f301 100644 --- a/platform/features/search/src/controllers/SearchbarController.js +++ b/platform/features/search/src/controllers/SearchViewController.js @@ -22,7 +22,7 @@ /*global define*/ /** - * Module defining SearchbarController. Created by shale on 07/15/2015. + * Module defining SearchViewController. Created by shale on 07/08/2015. */ define(function () { "use strict"; @@ -30,7 +30,7 @@ define(function () { var INITIAL_LOAD_NUMBER = 20, LOAD_INCREMENT = 5; - function SearchbarController($scope, $timeout, searchService) { + function SearchViewController($scope, $timeout, searchService) { // Starting amount of results to load. Will get increased. var numResults = INITIAL_LOAD_NUMBER; @@ -105,5 +105,5 @@ define(function () { } }; } - return SearchbarController; + return SearchViewController; });