mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-18 18:22:08 +00: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'
|
ext: '.js'
|
||||||
}
|
}
|
||||||
config.mochaTest["module_#{module}_unit"] = {
|
config.mochaTest["module_#{module}_unit"] = {
|
||||||
src: ["modules/#{module}/test/unit/js/*.js"]
|
src: ["modules/#{module}/test/unit/js/**/*.js"]
|
||||||
options:
|
options:
|
||||||
reporter: grunt.option('reporter') or 'spec'
|
reporter: grunt.option('reporter') or 'spec'
|
||||||
grep: grunt.option("grep")
|
grep: grunt.option("grep")
|
||||||
|
|
|
@ -17,15 +17,15 @@ DeletedDocSchema = new Schema
|
||||||
ProjectSchema = new Schema
|
ProjectSchema = new Schema
|
||||||
name : {type:String, default:'new project'}
|
name : {type:String, default:'new project'}
|
||||||
lastUpdated : {type:Date, default: () -> new Date()}
|
lastUpdated : {type:Date, default: () -> new Date()}
|
||||||
lastOpened : {type:Date}
|
lastOpened : {type:Date}
|
||||||
active : { type: Boolean, default: true }
|
active : { type: Boolean, default: true }
|
||||||
owner_ref : {type:ObjectId, ref:'User'}
|
owner_ref : {type:ObjectId, ref:'User'}
|
||||||
collaberator_refs : [ type:ObjectId, ref:'User' ]
|
collaberator_refs : [ type:ObjectId, ref:'User' ]
|
||||||
readOnly_refs : [ type:ObjectId, ref:'User' ]
|
readOnly_refs : [ type:ObjectId, ref:'User' ]
|
||||||
rootDoc_id : {type: ObjectId}
|
rootDoc_id : {type: ObjectId}
|
||||||
rootFolder : [FolderSchema]
|
rootFolder : [FolderSchema]
|
||||||
publicAccesLevel : {type: String, default: 'private'}
|
publicAccesLevel : {type: String, default: 'private'}
|
||||||
compiler : {type:String, default:'pdflatex'}
|
compiler : {type:String, default:'pdflatex'}
|
||||||
spellCheckLanguage : {type:String, default:'en'}
|
spellCheckLanguage : {type:String, default:'en'}
|
||||||
deletedByExternalDataSource : {type: Boolean, default: false}
|
deletedByExternalDataSource : {type: Boolean, default: false}
|
||||||
description : {type:String, default:''}
|
description : {type:String, default:''}
|
||||||
|
@ -33,6 +33,9 @@ ProjectSchema = new Schema
|
||||||
deletedDocs : [DeletedDocSchema]
|
deletedDocs : [DeletedDocSchema]
|
||||||
imageName : { type: String }
|
imageName : { type: String }
|
||||||
track_changes : { type: Object }
|
track_changes : { type: Object }
|
||||||
|
overleaf :
|
||||||
|
id : { type: Number }
|
||||||
|
imported_at_version : { type: Number }
|
||||||
|
|
||||||
ProjectSchema.statics.getProject = (project_or_id, fields, callback)->
|
ProjectSchema.statics.getProject = (project_or_id, fields, callback)->
|
||||||
if project_or_id._id?
|
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",
|
"from": "passport-local@>=1.0.0 <2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz"
|
"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": {
|
"passport-oauth2": {
|
||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"from": "passport-oauth2@latest",
|
"from": "passport-oauth2@latest",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"passport-ldapauth": "^0.6.0",
|
"passport-ldapauth": "^0.6.0",
|
||||||
"passport-local": "^1.0.0",
|
"passport-local": "^1.0.0",
|
||||||
"passport-oauth2": "^1.4.0",
|
"passport-oauth2": "^1.4.0",
|
||||||
|
"passport-oauth2-refresh": "^1.0.0",
|
||||||
"passport-saml": "^0.15.0",
|
"passport-saml": "^0.15.0",
|
||||||
"pug": "^2.0.0-beta6",
|
"pug": "^2.0.0-beta6",
|
||||||
"redis": "0.10.1",
|
"redis": "0.10.1",
|
||||||
|
|
Loading…
Reference in a new issue