2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-19 17:16:01 +02:00
|
|
|
let constants = {
|
2015-05-29 11:45:10 +02:00
|
|
|
//'baseUrl': 'http://localhost:8000/api/',
|
2015-06-09 17:53:44 +02:00
|
|
|
|
|
|
|
//FIXME: referring to a global variable in `window` is not
|
|
|
|
// super pro. What if we render stuff on the server?
|
2015-06-11 15:57:19 +02:00
|
|
|
//'baseUrl': window.BASE_URL,
|
2015-06-10 17:28:36 +02:00
|
|
|
'apiEndpoint': window.API_ENDPOINT,
|
2015-06-19 13:13:37 +02:00
|
|
|
'serverUrl': window.SERVER_URL,
|
2015-06-11 17:07:27 +02:00
|
|
|
'baseUrl': window.BASE_URL,
|
2015-07-13 21:19:45 +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
|
|
|
|
|
|
|
// in case of whitelabel cusomization, we store stuff here
|
|
|
|
'whitelabel': {}
|
2015-05-19 13:45:19 +02:00
|
|
|
};
|
|
|
|
|
2015-07-13 21:19:45 +02:00
|
|
|
export default constants;
|