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
f074c1ea
Commit
f074c1ea
authored
Dec 22, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(lodash): changed how lodash is referenced from typescript
parent
e95170e9
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
42 additions
and
66 deletions
+42
-66
public/app/core/controllers/grafana_ctrl.ts
+3
-3
public/app/core/controllers/signup_ctrl.ts
+2
-2
public/app/core/directives/array_join.ts
+1
-2
public/app/core/filters/filters.ts
+2
-3
public/app/core/time_series2.ts
+2
-2
public/app/core/utils/datemath.ts
+1
-1
public/app/core/utils/rangeutil.ts
+1
-2
public/app/features/dashboard/timepicker/timepicker.ts
+3
-3
public/app/grafana.ts
+2
-4
public/app/headers/common.d.ts
+10
-29
public/app/plugins/datasource/influxdb/influx_query.ts
+1
-1
public/app/plugins/datasource/influxdb/query_part.ts
+1
-1
public/app/plugins/panels/table/controller.ts
+3
-4
public/app/plugins/panels/table/editor.ts
+3
-2
public/app/plugins/panels/table/module.ts
+1
-1
public/app/plugins/panels/table/renderer.ts
+2
-2
public/app/plugins/panels/table/transformers.ts
+2
-2
public/test/core/utils/datemath_specs.ts
+1
-1
public/test/core/utils/rangeutil_specs.ts
+1
-1
No files found.
public/app/core/controllers/grafana_ctrl.ts
View file @
f074c1ea
///<reference path="../../headers/common.d.ts" />
import
config
=
require
(
'app/core/config'
)
;
import
store
=
require
(
'app/core/store'
)
;
import
config
from
'app/core/config'
;
import
store
from
'app/core/store'
;
import
_
from
'lodash'
;
import
angular
from
'angular'
;
import
$
from
'jquery'
;
import
coreModule
from
'../core_module'
;
...
...
public/app/core/controllers/signup_ctrl.ts
View file @
f074c1ea
///<reference path="../../headers/common.d.ts" />
import
angular
=
require
(
'angular'
)
;
import
config
=
require
(
'app/core/config'
)
;
import
angular
from
'angular'
;
import
config
from
'app/core/config'
;
import
coreModule
from
'../core_module'
;
export
class
SignUpCtrl
{
...
...
public/app/core/directives/array_join.ts
View file @
f074c1ea
///<reference path="../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
);
import
_
from
'lodash'
;
import
angular
from
'angular'
;
import
coreModule
from
'../core_module'
;
...
...
public/app/core/filters/filters.ts
View file @
f074c1ea
///<reference path="../../headers/common.d.ts" />
import
jquery
=
require
(
'jquery'
);
import
_
=
require
(
'lodash'
);
import
jquery
from
'jquery'
;
import
_
from
'lodash'
;
import
angular
from
'angular'
;
import
moment
from
'moment'
;
import
coreModule
from
'../core_module'
;
...
...
public/app/core/time_series2.ts
View file @
f074c1ea
///<reference path="../headers/common.d.ts" />
import
_
=
require
(
'lodash'
)
;
import
kbn
=
require
(
'app/core/utils/kbn'
)
;
import
kbn
from
'app/core/utils/kbn'
;
import
_
from
'lodash'
;
function
matchSeriesOverride
(
aliasOrRegex
,
seriesAlias
)
{
if
(
!
aliasOrRegex
)
{
return
false
;
}
...
...
public/app/core/utils/datemath.ts
View file @
f074c1ea
///<reference path="../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
)
;
import
_
from
'lodash'
;
import
moment
from
'moment'
;
var
units
=
[
'y'
,
'M'
,
'w'
,
'd'
,
'h'
,
'm'
,
's'
];
...
...
public/app/core/utils/rangeutil.ts
View file @
f074c1ea
///<reference path="../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
);
import
_
from
'lodash'
;
import
angular
from
'angular'
;
import
moment
from
'moment'
;
import
*
as
dateMath
from
'./datemath'
;
...
...
public/app/features/dashboard/timepicker/timepicker.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
///<amd-dependency path="./input_date" name="inputDate" />
import
_
=
require
(
'lodash'
);
import
kbn
=
require
(
'app/core/utils/kbn'
);
import
_
from
'lodash'
;
import
kbn
from
'app/core/utils/kbn'
;
import
angular
from
'angular'
;
import
moment
from
'moment'
;
import
*
as
dateMath
from
'app/core/utils/datemath'
;
import
*
as
rangeUtil
from
'app/core/utils/rangeutil'
;
...
...
public/app/grafana.ts
View file @
f074c1ea
...
...
@@ -12,10 +12,8 @@ import 'app/core/core';
import
$
from
'jquery'
;
import
angular
from
'angular'
;
import
_
=
require
(
'lodash'
);
import
bootstrap
=
require
(
'bootstrap'
);
import
kbn
=
require
(
'app/core/utils/kbn'
);
import
config
=
require
(
'app/core/config'
);
import
config
from
'app/core/config'
;
import
_
from
'lodash'
;
export
class
GrafanaApp
{
registerFunctions
:
any
;
...
...
public/app/headers/common.d.ts
View file @
f074c1ea
///<reference path="lodash/lodash.d.ts" />
///<reference path="../../vendor/npm/angular2/typings/tsd.d.ts" />
///<reference path="../../vendor/npm/angular2/manual_typings/globals.d.ts" />
declare
var
System
:
any
;
// dummy modules
declare
module
'app/core/config'
{
var
config
:
any
;
export
=
config
;
export
default
config
;
}
declare
var
System
:
any
;
declare
module
'lodash'
{
var
lodash
:
any
;
export
default
lodash
;
}
declare
module
'moment'
{
var
moment
:
any
;
var
moment
:
any
;
export
default
moment
;
}
...
...
@@ -27,35 +31,12 @@ declare module 'jquery' {
declare
module
'app/core/utils/kbn'
{
var
kbn
:
any
;
export
=
kbn
;
export
default
kbn
;
}
declare
module
'app/core/store'
{
var
store
:
any
;
export
=
store
;
}
declare
module
'angular-route'
{
var
kbn
:
any
;
export
=
kbn
;
export
default
store
;
}
declare
module
'angular-sanitize'
{
var
kbn
:
any
;
export
=
kbn
;
}
declare
module
'bootstrap'
{
var
kbn
:
any
;
export
=
kbn
;
}
declare
module
'angular-strap'
{
var
kbn
:
any
;
export
=
kbn
;
}
declare
module
'angular-dragdrop'
{
var
kbn
:
any
;
export
=
kbn
;
}
public/app/plugins/datasource/influxdb/influx_query.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
)
;
import
_
from
'lodash'
;
import
queryPart
from
'./query_part'
;
export
default
class
InfluxQuery
{
...
...
public/app/plugins/datasource/influxdb/query_part.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
)
;
import
_
from
'lodash'
;
var
index
=
[];
var
categories
=
{
...
...
public/app/plugins/panels/table/controller.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
angular
=
require
(
'angular'
)
;
import
_
=
require
(
'lodash'
)
;
import
moment
=
require
(
'moment'
)
;
import
angular
from
'angular'
;
import
_
from
'lodash'
;
import
moment
from
'moment'
;
import
PanelMeta
from
'app/features/panel/panel_meta2'
;
import
{
transformDataToTable
}
from
'./transformers'
;
export
class
TablePanelCtrl
{
...
...
public/app/plugins/panels/table/editor.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
);
import
kbn
=
require
(
'app/core/utils/kbn'
);
import
_
from
'lodash'
;
import
$
from
'jquery'
;
import
moment
from
'moment'
;
import
angular
from
'angular'
;
import
{
transformers
}
from
'./transformers'
;
import
kbn
from
'app/core/utils/kbn'
;
export
class
TablePanelEditorCtrl
{
...
...
public/app/plugins/panels/table/module.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
);
import
kbn
=
require
(
'app/core/utils/kbn'
);
import
_
from
'lodash'
;
import
$
from
'jquery'
;
import
moment
from
'moment'
;
import
angular
from
'angular'
;
...
...
public/app/plugins/panels/table/renderer.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
_
=
require
(
'lodash'
);
import
kbn
=
require
(
'app/core/utils/kbn'
);
import
_
from
'lodash'
;
import
moment
from
'moment'
;
import
kbn
from
'app/core/utils/kbn'
;
export
class
TableRenderer
{
formaters
:
any
[];
...
...
public/app/plugins/panels/table/transformers.ts
View file @
f074c1ea
///<reference path="../../../headers/common.d.ts" />
import
moment
=
require
(
'moment'
)
;
import
_
=
require
(
'lodash'
)
;
import
_
from
'lodash'
;
import
moment
from
'moment'
;
import
flatten
from
'../../../core/utils/flatten'
;
import
TimeSeries
from
'../../../core/time_series2'
;
import
TableModel
from
'../../../core/table_model'
;
...
...
public/test/core/utils/datemath_specs.ts
View file @
f074c1ea
import
{
describe
,
beforeEach
,
it
,
sinon
,
expect
}
from
'test/lib/common'
import
*
as
dateMath
from
'app/core/utils/datemath'
;
import
*
as
_
from
'lodash'
;
import
moment
from
'moment'
;
import
_
from
'lodash'
;
describe
(
"DateMath"
,
()
=>
{
var
spans
=
[
's'
,
'm'
,
'h'
,
'd'
,
'w'
,
'M'
,
'y'
];
...
...
public/test/core/utils/rangeutil_specs.ts
View file @
f074c1ea
import
{
describe
,
beforeEach
,
it
,
sinon
,
expect
}
from
'test/lib/common'
import
*
as
rangeUtil
from
'app/core/utils/rangeutil'
;
import
*
as
_
from
'lodash'
;
import
_
from
'lodash'
;
import
moment
from
'moment'
;
describe
(
"rangeUtil"
,
()
=>
{
...
...
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