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
3e0625ff
Unverified
Commit
3e0625ff
authored
Jul 18, 2019
by
Ryan McKinley
Committed by
GitHub
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plugins: add build info to plugin metadata (#18164)
parent
7cac393d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
packages/grafana-ui/src/types/plugin.ts
+8
-0
pkg/plugins/models.go
+8
-0
No files found.
packages/grafana-ui/src/types/plugin.ts
View file @
3e0625ff
...
...
@@ -77,6 +77,13 @@ interface PluginMetaInfoLink {
url
:
string
;
}
export
interface
PluginBuildInfo
{
time
?:
number
;
repo
?:
string
;
branch
?:
string
;
hash
?:
string
;
}
export
interface
PluginMetaInfo
{
author
:
{
name
:
string
;
...
...
@@ -88,6 +95,7 @@ export interface PluginMetaInfo {
large
:
string
;
small
:
string
;
};
build
?:
PluginBuildInfo
;
screenshots
:
any
[];
updated
:
string
;
version
:
string
;
...
...
pkg/plugins/models.go
View file @
3e0625ff
...
...
@@ -112,11 +112,19 @@ type PluginDependencyItem struct {
Version
string
`json:"version"`
}
type
PluginBuildInfo
struct
{
Time
int64
`json:"time,omitempty"`
Repo
string
`json:"repo,omitempty"`
Branch
string
`json:"branch,omitempty"`
Hash
string
`json:"hash,omitempty"`
}
type
PluginInfo
struct
{
Author
PluginInfoLink
`json:"author"`
Description
string
`json:"description"`
Links
[]
PluginInfoLink
`json:"links"`
Logos
PluginLogos
`json:"logos"`
Build
PluginBuildInfo
`json:"source"`
Screenshots
[]
PluginScreenshots
`json:"screenshots"`
Version
string
`json:"version"`
Updated
string
`json:"updated"`
...
...
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