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
d338b7ea
Commit
d338b7ea
authored
Apr 27, 2018
by
David Kaltschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import and typescript fixups
parent
1e6e8912
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
public/app/containers/Explore/ElapsedTime.tsx
+2
-2
public/app/routes/ReactContainer.tsx
+6
-2
No files found.
public/app/containers/Explore/ElapsedTime.tsx
View file @
d338b7ea
...
...
@@ -4,7 +4,7 @@ const INTERVAL = 150;
export
default
class
ElapsedTime
extends
PureComponent
<
any
,
any
>
{
offset
:
number
;
timer
:
NodeJS
.
Tim
er
;
timer
:
numb
er
;
state
=
{
elapsed
:
0
,
...
...
@@ -12,7 +12,7 @@ export default class ElapsedTime extends PureComponent<any, any> {
start
()
{
this
.
offset
=
Date
.
now
();
this
.
timer
=
setInterval
(
this
.
tick
,
INTERVAL
);
this
.
timer
=
window
.
setInterval
(
this
.
tick
,
INTERVAL
);
}
tick
=
()
=>
{
...
...
public/app/routes/ReactContainer.tsx
View file @
d338b7ea
...
...
@@ -21,8 +21,12 @@ export function reactContainer($route, $location, backendSrv: BackendSrv, dataso
restrict
:
'E'
,
template
:
''
,
link
(
scope
,
elem
)
{
let
component
=
$route
.
current
.
locals
.
component
.
default
;
let
props
=
{
let
component
=
$route
.
current
.
locals
.
component
;
// Dynamic imports return whole module, need to extract default export
if
(
component
.
default
)
{
component
=
component
.
default
;
}
const
props
=
{
backendSrv
:
backendSrv
,
datasourceSrv
:
datasourceSrv
,
};
...
...
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