1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-04 05:17:08 +01:00

Finish Commander.js integration.

This commit is contained in:
hacksalot
2016-01-03 03:18:56 -05:00
parent 655ecebaa5
commit 8d7cf32988
5 changed files with 56 additions and 49 deletions

View File

@ -208,6 +208,14 @@ Definition of the FRESHResume class.
return this.parseJSON( JSON.parse( stringData ), opts );
};
/**
Return internal metadata. Create if it doesn't exist.
*/
FreshResume.prototype.imp = function() {
this.imp = (this.imp || { });
return this.imp;
};
/**
Return a unique list of all keywords across all skills.
*/

View File

@ -136,6 +136,16 @@ Definition of the JRSResume class.
return flatSkills;
};
/**
Return internal metadata. Create if it doesn't exist.
JSON Resume v0.0.0 doesn't allow additional properties at the root level,
so tuck this into the .basic sub-object.
*/
JRSResume.prototype.imp = function() {
this.basics = this.basics || { imp: { } };
return this.basics;
};
/**
Reset the sheet to an empty state.
*/

View File

@ -75,6 +75,7 @@ Definition of the ResumeFactory class.
if( objectify ) {
var ResumeClass = require('../core/' + (toFormat || orgFormat) + '-resume');
rez = new ResumeClass().parseJSON( json );
rez.imp().file = src;
}
return {