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
215d5986
Commit
215d5986
authored
Oct 12, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed name back to use underscore instead of camelcase, need to think more about this
parent
83e49660
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
21 additions
and
22 deletions
+21
-22
public/app/features/dashboard/dashboard_ctrl.ts
+1
-1
public/app/features/dashboard/dashboard_model.ts
+1
-1
public/app/features/dashboard/dashboard_srv.ts
+1
-1
public/app/features/dashboard/dashgrid/DashboardGrid.tsx
+3
-3
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
+1
-1
public/app/features/dashboard/dashgrid/PanelContainer.ts
+1
-1
public/app/features/dashboard/dashnav/dashnav.ts
+1
-1
public/app/features/dashboard/history/history.ts
+1
-1
public/app/features/dashboard/history/history_srv.ts
+1
-1
public/app/features/dashboard/panel_model.ts
+0
-0
public/app/features/dashboard/specs/dashboard_model_specs.ts
+2
-2
public/app/features/dashboard/specs/exporter_specs.ts
+1
-2
public/app/features/panel/metrics_tab.ts
+1
-1
public/app/features/panel/panel_ctrl.ts
+1
-1
public/test/specs/helpers.ts
+1
-1
scripts/webpack/webpack.test.js
+4
-4
No files found.
public/app/features/dashboard/dashboard_ctrl.ts
View file @
215d5986
...
...
@@ -2,7 +2,7 @@ import config from 'app/core/config';
import
coreModule
from
'app/core/core_module'
;
import
{
PanelContainer
}
from
'./dashgrid/PanelContainer'
;
import
{
DashboardModel
}
from
'./
DashboardM
odel'
;
import
{
DashboardModel
}
from
'./
dashboard_m
odel'
;
export
class
DashboardCtrl
implements
PanelContainer
{
dashboard
:
DashboardModel
;
...
...
public/app/features/dashboard/
DashboardM
odel.ts
→
public/app/features/dashboard/
dashboard_m
odel.ts
View file @
215d5986
...
...
@@ -4,7 +4,7 @@ import _ from 'lodash';
import
{
DEFAULT_ANNOTATION_COLOR
}
from
'app/core/utils/colors'
;
import
{
Emitter
,
contextSrv
,
appEvents
}
from
'app/core/core'
;
import
{
DashboardRow
}
from
'./row/row_model'
;
import
{
PanelModel
}
from
'./
PanelM
odel'
;
import
{
PanelModel
}
from
'./
panel_m
odel'
;
import
sortByKeys
from
'app/core/utils/sort_by_keys'
;
export
const
CELL_HEIGHT
=
30
;
...
...
public/app/features/dashboard/dashboard_srv.ts
View file @
215d5986
import
coreModule
from
'app/core/core_module'
;
import
{
DashboardModel
}
from
'./
DashboardM
odel'
;
import
{
DashboardModel
}
from
'./
dashboard_m
odel'
;
export
class
DashboardSrv
{
dash
:
any
;
...
...
public/app/features/dashboard/dashgrid/DashboardGrid.tsx
View file @
215d5986
import
React
from
'react'
;
import
coreModule
from
'app/core/core_module'
;
import
ReactGridLayout
from
'react-grid-layout'
;
import
{
CELL_HEIGHT
,
CELL_VMARGIN
}
from
'../
DashboardM
odel'
;
import
{
CELL_HEIGHT
,
CELL_VMARGIN
}
from
'../
dashboard_m
odel'
;
import
{
DashboardPanel
}
from
'./DashboardPanel'
;
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
import
{
PanelContainer
}
from
'./PanelContainer'
;
import
{
PanelModel
}
from
'../
PanelM
odel'
;
import
{
PanelModel
}
from
'../
panel_m
odel'
;
import
classNames
from
'classnames'
;
import
sizeMe
from
'react-sizeme'
;
...
...
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
View file @
215d5986
import
React
from
'react'
;
import
{
PanelModel
}
from
'../
PanelM
odel'
;
import
{
PanelModel
}
from
'../
panel_m
odel'
;
import
{
PanelContainer
}
from
'./PanelContainer'
;
import
{
AttachedPanel
}
from
'./PanelLoader'
;
...
...
public/app/features/dashboard/dashgrid/PanelContainer.ts
View file @
215d5986
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
import
{
PanelLoader
}
from
'./PanelLoader'
;
export
interface
PanelContainer
{
...
...
public/app/features/dashboard/dashnav/dashnav.ts
View file @
215d5986
...
...
@@ -4,7 +4,7 @@ import _ from 'lodash';
import
moment
from
'moment'
;
import
angular
from
'angular'
;
import
{
appEvents
,
NavModel
}
from
'app/core/core'
;
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
export
class
DashNavCtrl
{
dashboard
:
DashboardModel
;
...
...
public/app/features/dashboard/history/history.ts
View file @
215d5986
...
...
@@ -6,7 +6,7 @@ import _ from 'lodash';
import
angular
from
'angular'
;
import
moment
from
'moment'
;
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
import
{
HistoryListOpts
,
RevisionsModel
,
CalculateDiffOptions
,
HistorySrv
}
from
'./history_srv'
;
export
class
HistoryListCtrl
{
...
...
public/app/features/dashboard/history/history_srv.ts
View file @
215d5986
import
_
from
'lodash'
;
import
coreModule
from
'app/core/core_module'
;
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
export
interface
HistoryListOpts
{
limit
:
number
;
...
...
public/app/features/dashboard/
PanelM
odel.ts
→
public/app/features/dashboard/
panel_m
odel.ts
View file @
215d5986
File moved
public/app/features/dashboard/specs/dashboard_model_specs.ts
View file @
215d5986
import
{
describe
,
beforeEach
,
it
,
expect
}
from
'test/lib/common'
;
import
_
from
'lodash'
;
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
PanelModel
}
from
'../
PanelM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
import
{
PanelModel
}
from
'../
panel_m
odel'
;
describe
(
'DashboardModel'
,
function
()
{
...
...
public/app/features/dashboard/specs/exporter_specs.ts
View file @
215d5986
...
...
@@ -3,7 +3,7 @@ import {describe, beforeEach, it, sinon, expect} from 'test/lib/common';
import
_
from
'lodash'
;
import
config
from
'app/core/config'
;
import
{
DashboardExporter
}
from
'../export/exporter'
;
import
{
DashboardModel
}
from
'../
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../
dashboard_m
odel'
;
describe
(
'given dashboard with repeated panels'
,
function
()
{
var
dash
,
exported
;
...
...
@@ -103,7 +103,6 @@ describe('given dashboard with repeated panels', function() {
};
dash
=
new
DashboardModel
(
dash
,
{});
dash
.
getSaveModelClone
();
var
exporter
=
new
DashboardExporter
(
datasourceSrvStub
);
exporter
.
makeExportable
(
dash
).
then
(
clean
=>
{
exported
=
clean
;
...
...
public/app/features/panel/metrics_tab.ts
View file @
215d5986
import
{
DashboardModel
}
from
'../dashboard/
DashboardM
odel'
;
import
{
DashboardModel
}
from
'../dashboard/
dashboard_m
odel'
;
import
Remarkable
from
'remarkable'
;
export
class
MetricsTabCtrl
{
...
...
public/app/features/panel/panel_ctrl.ts
View file @
215d5986
...
...
@@ -3,7 +3,7 @@ import _ from 'lodash';
import
$
from
'jquery'
;
import
{
profiler
}
from
'app/core/profiler'
;
import
Remarkable
from
'remarkable'
;
import
{
CELL_HEIGHT
,
CELL_VMARGIN
}
from
'../dashboard/
DashboardM
odel'
;
import
{
CELL_HEIGHT
,
CELL_VMARGIN
}
from
'../dashboard/
dashboard_m
odel'
;
const
TITLE_HEIGHT
=
25
;
const
EMPTY_TITLE_HEIGHT
=
9
;
...
...
public/test/specs/helpers.ts
View file @
215d5986
...
...
@@ -2,7 +2,7 @@ import _ from 'lodash';
import
config
from
'app/core/config'
;
import
*
as
dateMath
from
'app/core/utils/datemath'
;
import
{
angularMocks
,
sinon
}
from
'../lib/common'
;
import
{
PanelModel
}
from
'app/features/dashboard/
PanelM
odel'
;
import
{
PanelModel
}
from
'app/features/dashboard/
panel_m
odel'
;
export
function
ControllerTestContext
()
{
var
self
=
this
;
...
...
scripts/webpack/webpack.test.js
View file @
215d5986
...
...
@@ -13,10 +13,10 @@ config = merge(common, {
fs
:
'empty'
},
plugins
:
[
new
webpack
.
SourceMapDevToolPlugin
({
filename
:
null
,
// if no value is provided the sourcemap is inlined
test
:
/
\.(
ts|js
)(
$|
\?)
/i
// process .js and .ts files only
})
//
new webpack.SourceMapDevToolPlugin({
//
filename: null, // if no value is provided the sourcemap is inlined
//
test: /\.(ts|js)($|\?)/i // process .js and .ts files only
//
})
]
});
...
...
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