You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
556 B
13 lines
556 B
2 years ago
|
import { AppPlugin } from '@grafana/data';
|
||
|
import { App } from './components/App';
|
||
|
import { AppConfig } from './components/AppConfig';
|
||
|
|
||
|
export const plugin = new AppPlugin<{}>().setRootPage(App).addConfigPage({
|
||
|
title: 'Configuration',
|
||
|
icon: 'fa fa-cog',
|
||
|
// @ts-ignore - Would expect a Class component, however works absolutely fine with a functional one
|
||
|
// Implementation: https://github.com/grafana/grafana/blob/fd44c01675e54973370969dfb9e78f173aff7910/public/app/features/plugins/PluginPage.tsx#L157
|
||
|
body: AppConfig,
|
||
|
id: 'configuration',
|
||
|
});
|