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
c4b2dcef
Commit
c4b2dcef
authored
Feb 07, 2019
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Introduce IsDataPanel attribute to plugin.json
parent
0811fbd6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
2 deletions
+6
-2
pkg/api/frontendsettings.go
+1
-0
pkg/plugins/models.go
+1
-0
public/app/plugins/panel/gauge/plugin.json
+1
-0
public/app/plugins/panel/graph2/plugin.json
+1
-1
public/app/plugins/panel/text2/plugin.json
+1
-1
public/app/types/plugins.ts
+1
-0
No files found.
pkg/api/frontendsettings.go
View file @
c4b2dcef
...
...
@@ -145,6 +145,7 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *m.ReqContext) (map[string]interf
"info"
:
panel
.
Info
,
"hideFromList"
:
panel
.
HideFromList
,
"sort"
:
getPanelSort
(
panel
.
Id
),
"isDataPanel"
:
panel
.
IsDataPanel
,
}
}
...
...
pkg/plugins/models.go
View file @
c4b2dcef
...
...
@@ -47,6 +47,7 @@ type PluginBase struct {
BaseUrl
string
`json:"baseUrl"`
HideFromList
bool
`json:"hideFromList,omitempty"`
State
PluginState
`json:"state,omitempty"`
IsDataPanel
bool
`json:"isDataPanel"`
IncludedInAppId
string
`json:"-"`
PluginDir
string
`json:"-"`
...
...
public/app/plugins/panel/gauge/plugin.json
View file @
c4b2dcef
...
...
@@ -2,6 +2,7 @@
"type"
:
"panel"
,
"name"
:
"Gauge"
,
"id"
:
"gauge"
,
"isDataPanel"
:
true
,
"info"
:
{
"author"
:
{
...
...
public/app/plugins/panel/graph2/plugin.json
View file @
c4b2dcef
...
...
@@ -2,7 +2,7 @@
"type"
:
"panel"
,
"name"
:
"React Graph"
,
"id"
:
"graph2"
,
"isDataPanel"
:
true
,
"state"
:
"alpha"
,
"info"
:
{
...
...
public/app/plugins/panel/text2/plugin.json
View file @
c4b2dcef
...
...
@@ -2,8 +2,8 @@
"type"
:
"panel"
,
"name"
:
"Text v2"
,
"id"
:
"text2"
,
"state"
:
"alpha"
,
"isDataPanel"
:
false
,
"info"
:
{
"author"
:
{
...
...
public/app/types/plugins.ts
View file @
c4b2dcef
...
...
@@ -9,6 +9,7 @@ export interface PanelPlugin {
info
:
any
;
sort
:
number
;
exports
?:
PluginExports
;
isDataPanel
?:
boolean
;
}
export
interface
Plugin
{
...
...
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