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
474185c9
Commit
474185c9
authored
Jan 31, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved a few things around
parent
ab812e73
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
17 deletions
+11
-17
public/app/features/dashboard/components/DashboardRow/DashboardRow.test.tsx
+2
-2
public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx
+2
-2
public/app/features/dashboard/components/DashboardRow/index.ts
+1
-0
public/app/features/dashboard/containers/DashboardCtrl.ts
+2
-2
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
+1
-1
public/app/features/dashboard/index.ts
+1
-1
public/app/routes/ReactContainer.tsx
+1
-9
public/sass/components/_view_states.scss
+1
-0
No files found.
public/app/features/dashboard/
specs
/DashboardRow.test.tsx
→
public/app/features/dashboard/
components/DashboardRow
/DashboardRow.test.tsx
View file @
474185c9
import
React
from
'react'
;
import
React
from
'react'
;
import
{
shallow
}
from
'enzyme'
;
import
{
shallow
}
from
'enzyme'
;
import
{
DashboardRow
}
from
'.
./dashgrid
/DashboardRow'
;
import
{
DashboardRow
}
from
'./DashboardRow'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
PanelModel
}
from
'../
../
panel_model'
;
describe
(
'DashboardRow'
,
()
=>
{
describe
(
'DashboardRow'
,
()
=>
{
let
wrapper
,
panel
,
dashboardMock
;
let
wrapper
,
panel
,
dashboardMock
;
...
...
public/app/features/dashboard/
dashgrid
/DashboardRow.tsx
→
public/app/features/dashboard/
components/DashboardRow
/DashboardRow.tsx
View file @
474185c9
import
React
from
'react'
;
import
React
from
'react'
;
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
PanelModel
}
from
'../
../
panel_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
DashboardModel
}
from
'../
../
dashboard_model'
;
import
templateSrv
from
'app/features/templating/template_srv'
;
import
templateSrv
from
'app/features/templating/template_srv'
;
import
appEvents
from
'app/core/app_events'
;
import
appEvents
from
'app/core/app_events'
;
...
...
public/app/features/dashboard/components/DashboardRow/index.ts
0 → 100644
View file @
474185c9
export
{
DashboardRow
}
from
'./DashboardRow'
;
public/app/features/dashboard/
dashboard_c
trl.ts
→
public/app/features/dashboard/
containers/DashboardC
trl.ts
View file @
474185c9
...
@@ -5,10 +5,10 @@ import coreModule from 'app/core/core_module';
...
@@ -5,10 +5,10 @@ import coreModule from 'app/core/core_module';
import
{
removePanel
}
from
'app/features/dashboard/utils/panel'
;
import
{
removePanel
}
from
'app/features/dashboard/utils/panel'
;
// Services
// Services
import
{
AnnotationsSrv
}
from
'../annotations/annotations_srv'
;
import
{
AnnotationsSrv
}
from
'../
../
annotations/annotations_srv'
;
// Types
// Types
import
{
DashboardModel
}
from
'./dashboard_model'
;
import
{
DashboardModel
}
from
'.
.
/dashboard_model'
;
export
class
DashboardCtrl
{
export
class
DashboardCtrl
{
dashboard
:
DashboardModel
;
dashboard
:
DashboardModel
;
...
...
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
View file @
474185c9
...
@@ -7,7 +7,7 @@ import { importPluginModule } from 'app/features/plugins/plugin_loader';
...
@@ -7,7 +7,7 @@ import { importPluginModule } from 'app/features/plugins/plugin_loader';
import
{
AddPanelWidget
}
from
'../components/AddPanelWidget'
;
import
{
AddPanelWidget
}
from
'../components/AddPanelWidget'
;
import
{
getPanelPluginNotFound
}
from
'./PanelPluginNotFound'
;
import
{
getPanelPluginNotFound
}
from
'./PanelPluginNotFound'
;
import
{
DashboardRow
}
from
'./DashboardRow'
;
import
{
DashboardRow
}
from
'.
./components
/DashboardRow'
;
import
{
PanelChrome
}
from
'./PanelChrome'
;
import
{
PanelChrome
}
from
'./PanelChrome'
;
import
{
PanelEditor
}
from
'../panel_editor/PanelEditor'
;
import
{
PanelEditor
}
from
'../panel_editor/PanelEditor'
;
...
...
public/app/features/dashboard/index.ts
View file @
474185c9
import
'./
dashboard_c
trl'
;
import
'./
containers/DashboardC
trl'
;
import
'./time_srv'
;
import
'./time_srv'
;
import
'./dashgrid/DashboardGridDirective'
;
import
'./dashgrid/DashboardGridDirective'
;
...
...
public/app/routes/ReactContainer.tsx
View file @
474185c9
...
@@ -4,8 +4,6 @@ import { Provider } from 'react-redux';
...
@@ -4,8 +4,6 @@ import { Provider } from 'react-redux';
import
coreModule
from
'app/core/core_module'
;
import
coreModule
from
'app/core/core_module'
;
import
{
store
}
from
'app/store/store'
;
import
{
store
}
from
'app/store/store'
;
import
{
BackendSrv
}
from
'app/core/services/backend_srv'
;
import
{
DatasourceSrv
}
from
'app/features/plugins/datasource_srv'
;
import
{
ContextSrv
}
from
'app/core/services/context_srv'
;
import
{
ContextSrv
}
from
'app/core/services/context_srv'
;
function
WrapInProvider
(
store
,
Component
,
props
)
{
function
WrapInProvider
(
store
,
Component
,
props
)
{
...
@@ -20,8 +18,6 @@ function WrapInProvider(store, Component, props) {
...
@@ -20,8 +18,6 @@ function WrapInProvider(store, Component, props) {
export
function
reactContainer
(
export
function
reactContainer
(
$route
,
$route
,
$location
,
$location
,
backendSrv
:
BackendSrv
,
datasourceSrv
:
DatasourceSrv
,
contextSrv
:
ContextSrv
contextSrv
:
ContextSrv
)
{
)
{
return
{
return
{
...
@@ -42,11 +38,7 @@ export function reactContainer(
...
@@ -42,11 +38,7 @@ export function reactContainer(
component
=
component
.
default
;
component
=
component
.
default
;
}
}
const
props
=
{
const
props
=
{
};
backendSrv
:
backendSrv
,
datasourceSrv
:
datasourceSrv
,
routeParams
:
$route
.
current
.
params
,
};
ReactDOM
.
render
(
WrapInProvider
(
store
,
component
,
props
),
elem
[
0
]);
ReactDOM
.
render
(
WrapInProvider
(
store
,
component
,
props
),
elem
[
0
]);
...
...
public/sass/components/_view_states.scss
View file @
474185c9
...
@@ -50,3 +50,4 @@
...
@@ -50,3 +50,4 @@
display
:
none
;
display
:
none
;
}
}
}
}
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