diff --git a/src/routes/private/events/creator/+page.svelte b/src/routes/private/events/creator/+page.svelte deleted file mode 100644 index 4a2818f..0000000 --- a/src/routes/private/events/creator/+page.svelte +++ /dev/null @@ -1,131 +0,0 @@ - - -{#if isAddingParticipants} -
-

- Adding Participants to "{event.name}" -

-
-{/if} - -{#if step == 0} - -{:else if step == 1} - -{:else if step == 2} - -{:else if step == 3} - -{:else if step == 4} - -{/if} - -
- -
-
- - - Step {step + 1} of {steps.length} - - -
-
diff --git a/src/routes/private/events/creator/emailtest/+page.svelte b/src/routes/private/events/creator/emailtest/+page.svelte deleted file mode 100644 index 3d67361..0000000 --- a/src/routes/private/events/creator/emailtest/+page.svelte +++ /dev/null @@ -1,110 +0,0 @@ - - -
-

Test Email Sender

- {#if !authorized} -
-

Google not connected.

- -
-
- - - - - -
- {/if} - {#if error} -
{error}
- {/if} - {#if success} -
{success}
- {/if} -
diff --git a/src/routes/private/events/creator/finish/+page.svelte b/src/routes/private/events/creator/finish/+page.svelte deleted file mode 100644 index 93dc831..0000000 --- a/src/routes/private/events/creator/finish/+page.svelte +++ /dev/null @@ -1,252 +0,0 @@ - - - -
-

- {all_data.isAddingParticipants ? 'Using existing event' : 'Creating event'} -

- {#if event_status === StepStatus.Waiting} - Waiting... - {:else if event_status === StepStatus.Loading} - Creating event... - {:else if event_status === StepStatus.Success} - - {all_data.isAddingParticipants ? 'Using existing event.' : 'Event created successfully.'} - - {:else if event_status === StepStatus.Failure} - Failed to create event. - {/if} -
- - -
-

Creating QR codes for participants

- {#if participants_status === StepStatus.Waiting} - Waiting... - {:else if participants_status === StepStatus.Loading} - Creating entries... - {:else if participants_status === StepStatus.Success} - QR codes created successfully. - {:else if participants_status === StepStatus.Failure} - Failed to create QR codes. - {/if} -
- - -
-

Sending emails

-

After pressing send, you must not exit this window until the mail are all sent!

- {#if email_status === StepStatus.Waiting} -
- Waiting... - -
- {:else} -
    - {#each createdParticipants as p, i} -
  • - {#if mailStatuses[i]?.status === 'success'} - - - - {:else if mailStatuses[i]?.status === 'failure'} - - - - - - {:else} - - - - {/if} - {p.name} {p.surname} - {p.email} -
  • - {/each} -
- {#if email_status === StepStatus.Loading} - Sending emails... - {:else if email_status === StepStatus.Success} - Emails sent successfully. - {:else if email_status === StepStatus.Failure} - Failed to send emails. - {/if} - {/if} -
diff --git a/src/routes/private/events/creator/steps/StepConnectGoogle.svelte b/src/routes/private/events/creator/steps/StepConnectGoogle.svelte deleted file mode 100644 index 4d381c9..0000000 --- a/src/routes/private/events/creator/steps/StepConnectGoogle.svelte +++ /dev/null @@ -1,75 +0,0 @@ - - -
- {#if loading} -
- - - - - Checking Google connection... -
- {:else} - {#if !authorized} -
-

You haven’t connected your Google account yet.

- -
- {:else} -
- - - - Your connection to Google is good, proceed to next step -
- {/if} - {/if} -
diff --git a/src/routes/private/events/creator/steps/StepCraftEmail.svelte b/src/routes/private/events/creator/steps/StepCraftEmail.svelte deleted file mode 100644 index 085baaf..0000000 --- a/src/routes/private/events/creator/steps/StepCraftEmail.svelte +++ /dev/null @@ -1,69 +0,0 @@ - - -{#if showForm} -
-

Craft Email

- - - -
-{:else} - -
-

Email Preview

-
- {email.subject} -
-
- {email.body} -
-
-{/if} \ No newline at end of file diff --git a/src/routes/private/events/creator/steps/StepCreateEvent.svelte b/src/routes/private/events/creator/steps/StepCreateEvent.svelte deleted file mode 100644 index ad0856e..0000000 --- a/src/routes/private/events/creator/steps/StepCreateEvent.svelte +++ /dev/null @@ -1,84 +0,0 @@ - - -{#if showForm} -
-

Create Event

- - - -
-{/if} - -{#if !showForm} - {#if !readonly} - - {/if} -
-

Event Preview

- {#if Object.keys(event).length > 0} -
    -
  • {event.name}
  • -
  • {event.date}
  • -
- {:else} - No event created yet... - {/if} -
-{/if} diff --git a/src/routes/private/events/creator/steps/StepOverview.svelte b/src/routes/private/events/creator/steps/StepOverview.svelte deleted file mode 100644 index 8f23aa9..0000000 --- a/src/routes/private/events/creator/steps/StepOverview.svelte +++ /dev/null @@ -1,77 +0,0 @@ - - - -
-

Event Overview

-
    -
  • Name: {event.name}
  • -
  • Date: {event.date}
  • -
-
- - -
-

Email Preview

-
Subject: {email.subject}
-
- -
{email.body}
-
-
- - -
-

Participants ({participants.length})

-
    - {#each participants.slice(0, 10) as p} -
  • - {p.name} {p.surname} - - {p.email} -
  • - {/each} -
-

Note: Only the first 10 participants are shown.

-
- - - -
- {#if !stepConditions[0]} -

Please provide an event name before proceeding.

- {/if} - {#if !stepConditions[1]} -

Please add at least one participant before proceeding.

- {/if} - {#if !stepConditions[2]} -

Please provide an email subject before proceeding.

- {/if} - {#if !stepConditions[3]} -

Please provide an email body before proceeding.

- {/if} -
diff --git a/src/routes/private/events/creator/steps/StepUploadParticipants.svelte b/src/routes/private/events/creator/steps/StepUploadParticipants.svelte deleted file mode 100644 index d973d4f..0000000 --- a/src/routes/private/events/creator/steps/StepUploadParticipants.svelte +++ /dev/null @@ -1,158 +0,0 @@ - - -{#if showForm} - {#if errors.length > 0} -
-
    - {#each errors as err} -
  • {err}
  • - {/each} -
-
- {/if} -
-

Upload Participants

- - -
-{:else} - -{/if} - -{#if !showForm} -
-
-

Participants ({participants.length})

- {#if participants.length > 0} - {#if participants.some((p) => !p.email_valid)} - Some emails appear invalid - {:else} - All emails appear valid - {/if} - {/if} -
- -
    - {#each participants as p} -
  • - {#if p.email_valid} - - - - {:else} - - - - - - {/if} - {p.name} {p.surname} - - {p.email} -
  • - {/each} -
-
-{/if} diff --git a/src/routes/private/events/event/+page.svelte b/src/routes/private/events/event/+page.svelte deleted file mode 100644 index fbe63d5..0000000 --- a/src/routes/private/events/event/+page.svelte +++ /dev/null @@ -1,162 +0,0 @@ - - -

Event Overview

- -
-
-
- {#if loading} -
-
- {:else} - {event_data?.name} - {event_data?.date} - {/if} -
- {#if loading} -
- {:else if event_data} - - Add Participants - - {/if} -
-
- -
-
- - - - {#if loading} -
- {:else} - Scanned ({scannedCount}) - {/if} -
-
-
- - - - - - {#if loading} -
- {:else} - Not scanned ({notScannedCount}) - {/if} -
-
- -
-

- {#if loading} -
- {:else} - Participants ({participants.length}) - {/if} -

-
    - {#if loading} -
  • -
    -
  • - {:else} - {#each participants as p} -
  • - {#if p.scanned} - - - - {:else} - - - - - - {/if} - {p.name} {p.surname} - - {#if p.scanned_by} -
    - - {new Date(p.scanned_at).toLocaleTimeString([], { - hour: '2-digit', - minute: '2-digit', - hour12: false - })} - - by {p.scanned_by.display_name} -
    - {/if} -
  • - {/each} - {/if} -
-