stackdriver: add react component for template query editor

This commit is contained in:
Erik Sundell 2018-10-24 14:11:10 +02:00
parent 94ac522109
commit 0792c182cc
2 changed files with 19 additions and 0 deletions

View File

@ -2,10 +2,12 @@ import StackdriverDatasource from './datasource';
import { StackdriverQueryCtrl } from './query_ctrl'; import { StackdriverQueryCtrl } from './query_ctrl';
import { StackdriverConfigCtrl } from './config_ctrl'; import { StackdriverConfigCtrl } from './config_ctrl';
import { StackdriverAnnotationsQueryCtrl } from './annotations_query_ctrl'; import { StackdriverAnnotationsQueryCtrl } from './annotations_query_ctrl';
import { StackdriverTemplateQueryCtrl } from './templateQueryCtrl';
export { export {
StackdriverDatasource as Datasource, StackdriverDatasource as Datasource,
StackdriverQueryCtrl as QueryCtrl, StackdriverQueryCtrl as QueryCtrl,
StackdriverConfigCtrl as ConfigCtrl, StackdriverConfigCtrl as ConfigCtrl,
StackdriverAnnotationsQueryCtrl as AnnotationsQueryCtrl, StackdriverAnnotationsQueryCtrl as AnnotationsQueryCtrl,
StackdriverTemplateQueryCtrl as TemplateQueryCtrl,
}; };

View File

@ -0,0 +1,17 @@
import React, { PureComponent } from 'react';
interface Props {}
export class StackdriverTemplateQueryCtrl extends PureComponent<Props> {
constructor(props) {
super(props);
}
componentDidMount() {
console.log('componentDidMount');
}
render() {
return <h1>Hello Stackdriver Template Query</h1>;
}
}