1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-16 01:55:07 +01:00
onion/js/constants/application_constants.js

53 lines
1.9 KiB
JavaScript
Raw Normal View History

'use strict';
2015-05-19 17:16:01 +02:00
let constants = {
//'baseUrl': 'http://localhost:8000/api/',
2015-06-09 17:53:44 +02:00
//FIXME: referring to a global variable in `window` is not
2015-07-14 16:53:27 +02:00
// super pro. What if we render stuff on the server?
// - super-bro - Senor Developer, 14th July 2015
2015-06-11 15:57:19 +02:00
//'baseUrl': window.BASE_URL,
2015-06-10 17:28:36 +02:00
'apiEndpoint': window.API_ENDPOINT,
'serverUrl': window.SERVER_URL,
2015-06-11 17:07:27 +02:00
'baseUrl': window.BASE_URL,
2015-07-14 20:06:13 +02:00
'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'],
2015-07-13 14:29:20 +02:00
2015-07-14 16:53:27 +02:00
'subdomains': [
{
'subdomain': 'cc',
'name': 'Creative Commons France',
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png',
2015-07-14 17:41:57 +02:00
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
'type': 'wallet'
2015-07-14 16:53:27 +02:00
},
{
'subdomain': 'cc-staging',
'name': 'Creative Commons France',
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png',
2015-07-14 17:41:57 +02:00
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
'type': 'wallet'
2015-07-14 16:53:27 +02:00
},
{
'subdomain': 'sluice',
'name': 'Sluice Art Fair',
2015-07-14 17:41:57 +02:00
'logo': 'http://sluice.info/images/logo.gif',
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
'type': 'prize'
2015-07-14 16:53:27 +02:00
},
{
'subdomain': 'sluice-staging',
'name': 'Sluice Art Fair',
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/sluice/logo.jpeg',
2015-07-14 17:41:57 +02:00
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
'type': 'prize'
2015-07-14 16:53:27 +02:00
}
],
// in case of whitelabel customization, we store stuff here
2015-07-13 14:29:20 +02:00
'whitelabel': {}
};
2015-07-14 20:06:13 +02:00
export default constants;