Kaynağa Gözat

moved folders from features into the main feature folder they belong to

Torkel Ödegaard 7 yıl önce
ebeveyn
işleme
34567bc4f1

+ 0 - 2
public/app/features/all.ts

@@ -1,5 +1,3 @@
-import './panellinks/module';
-import './dashlinks/module';
 import './annotations/all';
 import './annotations/all';
 import './templating/all';
 import './templating/all';
 import './plugins/all';
 import './plugins/all';

+ 2 - 0
public/app/features/dashboard/all.ts

@@ -27,6 +27,8 @@ import './dashgrid/RowOptions';
 import './folder_picker/folder_picker';
 import './folder_picker/folder_picker';
 import './move_to_folder_modal/move_to_folder';
 import './move_to_folder_modal/move_to_folder';
 import './settings/settings';
 import './settings/settings';
+import './panellinks/module';
+import './dashlinks/module';
 
 
 import coreModule from 'app/core/core_module';
 import coreModule from 'app/core/core_module';
 import { DashboardListCtrl } from './dashboard_list_ctrl';
 import { DashboardListCtrl } from './dashboard_list_ctrl';

+ 0 - 0
public/app/features/dashlinks/editor.html → public/app/features/dashboard/dashlinks/editor.html


+ 1 - 1
public/app/features/dashlinks/editor.ts → public/app/features/dashboard/dashlinks/editor.ts

@@ -66,7 +66,7 @@ function dashLinksEditor() {
   return {
   return {
     restrict: 'E',
     restrict: 'E',
     controller: DashLinkEditorCtrl,
     controller: DashLinkEditorCtrl,
-    templateUrl: 'public/app/features/dashlinks/editor.html',
+    templateUrl: 'public/app/features/dashboard/dashlinks/editor.html',
     bindToController: true,
     bindToController: true,
     controllerAs: 'ctrl',
     controllerAs: 'ctrl',
     scope: {
     scope: {

+ 0 - 0
public/app/features/dashlinks/module.ts → public/app/features/dashboard/dashlinks/module.ts


+ 0 - 0
public/app/features/panellinks/link_srv.ts → public/app/features/dashboard/panellinks/link_srv.ts


+ 0 - 0
public/app/features/panellinks/module.html → public/app/features/dashboard/panellinks/module.html


+ 1 - 1
public/app/features/panellinks/module.ts → public/app/features/dashboard/panellinks/module.ts

@@ -9,7 +9,7 @@ function panelLinksEditor() {
     },
     },
     restrict: 'E',
     restrict: 'E',
     controller: 'PanelLinksEditorCtrl',
     controller: 'PanelLinksEditorCtrl',
-    templateUrl: 'public/app/features/panellinks/module.html',
+    templateUrl: 'public/app/features/dashboard/panellinks/module.html',
     link: () => {},
     link: () => {},
   };
   };
 }
 }

+ 0 - 0
public/app/features/panellinks/specs/link_srv.test.ts → public/app/features/dashboard/panellinks/specs/link_srv.test.ts


+ 1 - 1
public/app/features/dashboard/specs/share_modal_ctrl.test.ts

@@ -1,7 +1,7 @@
 import '../shareModalCtrl';
 import '../shareModalCtrl';
 import { ShareModalCtrl } from '../shareModalCtrl';
 import { ShareModalCtrl } from '../shareModalCtrl';
 import config from 'app/core/config';
 import config from 'app/core/config';
-import { LinkSrv } from 'app/features/panellinks/link_srv';
+import { LinkSrv } from 'app/features/dashboard/panellinks/link_srv';
 
 
 describe('ShareModalCtrl', () => {
 describe('ShareModalCtrl', () => {
   const ctx = {
   const ctx = {

+ 21 - 19
public/views/index.template.html

@@ -236,26 +236,28 @@
 
 
     // insert it at the end of the head in a legacy-friendly manner
     // insert it at the end of the head in a legacy-friendly manner
     document.head.insertBefore(myCSS, document.head.childNodes[document.head.childNodes.length - 1].nextSibling);
     document.head.insertBefore(myCSS, document.head.childNodes[document.head.childNodes.length - 1].nextSibling);
-  </script> [[if .GoogleTagManagerId]]
-  <script>
-    dataLayer = [{
-      'IsSignedIn': '[[.User.IsSignedIn]]',
-      'Email': '[[.User.Email]]',
-      'Name': '[[.User.Name]]',
-      'UserId': '[[.User.Id]]',
-      'OrgId': '[[.User.OrgId]]',
-      'OrgName': '[[.User.OrgName]]',
-    }];
   </script>
   </script>
-  <!-- Google Tag Manager -->
-  <noscript>
-    <iframe src="//www.googletagmanager.com/ns.html?id=[[.GoogleTagManagerId]]" height="0" width="0" style="display:none;visibility:hidden"></iframe>
-  </noscript>
-  <script>(function (w, d, s, l, i) {
-      w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0],
-        j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
-    })(window, document, 'script', 'dataLayer', '[[.GoogleTagManagerId]]');</script>
-  <!-- End Google Tag Manager -->
+
+	[[if .GoogleTagManagerId]]
+		<!-- Google Tag Manager -->
+		<script>
+			dataLayer = [{
+				'IsSignedIn': '[[.User.IsSignedIn]]',
+				'Email': '[[.User.Email]]',
+				'Name': '[[.User.Name]]',
+				'UserId': '[[.User.Id]]',
+				'OrgId': '[[.User.OrgId]]',
+				'OrgName': '[[.User.OrgName]]',
+			}];
+		</script>
+		<noscript>
+			<iframe src="//www.googletagmanager.com/ns.html?id=[[.GoogleTagManagerId]]" height="0" width="0" style="display:none;visibility:hidden"></iframe>
+		</noscript>
+		<script>(function (w, d, s, l, i) {
+				w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0],
+					j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
+			})(window, document, 'script', 'dataLayer', '[[.GoogleTagManagerId]]');</script>
+		<!-- End Google Tag Manager -->
   [[end]]
   [[end]]
 
 
 </body>
 </body>