diff --git a/public/app/angular/AngularApp.ts b/public/app/angular/AngularApp.ts index 7eadf7e83ef..7fab2829548 100644 --- a/public/app/angular/AngularApp.ts +++ b/public/app/angular/AngularApp.ts @@ -7,14 +7,13 @@ import 'vendor/angular-other/angular-strap'; import { config } from 'app/core/config'; import coreModule, { angularModules } from 'app/core/core_module'; import { DashboardLoaderSrv } from 'app/features/dashboard/services/DashboardLoaderSrv'; -import { registerAngularDirectives } from 'app/core/core'; -import { initAngularRoutingBridge } from 'app/angular/bridgeReactAngularRouting'; -import { monkeyPatchInjectorWithPreAssignedBindings } from 'app/core/injectorMonkeyPatch'; +import { registerAngularDirectives } from './angular_wrappers'; +import { initAngularRoutingBridge } from './bridgeReactAngularRouting'; +import { monkeyPatchInjectorWithPreAssignedBindings } from './injectorMonkeyPatch'; import { extend } from 'lodash'; import { getTimeSrv } from 'app/features/dashboard/services/TimeSrv'; import { getTemplateSrv } from '@grafana/runtime'; -import './panel/all'; -import './partials'; + export class AngularApp { ngModuleDependencies: any[]; preBootModules: any[]; diff --git a/public/app/core/angular_wrappers.ts b/public/app/angular/angular_wrappers.ts similarity index 94% rename from public/app/core/angular_wrappers.ts rename to public/app/angular/angular_wrappers.ts index e225e7afa79..c678704635e 100644 --- a/public/app/core/angular_wrappers.ts +++ b/public/app/angular/angular_wrappers.ts @@ -2,10 +2,10 @@ import { react2AngularDirective } from 'app/core/utils/react2angular'; import { QueryEditor as CloudMonitoringQueryEditor } from 'app/plugins/datasource/cloud-monitoring/components/QueryEditor'; import { AnnotationQueryEditor as CloudMonitoringAnnotationQueryEditor } from 'app/plugins/datasource/cloud-monitoring/components/AnnotationQueryEditor'; import { AnnotationQueryEditor as CloudWatchAnnotationQueryEditor } from 'app/plugins/datasource/cloudwatch/components/AnnotationQueryEditor'; -import PageHeader from './components/PageHeader/PageHeader'; -import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA'; -import { TagFilter } from './components/TagFilter/TagFilter'; -import { MetricSelect } from './components/Select/MetricSelect'; +import PageHeader from '../core/components/PageHeader/PageHeader'; +import EmptyListCTA from '../core/components/EmptyListCTA/EmptyListCTA'; +import { TagFilter } from '../core/components/TagFilter/TagFilter'; +import { MetricSelect } from '../core/components/Select/MetricSelect'; import { ColorPicker, DataLinksInlineEditor, @@ -18,8 +18,8 @@ import { UnitPicker, } from '@grafana/ui'; import { LokiAnnotationsQueryEditor } from '../plugins/datasource/loki/components/AnnotationsQueryEditor'; -import { HelpModal } from './components/help/HelpModal'; -import { Footer } from './components/Footer/Footer'; +import { HelpModal } from '../core/components/help/HelpModal'; +import { Footer } from '../core/components/Footer/Footer'; import { FolderPicker } from 'app/core/components/Select/FolderPicker'; import { SearchField, SearchResults, SearchResultsFilter } from '../features/search'; import { TimePickerSettings } from 'app/features/dashboard/components/DashboardSettings/TimePickerSettings'; diff --git a/public/app/core/components/code_editor/brace.d.ts b/public/app/angular/components/code_editor/brace.d.ts similarity index 100% rename from public/app/core/components/code_editor/brace.d.ts rename to public/app/angular/components/code_editor/brace.d.ts diff --git a/public/app/core/components/code_editor/code_editor.ts b/public/app/angular/components/code_editor/code_editor.ts similarity index 100% rename from public/app/core/components/code_editor/code_editor.ts rename to public/app/angular/components/code_editor/code_editor.ts diff --git a/public/app/core/components/code_editor/theme-grafana-dark.js b/public/app/angular/components/code_editor/theme-grafana-dark.js similarity index 100% rename from public/app/core/components/code_editor/theme-grafana-dark.js rename to public/app/angular/components/code_editor/theme-grafana-dark.js diff --git a/public/app/core/components/form_dropdown/form_dropdown.ts b/public/app/angular/components/form_dropdown/form_dropdown.ts similarity index 99% rename from public/app/core/components/form_dropdown/form_dropdown.ts rename to public/app/angular/components/form_dropdown/form_dropdown.ts index 915fe57f08c..fbe0107a7b0 100644 --- a/public/app/core/components/form_dropdown/form_dropdown.ts +++ b/public/app/angular/components/form_dropdown/form_dropdown.ts @@ -1,5 +1,5 @@ import { debounce, find, indexOf, map, isObject, escape, unescape } from 'lodash'; -import coreModule from '../../core_module'; +import coreModule from '../../../core/core_module'; import { ISCEService } from 'angular'; import { promiseToDigest } from 'app/core/utils/promiseToDigest'; diff --git a/public/app/core/components/info_popover.ts b/public/app/angular/components/info_popover.ts similarity index 100% rename from public/app/core/components/info_popover.ts rename to public/app/angular/components/info_popover.ts diff --git a/public/app/core/components/jsontree/jsontree.ts b/public/app/angular/components/jsontree.ts similarity index 100% rename from public/app/core/components/jsontree/jsontree.ts rename to public/app/angular/components/jsontree.ts diff --git a/public/app/core/components/query_part/query_part.ts b/public/app/angular/components/query_part.ts similarity index 100% rename from public/app/core/components/query_part/query_part.ts rename to public/app/angular/components/query_part.ts diff --git a/public/app/core/components/query_part/query_part_editor.ts b/public/app/angular/components/query_part_editor.ts similarity index 98% rename from public/app/core/components/query_part/query_part_editor.ts rename to public/app/angular/components/query_part_editor.ts index 97d886a9fda..9f0c350e287 100644 --- a/public/app/core/components/query_part/query_part_editor.ts +++ b/public/app/angular/components/query_part_editor.ts @@ -1,7 +1,7 @@ import { debounce, each, map, partial, escape, unescape } from 'lodash'; import $ from 'jquery'; import coreModule from 'app/core/core_module'; -import { promiseToDigest } from '../../utils/promiseToDigest'; +import { promiseToDigest } from '../../core/utils/promiseToDigest'; const template = `