move window.__config to an Angular constant; refactor AngularViewArray -> ViewArray + ViewArrayFactory
This commit is contained in:
parent
615e233671
commit
eea2a18c3f
16 changed files with 316 additions and 231 deletions
|
@ -14,6 +14,7 @@ quayRun.$inject = [
|
|||
'$anchorScroll',
|
||||
'UtilService',
|
||||
'MetaService',
|
||||
'CONFIG',
|
||||
];
|
||||
|
||||
export default function quayRun(
|
||||
|
@ -28,8 +29,9 @@ export default function quayRun(
|
|||
Features,
|
||||
$anchorScroll,
|
||||
UtilService,
|
||||
MetaService) {
|
||||
var defaultTitle = (<any>window).__config['REGISTRY_TITLE'] || 'Quay Container Registry';
|
||||
MetaService,
|
||||
CONFIG) {
|
||||
var defaultTitle = CONFIG['REGISTRY_TITLE'] || 'Quay Container Registry';
|
||||
|
||||
// Handle session security.
|
||||
Restangular.setDefaultRequestParams(['post', 'put', 'remove', 'delete'], {'_csrf_token': (<any>window).__token || ''});
|
||||
|
|
Reference in a new issue