From 8d152388183a123c2139ddb36868985a32299625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 14 Jul 2015 16:53:27 +0200 Subject: [PATCH] add subdomain settings to constants --- js/constants/application_constants.js | 52 +++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/js/constants/application_constants.js b/js/constants/application_constants.js index 2a8e0807..d03c6423 100644 --- a/js/constants/application_constants.js +++ b/js/constants/application_constants.js @@ -4,14 +4,62 @@ let constants = { //'baseUrl': 'http://localhost:8000/api/', //FIXME: referring to a global variable in `window` is not - // super pro. What if we render stuff on the server? + // super pro. What if we render stuff on the server? + // - super-bro - Senor Developer, 14th July 2015 //'baseUrl': window.BASE_URL, 'apiEndpoint': window.API_ENDPOINT, 'serverUrl': window.SERVER_URL, 'baseUrl': window.BASE_URL, 'aclList': ['acl_coa', 'acl_consign', 'acl_delete', 'acl_download', 'acl_edit', 'acl_editions', 'acl_loan', 'acl_share', 'acl_transfer', 'acl_unconsign', 'acl_unshare', 'acl_view', 'acl_withdraw_transfer'], - // in case of whitelabel cusomization, we store stuff here + 'subdomains': [ + { + 'fields': { + 'user': 22, + 'subdomain': 'cc', + 'name': 'Creative Commons France', + 'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png', + 'permissions': ['register', 'edit', 'share', 'del_from_collection'] + }, + 'model': 'whitelabel.whitelabelsettings', + 'pk': 1 + }, + { + 'fields': { + 'user': 22, + 'subdomain': 'cc-staging', + 'name': 'Creative Commons France', + 'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png', + 'permissions': ['register', 'edit', 'share', 'del_from_collection'] + }, + 'model': 'whitelabel.whitelabelsettings', + 'pk': 2 + }, + { + 'fields': { + 'user': 1, + 'subdomain': 'sluice', + 'name': 'Sluice Art Fair', + 'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/sluice/logo.jpeg', + 'permissions': ['register', 'edit', 'share', 'del_from_collection'] + }, + 'model': 'whitelabel.whitelabelsettings', + 'pk': 3 + }, + { + 'fields': { + 'user': 1, + 'subdomain': 'sluice-staging', + 'name': 'Sluice Art Fair', + 'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/sluice/logo.jpeg', + 'permissions': ['register', 'edit', 'share', 'del_from_collection'] + }, + 'model': 'whitelabel.whitelabelsettings', + 'pk': 4 + } + ], + + // in case of whitelabel customization, we store stuff here 'whitelabel': {} };