diff --git a/frontend/src/lib/@api/admin.ts b/frontend/src/lib/@api/admin.ts index e98595f..385240a 100644 --- a/frontend/src/lib/@api/admin.ts +++ b/frontend/src/lib/@api/admin.ts @@ -16,7 +16,7 @@ export const apiLogin = async (data: AdminLogin): Promise => { // Create new candidate /admin/create // return created candidate's applicationId, personalIdNumber and password -export const createCandidate = async (data: CreateCandidate): Promise => { +export const apiCreateCandidate = async (data: CreateCandidate): Promise => { try { const res = await axios.post(API_URL + '/admin/create', data, { withCredentials: true }); return res.data; @@ -26,7 +26,7 @@ export const createCandidate = async (data: CreateCandidate): Promise => { +export const apiResetCandidatePassword = async (id: number): Promise => { try { const res = await axios.post(API_URL + '/admin/candidate/' + id + '/reset_password', {}, diff --git a/frontend/src/lib/components/dashboard/CandidateDetails.svelte b/frontend/src/lib/components/dashboard/CandidateDetails.svelte new file mode 100644 index 0000000..2e6a589 --- /dev/null +++ b/frontend/src/lib/components/dashboard/CandidateDetails.svelte @@ -0,0 +1,44 @@ + + +
+
+
  • + + + + + + + + + + + + + + +
  • +
    +
    +
    + +
    +
    +
    + + diff --git a/frontend/src/lib/components/dashboard/ListElement.svelte b/frontend/src/lib/components/dashboard/ListElement.svelte new file mode 100644 index 0000000..62637d3 --- /dev/null +++ b/frontend/src/lib/components/dashboard/ListElement.svelte @@ -0,0 +1,10 @@ + + + +
    + {label}: + {content} +
    \ No newline at end of file diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte index fafd0e8..b7c7eaf 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte @@ -1,14 +1,15 @@