diff --git a/public/app/features/plugins/built_in_plugins.ts b/public/app/features/plugins/built_in_plugins.ts index adbf001f267..e7fc01e4365 100644 --- a/public/app/features/plugins/built_in_plugins.ts +++ b/public/app/features/plugins/built_in_plugins.ts @@ -58,7 +58,6 @@ import * as barGaugePanel from 'app/plugins/panel/bargauge/module'; import * as logsPanel from 'app/plugins/panel/logs/module'; import * as newsPanel from 'app/plugins/panel/news/module'; import * as livePanel from 'app/plugins/panel/live/module'; -import * as homeLinksPanel from 'app/plugins/panel/homelinks/module'; import * as welcomeBanner from 'app/plugins/panel/welcome/module'; const builtInPlugins: any = { @@ -102,7 +101,6 @@ const builtInPlugins: any = { 'app/plugins/panel/piechart/module': pieChartPanel, 'app/plugins/panel/bargauge/module': barGaugePanel, 'app/plugins/panel/logs/module': logsPanel, - 'app/plugins/panel/homelinks/module': homeLinksPanel, 'app/plugins/panel/welcome/module': welcomeBanner, }; diff --git a/public/app/plugins/panel/homelinks/img/news.svg b/public/app/plugins/panel/homelinks/img/news.svg deleted file mode 100644 index b1d737bdeb0..00000000000 --- a/public/app/plugins/panel/homelinks/img/news.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/public/app/plugins/panel/homelinks/module.tsx b/public/app/plugins/panel/homelinks/module.tsx deleted file mode 100755 index 04059dd2535..00000000000 --- a/public/app/plugins/panel/homelinks/module.tsx +++ /dev/null @@ -1,113 +0,0 @@ -// Libraries -import React, { PureComponent, FC } from 'react'; -import { css } from 'emotion'; - -// Utils & Services -import { PanelPlugin } from '@grafana/data'; -import { stylesFactory, styleMixins, Icon, IconName } from '@grafana/ui'; -import config from 'app/core/config'; - -// Types -import { PanelProps } from '@grafana/data'; - -export interface Props extends PanelProps {} - -export class GrafanaLinksPanel extends PureComponent { - render() { - const styles = getStyles(); - - return ( - <> -
- - - - -
- - - ); - } -} - -interface HomeLinkProps { - title: string; - url: string; - target?: string; - icon: IconName; -} - -export const HomeLink: FC = ({ title, url, target, icon }) => { - const styles = getStyles(); - - return ( - - - {title} - - ); -}; - -export const VersionFooter: FC = () => { - const styles = getStyles(); - const { hideVersion, version, commit } = config.buildInfo; - const versionString = hideVersion ? '' : `Version ${version} (${commit})`; - - return
{versionString}
; -}; - -export const getStyles = stylesFactory(() => { - const { theme } = config; - - return { - list: css` - display: flex; - flex-direction: column; - padding: ${theme.spacing.md}; - `, - icon: css` - margin-right: ${theme.spacing.sm}; - `, - footer: css` - background: ${theme.colors.bg2}; - font-size: ${theme.typography.size.sm}; - position: absolute; - bottom: 0; - width: 100%; - text-align: center; - padding: ${theme.spacing.sm}; - border-radius: 0; - box-shadow: none; - color: ${theme.colors.textWeak}; - `, - item: css` - ${styleMixins.listItem(theme)} - padding: ${theme.spacing.sm}; - display: flex; - margin-bottom: ${theme.spacing.xs}; - align-items: center; - `, - }; -}); - -export const plugin = new PanelPlugin(GrafanaLinksPanel).setNoPadding(); diff --git a/public/app/plugins/panel/homelinks/plugin.json b/public/app/plugins/panel/homelinks/plugin.json deleted file mode 100755 index 6d7b8769bc0..00000000000 --- a/public/app/plugins/panel/homelinks/plugin.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "panel", - "name": "Home links", - "id": "homelinks", - - "hideFromList": true, - "skipDataQuery": true, - - "info": { - "author": { - "name": "Grafana Labs", - "url": "https://grafana.com" - }, - "logos": { - "small": "img/news.svg", - "large": "img/news.svg" - } - } -}