mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge branch 'master' into multicurrency
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = CompileManager =
|
||||
endpointName:"auto_compile"
|
||||
timeInterval:15
|
||||
subjectName:"everyone"
|
||||
throttle: 10
|
||||
throttle: 15
|
||||
rateLimiter.addCount opts, (err, canCompile)->
|
||||
if err?
|
||||
canCompile = false
|
||||
|
||||
@@ -31,6 +31,9 @@ UserSchema = new Schema
|
||||
collaborators: { type:Number, default: Settings.defaultFeatures.collaborators }
|
||||
versioning: { type:Boolean, default: Settings.defaultFeatures.versioning }
|
||||
dropbox: { type:Boolean, default: Settings.defaultFeatures.dropbox }
|
||||
github: { type:Boolean, default: Settings.defaultFeatures.github }
|
||||
compileTimeout: { type:Number, default: Settings.defaultFeatures.compileTimeout }
|
||||
compileGroup: { type:String, default: Settings.defaultFeatures.compileGroup }
|
||||
}
|
||||
featureSwitches : {
|
||||
github: {type: Boolean}
|
||||
|
||||
@@ -40,7 +40,7 @@ aside#left-menu.full-size(
|
||||
ng-click="openCloneProjectModal()"
|
||||
)
|
||||
i.fa.fa-fw.fa-copy
|
||||
| #{translate("copy_project")}
|
||||
| #{translate("copy_project")}
|
||||
li(ng-controller="TemplatesController", ng-show="permissions.admin")
|
||||
a(ng-click="openPublishTemplateModal()")
|
||||
i.fa.fa-external-link.fa-fw
|
||||
|
||||
@@ -131,6 +131,8 @@ module.exports =
|
||||
collaborators: -1
|
||||
dropbox: true
|
||||
versioning: true
|
||||
compileTimeout: 60
|
||||
compileGroup: "standard"
|
||||
|
||||
plans: plans = [{
|
||||
planCode: "personal"
|
||||
|
||||
@@ -201,7 +201,7 @@ describe "CompileManager", ->
|
||||
@ratelimiter.addCount.callsArgWith(1, null, true)
|
||||
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
|
||||
args = @ratelimiter.addCount.args[0][0]
|
||||
args.throttle.should.equal 10
|
||||
args.throttle.should.equal 15
|
||||
args.subjectName.should.equal "everyone"
|
||||
args.timeInterval.should.equal 15
|
||||
args.endpointName.should.equal "auto_compile"
|
||||
|
||||
Reference in New Issue
Block a user