2018-07-04 16:59:19 +00:00
|
|
|
v1Api =
|
|
|
|
url: "http://#{process.env['V1_HOST'] or 'localhost'}:5000"
|
|
|
|
|
2018-05-16 15:31:28 +00:00
|
|
|
module.exports =
|
|
|
|
enableSubscriptions: true
|
|
|
|
|
|
|
|
features: features =
|
|
|
|
v1_free:
|
|
|
|
collaborators: 1
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
github: true
|
|
|
|
templates: false
|
|
|
|
references: false
|
|
|
|
referencesSearch: false
|
|
|
|
mendeley: true
|
|
|
|
compileTimeout: 60
|
|
|
|
compileGroup: "standard"
|
|
|
|
trackChanges: false
|
|
|
|
personal:
|
|
|
|
collaborators: 1
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
github: false
|
|
|
|
templates: false
|
|
|
|
references: false
|
|
|
|
referencesSearch: false
|
|
|
|
mendeley: false
|
|
|
|
compileTimeout: 60
|
|
|
|
compileGroup: "standard"
|
|
|
|
trackChanges: false
|
|
|
|
collaborator:
|
|
|
|
collaborators: 10
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
|
|
|
github: true
|
|
|
|
templates: true
|
|
|
|
references: true
|
|
|
|
referencesSearch: true
|
|
|
|
mendeley: true
|
|
|
|
compileTimeout: 180
|
|
|
|
compileGroup: "priority"
|
|
|
|
trackChanges: true
|
|
|
|
professional:
|
|
|
|
collaborators: -1
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
|
|
|
github: true
|
|
|
|
templates: true
|
|
|
|
references: true
|
|
|
|
referencesSearch: true
|
|
|
|
mendeley: true
|
|
|
|
compileTimeout: 180
|
|
|
|
compileGroup: "priority"
|
|
|
|
trackChanges: true
|
|
|
|
|
|
|
|
defaultFeatures: features.personal
|
|
|
|
defaultPlanCode: 'personal'
|
2018-07-10 09:42:17 +00:00
|
|
|
institutionPlanCode: 'professional'
|
2018-05-16 15:31:28 +00:00
|
|
|
|
|
|
|
plans: plans = [{
|
|
|
|
planCode: "v1_free"
|
|
|
|
name: "V1 Free"
|
|
|
|
price: 0
|
|
|
|
features: features.v1_free
|
|
|
|
},{
|
|
|
|
planCode: "personal"
|
|
|
|
name: "Personal"
|
|
|
|
price: 0
|
|
|
|
features: features.personal
|
|
|
|
},{
|
|
|
|
planCode: "collaborator"
|
|
|
|
name: "Collaborator"
|
|
|
|
price: 1500
|
|
|
|
features: features.collaborator
|
|
|
|
},{
|
|
|
|
planCode: "professional"
|
|
|
|
name: "Professional"
|
|
|
|
price: 3000
|
|
|
|
features: features.professional
|
|
|
|
}]
|
|
|
|
|
|
|
|
bonus_features:
|
|
|
|
1:
|
|
|
|
collaborators: 2
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
3:
|
|
|
|
collaborators: 4
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
6:
|
|
|
|
collaborators: 4
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
|
|
|
9:
|
|
|
|
collaborators: -1
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
2018-07-04 16:59:19 +00:00
|
|
|
|
|
|
|
proxyUrls:
|
|
|
|
'/institutions/list': { baseUrl: v1Api.url, path: '/universities/list' }
|
|
|
|
'/institutions/list/:id':
|
|
|
|
baseUrl: v1Api.url
|
|
|
|
path: (params) -> "/universities/list/#{params.id}"
|
|
|
|
'/institutions/domains': { baseUrl: v1Api.url, path: '/university/domains' }
|
|
|
|
'/proxy/missing/baseUrl': path: '/foo/bar'
|