move window.__config to an Angular constant; refactor AngularViewArray -> ViewArray + ViewArrayFactory

This commit is contained in:
alecmerdler 2017-01-21 00:14:37 -08:00
parent 615e233671
commit eea2a18c3f
16 changed files with 316 additions and 231 deletions

View file

@ -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 || ''});