72241dbf5f
* add custom plugins * update bundles * provision app plugins and their dashboards * add one more script that run e2e tests using e2e test server * add e2e tests * regenerate jsonnet dashboards * ignore custom plugins and playwright report * use minified * cleanup tests * update codeowners * add leading slash * document new script * document custom-plugins * cleanup * twist modules * add readme
27 lines
656 B
JavaScript
27 lines
656 B
JavaScript
define(['@grafana/data', 'react'], function (data, React) {
|
|
'use strict';
|
|
|
|
const styles = {
|
|
container: 'a-app-body',
|
|
};
|
|
|
|
class RootComponent extends React.PureComponent {
|
|
render() {
|
|
return React.createElement(
|
|
'div',
|
|
{ 'data-testid': styles.container, className: 'page-container' },
|
|
'Hello Grafana!'
|
|
);
|
|
}
|
|
}
|
|
|
|
const plugin = new data.AppPlugin().setRootPage(RootComponent).configureExtensionLink({
|
|
title: 'Go to A',
|
|
description: 'Navigating to plugin A',
|
|
extensionPointId: 'plugins/myorg-extensionpoint-app/actions',
|
|
path: '/a/myorg-a-app/',
|
|
});
|
|
|
|
return { plugin: plugin };
|
|
});
|