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
a1b543aa
Commit
a1b543aa
authored
Oct 03, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shore: cleanup unused stuff in common.d.ts
parent
e1a86e63
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
72 deletions
+5
-72
public/app/core/utils/file_export.ts
+1
-3
public/app/features/dashboard/export_data/export_data_modal.ts
+1
-3
public/app/headers/common.d.ts
+0
-62
public/app/plugins/datasource/elasticsearch/index_pattern.ts
+3
-4
No files found.
public/app/core/utils/file_export.ts
View file @
a1b543aa
///<reference path="../../headers/common.d.ts" />
import
_
from
'lodash'
;
import
_
from
'lodash'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
declare
var
window
:
any
;
declare
var
window
:
any
;
const
DEFAULT_DATETIME_FORMAT
:
String
=
'YYYY-MM-DDTHH:mm:ssZ'
;
const
DEFAULT_DATETIME_FORMAT
=
'YYYY-MM-DDTHH:mm:ssZ'
;
export
function
exportSeriesListToCsv
(
seriesList
,
dateTimeFormat
=
DEFAULT_DATETIME_FORMAT
,
excel
=
false
)
{
export
function
exportSeriesListToCsv
(
seriesList
,
dateTimeFormat
=
DEFAULT_DATETIME_FORMAT
,
excel
=
false
)
{
var
text
=
excel
?
'sep=;
\
n'
:
''
+
'Series;Time;Value
\
n'
;
var
text
=
excel
?
'sep=;
\
n'
:
''
+
'Series;Time;Value
\
n'
;
...
...
public/app/features/dashboard/export_data/export_data_modal.ts
View file @
a1b543aa
///<reference path="../../../headers/common.d.ts" />
import
angular
from
'angular'
;
import
angular
from
'angular'
;
import
*
as
fileExport
from
'app/core/utils/file_export'
;
import
*
as
fileExport
from
'app/core/utils/file_export'
;
import
appEvents
from
'app/core/app_events'
;
import
appEvents
from
'app/core/app_events'
;
...
@@ -8,7 +6,7 @@ export class ExportDataModalCtrl {
...
@@ -8,7 +6,7 @@ export class ExportDataModalCtrl {
private
data
:
any
[];
private
data
:
any
[];
private
panel
:
string
;
private
panel
:
string
;
asRows
:
Boolean
=
true
;
asRows
:
Boolean
=
true
;
dateTimeFormat
:
String
=
'YYYY-MM-DDTHH:mm:ssZ'
;
dateTimeFormat
=
'YYYY-MM-DDTHH:mm:ssZ'
;
excel
:
false
;
excel
:
false
;
export
()
{
export
()
{
...
...
public/app/headers/common.d.ts
View file @
a1b543aa
declare
var
System
:
any
;
declare
var
System
:
any
;
// dummy modules
declare
module
'app/core/config'
{
var
config
:
any
;
export
default
config
;
}
declare
module
'lodash'
{
var
lodash
:
any
;
export
default
lodash
;
}
declare
module
'moment'
{
var
moment
:
any
;
export
default
moment
;
}
declare
module
'angular'
{
var
angular
:
any
;
export
default
angular
;
}
declare
module
'jquery'
{
var
jquery
:
any
;
export
default
jquery
;
}
declare
module
'app/core/utils/kbn'
{
var
kbn
:
any
;
export
default
kbn
;
}
declare
module
'app/core/store'
{
var
store
:
any
;
export
default
store
;
}
declare
module
'tether'
{
var
config
:
any
;
export
default
config
;
}
declare
module
'tether-drop'
{
var
config
:
any
;
export
default
config
;
}
declare
module
'eventemitter3'
{
declare
module
'eventemitter3'
{
var
config
:
any
;
var
config
:
any
;
export
default
config
;
export
default
config
;
}
}
declare
module
'mousetrap'
{
var
config
:
any
;
export
default
config
;
}
declare
module
'remarkable'
{
var
config
:
any
;
export
default
config
;
}
declare
module
'd3'
{
declare
module
'd3'
{
var
d3
:
any
;
var
d3
:
any
;
export
default
d3
;
export
default
d3
;
}
}
declare
module
'ace'
{
var
ace
:
any
;
export
default
ace
;
}
public/app/plugins/datasource/elasticsearch/index_pattern.ts
View file @
a1b543aa
///<reference path="../../../headers/common.d.ts" />
import
moment
from
'moment'
;
import
moment
from
'moment'
;
const
intervalMap
=
{
const
intervalMap
=
{
...
@@ -29,10 +27,11 @@ export class IndexPattern {
...
@@ -29,10 +27,11 @@ export class IndexPattern {
var
intervalInfo
=
intervalMap
[
this
.
interval
];
var
intervalInfo
=
intervalMap
[
this
.
interval
];
var
start
=
moment
(
from
).
utc
().
startOf
(
intervalInfo
.
startOf
);
var
start
=
moment
(
from
).
utc
().
startOf
(
intervalInfo
.
startOf
);
var
end
=
moment
(
to
).
utc
().
startOf
(
intervalInfo
.
startOf
).
valueOf
();
var
startEpoch
=
start
.
valueOf
();
var
endEpoch
=
moment
(
to
).
utc
().
startOf
(
intervalInfo
.
startOf
).
valueOf
();
var
indexList
=
[];
var
indexList
=
[];
while
(
start
<=
end
)
{
while
(
start
Epoch
<=
endEpoch
)
{
indexList
.
push
(
start
.
format
(
this
.
pattern
));
indexList
.
push
(
start
.
format
(
this
.
pattern
));
start
.
add
(
1
,
intervalInfo
.
amount
);
start
.
add
(
1
,
intervalInfo
.
amount
);
}
}
...
...
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