diff --git a/solr/webapp/web/css/angular/menu.css b/solr/webapp/web/css/angular/menu.css index aba701bf6dd..f00aa824f66 100644 --- a/solr/webapp/web/css/angular/menu.css +++ b/solr/webapp/web/css/angular/menu.css @@ -278,7 +278,7 @@ limitations under the License. .sub-menu .analysis a { background-image: url( ../../img/ico/funnel.png ); } .sub-menu .documents a { background-image: url( ../../img/ico/documents-stack.png ); } .sub-menu .files a { background-image: url( ../../img/ico/folder.png ); } -.sub-menu .schema a { background-image: url( ../../img/ico/book-open-text.png ); } +.sub-menu .schema-browser a { background-image: url( ../../img/ico/book-open-text.png ); } .sub-menu .replication a { background-image: url( ../../img/ico/node.png ); } .sub-menu .distribution a { background-image: url( ../../img/ico/node-select.png ); } .sub-menu .ping a { background-image: url( ../../img/ico/system-monitor.png ); } diff --git a/solr/webapp/web/index.html b/solr/webapp/web/index.html index 35d0eeda27d..d64002eb733 100644 --- a/solr/webapp/web/index.html +++ b/solr/webapp/web/index.html @@ -39,7 +39,7 @@ limitations under the License. - + @@ -74,7 +74,7 @@ limitations under the License. - + @@ -185,7 +185,7 @@ limitations under the License.
  • Documents
  • Files
  • Query
  • -
  • Schema
  • +
  • Schema Browser
  • @@ -212,7 +212,7 @@ limitations under the License.
  • Plugins / Stats
  • Query
  • Replication
  • -
  • Schema
  • +
  • Schema Browser
  • Segments info
  • diff --git a/solr/webapp/web/js/angular/app.js b/solr/webapp/web/js/angular/app.js index a77a5c5ae09..d7e4b1f5503 100644 --- a/solr/webapp/web/js/angular/app.js +++ b/solr/webapp/web/js/angular/app.js @@ -121,9 +121,9 @@ solrAdminApp.config([ templateUrl: 'partials/dataimport.html', controller: 'DataImportController' }). - when('/:core/schema', { - templateUrl: 'partials/schema.html', - controller: 'SchemaController' + when('/:core/schema-browser', { + templateUrl: 'partials/schema-browser.html', + controller: 'SchemaBrowserController' }). when('/:core/segments', { templateUrl: 'partials/segments.html', @@ -156,31 +156,6 @@ solrAdminApp.config([ } }; }) -.directive('escapePressed', function () { - return function (scope, element, attrs) { - element.bind("keydown keypress", function (event) { - if(event.which === 27) { - scope.$apply(function (){ - scope.$eval(attrs.escapePressed); - }); - event.preventDefault(); - } - }); - }; -}) -.directive('focusWhen', function($timeout) { - return { - link: function(scope, element, attrs) { - scope.$watch(attrs.focusWhen, function(value) { - if(value === true) { - $timeout(function() { - element[0].focus(); - }, 100); - } - }); - } - }; -}) .filter('readableSeconds', function() { return function(input) { seconds = parseInt(input||0, 10); diff --git a/solr/webapp/web/js/angular/services.js b/solr/webapp/web/js/angular/services.js index 13d01f7204c..3d20dad8b9a 100644 --- a/solr/webapp/web/js/angular/services.js +++ b/solr/webapp/web/js/angular/services.js @@ -136,8 +136,7 @@ solrAdminServices.factory('System', .factory('Luke', ['$resource', function($resource) { return $resource('/solr/:core/admin/luke', {core: '@core', wt:'json', _:Date.now()}, { - "index": {params: {numTerms: 0, show: 'index'}}, - "raw": {params: {numTerms: 0}}, + "index": {params: {numTerms: 0}}, "schema": {params: {show:'schema'}}, "field": {}, "fields": {params: {show:'schema'}, interceptor: { @@ -239,18 +238,5 @@ solrAdminServices.factory('System', return $resource('/solr/:core/admin/segments', {'wt':'json', core: '@core', _:Date.now()}, { get: {} }); -}]) -.factory('Schema', - ['$resource', function($resource) { - return $resource('/solr/:core/schema', {wt: 'json', core: '@core', _:Date.now()}, { - get: {method: "GET"}, - check: {method: "GET", headers: {doNotIntercept: "true"}}, - post: {method: "POST"} - }); -}]) -.factory('Config', - ['$resource', function($resource) { - return $resource('/solr/:core/config', {wt: 'json', core: '@core', _:Date.now()}, { - get: {method: "GET"} - }) -}]); + } +]);