From 9c1217cd2cf823c4ecab2dd0f49421a00844eafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 27 Jan 2016 14:32:19 -0500 Subject: [PATCH] updated --- public/app/plugins/panel/test/module.html | 5 ---- public/app/plugins/panel/test/module.ts | 35 ----------------------- public/app/plugins/panel/test/plugin.json | 18 ------------ public/app/plugins/panel/text/module.ts | 4 +-- 4 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 public/app/plugins/panel/test/module.html delete mode 100644 public/app/plugins/panel/test/module.ts delete mode 100644 public/app/plugins/panel/test/plugin.json diff --git a/public/app/plugins/panel/test/module.html b/public/app/plugins/panel/test/module.html deleted file mode 100644 index 10b5eeae608..00000000000 --- a/public/app/plugins/panel/test/module.html +++ /dev/null @@ -1,5 +0,0 @@ -

- Test panel! - panel.id: {{ctrl.panel.id}} - data: {{ctrl.data}} -

diff --git a/public/app/plugins/panel/test/module.ts b/public/app/plugins/panel/test/module.ts deleted file mode 100644 index 21b6479c19a..00000000000 --- a/public/app/plugins/panel/test/module.ts +++ /dev/null @@ -1,35 +0,0 @@ -/// - -import {PanelDirective, MetricsPanelCtrl} from '../../../features/panel/panel'; - -function optionsTab() { - return {template: '

options!

' }; -} - -export class TestPanelCtrl extends MetricsPanelCtrl { - data: any; - - constructor($scope, $injector) { - super($scope, $injector); - } - - refreshData(data) { - return this.issueQueries().then(res => { - this.data = res.data[0].target; - console.log('issueQueries', res); - }).catch(err => { - console.log('Errrrr! in test panel', err); - }); - } -} - -class TestPanel extends PanelDirective { - templateUrl = `app/plugins/panel/test/module.html`; - controller = TestPanelCtrl; - - link(scope, elem) { - console.log('test panel linking:', scope); - } -} - -export {TestPanel as Panel} diff --git a/public/app/plugins/panel/test/plugin.json b/public/app/plugins/panel/test/plugin.json deleted file mode 100644 index 08fb883af76..00000000000 --- a/public/app/plugins/panel/test/plugin.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "panel", - "name": "Test", - "id": "test", - - "info": { - "description": "Test panel", - "author": { - "name": "Core Grafana Team.", - "url": "http://grafana.org" - }, - "logos": { - "icon": "fa fa-fw th-large", - "small": "img/logo_small.png", - "large": "img/logo_large.png" - } - } -} diff --git a/public/app/plugins/panel/text/module.ts b/public/app/plugins/panel/text/module.ts index f546f10c567..bdef3bb4ced 100644 --- a/public/app/plugins/panel/text/module.ts +++ b/public/app/plugins/panel/text/module.ts @@ -22,9 +22,7 @@ export class TextPanelCtrl extends PanelCtrl { initEditMode() { this.icon = 'fa fa-text-width'; - this.addEditorTab('Options', () => { - return { templateUrl: 'public/app/plugins/panel/text/editor.html' }; - }); + this.addEditorTab('Options', 'public/app/plugins/panel/text/editor.html'); } refresh() {