mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(systemjs): more stuff is starting to work
This commit is contained in:
parent
545c39356a
commit
d34ba416a6
@ -19,6 +19,8 @@ function (angular, $, config) {
|
||||
var panelEl = angular.element(document.createElement('grafana-panel-' + panelType));
|
||||
elem.append(panelEl);
|
||||
$compile(panelEl)(scope);
|
||||
}).catch(function(err) {
|
||||
scope.appEvent('alert-error', ['Panel Load Error', 'Failed to load panel ' + panelType + ', ' + err]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
7
public/app/features/panel/panel_meta.js
Normal file
7
public/app/features/panel/panel_meta.js
Normal file
@ -0,0 +1,7 @@
|
||||
define([
|
||||
'./panel_meta2',
|
||||
],
|
||||
function (panelMeta) {
|
||||
'use strict';
|
||||
return panelMeta.default;
|
||||
});
|
@ -7,7 +7,7 @@ export default class PanelMeta {
|
||||
editorTabs: any;
|
||||
extendedMenu: any;
|
||||
|
||||
constructor(options : any) {
|
||||
constructor(options: any) {
|
||||
this.description = options.description;
|
||||
this.fullscreen = options.fullscreen;
|
||||
this.editIcon = options.editIcon;
|
@ -9,7 +9,7 @@ function (angular, app, _, config, PanelMeta) {
|
||||
'use strict';
|
||||
|
||||
var module = angular.module('grafana.panels.dashlist', []);
|
||||
app.useModule(module);
|
||||
app.default.useModule(module);
|
||||
|
||||
module.directive('grafanaPanelDashlist', function() {
|
||||
return {
|
||||
|
@ -7,7 +7,7 @@ define([
|
||||
'use strict';
|
||||
|
||||
var module = angular.module('grafana.panels.graph', []);
|
||||
app.useModule(module);
|
||||
app.default.useModule(module);
|
||||
|
||||
module.controller('SeriesOverridesCtrl', function($scope, $element, popoverSrv) {
|
||||
$scope.overrideMenu = [];
|
||||
|
@ -11,7 +11,7 @@ function (angular, app, _, kbn, TimeSeries, PanelMeta) {
|
||||
'use strict';
|
||||
|
||||
var module = angular.module('grafana.panels.singlestat');
|
||||
app.useModule(module);
|
||||
app.default.useModule(module);
|
||||
|
||||
module.directive('grafanaPanelSinglestat', function() {
|
||||
return {
|
||||
|
@ -9,7 +9,7 @@ function (angular, app, _, $) {
|
||||
'use strict';
|
||||
|
||||
var module = angular.module('grafana.panels.singlestat', []);
|
||||
app.useModule(module);
|
||||
app.default.useModule(module);
|
||||
|
||||
module.directive('singlestatPanel', function($location, linkSrv, $timeout, templateSrv) {
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
import angular = require('angular');
|
||||
import _ = require('lodash');
|
||||
import moment = require('moment');
|
||||
import PanelMeta from '../../../features/panel/panel_meta';
|
||||
import PanelMeta from 'app/features/panel/panel_meta2';
|
||||
|
||||
import {transformDataToTable} from './transformers';
|
||||
|
||||
|
@ -11,7 +11,7 @@ function (angular, app, _, require, PanelMeta) {
|
||||
var converter;
|
||||
|
||||
var module = angular.module('grafana.panels.text', []);
|
||||
app.useModule(module);
|
||||
app.default.useModule(module);
|
||||
|
||||
module.directive('grafanaPanelText', function() {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user