2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-11-13 13:33:27 +01:00
|
|
|
//const baseUrl = 'http://localhost:8000/api/';
|
2015-06-09 17:53:44 +02:00
|
|
|
|
2015-11-13 13:33:27 +01:00
|
|
|
//FIXME: referring to a global variable in `window` is not
|
|
|
|
// super pro. What if we render stuff on the server?
|
|
|
|
// - super-bro - Senor Developer, 14th July 2015
|
|
|
|
//const baseUrl = window.BASE_URL;
|
|
|
|
const apiEndpoint = window.API_ENDPOINT;
|
|
|
|
const serverUrl = window.SERVER_URL;
|
|
|
|
const baseUrl = window.BASE_URL;
|
|
|
|
|
|
|
|
const constants = {
|
|
|
|
apiEndpoint,
|
|
|
|
serverUrl,
|
|
|
|
baseUrl,
|
2015-08-05 16:02:48 +02:00
|
|
|
'aclList': ['acl_coa', 'acl_consign', 'acl_delete', 'acl_download', 'acl_edit', 'acl_create_editions', 'acl_view_editions',
|
2015-11-06 15:10:29 +01:00
|
|
|
'acl_loan', 'acl_loan_request', 'acl_share', 'acl_transfer', 'acl_unconsign', 'acl_unshare', 'acl_view',
|
2015-09-22 17:38:25 +02:00
|
|
|
'acl_withdraw_transfer', 'acl_wallet_submit'],
|
2015-07-13 14:29:20 +02:00
|
|
|
|
2015-07-17 15:41:09 +02:00
|
|
|
'version': 0.1,
|
2015-07-16 19:16:26 +02:00
|
|
|
'csrftoken': 'csrftoken2',
|
2015-07-14 16:53:27 +02:00
|
|
|
'subdomains': [
|
|
|
|
{
|
2015-07-14 17:12:32 +02:00
|
|
|
'subdomain': 'cc',
|
|
|
|
'name': 'Creative Commons France',
|
2018-05-23 16:29:15 +02:00
|
|
|
'type': 'wallet'
|
2015-07-14 16:53:27 +02:00
|
|
|
},
|
2015-07-14 17:12:32 +02:00
|
|
|
{
|
|
|
|
'subdomain': 'sluice',
|
|
|
|
'name': 'Sluice Art Fair',
|
2018-05-23 16:29:15 +02:00
|
|
|
'type': 'prize'
|
2015-07-14 16:53:27 +02:00
|
|
|
},
|
2015-07-29 15:57:48 +02:00
|
|
|
{
|
|
|
|
'subdomain': 'cyland',
|
2015-07-29 16:08:30 +02:00
|
|
|
'name': 'Cyland media art lab',
|
2015-08-11 13:10:15 +02:00
|
|
|
'type': 'wallet'
|
2015-08-18 12:08:01 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'subdomain': 'ikonotv',
|
|
|
|
'name': 'IkonoTV',
|
|
|
|
'type': 'wallet'
|
2015-11-06 12:09:31 +01:00
|
|
|
},
|
2015-10-21 14:10:21 +02:00
|
|
|
{
|
|
|
|
'subdomain': 'lumenus',
|
|
|
|
'name': 'Lumenus',
|
2015-11-16 16:38:35 +01:00
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2015-11-24 18:17:51 +01:00
|
|
|
{
|
|
|
|
'subdomain': '23vivi',
|
2015-12-08 12:04:01 +01:00
|
|
|
'name': '23VIVI',
|
2015-11-24 18:17:51 +01:00
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2016-02-04 10:54:38 +01:00
|
|
|
{
|
|
|
|
'subdomain': 'polline',
|
|
|
|
'name': 'Polline Art',
|
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2016-02-04 13:44:45 +01:00
|
|
|
{
|
|
|
|
'subdomain': 'artcity',
|
|
|
|
'name': 'Artcity',
|
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2016-02-24 11:16:56 +01:00
|
|
|
{
|
|
|
|
'subdomain': 'demo',
|
|
|
|
'name': 'Demo',
|
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2016-04-06 16:22:03 +02:00
|
|
|
{
|
|
|
|
'subdomain': 'liquidgallery',
|
|
|
|
'name': 'Liquid Gallery',
|
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2015-11-06 12:09:31 +01:00
|
|
|
{
|
|
|
|
'subdomain': 'portfolioreview',
|
|
|
|
'name': 'Portfolio Review',
|
|
|
|
'type': 'prize'
|
2016-10-14 11:51:20 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'subdomain': 'bokk',
|
|
|
|
'name': 'bokk Creative Commons France',
|
|
|
|
'type': 'wallet'
|
|
|
|
},
|
2015-07-14 16:53:27 +02:00
|
|
|
],
|
2015-07-27 18:06:02 +02:00
|
|
|
'defaultDomain': {
|
2018-05-23 16:29:15 +02:00
|
|
|
'type': 'default'
|
2015-07-27 18:06:02 +02:00
|
|
|
},
|
2015-07-14 16:53:27 +02:00
|
|
|
|
2015-09-14 11:36:24 +02:00
|
|
|
// These are all possible types that are currently supported in HTML5 for the input element
|
|
|
|
// Source: http://www.w3schools.com/tags/att_input_type.asp
|
2015-09-14 10:49:45 +02:00
|
|
|
'possibleInputTypes': ['button', 'checkbox', 'color', 'date', 'datetime', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week'],
|
|
|
|
|
2015-11-13 13:33:27 +01:00
|
|
|
'copyrightAssociations': ['ARS', 'DACS', 'Bildkunst', 'Pictoright', 'SODRAC', 'Copyright Agency/Viscopy', 'SAVA',
|
|
|
|
'Bildrecht GmbH', 'SABAM', 'AUTVIS', 'CREAIMAGEN', 'SONECA', 'Copydan', 'EAU', 'Kuvasto', 'GCA', 'HUNGART',
|
|
|
|
'IVARO', 'SIAE', 'JASPAR-SPDA', 'AKKA/LAA', 'LATGA-A', 'SOMAAP', 'ARTEGESTION', 'CARIER', 'BONO', 'APSAV',
|
|
|
|
'SPA', 'GESTOR', 'VISaRTA', 'RAO', 'LITA', 'DALRO', 'VeGaP', 'BUS', 'ProLitteris', 'AGADU', 'AUTORARTE', 'BUBEDRA', 'BBDA', 'BCDA', 'BURIDA', 'ADAVIS', 'BSDA'],
|
2015-11-17 15:46:46 +01:00
|
|
|
|
2016-01-08 11:44:25 +01:00
|
|
|
'locationThreshold': 10,
|
|
|
|
|
2015-11-13 13:33:27 +01:00
|
|
|
'searchThreshold': 500,
|
|
|
|
|
2016-03-09 16:54:11 +01:00
|
|
|
'encodeUpdateThreshold': 5000,
|
|
|
|
|
2015-11-18 17:55:27 +01:00
|
|
|
'supportedThumbnailFileFormats': [
|
|
|
|
'x-sgi-movie', 'x-msvideo', 'quicktime', 'mpeg', 'png', 'jpeg', 'gif',
|
|
|
|
'ogg', 'oga', 'ogv', 'ogx', 'wmv', 'wma', 'flv', '3gpp2', '3p2', '3pg',
|
|
|
|
'png', 'jpg', 'jpeg', 'gif', '264', '3g', '3g2', '3gp', '3gp2', '3gpp',
|
|
|
|
'mp4', 'm4a', 'm4v', 'f4v', 'f4a', 'm4b', 'm4r', 'f4b', 'mov', 'quicktime',
|
|
|
|
'webm', 'x264', 'mpeg', 'mpeg4', 'mpg4', 'bmp', 'eps', 'jp2', 'j2k', 'jpm',
|
2016-03-09 16:54:11 +01:00
|
|
|
'mj2', 'tif', 'tiff'
|
2015-11-18 17:55:27 +01:00
|
|
|
],
|
2015-11-17 15:46:46 +01:00
|
|
|
|
2015-07-14 16:53:27 +02:00
|
|
|
// in case of whitelabel customization, we store stuff here
|
2015-07-17 15:41:09 +02:00
|
|
|
'whitelabel': {},
|
2015-11-13 13:33:27 +01:00
|
|
|
|
|
|
|
// 3rd party integrations
|
|
|
|
'jquery': {
|
|
|
|
'sdkUrl': 'https://code.jquery.com/jquery-2.1.4.min.js'
|
|
|
|
},
|
|
|
|
'shmui': {
|
|
|
|
'sdkUrl': baseUrl + 'static/thirdparty/shmui/jquery.shmui.js',
|
|
|
|
'cssUrl': baseUrl + 'static/thirdparty/shmui/shmui.css'
|
|
|
|
},
|
|
|
|
'audiojs': {
|
|
|
|
'sdkUrl': baseUrl + 'static/thirdparty/audiojs/audiojs/audio.min.js'
|
|
|
|
},
|
|
|
|
'videojs': {
|
|
|
|
'sdkUrl': '//vjs.zencdn.net/4.12/video.js',
|
|
|
|
'cssUrl': '//vjs.zencdn.net/4.12/video-js.css'
|
|
|
|
},
|
2016-02-17 11:38:01 +01:00
|
|
|
'cloudfrontDomain': 'd1qjsxua1o9x03.cloudfront.net',
|
2015-12-02 14:31:42 +01:00
|
|
|
'errorMessagesToIgnore': [
|
|
|
|
'Authentication credentials were not provided.',
|
|
|
|
'Informations d\'authentification non fournies.'
|
|
|
|
]
|
2015-05-19 13:45:19 +02:00
|
|
|
};
|
|
|
|
|
2015-07-14 20:06:13 +02:00
|
|
|
export default constants;
|