From ca58679a3f79bfa48d812b7052894a6f8f5a34ed Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 19 May 2020 10:29:07 +0300 Subject: [PATCH] Chore: rename app config --- src/{components => app_config_ctrl}/config.html | 0 src/app_config_ctrl/config.js | 4 ++++ src/components/config.js | 4 ---- src/module.js | 2 +- webpack/webpack.base.conf.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) rename src/{components => app_config_ctrl}/config.html (100%) create mode 100644 src/app_config_ctrl/config.js delete mode 100644 src/components/config.js diff --git a/src/components/config.html b/src/app_config_ctrl/config.html similarity index 100% rename from src/components/config.html rename to src/app_config_ctrl/config.html diff --git a/src/app_config_ctrl/config.js b/src/app_config_ctrl/config.js new file mode 100644 index 0000000..b23554a --- /dev/null +++ b/src/app_config_ctrl/config.js @@ -0,0 +1,4 @@ +export class ZabbixAppConfigCtrl { + constructor() { } +} +ZabbixAppConfigCtrl.templateUrl = 'app_config_ctrl/config.html'; diff --git a/src/components/config.js b/src/components/config.js deleted file mode 100644 index fe9c1ef..0000000 --- a/src/components/config.js +++ /dev/null @@ -1,4 +0,0 @@ -export class ZabbixAppConfigCtrl { - constructor() { } -} -ZabbixAppConfigCtrl.templateUrl = 'components/config.html'; diff --git a/src/module.js b/src/module.js index 58fed40..0854e5c 100644 --- a/src/module.js +++ b/src/module.js @@ -1,7 +1,7 @@ import './sass/grafana-zabbix.dark.scss'; import './sass/grafana-zabbix.light.scss'; -import {ZabbixAppConfigCtrl} from './components/config'; +import {ZabbixAppConfigCtrl} from './app_config_ctrl/config'; import {loadPluginCss} from 'grafana/app/plugins/sdk'; loadPluginCss({ diff --git a/webpack/webpack.base.conf.js b/webpack/webpack.base.conf.js index 841c39e..c845687 100644 --- a/webpack/webpack.base.conf.js +++ b/webpack/webpack.base.conf.js @@ -15,8 +15,8 @@ module.exports = { target: 'node', context: resolve('src'), entry: { - './module': './module.js', - 'components/config': './components/config.js', + 'module': './module.js', + 'app_config_ctrl/config': './app_config_ctrl/config.js', 'datasource-zabbix/module': './datasource-zabbix/module.ts', 'panel-triggers/module': './panel-triggers/module.js', },