mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-03 09:23:41 -04:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
d640dac33a
2 changed files with 5 additions and 9 deletions
|
@ -107,7 +107,7 @@ UserSchema = c.object {},
|
||||||
name: {type: 'string', maxLength: 30, title: 'Link Name', description: 'What are you linking to? Ex: "Personal Website", "GitHub"', format: 'link-name'}
|
name: {type: 'string', maxLength: 30, title: 'Link Name', description: 'What are you linking to? Ex: "Personal Website", "GitHub"', format: 'link-name'}
|
||||||
link: c.url {title: 'Link', description: 'The URL.', default: 'http://example.com'}
|
link: c.url {title: 'Link', description: 'The URL.', default: 'http://example.com'}
|
||||||
photoURL: {type: 'string', format: 'image-file', title: 'Profile Picture', description: 'Upload a 256x256px or larger image if you want to show a different profile picture to employers than your normal avatar.'}
|
photoURL: {type: 'string', format: 'image-file', title: 'Profile Picture', description: 'Upload a 256x256px or larger image if you want to show a different profile picture to employers than your normal avatar.'}
|
||||||
curated: c.object {title: 'Curated', required: ['shortDescription','mainTag','location','education','workHistory','phoneScreenFilter','schoolFilter','locationFilter','roleFilter','seniorityFilter']},
|
curated: c.object {title: 'Curated', required: ['shortDescription', 'mainTag', 'location', 'education', 'workHistory', 'phoneScreenFilter', 'schoolFilter', 'locationFilter', 'roleFilter', 'seniorityFilter']},
|
||||||
shortDescription:
|
shortDescription:
|
||||||
title: 'Short description'
|
title: 'Short description'
|
||||||
description: 'A sentence or two describing the candidate'
|
description: 'A sentence or two describing the candidate'
|
||||||
|
@ -118,17 +118,13 @@ UserSchema = c.object {},
|
||||||
type: 'string'
|
type: 'string'
|
||||||
location:
|
location:
|
||||||
title: 'Location'
|
title: 'Location'
|
||||||
description: "The CURRENT location of the candidate"
|
description: 'The CURRENT location of the candidate'
|
||||||
type: 'string'
|
type: 'string'
|
||||||
education:
|
education:
|
||||||
title: 'Education'
|
title: 'Education'
|
||||||
description: 'The main educational institution of the candidate'
|
description: 'The main educational institution of the candidate'
|
||||||
type: 'string'
|
type: 'string'
|
||||||
workHistory: c.array
|
workHistory: c.array {title: 'Work history', description: 'One or two places the candidate has worked', type: 'array'},
|
||||||
title: 'Work history'
|
|
||||||
description: 'One or two places the candidate has worked'
|
|
||||||
type: 'array'
|
|
||||||
,
|
|
||||||
title: 'Workplace'
|
title: 'Workplace'
|
||||||
type: 'string'
|
type: 'string'
|
||||||
phoneScreenFilter:
|
phoneScreenFilter:
|
||||||
|
|
|
@ -8,7 +8,7 @@ achievements = {}
|
||||||
|
|
||||||
module.exports = AchievablePlugin = (schema, options) ->
|
module.exports = AchievablePlugin = (schema, options) ->
|
||||||
User = require '../users/User' # Avoid mutual inclusion cycles
|
User = require '../users/User' # Avoid mutual inclusion cycles
|
||||||
Achievement = require('../achievements/Achievement')
|
Achievement = require '../achievements/Achievement'
|
||||||
|
|
||||||
checkForAchievement = (doc) ->
|
checkForAchievement = (doc) ->
|
||||||
collectionName = doc.constructor.modelName
|
collectionName = doc.constructor.modelName
|
||||||
|
@ -85,7 +85,7 @@ module.exports = AchievablePlugin = (schema, options) ->
|
||||||
|
|
||||||
module.exports.loadAchievements = ->
|
module.exports.loadAchievements = ->
|
||||||
achievements = {}
|
achievements = {}
|
||||||
Achievement = require('../achievements/Achievement')
|
Achievement = require '../achievements/Achievement'
|
||||||
query = Achievement.find({})
|
query = Achievement.find({})
|
||||||
query.exec (err, docs) ->
|
query.exec (err, docs) ->
|
||||||
_.each docs, (achievement) ->
|
_.each docs, (achievement) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue