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
1665cb42
Commit
1665cb42
authored
Oct 30, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring: moving components -> core
parent
1113081a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
32 deletions
+1
-32
public/app/components/require.config.js
+0
-1
public/app/core/config.js
+1
-1
public/app/core/settings.js
+0
-30
No files found.
public/app/components/require.config.js
View file @
1665cb42
...
...
@@ -3,7 +3,6 @@ require.config({
baseUrl
:
'public'
,
paths
:
{
settings
:
'app/components/settings'
,
kbn
:
'app/components/kbn'
,
'extend-jquery'
:
'app/components/extend-jquery'
,
lodash
:
'app/components/lodash.extended'
,
...
...
public/app/core/config.js
View file @
1665cb42
define
([
'settings'
,
'
app/core/
settings'
,
],
function
(
Settings
)
{
"use strict"
;
...
...
public/app/co
mponents
/settings.js
→
public/app/co
re
/settings.js
View file @
1665cb42
...
...
@@ -5,12 +5,6 @@ function (_) {
"use strict"
;
return
function
Settings
(
options
)
{
/**
* To add a setting, you MUST define a default. Also,
* THESE ARE ONLY DEFAULTS.
* They are overridden by config.js in the root directory
* @type {Object}
*/
var
defaults
=
{
datasources
:
{},
window_title_prefix
:
'Grafana - '
,
...
...
@@ -22,36 +16,12 @@ function (_) {
},
new_panel_title
:
'no title (click here)'
,
plugins
:
{},
default_route
:
'/dashboard/file/default.json'
,
playlist_timespan
:
"1m"
,
unsaved_changes_warning
:
true
,
search
:
{
max_results
:
100
},
appSubUrl
:
""
};
var
settings
=
_
.
extend
({},
defaults
,
options
);
// var parseBasicAuth = function(datasource) {
// var passwordEnd = datasource.url.indexOf('@');
// if (passwordEnd > 0) {
// var userStart = datasource.url.indexOf('//') + 2;
// var userAndPassword = datasource.url.substring(userStart, passwordEnd);
// var bytes = crypto.charenc.Binary.stringToBytes(userAndPassword);
// datasource.basicAuth = crypto.util.bytesToBase64(bytes);
//
// var urlHead = datasource.url.substring(0, userStart);
// datasource.url = urlHead + datasource.url.substring(passwordEnd + 1);
// }
//
// return datasource;
// };
//
// _.each(settings.datasources, function(datasource, key) {
// datasource.name = key;
// if (datasource.url) { parseBasicAuth(datasource); }
// if (datasource.type === 'influxdb') { parseMultipleHosts(datasource); }
// });
return
settings
;
};
});
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