From 7e0f98d2491bf62a90ab8ca80e5b977c24256828 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Fri, 6 Aug 2021 23:20:23 -0400 Subject: [PATCH] First cut of skill edit on profile --- src/JobsJobsJobs/App/src/api/types.ts | 24 ++++++ .../App/src/components/profile/SkillEdit.vue | 45 +++++++++++ .../App/src/views/citizen/EditProfile.vue | 79 ++++++++++++++----- 3 files changed, 129 insertions(+), 19 deletions(-) create mode 100644 src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue diff --git a/src/JobsJobsJobs/App/src/api/types.ts b/src/JobsJobsJobs/App/src/api/types.ts index 65f30b0..4381049 100644 --- a/src/JobsJobsJobs/App/src/api/types.ts +++ b/src/JobsJobsJobs/App/src/api/types.ts @@ -77,6 +77,30 @@ export interface Profile { skills : Skill[] } +/** The data required to update a profile */ +export interface ProfileForm { + /** Whether the citizen to whom this profile belongs is actively seeking employment */ + isSeekingEmployment : boolean + /** Whether this profile should appear in the public search */ + isPublic : boolean + /** The user's real name */ + realName : string + /** The ID of the continent on which the citizen is located */ + continentId : string + /** The area within that continent where the citizen is located */ + region : string + /** If the citizen is available for remote work */ + remoteWork : boolean + /** If the citizen is seeking full-time employment */ + fullTime : boolean + /** The user's professional biography */ + biography : string + /** The user's past experience */ + experience : string | undefined + /** The skills for the user */ + skills : Skill[] +} + /** The data required to show a viewable profile */ export interface ProfileForView { /** The profile itself */ diff --git a/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue b/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue new file mode 100644 index 0000000..75e0123 --- /dev/null +++ b/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue @@ -0,0 +1,45 @@ + + + diff --git a/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue b/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue index e9f136d..e695297 100644 --- a/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue +++ b/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue @@ -8,7 +8,7 @@ - @@ -60,12 +60,10 @@

Skills   - + Add a Skill

- @foreach (var skill in ProfileForm.Skills) - { - [SkillEdit Skill=@skill OnRemove=@RemoveSkill /] - } +

Experience

@@ -111,16 +109,19 @@