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
5202770b
Unverified
Commit
5202770b
authored
Oct 07, 2019
by
Hugo Häggmark
Committed by
GitHub
Oct 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grafana Image Renderer: Fixes plugin page (#19664)
Fixes #19659
parent
ec6d69f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
packages/grafana-ui/src/types/plugin.ts
+1
-0
public/app/features/plugins/PluginPage.tsx
+8
-6
No files found.
packages/grafana-ui/src/types/plugin.ts
View file @
5202770b
...
...
@@ -10,6 +10,7 @@ export enum PluginType {
panel
=
'panel'
,
datasource
=
'datasource'
,
app
=
'app'
,
renderer
=
'renderer'
,
}
export
interface
PluginMeta
<
T
extends
{}
=
KeyValue
>
{
...
...
public/app/features/plugins/PluginPage.tsx
View file @
5202770b
...
...
@@ -3,21 +3,20 @@ import React, { PureComponent } from 'react';
import
{
hot
}
from
'react-hot-loader'
;
import
{
connect
}
from
'react-redux'
;
import
find
from
'lodash/find'
;
// Types
import
{
UrlQueryMap
}
from
'@grafana/runtime'
;
import
{
StoreState
,
AppNotificationSeverity
}
from
'app/types'
;
import
{
AppNotificationSeverity
,
StoreState
}
from
'app/types'
;
import
{
Alert
,
PluginType
,
AppPlugin
,
GrafanaPlugin
,
PluginInclude
,
PluginDependencies
,
PluginInclude
,
PluginIncludeType
,
PluginMeta
,
PluginMetaInfo
,
PluginType
,
Tooltip
,
AppPlugin
,
PluginIncludeType
,
}
from
'@grafana/ui'
;
import
{
NavModel
,
NavModelItem
}
from
'@grafana/data'
;
...
...
@@ -63,6 +62,9 @@ function loadPlugin(pluginId: string): Promise<GrafanaPlugin> {
});
});
}
if
(
info
.
type
===
PluginType
.
renderer
)
{
return
Promise
.
resolve
({
meta
:
info
}
as
GrafanaPlugin
);
}
return
Promise
.
reject
(
'Unknown Plugin type: '
+
info
.
type
);
});
}
...
...
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