From bd348e16bb2780972d1be0ab283ab65ef193f52c Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Mon, 2 Oct 2017 13:04:48 +0200 Subject: [PATCH 1/2] redesigned dashboard links settingd, fixed a misspelling in rows and added fixed width to buttons (#9397) --- .../features/dashboard/partials/settings.html | 6 +- public/app/features/dashlinks/editor.html | 100 +++++++++--------- 2 files changed, 55 insertions(+), 51 deletions(-) diff --git a/public/app/features/dashboard/partials/settings.html b/public/app/features/dashboard/partials/settings.html index b8d8303a51b..e9f30c81b55 100644 --- a/public/app/features/dashboard/partials/settings.html +++ b/public/app/features/dashboard/partials/settings.html @@ -93,13 +93,13 @@
- - -
diff --git a/public/app/features/dashlinks/editor.html b/public/app/features/dashlinks/editor.html index f52835aa5f9..d1d73520283 100644 --- a/public/app/features/dashlinks/editor.html +++ b/public/app/features/dashlinks/editor.html @@ -3,74 +3,78 @@
-
-
+
+
- Type + Type
-
- With tags - + With tags +
- -
- -
- -
-
  • Url
  • - -
    - -
    - -
    -
    - -
    -
    - -
    -
    - -
    - Title - -
    - -
    -
    - Title + +
    + Title
    +
    +
    +
  • Url
  • + +
    -
    - Tooltip - -
    +
    + Title + +
    -
    - Icon -
    - +
    + Tooltip + +
    + +
    + Icon +
    + +
    -
    +
    +
    +
    + Include +
    +
    +
    + + + +
    +
    + +
    - Include - - - + +
    +
    + +
    +
    +
    + + From ae146557498895597954bf4e861827544a440238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 2 Oct 2017 13:39:39 +0200 Subject: [PATCH 2/2] plugins: expose datemath to plugins as well, fixes zabbix plugin --- public/app/features/plugins/plugin_loader.ts | 26 +++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/public/app/features/plugins/plugin_loader.ts b/public/app/features/plugins/plugin_loader.ts index cfb4975a950..ac6fc06ce28 100644 --- a/public/app/features/plugins/plugin_loader.ts +++ b/public/app/features/plugins/plugin_loader.ts @@ -7,6 +7,7 @@ import angular from 'angular'; import jquery from 'jquery'; import config from 'app/core/config'; import TimeSeries from 'app/core/time_series2'; +import * as datemath from 'app/core/utils/datemath'; import * as graphitePlugin from 'app/plugins/datasource/graphite/module'; import * as cloudwatchPlugin from 'app/plugins/datasource/cloudwatch/module'; @@ -78,15 +79,22 @@ System.locate = function(load) { }); }; -System.registerDynamic('lodash', [], true, function(require, exports, module) { module.exports = _; }); -System.registerDynamic('moment', [], true, function(require, exports, module) { module.exports = moment; }); -System.registerDynamic('jquery', [], true, function(require, exports, module) { module.exports = jquery; }); -System.registerDynamic('angular', [], true, function(require, exports, module) { module.exports = angular; }); -System.registerDynamic('app/plugins/sdk', [], true, function(require, exports, module) { module.exports = sdk; }); -System.registerDynamic('app/core/utils/kbn', [], true, function(require, exports, module) { module.exports = kbn; }); -System.registerDynamic('app/core/config', [], true, function(require, exports, module) { module.exports = config; }); -System.registerDynamic('app/core/time_series', [], true, function(require, exports, module) { module.exports = TimeSeries; }); -System.registerDynamic('app/core/time_series2', [], true, function(require, exports, module) { module.exports = TimeSeries; }); +function exposeToPlugin(name: string, component: any) { + System.registerDynamic(name, [], true, function(require, exports, module) { + module.exports = component; + }); +} + +exposeToPlugin('lodash', _); +exposeToPlugin('moment', moment); +exposeToPlugin('jquery', jquery); +exposeToPlugin('angular', angular); +exposeToPlugin('app/plugins/sdk', sdk); +exposeToPlugin('app/core/utils/datemath', datemath); +exposeToPlugin('app/core/utils/kbn', kbn); +exposeToPlugin('app/core/config', config); +exposeToPlugin('app/core/time_series', TimeSeries); +exposeToPlugin('app/core/time_series2', TimeSeries); import 'vendor/flot/jquery.flot'; import 'vendor/flot/jquery.flot.selection';