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
0f748433
Commit
0f748433
authored
Dec 05, 2018
by
Mario Trangoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
public/app/core/*: Fix some misspell issues
parent
b2ef8570
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
public/app/core/components/code_editor/code_editor.ts
+2
-2
public/app/core/components/json_explorer/helpers.ts
+1
-1
public/app/core/components/json_explorer/json_explorer.ts
+1
-1
public/app/core/components/sidemenu/BottomNavLinks.test.tsx
+1
-1
public/app/core/components/sidemenu/__snapshots__/BottomNavLinks.test.tsx.snap
+1
-1
public/app/core/services/backend_srv.ts
+2
-2
public/app/core/services/timer.ts
+1
-1
public/app/core/table_model.ts
+1
-1
public/app/core/utils/kbn.ts
+9
-9
No files found.
public/app/core/components/code_editor/code_editor.ts
View file @
0f748433
...
@@ -50,7 +50,7 @@ const DEFAULT_THEME_LIGHT = 'ace/theme/textmate';
...
@@ -50,7 +50,7 @@ const DEFAULT_THEME_LIGHT = 'ace/theme/textmate';
const
DEFAULT_MODE
=
'text'
;
const
DEFAULT_MODE
=
'text'
;
const
DEFAULT_MAX_LINES
=
10
;
const
DEFAULT_MAX_LINES
=
10
;
const
DEFAULT_TAB_SIZE
=
2
;
const
DEFAULT_TAB_SIZE
=
2
;
const
DEFAULT_BEHAVIO
U
RS
=
true
;
const
DEFAULT_BEHAVIORS
=
true
;
const
DEFAULT_SNIPPETS
=
true
;
const
DEFAULT_SNIPPETS
=
true
;
const
editorTemplate
=
`<div></div>`
;
const
editorTemplate
=
`<div></div>`
;
...
@@ -61,7 +61,7 @@ function link(scope, elem, attrs) {
...
@@ -61,7 +61,7 @@ function link(scope, elem, attrs) {
const
maxLines
=
attrs
.
maxLines
||
DEFAULT_MAX_LINES
;
const
maxLines
=
attrs
.
maxLines
||
DEFAULT_MAX_LINES
;
const
showGutter
=
attrs
.
showGutter
!==
undefined
;
const
showGutter
=
attrs
.
showGutter
!==
undefined
;
const
tabSize
=
attrs
.
tabSize
||
DEFAULT_TAB_SIZE
;
const
tabSize
=
attrs
.
tabSize
||
DEFAULT_TAB_SIZE
;
const
behavioursEnabled
=
attrs
.
behavioursEnabled
?
attrs
.
behavioursEnabled
===
'true'
:
DEFAULT_BEHAVIO
U
RS
;
const
behavioursEnabled
=
attrs
.
behavioursEnabled
?
attrs
.
behavioursEnabled
===
'true'
:
DEFAULT_BEHAVIORS
;
const
snippetsEnabled
=
attrs
.
snippetsEnabled
?
attrs
.
snippetsEnabled
===
'true'
:
DEFAULT_SNIPPETS
;
const
snippetsEnabled
=
attrs
.
snippetsEnabled
?
attrs
.
snippetsEnabled
===
'true'
:
DEFAULT_SNIPPETS
;
// Initialize editor
// Initialize editor
...
...
public/app/core/components/json_explorer/helpers.ts
View file @
0f748433
// Based on work https://github.com/mohsen1/json-formatter-js
// Based on work https://github.com/mohsen1/json-formatter-js
// Licen
c
e MIT, Copyright (c) 2015 Mohsen Azimi
// Licen
s
e MIT, Copyright (c) 2015 Mohsen Azimi
/*
/*
* Escapes `"` characters from string
* Escapes `"` characters from string
...
...
public/app/core/components/json_explorer/json_explorer.ts
View file @
0f748433
// Based on work https://github.com/mohsen1/json-formatter-js
// Based on work https://github.com/mohsen1/json-formatter-js
// Licen
c
e MIT, Copyright (c) 2015 Mohsen Azimi
// Licen
s
e MIT, Copyright (c) 2015 Mohsen Azimi
import
{
isObject
,
getObjectName
,
getType
,
getValuePreview
,
cssClass
,
createElement
}
from
'./helpers'
;
import
{
isObject
,
getObjectName
,
getType
,
getValuePreview
,
cssClass
,
createElement
}
from
'./helpers'
;
...
...
public/app/core/components/sidemenu/BottomNavLinks.test.tsx
View file @
0f748433
...
@@ -36,7 +36,7 @@ describe('Render', () => {
...
@@ -36,7 +36,7 @@ describe('Render', () => {
expect
(
wrapper
).
toMatchSnapshot
();
expect
(
wrapper
).
toMatchSnapshot
();
});
});
it
(
'should render organi
s
ation switcher'
,
()
=>
{
it
(
'should render organi
z
ation switcher'
,
()
=>
{
const
wrapper
=
setup
({
const
wrapper
=
setup
({
link
:
{
link
:
{
showOrgSwitcher
:
true
,
showOrgSwitcher
:
true
,
...
...
public/app/core/components/sidemenu/__snapshots__/BottomNavLinks.test.tsx.snap
View file @
0f748433
...
@@ -73,7 +73,7 @@ exports[`Render should render component 1`] = `
...
@@ -73,7 +73,7 @@ exports[`Render should render component 1`] = `
</div>
</div>
`;
`;
exports[`Render should render organi
s
ation switcher 1`] = `
exports[`Render should render organi
z
ation switcher 1`] = `
<div
<div
className="sidemenu-item dropdown dropup"
className="sidemenu-item dropdown dropup"
>
>
...
...
public/app/core/services/backend_srv.ts
View file @
0f748433
...
@@ -5,7 +5,7 @@ import { DashboardModel } from 'app/features/dashboard/dashboard_model';
...
@@ -5,7 +5,7 @@ import { DashboardModel } from 'app/features/dashboard/dashboard_model';
export
class
BackendSrv
{
export
class
BackendSrv
{
private
inFlightRequests
=
{};
private
inFlightRequests
=
{};
private
HTTP_REQUEST_CANCEL
L
ED
=
-
1
;
private
HTTP_REQUEST_CANCELED
=
-
1
;
private
noBackendCache
:
boolean
;
private
noBackendCache
:
boolean
;
/** @ngInject */
/** @ngInject */
...
@@ -178,7 +178,7 @@ export class BackendSrv {
...
@@ -178,7 +178,7 @@ export class BackendSrv {
return
response
;
return
response
;
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
if
(
err
.
status
===
this
.
HTTP_REQUEST_CANCEL
L
ED
)
{
if
(
err
.
status
===
this
.
HTTP_REQUEST_CANCELED
)
{
throw
{
err
,
cancelled
:
true
};
throw
{
err
,
cancelled
:
true
};
}
}
...
...
public/app/core/services/timer.ts
View file @
0f748433
...
@@ -2,7 +2,7 @@ import _ from 'lodash';
...
@@ -2,7 +2,7 @@ import _ from 'lodash';
import
coreModule
from
'app/core/core_module'
;
import
coreModule
from
'app/core/core_module'
;
// This service really just tracks a list of $timeout promises to give us a
// This service really just tracks a list of $timeout promises to give us a
// method for cancel
l
ing them all when we need to
// method for canceling them all when we need to
export
class
Timer
{
export
class
Timer
{
timers
=
[];
timers
=
[];
...
...
public/app/core/table_model.ts
View file @
0f748433
...
@@ -40,7 +40,7 @@ export default class TableModel {
...
@@ -40,7 +40,7 @@ export default class TableModel {
this
.
rows
.
sort
((
a
,
b
)
=>
{
this
.
rows
.
sort
((
a
,
b
)
=>
{
a
=
a
[
options
.
col
];
a
=
a
[
options
.
col
];
b
=
b
[
options
.
col
];
b
=
b
[
options
.
col
];
// Sort null or undefined sep
e
rately from comparable values
// Sort null or undefined sep
a
rately from comparable values
return
+
(
a
==
null
)
-
+
(
b
==
null
)
||
+
(
a
>
b
)
||
-
(
a
<
b
);
return
+
(
a
==
null
)
-
+
(
b
==
null
)
||
+
(
a
>
b
)
||
-
(
a
<
b
);
});
});
...
...
public/app/core/utils/kbn.ts
View file @
0f748433
...
@@ -1084,7 +1084,7 @@ kbn.getUnitFormats = () => {
...
@@ -1084,7 +1084,7 @@ kbn.getUnitFormats = () => {
{ text: '
Watt
(
W
)
', value: '
watt
' },
{ text: '
Watt
(
W
)
', value: '
watt
' },
{ text: '
Kilowatt
(
kW
)
', value: '
kwatt
' },
{ text: '
Kilowatt
(
kW
)
', value: '
kwatt
' },
{ text: '
Milliwatt
(
mW
)
', value: '
mwatt
' },
{ text: '
Milliwatt
(
mW
)
', value: '
mwatt
' },
{ text: '
Watt
per
square
met
re
(
W
/
m
²
)
', value: '
Wm2
' },
{ text: '
Watt
per
square
met
er
(
W
/
m
²
)
', value: '
Wm2
' },
{ text: '
Volt
-
ampere
(
VA
)
', value: '
voltamp
' },
{ text: '
Volt
-
ampere
(
VA
)
', value: '
voltamp
' },
{ text: '
Kilovolt
-
ampere
(
kVA
)
', value: '
kvoltamp
' },
{ text: '
Kilovolt
-
ampere
(
kVA
)
', value: '
kvoltamp
' },
{ text: '
Volt
-
ampere
reactive
(
var
)
', value: '
voltampreact
' },
{ text: '
Volt
-
ampere
reactive
(
var
)
', value: '
voltampreact
' },
...
@@ -1181,14 +1181,14 @@ kbn.getUnitFormats = () => {
...
@@ -1181,14 +1181,14 @@ kbn.getUnitFormats = () => {
submenu: [
submenu: [
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
ppm
' },
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
ppm
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
nanogram
per
cubic
met
re
(
ng
/
m
³
)
', value: '
conngm3
' },
{ text: '
nanogram
per
cubic
met
er
(
ng
/
m
³
)
', value: '
conngm3
' },
{ text: '
nanogram
per
normal
cubic
met
re
(
ng
/
Nm
³
)
', value: '
conngNm3
' },
{ text: '
nanogram
per
normal
cubic
met
er
(
ng
/
Nm
³
)
', value: '
conngNm3
' },
{ text: '
microgram
per
cubic
met
re
(
μ
g
/
m
³
)
', value: '
con
μ
gm3
' },
{ text: '
microgram
per
cubic
met
er
(
μ
g
/
m
³
)
', value: '
con
μ
gm3
' },
{ text: '
microgram
per
normal
cubic
met
re
(
μ
g
/
Nm
³
)
', value: '
con
μ
gNm3
' },
{ text: '
microgram
per
normal
cubic
met
er
(
μ
g
/
Nm
³
)
', value: '
con
μ
gNm3
' },
{ text: '
milligram
per
cubic
met
re
(
mg
/
m
³
)
', value: '
conmgm3
' },
{ text: '
milligram
per
cubic
met
er
(
mg
/
m
³
)
', value: '
conmgm3
' },
{ text: '
milligram
per
normal
cubic
met
re
(
mg
/
Nm
³
)
', value: '
conmgNm3
' },
{ text: '
milligram
per
normal
cubic
met
er
(
mg
/
Nm
³
)
', value: '
conmgNm3
' },
{ text: '
gram
per
cubic
met
re
(
g
/
m
³
)
', value: '
congm3
' },
{ text: '
gram
per
cubic
met
er
(
g
/
m
³
)
', value: '
congm3
' },
{ text: '
gram
per
normal
cubic
met
re
(
g
/
Nm
³
)
', value: '
congNm3
' },
{ text: '
gram
per
normal
cubic
met
er
(
g
/
Nm
³
)
', value: '
congNm3
' },
],
],
},
},
];
];
...
...
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