Skip to content

Commit

Permalink
add missing projects
Browse files Browse the repository at this point in the history
  • Loading branch information
blopa committed May 9, 2021
1 parent a92e2fc commit 474376b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README_V3.MD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<img src="/screenshots/v3/resume_builder.gif?raw=true" width="890px">

## About
[Resume Builder](https://blopa.github.io/Legacy-Resume-Builder/v3) is a free open-source project that allows anyone to easily maintain and build any kind of resume using Google Spreadsheets. This was develop as a personal project to help a friend who was struggling spending up to an hour to make a custom resumes. **[TRY IT NOW](https://blopa.github.io/Legacy-Resume-Builder/v3).**
[Resume Builder](https://blopa.github.io/Legacy-Resume-Builder/v3/en) is a free open-source project that allows anyone to easily maintain and build any kind of resume using Google Spreadsheets. This was develop as a personal project to help a friend who was struggling spending up to an hour to make a custom resumes. **[TRY IT NOW](https://blopa.github.io/Legacy-Resume-Builder/v3/en).**

For the latest version, access [https://resume-builder.js.org](https://resume-builder.js.org).

Expand Down
19 changes: 6 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unicorn": "^31.0.0",
"eslint-plugin-unicorn": "^32.0.0",
"eslint-plugin-unused-imports": "^1.1.1",
"gatsby-plugin-eslint": "^3.0.0",
"npm-check-updates": "^11.5.10",
Expand Down
24 changes: 23 additions & 1 deletion src/utils/spreadsheet-to-json-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function spreadsheetToJsonResume(jsonSpreadsheet) {
const educationCategory = 'education';
const awardsCategory = 'awards';
const publicationsCategory = 'publications';
const projectsCategory = 'projects';
const certificatesCategory = 'certificates';
const skillsCategory = 'skills';
const languagesCategory = 'languages';
Expand All @@ -36,6 +37,7 @@ export default function spreadsheetToJsonResume(jsonSpreadsheet) {
education: [],
awards: [],
publications: [],
projects: [],
certificates: [],
skills: [],
languages: [],
Expand All @@ -56,6 +58,8 @@ export default function spreadsheetToJsonResume(jsonSpreadsheet) {
const awardsArray = [];
let publications = {};
const publicationsArray = [];
let projects = {};
const projectsArray = [];
let certificates = {};
const certificatesArray = [];
let skills = {};
Expand Down Expand Up @@ -96,7 +100,7 @@ export default function spreadsheetToJsonResume(jsonSpreadsheet) {

profiles[value[typeAttr]] = value[contentAttr];
} else if (category === workCategory) {
if (value[typeAttr] === 'company') {
if (value[typeAttr] === 'name') {
if (isObjectNotEmpty(work)) {
workArray.push({ ...work });
work = {};
Expand Down Expand Up @@ -161,6 +165,19 @@ export default function spreadsheetToJsonResume(jsonSpreadsheet) {
}

publications[value[typeAttr]] = value[contentAttr];
} else if (category === projectsCategory) {
if (value[typeAttr] === 'name') {
if (isObjectNotEmpty(projects)) {
projectsArray.push({ ...projects });
projects = {};
}
}

if (value[typeAttr] === 'highlights' || value[typeAttr] === 'keywords') {
projects[value[typeAttr]] = value[contentAttr].split(',').map((item) => item.trim());
} else {
projects[value[typeAttr]] = value[contentAttr];
}
} else if (category === skillsCategory) {
if (value[typeAttr] === 'name') {
if (isObjectNotEmpty(skills)) {
Expand Down Expand Up @@ -238,6 +255,11 @@ export default function spreadsheetToJsonResume(jsonSpreadsheet) {
}
jsonResume.publications = [...publicationsArray];

if (isObjectNotEmpty(projects)) {
projectsArray.push(projects);
}
jsonResume.projects = [...projectsArray];

if (isObjectNotEmpty(certificates)) {
certificatesArray.push(certificates);
}
Expand Down

0 comments on commit 474376b

Please sign in to comment.