From 1312c390b0451d184a9a85608a7d9bded33572c5 Mon Sep 17 00:00:00 2001 From: EETagent Date: Tue, 3 Jan 2023 14:46:06 +0100 Subject: [PATCH 1/8] fix: remove homepage --- frontend/src/routes/+page.svelte | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 frontend/src/routes/+page.svelte diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte deleted file mode 100644 index 65e4bbb..0000000 --- a/frontend/src/routes/+page.svelte +++ /dev/null @@ -1,2 +0,0 @@ -

Welcome to SvelteKit

-

Visit kit.svelte.dev to read the documentation

From b7079812a9a53c95204306d8f6b8ebcdedca72c6 Mon Sep 17 00:00:00 2001 From: EETagent Date: Tue, 3 Jan 2023 14:46:38 +0100 Subject: [PATCH 2/8] fix: expose port 8000 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index a2c4656..3629242 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,5 @@ COPY --from=builder /portfolio/target/release/portfolio /usr/local/bin/portfolio VOLUME ["/portfolio"] WORKDIR /portfolio +EXPOSE 8000 ENTRYPOINT ["portfolio"] From 56f53983459b4cd7ec27662b3844c5916a1e454d Mon Sep 17 00:00:00 2001 From: EETagent Date: Tue, 3 Jan 2023 14:56:09 +0100 Subject: [PATCH 3/8] fix: better input width --- frontend/src/routes/(admin)/admin/auth/login/+page.svelte | 4 ++-- frontend/src/routes/(candidate)/auth/login/+page.svelte | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/routes/(admin)/admin/auth/login/+page.svelte b/frontend/src/routes/(admin)/admin/auth/login/+page.svelte index a2140cc..bd30265 100644 --- a/frontend/src/routes/(admin)/admin/auth/login/+page.svelte +++ b/frontend/src/routes/(admin)/admin/auth/login/+page.svelte @@ -34,7 +34,7 @@

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce suscipit libero eget elit.

-
+
@@ -42,7 +42,7 @@
-
+
diff --git a/frontend/src/routes/(candidate)/auth/login/+page.svelte b/frontend/src/routes/(candidate)/auth/login/+page.svelte index adef62a..cff8cc5 100644 --- a/frontend/src/routes/(candidate)/auth/login/+page.svelte +++ b/frontend/src/routes/(candidate)/auth/login/+page.svelte @@ -21,12 +21,13 @@

Přihlášení

- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce suscipit libero eget elit. + Evidenční číslo je jedinečné číslo přidělené uchazeči, které slouží k jeho identifikaci
a + přihlášení se do systému.

-
+
-
+
From bd075c8d5fadfce6f02158a41d3dfad36d211760 Mon Sep 17 00:00:00 2001 From: EETagent Date: Tue, 3 Jan 2023 14:56:18 +0100 Subject: [PATCH 4/8] fix: full page on mobile --- frontend/src/lib/components/layout/SplitLayout.svelte | 3 +-- .../(candidate)/auth/login/[code=application]/+page.svelte | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/layout/SplitLayout.svelte b/frontend/src/lib/components/layout/SplitLayout.svelte index 8251601..d40970f 100644 --- a/frontend/src/lib/components/layout/SplitLayout.svelte +++ b/frontend/src/lib/components/layout/SplitLayout.svelte @@ -49,8 +49,7 @@ } .view { @apply z-10 overflow-scroll; - @apply rounded-3xl md:rounded-none; - @apply absolute top-0 right-0 bottom-0 left-0 m-auto h-[90vh] w-[90vw] md:top-auto md:bottom-auto md:left-auto md:m-0; + @apply absolute top-0 right-0 bottom-0 left-0 m-auto md:top-auto md:bottom-auto md:left-auto md:m-0; @apply md:h-screen md:w-[50vw]; @apply md:my-auto; @apply bg-white; diff --git a/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte b/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte index c77aa78..cbaa92a 100644 --- a/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte +++ b/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte @@ -123,8 +123,8 @@ .modal { @apply flex flex-col items-center justify-center; @apply mx-auto my-auto; - @apply h-[90vh] w-[90vw] md:h-4/5 md:w-4/5; - @apply rounded-3xl; + @apply h-full w-full md:h-4/5 md:w-4/5; + @apply md:rounded-3xl; @apply bg-white; } input { From 095f354fe1031b5b9733ac05f8423a2fc4e20292 Mon Sep 17 00:00:00 2001 From: EETagent Date: Tue, 3 Jan 2023 14:58:24 +0100 Subject: [PATCH 5/8] fix: reset error --- .../src/lib/components/admin/modal/CreateCandidateModal.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/components/admin/modal/CreateCandidateModal.svelte b/frontend/src/lib/components/admin/modal/CreateCandidateModal.svelte index 6a71d92..5b7ebe8 100644 --- a/frontend/src/lib/components/admin/modal/CreateCandidateModal.svelte +++ b/frontend/src/lib/components/admin/modal/CreateCandidateModal.svelte @@ -26,6 +26,7 @@ try { login = await apiCreateCandidate(data); dispatch('created'); + error = ''; } catch (e: unknown) { console.error(e); error = (e as ApiError).msg; From e512a6c2efcd273bd89a97eb9f096c26452779cf Mon Sep 17 00:00:00 2001 From: EETagent Date: Tue, 3 Jan 2023 15:02:58 +0100 Subject: [PATCH 6/8] fix: correct width for register form --- .../routes/(candidate)/(authenticated)/register/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte index 7ea2f83..a6bdfb0 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte @@ -594,7 +594,7 @@ diff --git a/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte b/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte index cbaa92a..af5e936 100644 --- a/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte +++ b/frontend/src/routes/(candidate)/auth/login/[code=application]/+page.svelte @@ -130,7 +130,7 @@ input { @apply text-sspsBlue text-center font-semibold; @apply transition-colors duration-300; - @apply focus:border-sspsBlue hover:border-sspsBlue rounded-xl border border-2 bg-[#f8fafb] p-3 md:caret-transparent shadow-lg outline-none; + @apply focus:border-sspsBlue hover:border-sspsBlue rounded-xl border border-2 bg-[#f8fafb] p-3 shadow-lg outline-none md:caret-transparent; } .separater { @apply bg-sspsBlue mr-2 hidden h-2 w-8 md:block;