Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
67c55319
Commit
67c55319
authored
Jan 27, 2020
by
Ryan McKinley
Committed by
Dominik Prokop
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grafana/data: Add type for secure json in DataSourceAPI (#21772)
parent
c3a19c6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
packages/grafana-data/src/types/datasource.ts
+7
-5
No files found.
packages/grafana-data/src/types/datasource.ts
View file @
67c55319
...
@@ -33,15 +33,16 @@ export type DataSourceOptionsType<DSType extends DataSourceApi<any, any>> = DSTy
...
@@ -33,15 +33,16 @@ export type DataSourceOptionsType<DSType extends DataSourceApi<any, any>> = DSTy
export
class
DataSourcePlugin
<
export
class
DataSourcePlugin
<
DSType
extends
DataSourceApi
<
TQuery
,
TOptions
>
,
DSType
extends
DataSourceApi
<
TQuery
,
TOptions
>
,
TQuery
extends
DataQuery
=
DataSourceQueryType
<
DSType
>
,
TQuery
extends
DataQuery
=
DataSourceQueryType
<
DSType
>
,
TOptions
extends
DataSourceJsonData
=
DataSourceOptionsType
<
DSType
>
TOptions
extends
DataSourceJsonData
=
DataSourceOptionsType
<
DSType
>
,
TSecureOptions
=
{}
>
extends
GrafanaPlugin
<
DataSourcePluginMeta
<
TOptions
>>
{
>
extends
GrafanaPlugin
<
DataSourcePluginMeta
<
TOptions
>>
{
components
:
DataSourcePluginComponents
<
DSType
,
TQuery
,
TOptions
>
=
{};
components
:
DataSourcePluginComponents
<
DSType
,
TQuery
,
TOptions
,
TSecureOptions
>
=
{};
constructor
(
public
DataSourceClass
:
DataSourceConstructor
<
DSType
,
TQuery
,
TOptions
>
)
{
constructor
(
public
DataSourceClass
:
DataSourceConstructor
<
DSType
,
TQuery
,
TOptions
>
)
{
super
();
super
();
}
}
setConfigEditor
(
editor
:
ComponentType
<
DataSourcePluginOptionsEditorProps
<
TOptions
>>
)
{
setConfigEditor
(
editor
:
ComponentType
<
DataSourcePluginOptionsEditorProps
<
TOptions
,
TSecureOptions
>>
)
{
this
.
components
.
ConfigEditor
=
editor
;
this
.
components
.
ConfigEditor
=
editor
;
return
this
;
return
this
;
}
}
...
@@ -131,7 +132,8 @@ interface PluginMetaQueryOptions {
...
@@ -131,7 +132,8 @@ interface PluginMetaQueryOptions {
export
interface
DataSourcePluginComponents
<
export
interface
DataSourcePluginComponents
<
DSType
extends
DataSourceApi
<
TQuery
,
TOptions
>
,
DSType
extends
DataSourceApi
<
TQuery
,
TOptions
>
,
TQuery
extends
DataQuery
=
DataQuery
,
TQuery
extends
DataQuery
=
DataQuery
,
TOptions
extends
DataSourceJsonData
=
DataSourceJsonData
TOptions
extends
DataSourceJsonData
=
DataSourceJsonData
,
TSecureOptions
=
{}
>
{
>
{
QueryCtrl
?:
any
;
QueryCtrl
?:
any
;
AnnotationsQueryCtrl
?:
any
;
AnnotationsQueryCtrl
?:
any
;
...
@@ -141,7 +143,7 @@ export interface DataSourcePluginComponents<
...
@@ -141,7 +143,7 @@ export interface DataSourcePluginComponents<
ExploreMetricsQueryField
?:
ComponentType
<
ExploreQueryFieldProps
<
DSType
,
TQuery
,
TOptions
>>
;
ExploreMetricsQueryField
?:
ComponentType
<
ExploreQueryFieldProps
<
DSType
,
TQuery
,
TOptions
>>
;
ExploreLogsQueryField
?:
ComponentType
<
ExploreQueryFieldProps
<
DSType
,
TQuery
,
TOptions
>>
;
ExploreLogsQueryField
?:
ComponentType
<
ExploreQueryFieldProps
<
DSType
,
TQuery
,
TOptions
>>
;
ExploreStartPage
?:
ComponentType
<
ExploreStartPageProps
>
;
ExploreStartPage
?:
ComponentType
<
ExploreStartPageProps
>
;
ConfigEditor
?:
ComponentType
<
DataSourcePluginOptionsEditorProps
<
TOptions
>>
;
ConfigEditor
?:
ComponentType
<
DataSourcePluginOptionsEditorProps
<
TOptions
,
TSecureOptions
>>
;
MetadataInspector
?:
ComponentType
<
MetadataInspectorProps
<
DSType
,
TQuery
,
TOptions
>>
;
MetadataInspector
?:
ComponentType
<
MetadataInspectorProps
<
DSType
,
TQuery
,
TOptions
>>
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment