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
d1e33ec0
Commit
d1e33ec0
authored
Dec 31, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved routes
parent
39f3cfc1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
17 deletions
+12
-17
src/app/app.js
+1
-2
src/app/routes/all.js
+0
-7
src/app/routes/standalone/default.js
+10
-7
src/app/routes/standalone/fromDB.js
+0
-0
src/app/routes/standalone/fromFile.js
+0
-0
src/app/routes/standalone/fromScript.js
+0
-0
tasks/options/requirejs.js
+1
-1
No files found.
src/app/app.js
View file @
d1e33ec0
...
...
@@ -50,7 +50,6 @@ function (angular, $, _, appLevelRequire, config) {
};
app
.
config
(
function
(
$routeProvider
,
$controllerProvider
,
$compileProvider
,
$filterProvider
,
$provide
)
{
$routeProvider
.
otherwise
({
redirectTo
:
config
.
default_route
});
// this is how the internet told me to dynamically add modules :/
register_fns
.
controller
=
$controllerProvider
.
register
;
...
...
@@ -86,7 +85,7 @@ function (angular, $, _, appLevelRequire, config) {
'directives/all'
,
'filters/all'
,
'components/partials'
,
'routes/
all
'
,
'routes/
standalone/default
'
,
];
_
.
each
(
config
.
plugins
.
dependencies
,
function
(
dep
)
{
...
...
src/app/routes/all.js
deleted
100644 → 0
View file @
39f3cfc1
define
([
'./dashboard-from-db'
,
'./dashboard-from-file'
,
'./dashboard-from-script'
,
'./dashboard-default'
,
],
function
()
{});
src/app/routes/
dashboard-
default.js
→
src/app/routes/
standalone/
default.js
View file @
d1e33ec0
define
([
'angular'
,
'config'
,
'store'
'store'
,
'./fromDB'
,
'./fromFile'
,
'./fromScript'
,
],
function
(
angular
,
config
,
store
)
{
"use strict"
;
'use strict'
;
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
config
(
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/'
,
{
redirectTo
:
function
()
{
return
store
.
get
(
'grafanaDashboardDefault'
)
||
config
.
default_route
;
}
});
.
when
(
'/'
,
{
redirectTo
:
function
()
{
return
store
.
get
(
'grafanaDashboardDefault'
)
||
config
.
default_route
;
}
});
});
});
src/app/routes/
dashboard-from-db
.js
→
src/app/routes/
standalone/fromDB
.js
View file @
d1e33ec0
File moved
src/app/routes/
dashboard-from-f
ile.js
→
src/app/routes/
standalone/fromF
ile.js
View file @
d1e33ec0
File moved
src/app/routes/
dashboard-from-s
cript.js
→
src/app/routes/
standalone/fromS
cript.js
View file @
d1e33ec0
File moved
tasks/options/requirejs.js
View file @
d1e33ec0
...
...
@@ -62,7 +62,7 @@ module.exports = function(config,grunt) {
'directives/all'
,
'filters/all'
,
'controllers/all'
,
'routes/
all
'
,
'routes/
standalone/default
'
,
'components/partials'
,
]
}
...
...
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