mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Use new editor * Add basic fields * Add labels * Add ids * Add ManualEntryEditor * Use tooltip prop * Switch to inline labels * Fix inline label tooltip position * Allow resetting max-width * Replace form inputs * Add random walk editor * separate editors * Add logs and endpoints fields * Add PredictablePulseEditor * Add CSVWaveEditor * Add grow prop * Add default query * Fix types * Fix manual editor * Fix type issues * Handle scenario change * Sort scenarios by label * Add ManualEditor test * Fix label height * test manual editor * Update test * Setup QueryEditor tests * Fix selected value * Connect CSVWaveEditor * Convert stream data to numbers * Fix random walk editor * Cleanup * Convert scenarios to ts * Remove extra icon styles * Minor tweaks * Update e2e tests * Remove useEffect * Add missing aria-labels * Use new button components
23 lines
658 B
TypeScript
23 lines
658 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { TestDataDataSource } from './datasource';
|
|
import { TestInfoTab } from './TestInfoTab';
|
|
import { ConfigEditor } from './ConfigEditor';
|
|
import { QueryEditor } from './QueryEditor';
|
|
|
|
class TestDataAnnotationsQueryCtrl {
|
|
annotation: any;
|
|
constructor() {}
|
|
static template = '<h2>Annotation scenario</h2>';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(TestDataDataSource)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setQueryEditor(QueryEditor)
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl)
|
|
.addConfigPage({
|
|
title: 'Setup',
|
|
icon: 'list-ul',
|
|
body: TestInfoTab,
|
|
id: 'setup',
|
|
});
|