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
6214872e
Commit
6214872e
authored
Jun 14, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
6885cea0
77bfaa42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
26 deletions
+13
-26
src/app/components/require.config.js
+1
-1
src/app/dashboards/default.json
+1
-1
tasks/build_task.js
+11
-24
No files found.
src/app/components/require.config.js
View file @
6214872e
...
...
@@ -3,7 +3,7 @@
*/
require
.
config
({
baseUrl
:
'app'
,
// urlArgs: 'r=@REV@',
paths
:
{
config
:
[
'../config'
,
'../config.sample'
],
settings
:
'components/settings'
,
...
...
src/app/dashboards/default.json
View file @
6214872e
...
...
@@ -90,7 +90,7 @@
"notice"
:
false
}
],
"editable"
:
fals
e
,
"editable"
:
tru
e
,
"failover"
:
false
,
"panel_hints"
:
true
,
"style"
:
"dark"
,
...
...
tasks/build_task.js
View file @
6214872e
...
...
@@ -11,40 +11,27 @@ module.exports = function(grunt) {
'htmlmin:build'
,
'ngtemplates'
,
'cssmin:build'
,
'build:grafanaVersion'
,
'ngmin:build'
,
'requirejs:build'
,
'concat:js'
,
'filerev'
,
'usemin'
,
'clean:temp'
,
'build:write_revision'
,
'uglify:dest'
]);
// run a string replacement on the require config, using the latest revision number as the cache buster
grunt
.
registerTask
(
'build:write_revision'
,
function
()
{
grunt
.
event
.
once
(
'git-describe'
,
function
(
desc
)
{
grunt
.
config
(
'string-replace.config'
,
{
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@/g
,
replacement
:
desc
.
object
},
{
pattern
:
/@grafanaVersion@/g
,
replacement
:
'<%= pkg.version %>'
}
]
}
});
grunt
.
task
.
run
(
'string-replace:config'
);
grunt
.
registerTask
(
'build:grafanaVersion'
,
function
()
{
grunt
.
config
(
'string-replace.config'
,
{
files
:
{
'<%= tempDir %>/app/app.js'
:
'<%= tempDir %>/app/app.js'
},
options
:
{
replacements
:
[{
pattern
:
/@grafanaVersion@/g
,
replacement
:
'<%= pkg.version %>'
}]
}
});
grunt
.
task
.
run
(
'
git-describe
'
);
grunt
.
task
.
run
(
'
string-replace:config
'
);
});
};
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