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
ffdf7470
Commit
ffdf7470
authored
Feb 13, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More files that has fixed with prettier
parent
ac9129c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
public/sass/_variables.scss.d.ts
+2
-2
public/test/helpers/getQueryOptions.ts
+5
-4
public/test/mocks/backend_srv.ts
+1
-4
No files found.
public/sass/_variables.scss.d.ts
View file @
ffdf7470
export
interface
GrafanaVariables
{
export
interface
GrafanaVariables
{
'panelHorizontalPadding'
:
number
;
panelHorizontalPadding
:
number
;
'panelVerticalPadding'
:
number
;
panelVerticalPadding
:
number
;
}
}
declare
const
variables
:
GrafanaVariables
;
declare
const
variables
:
GrafanaVariables
;
...
...
public/test/helpers/getQueryOptions.ts
View file @
ffdf7470
import
{
DataQueryOptions
,
DataQuery
}
from
'@grafana/ui'
;
import
{
DataQueryOptions
,
DataQuery
}
from
'@grafana/ui'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
export
function
getQueryOptions
<
TQuery
extends
DataQuery
>
(
export
function
getQueryOptions
<
TQuery
extends
DataQuery
>
(
options
:
Partial
<
DataQueryOptions
<
TQuery
>>
):
DataQueryOptions
<
TQuery
>
{
options
:
Partial
<
DataQueryOptions
<
TQuery
>>
const
raw
=
{
from
:
'now'
,
to
:
'now-1h'
};
):
DataQueryOptions
<
TQuery
>
{
const
range
=
{
from
:
moment
(),
to
:
moment
(),
raw
:
raw
};
const
raw
=
{
from
:
'now'
,
to
:
'now-1h'
};
const
range
=
{
from
:
moment
(),
to
:
moment
(),
raw
:
raw
};
const
defaults
:
DataQueryOptions
<
TQuery
>
=
{
const
defaults
:
DataQueryOptions
<
TQuery
>
=
{
range
:
range
,
range
:
range
,
...
...
public/test/mocks/backend_srv.ts
View file @
ffdf7470
export
class
BackendSrvMock
{
export
class
BackendSrvMock
{
search
:
any
;
search
:
any
;
constructor
()
{
constructor
()
{}
}
}
}
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