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
d7dc6ad3
Commit
d7dc6ad3
authored
Mar 12, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed type issues introduced by adding angular types
parent
25b1bec2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
30 deletions
+27
-30
public/app/core/directives/give_focus.ts
+1
-1
public/app/features/datasources/settings/HttpSettingsCtrl.ts
+1
-1
public/app/features/panel/panel_directive.ts
+2
-2
public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts
+21
-24
public/app/plugins/panel/heatmap/color_legend.ts
+2
-2
No files found.
public/app/core/directives/give_focus.ts
View file @
d7dc6ad3
...
...
@@ -14,7 +14,7 @@ coreModule.directive('giveFocus', () => {
}
setTimeout
(()
=>
{
element
.
focus
();
const
domEl
=
element
[
0
];
const
domEl
:
any
=
element
[
0
];
if
(
domEl
.
setSelectionRange
)
{
const
pos
=
element
.
val
().
length
*
2
;
domEl
.
setSelectionRange
(
pos
,
pos
);
...
...
public/app/features/datasources/settings/HttpSettingsCtrl.ts
View file @
d7dc6ad3
...
...
@@ -9,7 +9,7 @@ coreModule.directive('datasourceHttpSettings', () => {
},
templateUrl
:
'public/app/features/datasources/partials/http_settings.html'
,
link
:
{
pre
:
(
$scope
,
elem
,
attrs
)
=>
{
pre
:
(
$scope
:
any
,
elem
,
attrs
)
=>
{
// do not show access option if direct access is disabled
$scope
.
showAccessOption
=
$scope
.
noDirectAccess
!==
'true'
;
$scope
.
showAccessHelp
=
false
;
...
...
public/app/features/panel/panel_directive.ts
View file @
d7dc6ad3
...
...
@@ -33,7 +33,7 @@ module.directive('grafanaPanel', ($rootScope, $document, $timeout) => {
template
:
panelTemplate
,
transclude
:
true
,
scope
:
{
ctrl
:
'='
},
link
:
(
scope
,
elem
)
=>
{
link
:
(
scope
:
any
,
elem
)
=>
{
const
panelContainer
=
elem
.
find
(
'.panel-container'
);
const
panelContent
=
elem
.
find
(
'.panel-content'
);
const
cornerInfoElem
=
elem
.
find
(
'.panel-info-corner'
);
...
...
@@ -67,7 +67,7 @@ module.directive('grafanaPanel', ($rootScope, $document, $timeout) => {
// set initial transparency
if
(
ctrl
.
panel
.
transparent
)
{
transparentLastState
=
true
;
panelContainer
.
addClass
(
'panel-transparent'
,
true
);
panelContainer
.
addClass
(
'panel-transparent'
);
}
// update scrollbar after mounting
...
...
public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts
View file @
d7dc6ad3
...
...
@@ -2,28 +2,6 @@ import coreModule from 'app/core/core_module';
import
_
from
'lodash'
;
import
{
FilterSegments
,
DefaultFilterValue
}
from
'./filter_segments'
;
export
class
StackdriverFilter
{
/** @ngInject */
constructor
()
{
return
{
templateUrl
:
'public/app/plugins/datasource/stackdriver/partials/query.filter.html'
,
controller
:
'StackdriverFilterCtrl'
,
controllerAs
:
'ctrl'
,
bindToController
:
true
,
restrict
:
'E'
,
scope
:
{
labelData
:
'<'
,
loading
:
'<'
,
groupBys
:
'<'
,
filters
:
'<'
,
filtersChanged
:
'&'
,
groupBysChanged
:
'&'
,
hideGroupBys
:
'<'
,
},
};
}
}
export
class
StackdriverFilterCtrl
{
defaultRemoveGroupByValue
=
'-- remove group by --'
;
resourceTypeValue
=
'resource.type'
;
...
...
@@ -193,5 +171,24 @@ export class StackdriverFilterCtrl {
}
}
coreModule
.
directive
(
'stackdriverFilter'
,
StackdriverFilter
);
coreModule
.
controller
(
'StackdriverFilterCtrl'
,
StackdriverFilterCtrl
);
/** @ngInject */
function
stackdriverFilter
()
{
return
{
templateUrl
:
'public/app/plugins/datasource/stackdriver/partials/query.filter.html'
,
controller
:
StackdriverFilterCtrl
,
controllerAs
:
'ctrl'
,
bindToController
:
true
,
restrict
:
'E'
,
scope
:
{
labelData
:
'<'
,
loading
:
'<'
,
groupBys
:
'<'
,
filters
:
'<'
,
filtersChanged
:
'&'
,
groupBysChanged
:
'&'
,
hideGroupBys
:
'<'
,
},
};
}
coreModule
.
directive
(
'stackdriverFilter'
,
stackdriverFilter
);
public/app/plugins/panel/heatmap/color_legend.ts
View file @
d7dc6ad3
...
...
@@ -19,7 +19,7 @@ coreModule.directive('colorLegend', () => {
return
{
restrict
:
'E'
,
template
:
'<div class="heatmap-color-legend"><svg width="16.5rem" height="24px"></svg></div>'
,
link
:
(
scope
,
elem
,
attrs
)
=>
{
link
:
(
scope
:
any
,
elem
,
attrs
)
=>
{
const
ctrl
=
scope
.
ctrl
;
const
panel
=
scope
.
ctrl
.
panel
;
...
...
@@ -55,7 +55,7 @@ coreModule.directive('heatmapLegend', () => {
return
{
restrict
:
'E'
,
template
:
`<div class="heatmap-color-legend"><svg width="
${
LEGEND_WIDTH_PX
}
px" height="
${
LEGEND_HEIGHT_PX
}
px"></svg></div>`
,
link
:
(
scope
,
elem
,
attrs
)
=>
{
link
:
(
scope
:
any
,
elem
,
attrs
)
=>
{
const
ctrl
=
scope
.
ctrl
;
const
panel
=
scope
.
ctrl
.
panel
;
...
...
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