File tree Expand file tree Collapse file tree 1 file changed +8
-27
lines changed Expand file tree Collapse file tree 1 file changed +8
-27
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { QueryEditorHelpProps } from '@grafana/data' ;
3
- import { Divider , Text } from '@grafana/ui' ;
3
+ import { Text , TextLink } from '@grafana/ui' ;
4
+ import packageJson from '../../package.json' ;
4
5
5
6
export function QueryHelper ( _props : QueryEditorHelpProps ) {
6
7
return (
7
- < div >
8
- < Text element = "h1" color = "primary" >
9
- Query Language Types and Differences
10
- </ Text >
11
- < Divider > </ Divider >
12
- < div >
13
- < p >
14
- < Text element = "span" weight = "bold" color = "info" >
15
- JSON
16
- </ Text >
17
- : JSON aggregate of mongodb query.
18
- </ p >
19
- < p >
20
- < Text element = "span" weight = "bold" color = "info" >
21
- JavaScript
22
- </ Text >
23
- :JavaScript aggregate of mongodb query for the legacy support
24
- </ p >
25
- < p >
26
- < Text element = "span" weight = "bold" color = "info" >
27
- JavaScript Shadow
28
- </ Text >
29
- : JavaScript function that return aggregate of mongodb query with evaluation support.
30
- </ p >
31
- </ div >
32
- </ div >
8
+ < Text element = "p" >
9
+ Check details in < span > </ span >
10
+ < TextLink href = { `https://github.com/haohanyang/mongodb-datasource/tree/v${ packageJson . version } ` } external inline >
11
+ repository
12
+ </ TextLink >
13
+ </ Text >
33
14
) ;
34
15
}
You can’t perform that action at this time.
0 commit comments