mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Update Project schema for overleaf imports
This commit is contained in:
parent
d184c9c555
commit
b4254f06ef
4 changed files with 13 additions and 4 deletions
|
@ -320,7 +320,7 @@ module.exports = (grunt) ->
|
|||
ext: '.js'
|
||||
}
|
||||
config.mochaTest["module_#{module}_unit"] = {
|
||||
src: ["modules/#{module}/test/unit/js/*.js"]
|
||||
src: ["modules/#{module}/test/unit/js/**/*.js"]
|
||||
options:
|
||||
reporter: grunt.option('reporter') or 'spec'
|
||||
grep: grunt.option("grep")
|
||||
|
|
|
@ -17,15 +17,15 @@ DeletedDocSchema = new Schema
|
|||
ProjectSchema = new Schema
|
||||
name : {type:String, default:'new project'}
|
||||
lastUpdated : {type:Date, default: () -> new Date()}
|
||||
lastOpened : {type:Date}
|
||||
active : { type: Boolean, default: true }
|
||||
lastOpened : {type:Date}
|
||||
active : { type: Boolean, default: true }
|
||||
owner_ref : {type:ObjectId, ref:'User'}
|
||||
collaberator_refs : [ type:ObjectId, ref:'User' ]
|
||||
readOnly_refs : [ type:ObjectId, ref:'User' ]
|
||||
rootDoc_id : {type: ObjectId}
|
||||
rootFolder : [FolderSchema]
|
||||
publicAccesLevel : {type: String, default: 'private'}
|
||||
compiler : {type:String, default:'pdflatex'}
|
||||
compiler : {type:String, default:'pdflatex'}
|
||||
spellCheckLanguage : {type:String, default:'en'}
|
||||
deletedByExternalDataSource : {type: Boolean, default: false}
|
||||
description : {type:String, default:''}
|
||||
|
@ -33,6 +33,9 @@ ProjectSchema = new Schema
|
|||
deletedDocs : [DeletedDocSchema]
|
||||
imageName : { type: String }
|
||||
track_changes : { type: Object }
|
||||
overleaf :
|
||||
id : { type: Number }
|
||||
imported_at_version : { type: Number }
|
||||
|
||||
ProjectSchema.statics.getProject = (project_or_id, fields, callback)->
|
||||
if project_or_id._id?
|
||||
|
|
5
services/web/npm-shrinkwrap.json
generated
5
services/web/npm-shrinkwrap.json
generated
|
@ -3075,6 +3075,11 @@
|
|||
"from": "passport-local@>=1.0.0 <2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz"
|
||||
},
|
||||
"passport-oauth2-refresh": {
|
||||
"version": "1.0.0",
|
||||
"from": "passport-oauth2-refresh@latest",
|
||||
"resolved": "https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-1.0.0.tgz"
|
||||
},
|
||||
"passport-oauth2": {
|
||||
"version": "1.4.0",
|
||||
"from": "passport-oauth2@latest",
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
"passport-ldapauth": "^0.6.0",
|
||||
"passport-local": "^1.0.0",
|
||||
"passport-oauth2": "^1.4.0",
|
||||
"passport-oauth2-refresh": "^1.0.0",
|
||||
"passport-saml": "^0.15.0",
|
||||
"pug": "^2.0.0-beta6",
|
||||
"redis": "0.10.1",
|
||||
|
|
Loading…
Reference in a new issue