mirror of
https://github.com/ascribe/onion.git
synced 2024-06-28 16:48:04 +02:00
add subdomain settings to constants
This commit is contained in:
parent
26f35d7628
commit
8d15238818
|
@ -4,14 +4,62 @@ let constants = {
|
||||||
//'baseUrl': 'http://localhost:8000/api/',
|
//'baseUrl': 'http://localhost:8000/api/',
|
||||||
|
|
||||||
//FIXME: referring to a global variable in `window` is not
|
//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,
|
//'baseUrl': window.BASE_URL,
|
||||||
'apiEndpoint': window.API_ENDPOINT,
|
'apiEndpoint': window.API_ENDPOINT,
|
||||||
'serverUrl': window.SERVER_URL,
|
'serverUrl': window.SERVER_URL,
|
||||||
'baseUrl': window.BASE_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'],
|
'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': {}
|
'whitelabel': {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user