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
e8ba35ab
Commit
e8ba35ab
authored
Sep 26, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move User type out of UserPicker and into app/types
parent
353a8361
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
public/app/core/components/Picker/UserPicker.tsx
+1
-7
public/app/types/index.ts
+2
-0
public/app/types/user.ts
+6
-0
No files found.
public/app/core/components/Picker/UserPicker.tsx
View file @
e8ba35ab
...
@@ -3,6 +3,7 @@ import Select from 'react-select';
...
@@ -3,6 +3,7 @@ import Select from 'react-select';
import
PickerOption
from
'./PickerOption'
;
import
PickerOption
from
'./PickerOption'
;
import
{
debounce
}
from
'lodash'
;
import
{
debounce
}
from
'lodash'
;
import
{
getBackendSrv
}
from
'app/core/services/backend_srv'
;
import
{
getBackendSrv
}
from
'app/core/services/backend_srv'
;
import
{
User
}
from
'app/types'
;
export
interface
Props
{
export
interface
Props
{
onSelected
:
(
user
:
User
)
=>
void
;
onSelected
:
(
user
:
User
)
=>
void
;
...
@@ -14,13 +15,6 @@ export interface State {
...
@@ -14,13 +15,6 @@ export interface State {
isLoading
:
boolean
;
isLoading
:
boolean
;
}
}
export
interface
User
{
id
:
number
;
label
:
string
;
avatarUrl
:
string
;
login
:
string
;
}
export
class
UserPicker
extends
Component
<
Props
,
State
>
{
export
class
UserPicker
extends
Component
<
Props
,
State
>
{
debouncedSearch
:
any
;
debouncedSearch
:
any
;
...
...
public/app/types/index.ts
View file @
e8ba35ab
...
@@ -8,6 +8,7 @@ import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
...
@@ -8,6 +8,7 @@ import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
import
{
DataSource
}
from
'./datasources'
;
import
{
DataSource
}
from
'./datasources'
;
import
{
PluginMeta
}
from
'./plugins'
;
import
{
PluginMeta
}
from
'./plugins'
;
import
{
ApiKey
,
ApiKeysState
}
from
'./apiKeys'
;
import
{
ApiKey
,
ApiKeysState
}
from
'./apiKeys'
;
import
{
User
}
from
'./user'
;
export
{
export
{
Team
,
Team
,
...
@@ -36,6 +37,7 @@ export {
...
@@ -36,6 +37,7 @@ export {
PluginMeta
,
PluginMeta
,
ApiKey
,
ApiKey
,
ApiKeysState
,
ApiKeysState
,
User
,
};
};
export
interface
StoreState
{
export
interface
StoreState
{
...
...
public/app/types/user.ts
0 → 100644
View file @
e8ba35ab
export
interface
User
{
id
:
number
;
label
:
string
;
avatarUrl
:
string
;
login
:
string
;
}
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