Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed generated config and default development config, added defaul…
…t production config.
- Loading branch information
jackgr
committed
May 26, 2015
1 parent
3ed9b42
commit 366b1bb
Showing
5 changed files
with
148 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,128 @@ | ||
|
||
angular.module('kubernetesApp.config', []); | ||
angular.module('kubernetesApp.services', ['kubernetesApp.config']); | ||
|
||
app.config([ | ||
'$routeProvider', | ||
function($routeProvider) { | ||
$routeProvider.when("/404", {templateUrl: "views/partials/404.html"}) | ||
'$routeProvider', | ||
function($routeProvider) { | ||
$routeProvider.when("/404", { | ||
templateUrl: "views/partials/404.html" | ||
}) | ||
// else 404 | ||
.otherwise({redirectTo: "/404"}); | ||
} | ||
]) | ||
.config([ | ||
'$routeProvider', | ||
'manifestRoutes', | ||
function($routeProvider, manifestRoutes) { | ||
angular.forEach(manifestRoutes, function(r) { | ||
var route = { | ||
templateUrl: r.templateUrl | ||
}; | ||
if (r.controller) { | ||
route.controller = r.controller; | ||
} | ||
if (r.css) { | ||
route.css = r.css; | ||
} | ||
$routeProvider.when(r.url, route); | ||
.otherwise({ | ||
redirectTo: "/404" | ||
}); | ||
} | ||
]); | ||
|
||
app.value("sections", [{"name":"Dashboard","url":"/dashboard","type":"link","templateUrl":"/components/dashboard/pages/home.html"},{"name":"Dashboard","type":"heading","children":[{"name":"Dashboard","type":"toggle","url":"/dashboard","templateUrl":"/components/dashboard/pages/home.html","pages":[{"name":"Pods","url":"/dashboard/pods","templateUrl":"/components/dashboard/views/listPods.html","type":"link"},{"name":"Pod Visualizer","url":"/dashboard/visualpods","templateUrl":"/components/dashboard/views/listPodsVisualizer.html","type":"link"},{"name":"Services","url":"/dashboard/services","templateUrl":"/components/dashboard/views/listServices.html","type":"link"},{"name":"Replication Controllers","url":"/dashboard/replicationcontrollers","templateUrl":"/components/dashboard/views/listReplicationControllers.html","type":"link"},{"name":"Events","url":"/dashboard/events","templateUrl":"/components/dashboard/views/listEvents.html","type":"link"},{"name":"Nodes","url":"/dashboard/nodes","templateUrl":"/components/dashboard/views/listMinions.html","type":"link"},{"name":"Replication Controller","url":"/dashboard/replicationcontrollers/:replicationControllerId","templateUrl":"/components/dashboard/views/replication.html","type":"link"},{"name":"Service","url":"/dashboard/services/:serviceId","templateUrl":"/components/dashboard/views/service.html","type":"link"},{"name": "Node","url": "/dashboard/nodes/:nodeId","templateUrl": "/components/dashboard/views/node.html","type": "link"},{"name":"Explore","url":"/dashboard/groups/:grouping*?/selector/:selector*?","templateUrl":"/components/dashboard/views/groups.html","type":"link"},{"name":"Pod","url":"/dashboard/pods/:podId","templateUrl":"/components/dashboard/views/pod.html","type":"link"}]}]},{"name":"Graph","url":"/graph","type":"link","templateUrl":"/components/graph/pages/home.html"},{"name":"Graph","url":"/graph/inspect","type":"link","templateUrl":"/components/graph/pages/inspect.html","css":"/components/graph/css/show-details-table.css"},{"name":"Graph","type":"heading","children":[{"name":"Graph","type":"toggle","url":"/graph","templateUrl":"/components/graph/pages/home.html","pages":[{"name":"Test","url":"/graph/test","type":"link","templateUrl":"/components/graph/pages/home.html"}]}]}]); | ||
}]) | ||
.config([ | ||
'$routeProvider', | ||
'manifestRoutes', | ||
function($routeProvider, manifestRoutes) { | ||
angular.forEach(manifestRoutes, function(r) { | ||
var route = { | ||
templateUrl: r.templateUrl | ||
}; | ||
if (r.controller) { | ||
route.controller = r.controller; | ||
} | ||
if (r.css) { | ||
route.css = r.css; | ||
} | ||
$routeProvider.when(r.url, route); | ||
}); | ||
}]); | ||
app.value("sections", [{ | ||
"name": "Dashboard", | ||
"url": "/dashboard", | ||
"type": "link", | ||
"templateUrl": "/components/dashboard/pages/home.html" | ||
}, { | ||
"name": "Dashboard", | ||
"type": "heading", | ||
"children": [{ | ||
"name": "Dashboard", | ||
"type": "toggle", | ||
"url": "/dashboard", | ||
"templateUrl": "/components/dashboard/pages/home.html", | ||
"pages": [{ | ||
"name": "Pods", | ||
"url": "/dashboard/pods", | ||
"templateUrl": "/components/dashboard/views/listPods.html", | ||
"type": "link" | ||
}, { | ||
"name": "Pod Visualizer", | ||
"url": "/dashboard/visualpods", | ||
"templateUrl": "/components/dashboard/views/listPodsVisualizer.html", | ||
"type": "link" | ||
}, { | ||
"name": "Services", | ||
"url": "/dashboard/services", | ||
"templateUrl": "/components/dashboard/views/listServices.html", | ||
"type": "link" | ||
}, { | ||
"name": "Replication Controllers", | ||
"url": "/dashboard/replicationcontrollers", | ||
"templateUrl": "/components/dashboard/views/listReplicationControllers.html", | ||
"type": "link" | ||
}, { | ||
"name": "Events", | ||
"url": "/dashboard/events", | ||
"templateUrl": "/components/dashboard/views/listEvents.html", | ||
"type": "link" | ||
}, { | ||
"name": "Nodes", | ||
"url": "/dashboard/nodes", | ||
"templateUrl": "/components/dashboard/views/listMinions.html", | ||
"type": "link" | ||
}, { | ||
"name": "Replication Controller", | ||
"url": "/dashboard/replicationcontrollers/:replicationControllerId", | ||
"templateUrl": "/components/dashboard/views/replication.html", | ||
"type": "link" | ||
}, { | ||
"name": "Service", | ||
"url": "/dashboard/services/:serviceId", | ||
"templateUrl": "/components/dashboard/views/service.html", | ||
"type": "link" | ||
}, { | ||
"name": "Node", | ||
"url": "/dashboard/nodes/:nodeId", | ||
"templateUrl": "/components/dashboard/views/node.html", | ||
"type": "link" | ||
}, { | ||
"name": "Explore", | ||
"url": "/dashboard/groups/:grouping*?/selector/:selector*?", | ||
"templateUrl": "/components/dashboard/views/groups.html", | ||
"type": "link" | ||
}, { | ||
"name": "Pod", | ||
"url": "/dashboard/pods/:podId", | ||
"templateUrl": "/components/dashboard/views/pod.html", | ||
"type": "link" | ||
}] | ||
}] | ||
}, { | ||
"name": "Graph", | ||
"url": "/graph", | ||
"type": "link", | ||
"templateUrl": "/components/graph/pages/home.html" | ||
}, { | ||
"name": "Graph", | ||
"url": "/graph/inspect", | ||
"type": "link", | ||
"templateUrl": "/components/graph/pages/inspect.html", | ||
"css": "/components/graph/css/show-details-table.css" | ||
}, { | ||
"name": "Graph", | ||
"type": "heading", | ||
"children": [{ | ||
"name": "Graph", | ||
"type": "toggle", | ||
"url": "/graph", | ||
"templateUrl": "/components/graph/pages/home.html", | ||
"pages": [{ | ||
"name": "Test", | ||
"url": "/graph/test", | ||
"type": "link", | ||
"templateUrl": "/components/graph/pages/home.html" | ||
}] | ||
}] | ||
}]); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"k8sApiServer": "ENV_K8S_API_SERVER", | ||
"k8sDataServer": "ENV_K8S_DATA_SERVER", | ||
"k8sDataPollMinIntervalSec": "ENV_K8S_DATA_POLL_MIN_INTERVAL_SEC", | ||
"k8sDataPollMaxIntervalSec": "ENV_K8S_DATA_POLL_MAX_INTERVAL_SEC", | ||
"k8sDataPollErrorThreshold": "ENV_K8S_DATA_POLL_ERROR_THRESHOLD", | ||
"cAdvisorProxy": "ENV_C_ADVISOR_PROXY", | ||
"cAdvisorPort": "ENV_C_ADVISOR_PORT" | ||
} |
4 changes: 2 additions & 2 deletions
4
www/master/shared/config/development.json → www/master/shared/config/production.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters