feat: Introduce IsDataPanel attribute to plugin.json
This commit is contained in:
@@ -145,6 +145,7 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *m.ReqContext) (map[string]interf
|
|||||||
"info": panel.Info,
|
"info": panel.Info,
|
||||||
"hideFromList": panel.HideFromList,
|
"hideFromList": panel.HideFromList,
|
||||||
"sort": getPanelSort(panel.Id),
|
"sort": getPanelSort(panel.Id),
|
||||||
|
"isDataPanel": panel.IsDataPanel,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ type PluginBase struct {
|
|||||||
BaseUrl string `json:"baseUrl"`
|
BaseUrl string `json:"baseUrl"`
|
||||||
HideFromList bool `json:"hideFromList,omitempty"`
|
HideFromList bool `json:"hideFromList,omitempty"`
|
||||||
State PluginState `json:"state,omitempty"`
|
State PluginState `json:"state,omitempty"`
|
||||||
|
IsDataPanel bool `json:"isDataPanel"`
|
||||||
|
|
||||||
IncludedInAppId string `json:"-"`
|
IncludedInAppId string `json:"-"`
|
||||||
PluginDir string `json:"-"`
|
PluginDir string `json:"-"`
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"type": "panel",
|
"type": "panel",
|
||||||
"name": "Gauge",
|
"name": "Gauge",
|
||||||
"id": "gauge",
|
"id": "gauge",
|
||||||
|
"isDataPanel": true,
|
||||||
|
|
||||||
"info": {
|
"info": {
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"type": "panel",
|
"type": "panel",
|
||||||
"name": "React Graph",
|
"name": "React Graph",
|
||||||
"id": "graph2",
|
"id": "graph2",
|
||||||
|
"isDataPanel": true,
|
||||||
"state": "alpha",
|
"state": "alpha",
|
||||||
|
|
||||||
"info": {
|
"info": {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"type": "panel",
|
"type": "panel",
|
||||||
"name": "Text v2",
|
"name": "Text v2",
|
||||||
"id": "text2",
|
"id": "text2",
|
||||||
|
|
||||||
"state": "alpha",
|
"state": "alpha",
|
||||||
|
"isDataPanel": false,
|
||||||
|
|
||||||
"info": {
|
"info": {
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ export interface PanelPlugin {
|
|||||||
info: any;
|
info: any;
|
||||||
sort: number;
|
sort: number;
|
||||||
exports?: PluginExports;
|
exports?: PluginExports;
|
||||||
|
isDataPanel?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Plugin {
|
export interface Plugin {
|
||||||
|
|||||||
Reference in New Issue
Block a user