mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-04 05:17:08 +01:00
Support NEW command.
This commit is contained in:
182
src/core/empty-fresh.json
Normal file
182
src/core/empty-fresh.json
Normal file
@ -0,0 +1,182 @@
|
||||
{
|
||||
|
||||
"name": "",
|
||||
|
||||
"meta": {
|
||||
"format": "FRESH@0.1.0",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
|
||||
"info": {
|
||||
"label": "",
|
||||
"characterClass": "",
|
||||
"brief": "",
|
||||
"image": ""
|
||||
},
|
||||
|
||||
"contact": {
|
||||
"website": "",
|
||||
"phone": "",
|
||||
"email": "",
|
||||
"other": []
|
||||
},
|
||||
|
||||
"location": {
|
||||
"address": "",
|
||||
"city": "",
|
||||
"region": "",
|
||||
"code": "",
|
||||
"country": ""
|
||||
},
|
||||
|
||||
"social": [
|
||||
{
|
||||
"label": "",
|
||||
"network": "",
|
||||
"user": "",
|
||||
"url": ""
|
||||
}
|
||||
],
|
||||
|
||||
"employment": {
|
||||
"summary": "",
|
||||
"history": [
|
||||
{
|
||||
"employer": "",
|
||||
"url": "",
|
||||
"position": "",
|
||||
"summary": "",
|
||||
"start": "",
|
||||
"keywords": [],
|
||||
"highlights": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"education": {
|
||||
"summary": "",
|
||||
"level": "",
|
||||
"degree": "",
|
||||
"history": [
|
||||
{
|
||||
"institution": "",
|
||||
"url": "",
|
||||
"start": "",
|
||||
"end": "",
|
||||
"grade": "",
|
||||
"summary": "",
|
||||
"curriculum": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"service": {
|
||||
"summary": "",
|
||||
"history": [
|
||||
{
|
||||
"flavor": "",
|
||||
"position": "",
|
||||
"organization": "",
|
||||
"url": "",
|
||||
"start": "",
|
||||
"end": "",
|
||||
"summary": "",
|
||||
"highlights": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"skills": {
|
||||
|
||||
"sets": [
|
||||
{
|
||||
"name": "",
|
||||
"skills": []
|
||||
}
|
||||
],
|
||||
|
||||
"list": [ ]
|
||||
},
|
||||
|
||||
"samples": [
|
||||
{
|
||||
"title": "",
|
||||
"summary": "",
|
||||
"url": "",
|
||||
"date": ""
|
||||
}
|
||||
],
|
||||
|
||||
"writing": [
|
||||
{
|
||||
"title": "",
|
||||
"flavor": "",
|
||||
"date": "",
|
||||
"publisher": {
|
||||
"name": "",
|
||||
"url": ""
|
||||
},
|
||||
"url": ""
|
||||
}
|
||||
],
|
||||
|
||||
"reading": [
|
||||
{
|
||||
"title": "",
|
||||
"flavor": "",
|
||||
"url": "",
|
||||
"author": ""
|
||||
}
|
||||
],
|
||||
|
||||
"recognition": [
|
||||
{
|
||||
"flavor": "",
|
||||
"from": "",
|
||||
"title": "",
|
||||
"event": "",
|
||||
"date": "",
|
||||
"summary": ""
|
||||
}
|
||||
],
|
||||
|
||||
"references": [
|
||||
{
|
||||
"name": "",
|
||||
"flavor": "",
|
||||
"private": true,
|
||||
"contact": [
|
||||
{
|
||||
"label": "",
|
||||
"flavor": "",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
"testimonials": [
|
||||
{
|
||||
"name": "",
|
||||
"flavor": "",
|
||||
"quote": ""
|
||||
}
|
||||
],
|
||||
|
||||
"languages": [
|
||||
{
|
||||
"language": "",
|
||||
"level": "",
|
||||
"years": 0
|
||||
}
|
||||
],
|
||||
|
||||
"interests": [
|
||||
{
|
||||
"name": "",
|
||||
"summary": "",
|
||||
"keywords": []
|
||||
}
|
||||
]
|
||||
|
||||
}
|
@ -143,9 +143,10 @@ Definition of the FRESHResume class.
|
||||
delete this.employment;
|
||||
delete this.service;
|
||||
delete this.education;
|
||||
//delete this.awards;
|
||||
delete this.publications;
|
||||
//delete this.interests;
|
||||
delete this.recognition;
|
||||
delete this.reading;
|
||||
delete this.writing;
|
||||
delete this.interests;
|
||||
delete this.skills;
|
||||
delete this.social;
|
||||
};
|
||||
@ -154,7 +155,7 @@ Definition of the FRESHResume class.
|
||||
Get the default (empty) sheet.
|
||||
*/
|
||||
FreshResume.default = function() {
|
||||
return new FreshResume().open( PATH.join( __dirname, 'empty.json'), 'Empty' );
|
||||
return new FreshResume().open( PATH.join( __dirname, 'empty-fresh.json'), 'Empty' );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -243,7 +244,7 @@ Definition of the FRESHResume class.
|
||||
// return( a.safeDate.isBefore(b.safeDate) ) ? 1
|
||||
// : ( a.safeDate.isAfter(b.safeDate) && -1 ) || 0;
|
||||
// });
|
||||
this.publications && this.publications.sort( function(a, b) {
|
||||
this.writing && this.writing.sort( function(a, b) {
|
||||
return( a.safe.date.isBefore(b.safe.date) ) ? 1
|
||||
: ( a.safe.date.isAfter(b.safe.date) && -1 ) || 0;
|
||||
});
|
||||
|
@ -50,7 +50,7 @@ Definition of the JRSResume class.
|
||||
*/
|
||||
JRSResume.prototype.stringify = function() {
|
||||
function replacer( key,value ) { // Exclude these keys from stringification
|
||||
return _.some(['meta', 'warnings', 'computed', 'filt', 'ctrl', 'index',
|
||||
return _.some(['imp', 'warnings', 'computed', 'filt', 'ctrl', 'index',
|
||||
'safeStartDate', 'safeEndDate', 'safeDate', 'safeReleaseDate', 'result',
|
||||
'isModified', 'htmlPreview', 'display_progress_bar'],
|
||||
function( val ) { return key.trim() === val; }
|
||||
@ -126,7 +126,7 @@ Definition of the JRSResume class.
|
||||
Get the default (empty) sheet.
|
||||
*/
|
||||
JRSResume.default = function() {
|
||||
return new JRSResume().open( PATH.join( __dirname, 'empty.json'), 'Empty' );
|
||||
return new JRSResume().open( PATH.join( __dirname, 'empty-jrs.json'), 'Empty' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user