Просмотр исходного кода

Moving templating to feature to feature folder

Torkel Ödegaard 11 лет назад
Родитель
Сommit
2f811375bb

+ 0 - 1
src/app/controllers/all.js

@@ -10,7 +10,6 @@ define([
   './graphiteImport',
   './playlistCtrl',
   './inspectCtrl',
-  './templateEditorCtrl',
   './sharePanelCtrl',
   './jsonEditorCtrl',
 ], function () {});

+ 1 - 0
src/app/features/all.js

@@ -1,6 +1,7 @@
 define([
   './panellinkeditor/module',
   './annotations/annotationsSrv',
+  './templating/templateSrv',
   './graphite/datasource',
   './influxdb/datasource',
   './opentsdb/datasource',

+ 0 - 0
src/app/controllers/templateEditorCtrl.js → src/app/features/templating/editorCtrl.js


+ 2 - 0
src/app/services/templateSrv.js → src/app/features/templating/templateSrv.js

@@ -1,6 +1,8 @@
 define([
   'angular',
   'lodash',
+  './editorCtrl',
+  './templateValuesSrv',
 ],
 function (angular, _) {
   'use strict';

+ 0 - 0
src/app/services/templateValuesSrv.js → src/app/features/templating/templateValuesSrv.js


+ 0 - 2
src/app/services/all.js

@@ -3,8 +3,6 @@ define([
   './utilSrv',
   './datasourceSrv',
   './timeSrv',
-  './templateSrv',
-  './templateValuesSrv',
   './panelSrv',
   './timer',
   './keyboardManager',

+ 1 - 1
src/test/specs/templateSrv-specs.js

@@ -1,7 +1,7 @@
 define([
   'mocks/dashboard-mock',
   'lodash',
-  'services/templateSrv'
+  'features/templating/templateSrv'
 ], function(dashboardMock) {
   'use strict';
 

+ 1 - 1
src/test/specs/templateValuesSrv-specs.js

@@ -2,7 +2,7 @@ define([
   'mocks/dashboard-mock',
   'helpers',
   'moment',
-  'services/templateValuesSrv'
+  'features/templating/templateValuesSrv'
 ], function(dashboardMock, helpers, moment) {
   'use strict';