#134 - fill users data for resume #144

Merged
Baakoma merged 34 commits from #134-fill-users-data-for-resume into main 2022-05-18 08:50:41 +02:00
3 changed files with 18 additions and 3 deletions
Showing only changes of commit 135e7b097e - Show all commits

View File

@@ -29,7 +29,8 @@
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
.flatpickr-day.endRange.nextMonthDay,
.flatpickr-monthSelect-month.selected {
background: #527ABA;
-webkit-box-shadow: none;
box-shadow: none;

View File

@@ -583,6 +583,7 @@ function addProject() {
tasks: null,
startDate: null,
endDate: null,
current: false,
})
}
@@ -600,6 +601,7 @@ function addEducation() {
fieldOfStudy: null,
startDate: null,
endDate: null,
current: false,
})
}
@@ -621,7 +623,11 @@ function submitResume() {
.transform((data) => ({
user: data.user?.id,
name: data.name,
education: data.educations,
education: data.educations.map(education => ({
...education,
current: !!education.current,
endDate: education.current ? null: education.endDate,
})),
languages: data.languages.map(language => ({
name: language.name,
level: language.level.level,
@@ -630,7 +636,11 @@ function submitResume() {
name: technology.name,
level: technology.level.level,
})),
projects: data.projects,
projects: data.projects.map(project => ({
...project,
current: !!project.current,
endDate: project.current ? null : project.endDate,
})),
}))
.post('/resumes')
}

View File

@@ -590,6 +590,7 @@ function addProject() {
tasks: null,
startDate: null,
endDate: null,
current: false,
})
}
@@ -607,6 +608,7 @@ function addEducation() {
fieldOfStudy: null,
startDate: null,
endDate: null,
current: false,
})
}
@@ -630,6 +632,7 @@ function submitResume() {
name: data.name,
education: data.educations.map(education => ({
...education,
current: !!education.current,
endDate: education.current ? null: education.endDate,
})),
languages: data.languages.map(language => ({
@@ -642,6 +645,7 @@ function submitResume() {
})),
projects: data.projects.map(project => ({
...project,
current: !!project.current,
endDate: project.current ? null : project.endDate,
})),
}))