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
68d32334
Commit
68d32334
authored
Dec 13, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added revision constant for future use
parent
7580042b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
src/app/app.js
+2
-1
src/app/services/dashboard.js
+4
-0
tasks/build_task.js
+10
-4
No files found.
src/app/app.js
View file @
68d32334
...
...
@@ -26,7 +26,8 @@ function (angular, $, _, appLevelRequire) {
// features if we define them after boot time
register_fns
=
{};
app
.
constant
(
'version'
,
"3.0.0pre5"
);
// This stores the Kibana revision number, @REV@ is replaced by grunt.
app
.
constant
(
'kbnVersion'
,
"@REV@"
);
// Use this for cache busting partials
app
.
constant
(
'cacheBust'
,
"cache-bust="
+
Date
.
now
());
...
...
src/app/services/dashboard.js
View file @
68d32334
...
...
@@ -215,9 +215,13 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
self
.
set_interval
(
dashboard
.
refresh
);
}
// Set the available panels for the "Add Panel" drop down
self
.
availablePanels
=
_
.
difference
(
config
.
panel_names
,
_
.
pluck
(
_
.
union
(
self
.
current
.
nav
,
self
.
current
.
pulldowns
),
'type'
));
// Take out any that we're not allowed to add from the gui.
self
.
availablePanels
=
_
.
difference
(
self
.
availablePanels
,
config
.
hidden_panels
);
return
true
;
};
...
...
tasks/build_task.js
View file @
68d32334
...
...
@@ -19,13 +19,19 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'build:write_revision'
,
function
()
{
grunt
.
event
.
once
(
'git-describe'
,
function
(
desc
)
{
grunt
.
config
(
'string-replace.config'
,
{
src
:
'<%= destDir %>/app/components/require.config.js'
,
dest
:
'<%= destDir %>/app/components/require.config.js'
,
files
:
{
'<%= destDir %>/app/components/require.config.js'
:
'<%= destDir %>/app/components/require.config.js'
,
'<%= destDir %>/app/app.js'
:
'<%= destDir %>/app/app.js'
},
options
:
{
replacements
:
[
{
pattern
:
/
(?:
^|
\/\/)(
.*
)
@REV@/
,
replacement
:
'$1'
+
desc
.
object
},
{
pattern
:
/@REV@/
,
replacement
:
desc
.
object
}
]
}
...
...
@@ -34,4 +40,4 @@ module.exports = function(grunt) {
});
grunt
.
task
.
run
(
'git-describe'
);
});
}
\ No newline at end of file
};
\ No newline at end of file
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