From d75216abbcd160dd920809604aff3c285b005e9f Mon Sep 17 00:00:00 2001 From: Sriramajeyam Date: Fri, 20 Nov 2020 11:37:44 +0000 Subject: [PATCH] Removed dist folder --- dist/CHANGELOG.md | 11 -- dist/README.md | 54 ------- dist/module.js | 295 ------------------------------------- dist/partials/module.html | 16 -- dist/partials/options.html | 103 ------------- dist/plugin.json | 25 ---- 6 files changed, 504 deletions(-) delete mode 100644 dist/CHANGELOG.md delete mode 100644 dist/README.md delete mode 100644 dist/module.js delete mode 100644 dist/partials/module.html delete mode 100644 dist/partials/options.html delete mode 100644 dist/plugin.json diff --git a/dist/CHANGELOG.md b/dist/CHANGELOG.md deleted file mode 100644 index e773453..0000000 --- a/dist/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -| Version | Changes | -| --------|------------------------------------------------------------| -| 0.1.0 | **First version for release** | -| 0.0.4 | Base theme option | -| | Bug fixes (#4) | -| 0.0.3 | Schema changes (BREAKING) | -| | Option to switch between default dark,light themes | -| | BG Image as theme option | -| | Bug fixes | -| 0.0.2 | Multiple Themes, Theme picker | -| 0.0.1 | Base version | \ No newline at end of file diff --git a/dist/README.md b/dist/README.md deleted file mode 100644 index e039b33..0000000 --- a/dist/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# Boom Theme Panel - -Theme switcher with custom styles / themes for grafana dashboards. - -![image](https://user-images.githubusercontent.com/153843/57070256-ba874200-6cce-11e9-85f5-e0a036eb306b.png) - -![image](https://user-images.githubusercontent.com/153843/57070201-99265600-6cce-11e9-9a9c-734121df7cb8.png) - -# Features - -- Theme switcher -- Multiple themes per dashboard -- Theme builder -- External stylesheets support -- Add inline styles to themes to override styles -- Add many themes as possible without rebuilding / restarting grafana -- Users with view only option can also pick their favourite theme -- Themes applicable to current dashboard only - -# Creating Theme - -Themes can be created with multiple building blocks like background image, base theme etc. - -| Property | Description | -| --------------------------- | -------------------------------------------------------------------------------------------------------- | -| Base theme | Themes can be built on top of default/dark/light theme. Default is **Default Theme** | -| Background image | Optional property. Can be blank. If specified more than once, last wins. Value should be valid image URL | -| CSS url | External theme file. Should be valid CSS file URL | -| Custom Style / CSS Override | CSS Styles. Should be valid css | - -# Supported Grafana version - -This grafana plugin is tested with the grafna versions 6.x. But other versions are also expected to work. - -# Work in progress - -* Time based automatic theme switch - Automatically switch dark themes during night hours. -* Color palette based themes - Pick your own background/foregroud colors -* Font size adjuster - Viewers will be able to adjust their dashboard font sizes - -# Notes - -- When adding external stylesheets, make sure CORS enabled for those domains. -- To make panel invisible : Modify following theme panel settings: - - transparent = true - - title = "" - - Disable Theme Picker using panel settings - - Move this panel to the bottom of the dashboard - - Adjust the height and width if required. -- This plugin is in very much WIP / dev stage. Expect breaking changes & bugs. - -# Known issues - -- If any custom plugin is used, dark/light theme switch, base theme will not work for those custom plugins. Refer [this](https://github.com/yesoreyeram/yesoreyeram-boomtheme-panel/issues/3) github issue diff --git a/dist/module.js b/dist/module.js deleted file mode 100644 index bc3aafb..0000000 --- a/dist/module.js +++ /dev/null @@ -1,295 +0,0 @@ -System.register(["lodash", "app/plugins/sdk"], function (exports_1, context_1) { - "use strict"; - var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })(); - var lodash_1, sdk_1, CONFIG, BoomThemeStyle, BoomTheme, BoomThemeCtl, getThemeCSSFile; - var __moduleName = context_1 && context_1.id; - return { - setters: [ - function (lodash_1_1) { - lodash_1 = lodash_1_1; - }, - function (sdk_1_1) { - sdk_1 = sdk_1_1; - } - ], - execute: function () { - CONFIG = { - BASE_THEMES: { - DARK: { - id: "dark", - index_id: -2000, - name: "Dark Theme" - }, - DEFAULT: { - id: "default", - index_id: -1000, - name: "Default Theme" - }, - LIGHT: { - id: "light", - index_id: -3000, - name: "Light Theme" - } - }, - DEFAULT_THEME_BG_IMAGE: "https://images.unsplash.com/photo-1524334228333-0f6db392f8a1", - DEFAULT_THEME_NAME: "New Theme", - DEFAULT_THEME_STYLE: ".panel-container {\n background-color: rgba(0,0,0,0.3);\n}", - FIRST_THEME_NAME: "Night Theme", - THEME_STYLES: { - BASE_THEME: "basetheme", - BG_IMAGE: "bgimage", - NONE: "none", - STYLE: "style", - URL: "url", - } - }; - BoomThemeStyle = (function () { - function BoomThemeStyle(type, props) { - switch (type.toLowerCase()) { - case CONFIG.THEME_STYLES.BASE_THEME: - this.type = CONFIG.THEME_STYLES.BASE_THEME; - this.props = { - theme: props && props.theme ? props.theme : "" - }; - break; - case CONFIG.THEME_STYLES.STYLE: - this.type = CONFIG.THEME_STYLES.STYLE; - this.props = { - text: props && props.text ? props.text : "" - }; - break; - case CONFIG.THEME_STYLES.URL: - this.type = CONFIG.THEME_STYLES.URL; - this.props = { - url: props && props.url ? props.url : "" - }; - break; - case CONFIG.THEME_STYLES.BG_IMAGE: - this.type = CONFIG.THEME_STYLES.BG_IMAGE; - this.props = { - url: props && props.url ? props.url : "" - }; - break; - default: - this.type = CONFIG.THEME_STYLES.NONE; - this.props = {}; - break; - } - } - return BoomThemeStyle; - }()); - BoomTheme = (function () { - function BoomTheme(options) { - this.name = options.name || CONFIG.DEFAULT_THEME_NAME; - this.styles = options.styles || [ - new BoomThemeStyle(CONFIG.THEME_STYLES.BASE_THEME, { theme: CONFIG.BASE_THEMES.DEFAULT.id }), - new BoomThemeStyle(CONFIG.THEME_STYLES.BG_IMAGE, { url: "" }), - new BoomThemeStyle(CONFIG.THEME_STYLES.URL, { url: "" }), - new BoomThemeStyle(CONFIG.THEME_STYLES.STYLE, { text: "" }), - ]; - } - BoomTheme.prototype.addStyle = function (type) { - this.styles.push(new BoomThemeStyle(type, {})); - }; - BoomTheme.prototype.deleteStyle = function (index) { - this.styles.splice(index, 1); - }; - BoomTheme.prototype.constructTheme = function (styles) { - var output = ""; - lodash_1.default.each(styles, function (style) { - if (style.type === CONFIG.THEME_STYLES.URL) { - if (style.props && style.props.url !== "") { - output += "@import url('" + style.props.url + "');\n "; - } - } - else if (style.type === CONFIG.THEME_STYLES.BASE_THEME) { - if (style.props && style.props.theme !== "") { - if (style.props.theme.toLowerCase() === CONFIG.BASE_THEMES.DARK.id) { - output += "@import url('" + getThemeCSSFile(CONFIG.BASE_THEMES.DARK.id) + "');\n "; - } - else if (style.props.theme.toLowerCase() === CONFIG.BASE_THEMES.LIGHT.id) { - output += "@import url('" + getThemeCSSFile(CONFIG.BASE_THEMES.LIGHT.id) + "');\n "; - } - } - } - else if (style.type === CONFIG.THEME_STYLES.STYLE) { - if (style.props && style.props.text !== "") { - output += (style.props.text || '') + "\n "; - } - } - else if (style.type === CONFIG.THEME_STYLES.BG_IMAGE) { - if (style.props && style.props.url !== "") { - output += "\n.main-view, .sidemenu, .sidemenu-open .sidemenu, .navbar, .dashboard-container {\n background: url(\"" + style.props.url + "\")\n no-repeat center center fixed;\n -webkit-background-size: cover;\n -moz-background-size: cover;\n -o-background-size: cover;\n background-size: cover;\n}\n "; - } - } - }); - return output; - }; - BoomTheme.prototype.getThemeContent = function () { - var output = ''; - if (this.styles && this.styles.length > 0) { - output += this.constructTheme(this.styles.filter(function (style) { return style.type === CONFIG.THEME_STYLES.URL; })); - output += this.constructTheme(this.styles.filter(function (style) { return style.type === CONFIG.THEME_STYLES.STYLE; })); - output += this.constructTheme(this.styles.filter(function (style) { return style.type !== CONFIG.THEME_STYLES.URL && style.type !== CONFIG.THEME_STYLES.STYLE; })); - } - return output; - }; - return BoomTheme; - }()); - BoomThemeCtl = (function (_super) { - __extends(BoomThemeCtl, _super); - function BoomThemeCtl($scope, $injector) { - var _this = _super.call(this, $scope, $injector) || this; - _this.base_theme_options = [CONFIG.BASE_THEMES.DEFAULT, CONFIG.BASE_THEMES.DARK, CONFIG.BASE_THEMES.LIGHT].map(function (theme) { - return { - text: theme.name, - value: theme.id - }; - }); - lodash_1.default.defaults(_this.panel, {}); - // Jaime modified at DATE20200326, for panel transparent always true issue, LINE - // _this.panel.transparent = true; - _this.panel.themes = _this.panel.themes || [ - new BoomTheme({ - name: CONFIG.FIRST_THEME_NAME, - styles: [ - new BoomThemeStyle(CONFIG.THEME_STYLES.BASE_THEME, { theme: CONFIG.BASE_THEMES.DEFAULT.id }), - new BoomThemeStyle(CONFIG.THEME_STYLES.BG_IMAGE, { url: CONFIG.DEFAULT_THEME_BG_IMAGE }), - new BoomThemeStyle(CONFIG.THEME_STYLES.STYLE, { text: CONFIG.DEFAULT_THEME_STYLE }) - ] - }) - ]; - _this.panel.activeThemeId = _this.panel.activeThemeId || 0; - _this.activeEditorTabIndex = _this.panel.activeThemeId >= 0 ? _this.panel.activeThemeId : -1; - _this.runtimeThemeSet = false; - _this.runtimeThemeIndex = _this.panel.activeThemeId >= 0 ? _this.panel.activeThemeId : 0; - _this.updatePrototypes(); - _this.events.on("init-edit-mode", _this.onInitEditMode.bind(_this)); - return _this; - } - BoomThemeCtl.prototype.updatePrototypes = function () { - if (this.panel.themes && this.panel.themes.length > 0) { - this.panel.themes.map(function (theme) { - Object.setPrototypeOf(theme, BoomTheme.prototype); - if (theme.styles && theme.styles.length > 0) { - theme.styles.map(function (style) { - Object.setPrototypeOf(style, BoomThemeStyle.prototype); - }); - } - return theme; - }); - } - }; - BoomThemeCtl.prototype.onInitEditMode = function () { - this.addEditorTab("Theme", "public/plugins/yesoreyeram-boomtheme-panel/partials/options.html", 2); - }; - BoomThemeCtl.prototype.addTheme = function () { - this.panel.themes = this.panel.themes || []; - this.panel.themes.push(new BoomTheme({ - name: "Theme " + (this.panel.themes.length + 1) - })); - this.activeEditorTabIndex = this.panel.themes.length - 1; - this.runtimeThemeIndex = this.panel.themes.length - 1; - this.render(); - }; - BoomThemeCtl.prototype.deleteTheme = function (index) { - this.panel.themes.splice(index, 1); - if (this.panel.activeThemeId === index) { - this.panel.activeThemeId = 0; - } - if (this.runtimeThemeIndex === index) { - this.runtimeThemeIndex = 0; - } - if (this.activeEditorTabIndex === index) { - this.activeEditorTabIndex = this.ctrl.panel.themes.length - 1; - } - }; - BoomThemeCtl.prototype.setThemeAsDefault = function (index) { - this.ctrl.panel.activeThemeId = index; - this.runtimeThemeIndex = index; - this.render(); - }; - BoomThemeCtl.prototype.setruntimeThemeIndex = function (index) { - this.runtimeThemeSet = true; - this.runtimeThemeIndex = index; - this.render(); - }; - BoomThemeCtl.prototype.limitText = function (text, maxlength) { - if (text.split("").length > maxlength) { - text = text.substring(0, Number(maxlength) - 3) + "..."; - } - return text; - }; - BoomThemeCtl.prototype.link = function (scope, elem, attrs, ctrl) { - this.scope = scope; - this.elem = elem; - this.attrs = attrs; - this.ctrl = ctrl; - this.render(); - }; - BoomThemeCtl.templateUrl = "partials/module.html"; - return BoomThemeCtl; - }(sdk_1.PanelCtrl)); - exports_1("PanelCtrl", BoomThemeCtl); - getThemeCSSFile = function (mode) { - var filename = ''; - if (["dark", "light"].indexOf(mode.toLowerCase()) > -1 && window.performance) { - var appfiles = window.performance.getEntries().map(function (e) { return e.name; }).filter(function (e) { return e.endsWith(".js"); }).filter(function (e) { return e.indexOf("/public/build/app.") > -1; }); - if (appfiles && appfiles.length > 0) { - filename = appfiles[0].replace("/public/build/app.", "/public/build/grafana." + mode.toLowerCase() + ".").slice(0, -3) + ".css"; - } - } - return filename; - }; - BoomThemeCtl.prototype.render = function () { - var _this = this; - if (this.ctrl.panel.title === "Panel Title") { - this.ctrl.panel.title = ""; - } - if (this.ctrl.panel.gridPos && this.ctrl.panel.gridPos.x === 0 && this.ctrl.panel.gridPos.y === 0) { - this.ctrl.panel.gridPos.w = 24; - this.ctrl.panel.gridPos.h = 3; - } - var output = ''; - lodash_1.default.each(this.panel.themes, function (theme, index) { - if (_this.runtimeThemeSet === false) { - if (_this.panel.activeThemeId === index && _this.panel.activeThemeId >= 0) { - output += theme.getThemeContent(); - } - } - else { - if (_this.runtimeThemeIndex === index && _this.runtimeThemeIndex >= 0) { - output += theme.getThemeContent(); - } - } - }); - if (this.runtimeThemeSet === true) { - if (this.runtimeThemeIndex === CONFIG.BASE_THEMES.DARK.index_id) { - output += "@import url('" + getThemeCSSFile(CONFIG.BASE_THEMES.DARK.id) + "');\n "; - } - else if (this.runtimeThemeIndex === CONFIG.BASE_THEMES.LIGHT.index_id) { - output += "@import url('" + getThemeCSSFile(CONFIG.BASE_THEMES.LIGHT.id) + "');\n "; - } - } - var style = document.createElement('style'); - style.type = 'text/css'; - style.appendChild(document.createTextNode(output)); - this.elem.find("#boom-theme").html(""); - this.elem.find("#boom-theme").append(style); - }; - } - }; -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL21vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7WUFLTSxNQUFNLEdBQUc7Z0JBQ1gsV0FBVyxFQUFFO29CQUNULElBQUksRUFBRTt3QkFDRixFQUFFLEVBQUUsTUFBTTt3QkFDVixRQUFRLEVBQUUsQ0FBQyxJQUFJO3dCQUNmLElBQUksRUFBRSxZQUFZO3FCQUNyQjtvQkFDRCxPQUFPLEVBQUU7d0JBQ0wsRUFBRSxFQUFFLFNBQVM7d0JBQ2IsUUFBUSxFQUFFLENBQUMsSUFBSTt3QkFDZixJQUFJLEVBQUUsZUFBZTtxQkFDeEI7b0JBQ0QsS0FBSyxFQUFFO3dCQUNILEVBQUUsRUFBRSxPQUFPO3dCQUNYLFFBQVEsRUFBRSxDQUFDLElBQUk7d0JBQ2YsSUFBSSxFQUFFLGFBQWE7cUJBQ3RCO2lCQUNKO2dCQUNELHNCQUFzQixFQUFFLDhEQUE4RDtnQkFDdEYsa0JBQW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vcHMudGhlbWUgPyBwcm9wcy50aGVtZSA6IFwiXCJcclxuICAgICAgICAgICAgICAgIH07XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgY2FzZSBDT05GSUcuVEhFTUVfU1RZTEVTLlNUWUxFOlxyXG4gICAgICAgICAgICAgICAgdGhpcy50eXBlID0gQ09ORklHLlRIRU1FX1NUWUxFUy5TVFlMRTtcclxuICAgICAgICAgICAgICAgIHRoaXMucHJvcHMgPSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dDogcHJvcHMgJiYgcHJvcHMudGV4dCA/IHByb3BzLnRleHQgOiBcIlwiXHJcbiAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgQ09ORklHLlRIRU1FX1NUWUxFUy5VUkw6XHJcbiAgICAgICAgICAgICAgICB0aGlzLnR5cGUgPSBDT05GSUcuVEhFTUVfU1RZTEVTLlVSTDtcclxuICAgICAgICAgICAgICAgIHRoaXMucHJvcHMgPSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdXJsOiBwcm9wcyAmJiBwcm9wcy51cmwgPyBwcm9wcy51cmwgOiBcIlwiXHJcbiAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgQ09ORklHLlRIRU1FX1NUWUxFUy5CR19JTUFHRTpcclxuICAgICAgICAgICAgICAgIHRoaXMudHlwZSA9IENPTkZJRy5USEVNRV9TVFlMRVMuQkdfSU1BR0U7XHJcbiAgICAgICAgICAgICAgICB0aGlzLnByb3BzID0ge1xyXG4gICAgICAgICAgICAgICAgICAgIHVybDogcHJvcHMgJiYgcHJvcHMudXJsID8gcHJvcHMudXJsIDogXCJcIlxyXG4gICAgICAgICAgICAgICAgfTtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAg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KHR5cGUsIHt9KSk7XHJcbiAgICB9XHJcbiAgICBwdWJsaWMgZGVsZXRlU3R5bGUoaW5kZXg6IG51bWJlcik6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuc3R5bGVzLnNwbGljZShpbmRleCwgMSk7XHJcbiAgICB9XHJcbiAgICBwcml2YXRlIGNvbnN0cnVjdFRoZW1lKHN0eWxlczogYW55W10pOiBzdHJpbmcge1xyXG4gICAgICAgIGxldCBvdXRwdXQgPSBgYDtcclxuICAgICAgICBfLmVhY2goc3R5bGVzLCBzdHlsZSA9PiB7XHJcbiAgICAgICAgICAgIGlmIChzdHlsZS50eXBlID09PSBDT05GSUcuVEhFTUVfU1RZTEVTLlVSTCkge1xyXG4gICAgICAgICAgICAgICAgaWYgKHN0eWxlLnByb3BzICYmIHN0eWxlLnByb3BzLnVybCAhPT0gXCJcIikge1xyXG4gICAgICAgICAgICAgICAgICAgIG91dHB1dCArPSBgQGltcG9ydCB1cmwoJyR7c3R5bGUucHJvcHMudXJsfScpO1xyXG4gICAgICAgICAgICAgICAgICAgIGA7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoc3R5bGUudHlwZSA9PT0gQ09ORklHLlRIRU1FX1NUWUxFUy5CQVNFX1RIRU1FKSB7XHJcbiAgICAgICAgICAgICAgICBpZiAoc3R5bGUucHJvcHMgJiYgc3R5bGUucHJvcHMudGhlbWUgIT09IFwiXCIpIHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoc3R5bGUucHJvcHMudGhlbWUudG9Mb3dlckNhc2UoKSA9PT0gQ09ORklHLkJBU0VfVEhFTUVTLkRBUksuaWQpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0ICs9IGBAaW1wb3J0IHVybCgnJHtnZXRUaGVtZUNTU0ZpbGUoQ09ORklHLkJBU0VfVEhFTUVTLkRBUksuaWQpfScpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBgO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHN0eWxlLnByb3BzLnRoZW1lLnRvTG93ZXJDYXNlKCkgPT09IENPTkZJRy5CQVNFX1RIRU1FUy5MSUdIVC5pZCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBvdXRwdXQgKz0gYEBpbXBvcnQgdXJsKCcke2dldFRoZW1lQ1NTRmlsZShDT05GSUcuQkFTRV9USEVNRVMuTElHSFQuaWQpfScpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBgO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSBlbHNlIGlmIChzdHlsZS50eXBlID09PSBDT05GSUcuVEhFTUVfU1RZTEVTLlNUWUxFKSB7XHJcbiAgICAgICAgICAgICAgICBpZiAoc3R5bGUucHJvcHMgJiYgc3R5bGUucHJvcHMudGV4dCAhPT0gXCJcIikge1xyXG4gICAgICAgICAgICAgICAgICAgIG91dHB1dCArPSBgJHtzdHlsZS5wcm9wcy50ZXh0IHx8ICcnfVxyXG4gICAgICAgICAgICAgICAgICAgIGA7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoc3R5bGUudHlwZSA9PT0gQ09ORklHLlRIRU1FX1NUWUxFUy5CR19JTUFHRSkge1xyXG4gICAgICAgICAgICAgICAgaWYgKHN0eWxlLnByb3BzICYmIHN0eWxlLnByb3BzLnVybCAhPT0gXCJcIikge1xyXG4gICAgICAgICAgICAgICAgICAgIG91dHB1dCArPSBgXHJcbi5tYWluLXZpZXcsIC5zaWRlbWVudSwgLnNpZGVtZW51LW9wZW4gLnNpZGVtZW51LCAubmF2YmFyLCAuZGFzaGJvYXJkLWNvbnRhaW5lciB7XHJcbiAgICBiYWNrZ3JvdW5kOiB1cmwoXCIke3N0eWxlLnByb3BzLnVybH1cIilcclxuICAgIG5vLXJlcGVhdCBjZW50ZXIgY2VudGVyIGZp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VfVEhFTUVTLkRBUksuaWQpfScpO1xyXG4gICAgICAgICAgICBgO1xyXG4gICAgICAgIH0gZWxzZSBpZiAodGhpcy5ydW50aW1lVGhlbWVJbmRleCA9PT0gQ09ORklHLkJBU0VfVEhFTUVTLkxJR0hULmluZGV4X2lkKSB7XHJcbiAgICAgICAgICAgIG91dHB1dCArPSBgQGltcG9ydCB1cmwoJyR7Z2V0VGhlbWVDU1NGaWxlKENPTkZJRy5CQVNFX1RIRU1FUy5MSUdIVC5pZCl9Jyk7XHJcbiAgICAgICAgICAgIGA7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG4gICAgY29uc3Qgc3R5bGUgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdzdHlsZScpO1xyXG4gICAgc3R5bGUudHlwZSA9ICd0ZXh0L2Nzcyc7XHJcbiAgICBzdHlsZS5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVUZXh0Tm9kZShvdXRwdXQpKTtcclxuICAgIHRoaXMuZWxlbS5maW5kKFwiI2Jvb20tdGhlbWVcIikuaHRtbChcIlwiKTtcclxuICAgIHRoaXMuZWxlbS5maW5kKFwiI2Jvb20tdGhlbWVcIikuYXBwZW5kKHN0eWxlKTtcclxuICAgIC8vICNlbmRyZWdpb25cclxuXHJcbn07XHJcblxyXG5leHBvcnQgeyBCb29tVGhlbWVDdGwgYXMgUGFuZWxDdHJsIH07XHJcbiJdfQ== diff --git a/dist/partials/module.html b/dist/partials/module.html deleted file mode 100644 index e152416..0000000 --- a/dist/partials/module.html +++ /dev/null @@ -1,16 +0,0 @@ -
-
-
-
- - {{theme.name}} - - - Dark Theme - - - Light Theme - -
-
-
diff --git a/dist/partials/options.html b/dist/partials/options.html deleted file mode 100644 index f1dd222..0000000 --- a/dist/partials/options.html +++ /dev/null @@ -1,103 +0,0 @@ -
-
- -
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - - Applied as default theme - Apply as default theme -
-
-
-
- - -
-
- - - -
-
- - - -
-
- - - -
-
-
-
-
- Add Custom CSS - Add external URL - Add BG image -
-
-
-
-
- Delete Theme -
-
-
-
-
-
-
diff --git a/dist/plugin.json b/dist/plugin.json deleted file mode 100644 index 20b6372..0000000 --- a/dist/plugin.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "panel", - "name": "Boom Theme", - "id": "yesoreyeram-boomtheme-panel", - "dataFormats": [], - "info": { - "version": "0.1.0", - "description": "Themes for Grafana", - "author": { - "name": "Sriramajeyam Sugumaran", - "url": "https://www.google.com/search?q=Sriramajeyam+Sugumaran" - }, - "keywords": ["grafana", "plugin", "panel", "themes"], - "links": [ - { - "name": "Github", - "url": "https://github.com/yesoreyeram/yesoreyeram-boomtheme-panel" - } - ] - }, - "dependencies": { - "grafanaVersion": "4.x.x", - "plugins": [] - } -}