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
0affb23c
Unverified
Commit
0affb23c
authored
Jan 05, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jan 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14740 from simPod/some-cleanups
Some cleanup
parents
dd6f606c
c39dc1fb
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
9 additions
and
22 deletions
+9
-22
public/app/features/datasources/settings/BasicSettings.tsx
+1
-1
public/app/features/datasources/settings/__snapshots__/BasicSettings.test.tsx.snap
+1
-1
public/app/features/explore/LogLabels.tsx
+0
-1
public/app/features/explore/Typeahead.tsx
+1
-1
public/app/features/panel/metrics_tab.ts
+0
-3
public/app/plugins/datasource/influxdb/datasource.ts
+1
-1
public/app/plugins/datasource/loki/components/LokiQueryField.tsx
+0
-1
public/app/plugins/datasource/stackdriver/datasource.ts
+0
-1
public/app/plugins/datasource/stackdriver/query_ctrl.ts
+0
-1
public/app/plugins/panel/heatmap/rendering.ts
+2
-5
public/emails/invited_to_org.html
+1
-1
public/emails/new_user_invite.html
+1
-1
scripts/webpack/webpack.common.js
+1
-3
scripts/webpack/webpack.prod.js
+0
-1
No files found.
public/app/features/datasources/settings/BasicSettings.tsx
View file @
0affb23c
...
...
@@ -16,7 +16,7 @@ const BasicSettings: SFC<Props> = ({ dataSourceName, isDefault, onDefaultChange,
<
div
className=
"gf-form max-width-30"
style=
{
{
marginRight
:
'3px'
}
}
>
<
Label
tooltip=
{
'The name is used when you select the data source in panels. The Default data source is'
+
'The name is used when you select the data source in panels. The Default data source is
'
+
'preselected in new panels.'
}
>
...
...
public/app/features/datasources/settings/__snapshots__/BasicSettings.test.tsx.snap
View file @
0affb23c
...
...
@@ -16,7 +16,7 @@ exports[`Render should render component 1`] = `
}
>
<Component
tooltip="The name is used when you select the data source in panels. The Default data source ispreselected in new panels."
tooltip="The name is used when you select the data source in panels. The Default data source is
preselected in new panels."
>
Name
</Component>
...
...
public/app/features/explore/LogLabels.tsx
View file @
0affb23c
import
_
from
'lodash'
;
import
React
,
{
PureComponent
}
from
'react'
;
import
classnames
from
'classnames'
;
...
...
public/app/features/explore/Typeahead.tsx
View file @
0affb23c
...
...
@@ -55,7 +55,7 @@ class TypeaheadItem extends React.PureComponent<TypeaheadItemProps> {
interface
TypeaheadGroupProps
{
items
:
CompletionItem
[];
label
:
string
;
onClickItem
:
(
CompletionItem
)
=>
void
;
onClickItem
:
(
suggestion
:
CompletionItem
)
=>
void
;
selected
:
CompletionItem
;
prefix
?:
string
;
}
...
...
public/app/features/panel/metrics_tab.ts
View file @
0affb23c
// Libraries
import
_
from
'lodash'
;
// Services & utils
import
coreModule
from
'app/core/core_module'
;
import
{
Emitter
}
from
'app/core/utils/emitter'
;
...
...
public/app/plugins/datasource/influxdb/datasource.ts
View file @
0affb23c
...
...
@@ -308,7 +308,7 @@ export default class InfluxDatasource {
return
'now()'
;
}
const
parts
=
/^now-
(\d
+
)([
d
|h|m|
s
])
$/
.
exec
(
date
);
const
parts
=
/^now-
(\d
+
)([
d
hm
s
])
$/
.
exec
(
date
);
if
(
parts
)
{
const
amount
=
parseInt
(
parts
[
1
],
10
);
const
unit
=
parts
[
2
];
...
...
public/app/plugins/datasource/loki/components/LokiQueryField.tsx
View file @
0affb23c
import
_
from
'lodash'
;
import
React
from
'react'
;
import
Cascader
from
'rc-cascader'
;
import
PluginPrism
from
'slate-prism'
;
...
...
public/app/plugins/datasource/stackdriver/datasource.ts
View file @
0affb23c
...
...
@@ -16,7 +16,6 @@ export default class StackdriverDatasource {
constructor
(
instanceSettings
,
private
backendSrv
,
private
templateSrv
,
private
timeSrv
)
{
this
.
baseUrl
=
`/stackdriver/`
;
this
.
url
=
instanceSettings
.
url
;
this
.
doRequest
=
this
.
doRequest
;
this
.
id
=
instanceSettings
.
id
;
this
.
projectName
=
instanceSettings
.
jsonData
.
defaultProject
||
''
;
this
.
authenticationType
=
instanceSettings
.
jsonData
.
authenticationType
||
'jwt'
;
...
...
public/app/plugins/datasource/stackdriver/query_ctrl.ts
View file @
0affb23c
...
...
@@ -88,7 +88,6 @@ export class StackdriverQueryCtrl extends QueryCtrl {
try
{
jsonBody
=
JSON
.
parse
(
queryRes
.
error
);
}
catch
{
this
.
lastQueryError
=
queryRes
.
error
;
}
this
.
lastQueryError
=
jsonBody
.
error
.
message
;
...
...
public/app/plugins/panel/heatmap/rendering.ts
View file @
0affb23c
...
...
@@ -251,7 +251,6 @@ export class HeatmapRenderer {
if
(
tickInterval
===
0
)
{
yMax
=
max
*
this
.
dataRangeWidingFactor
;
yMin
=
min
-
min
*
(
this
.
dataRangeWidingFactor
-
1
);
tickInterval
=
(
yMax
-
yMin
)
/
2
;
}
else
{
yMax
=
Math
.
ceil
((
max
+
yWiding
)
/
tickInterval
)
*
tickInterval
;
yMin
=
Math
.
floor
((
min
-
yWiding
)
/
tickInterval
)
*
tickInterval
;
...
...
@@ -389,9 +388,7 @@ export class HeatmapRenderer {
// Adjust data range to log base
adjustLogRange
(
min
,
max
,
logBase
)
{
let
yMin
,
yMax
;
yMin
=
this
.
data
.
heatmapStats
.
minLog
;
let
yMin
=
this
.
data
.
heatmapStats
.
minLog
;
if
(
this
.
data
.
heatmapStats
.
minLog
>
1
||
!
this
.
data
.
heatmapStats
.
minLog
)
{
yMin
=
1
;
}
else
{
...
...
@@ -399,7 +396,7 @@ export class HeatmapRenderer {
}
// Adjust max Y value to log base
yMax
=
this
.
adjustLogMax
(
this
.
data
.
heatmapStats
.
max
,
logBase
);
const
yMax
=
this
.
adjustLogMax
(
this
.
data
.
heatmapStats
.
max
,
logBase
);
return
{
yMin
,
yMax
};
}
...
...
public/emails/invited_to_org.html
View file @
0affb23c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns=
"http://www.w3.org/1999/xhtml"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
...
...
public/emails/new_user_invite.html
View file @
0affb23c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns=
"http://www.w3.org/1999/xhtml"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
...
...
scripts/webpack/webpack.common.js
View file @
0affb23c
...
...
@@ -3,9 +3,6 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module
.
exports
=
{
target
:
'web'
,
stats
:
{
children
:
false
},
entry
:
{
app
:
'./public/app/index.ts'
,
},
...
...
@@ -25,6 +22,7 @@ module.exports = {
],
},
stats
:
{
children
:
false
,
warningsFilter
:
/export .* was not found in/
},
node
:
{
...
...
scripts/webpack/webpack.prod.js
View file @
0affb23c
...
...
@@ -3,7 +3,6 @@
const
merge
=
require
(
'webpack-merge'
);
const
UglifyJsPlugin
=
require
(
'uglifyjs-webpack-plugin'
);
const
common
=
require
(
'./webpack.common.js'
);
const
webpack
=
require
(
'webpack'
);
const
path
=
require
(
'path'
);
const
ngAnnotatePlugin
=
require
(
'ng-annotate-webpack-plugin'
);
const
HtmlWebpackPlugin
=
require
(
"html-webpack-plugin"
);
...
...
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