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
cabc4c4b
Commit
cabc4c4b
authored
Sep 27, 2018
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing types
parent
1e2c0608
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
public/app/features/plugins/PluginListPage.test.tsx
+2
-1
public/app/types/index.ts
+1
-2
public/app/types/plugins.ts
+5
-9
No files found.
public/app/features/plugins/PluginListPage.test.tsx
View file @
cabc4c4b
...
...
@@ -2,12 +2,13 @@ import React from 'react';
import
{
shallow
}
from
'enzyme'
;
import
{
PluginListPage
,
Props
}
from
'./PluginListPage'
;
import
{
NavModel
,
Plugin
}
from
'../../types'
;
import
{
LayoutModes
}
from
'../../core/components/LayoutSelector/LayoutSelector'
;
const
setup
=
(
propOverrides
?:
object
)
=>
{
const
props
:
Props
=
{
navModel
:
{}
as
NavModel
,
plugins
:
[]
as
Plugin
[],
layoutMode
:
'grid'
,
layoutMode
:
LayoutModes
.
Grid
,
loadPlugins
:
jest
.
fn
(),
};
...
...
public/app/types/index.ts
View file @
cabc4c4b
...
...
@@ -6,7 +6,7 @@ import { FolderDTO, FolderState, FolderInfo } from './folders';
import
{
DashboardState
}
from
'./dashboard'
;
import
{
DashboardAcl
,
OrgRole
,
PermissionLevel
}
from
'./acl'
;
import
{
DataSource
}
from
'./datasources'
;
import
{
PluginMeta
,
Plugin
,
Plugin
Info
,
Plugin
sState
}
from
'./plugins'
;
import
{
PluginMeta
,
Plugin
,
PluginsState
}
from
'./plugins'
;
export
{
Team
,
...
...
@@ -33,7 +33,6 @@ export {
PermissionLevel
,
DataSource
,
PluginMeta
,
PluginInfo
,
Plugin
,
PluginsState
,
};
...
...
public/app/types/plugins.ts
View file @
cabc4c4b
...
...
@@ -12,20 +12,16 @@ export interface PluginInclude {
}
export
interface
PluginMetaInfo
{
logos
:
{
large
:
string
;
small
:
string
;
};
}
export
interface
PluginInfo
{
author
:
{
name
:
string
;
url
:
string
;
};
description
:
string
;
links
:
string
[];
logos
:
{
small
:
string
;
large
:
string
};
logos
:
{
large
:
string
;
small
:
string
;
};
screenshots
:
string
;
updated
:
string
;
version
:
string
;
...
...
@@ -36,7 +32,7 @@ export interface Plugin {
enabled
:
boolean
;
hasUpdate
:
boolean
;
id
:
string
;
info
:
PluginInfo
;
info
:
Plugin
Meta
Info
;
latestVersion
:
string
;
name
:
string
;
pinned
:
boolean
;
...
...
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