
remove node modules make new data file for web ui initial commit of dashboard switch back to non SSL request move port splitting to common place; add to node resource location Signed-off-by: Patrick Reilly <patrick@kismatic.io> various path fixes make svg path relative work around missing mime type Signed-off-by: Patrick Reilly <patrick@kismatic.io> fix paths fix karma path remove bad protractor test
34 lines
777 B
JavaScript
34 lines
777 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
angular.module('replicationControllers', [])
|
|
.service('replicationControllerService', ReplicationControllerDataService);
|
|
|
|
/**
|
|
* Replication Controller DataService
|
|
* Mock async data service.
|
|
*
|
|
* @returns {{loadAll: Function}}
|
|
* @constructor
|
|
*/
|
|
function ReplicationControllerDataService($q) {
|
|
var replicationControllers = {
|
|
"kind": "ReplicationControllerList",
|
|
"creationTimestamp": null,
|
|
"selfLink": "/api/v1beta1/replicationControllers",
|
|
"resourceVersion": 166552,
|
|
"apiVersion": "v1beta1",
|
|
"items": []
|
|
};
|
|
|
|
// Uses promises
|
|
return {
|
|
loadAll: function() {
|
|
// Simulate async call
|
|
return $q.when(replicationControllers);
|
|
}
|
|
};
|
|
}
|
|
|
|
})();
|