From 5740b354f91184e7be169f0821d56483d5a795bf Mon Sep 17 00:00:00 2001 From: "Johannes D. Vos" Date: Fri, 19 Jun 2026 14:49:22 +0200 Subject: [PATCH 1/9] fix(main): remove top-level await and fix bootstrap flow --- src/main.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main.js b/src/main.js index e9ff0bc..aba2bf3 100644 --- a/src/main.js +++ b/src/main.js @@ -16,15 +16,20 @@ limitations under the License. import { createApp } from 'vue' import App from './App.vue' -import { i18n, loadLanguage } from './i18n'; -import getCurrentLanguage from './utils/currentLanguage'; +import { i18n, loadLanguage } from './i18n' +import getCurrentLanguage from './utils/currentLanguage' import router from './router' + import './styles/common.css' import './styles/variables/colors.css' -await loadLanguage(getCurrentLanguage()); +async function bootstrap() { + await loadLanguage(getCurrentLanguage()) -createApp(App) - .use(router) - .use(i18n) - .mount('#app') \ No newline at end of file + createApp(App) + .use(router) + .use(i18n) + .mount('#app') +} + +bootstrap() \ No newline at end of file From 8a0d4ac949a2b587d000a003ab3f1654e987feb6 Mon Sep 17 00:00:00 2001 From: "Johannes D. Vos" Date: Fri, 19 Jun 2026 14:55:51 +0200 Subject: [PATCH 2/9] fix(main): use async IIFE instead of top-level await --- src/main.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main.js b/src/main.js index aba2bf3..e29e5b1 100644 --- a/src/main.js +++ b/src/main.js @@ -23,13 +23,11 @@ import router from './router' import './styles/common.css' import './styles/variables/colors.css' -async function bootstrap() { - await loadLanguage(getCurrentLanguage()) +(async () => { + await loadLanguage(getCurrentLanguage()) - createApp(App) - .use(router) - .use(i18n) - .mount('#app') -} - -bootstrap() \ No newline at end of file + createApp(App) + .use(router) + .use(i18n) + .mount('#app') +})() \ No newline at end of file From 8d690ac875c7ec3d366ed4ac725aaf0adc28e9e4 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Wed, 1 Jul 2026 13:36:54 +0200 Subject: [PATCH 3/9] feat(i18n): swap Italian and Portuguese in the available languages array This increases the accessibility of the languages selection. --- src/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n.js b/src/i18n.js index a57766b..d764d8b 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -28,8 +28,8 @@ export const SUPPORTED_LANGUAGES = [ 'de', 'fr', 'es', - 'it', - 'pt' + 'pt', + 'it' ]; export const i18n = createI18n({ From e00d3a1d413b26787e09dacb3f6c1e462c2e9a05 Mon Sep 17 00:00:00 2001 From: Jakob Gregory <7+jakob.gregory@noreply.localhost> Date: Mon, 20 Jul 2026 18:51:23 +0200 Subject: [PATCH 4/9] Remove old and unused stylesheet --- src/styles/main.css | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/styles/main.css diff --git a/src/styles/main.css b/src/styles/main.css deleted file mode 100644 index 94b1b25..0000000 --- a/src/styles/main.css +++ /dev/null @@ -1,26 +0,0 @@ -/* -Copyright 2026 Seekra - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -form { - display: flex; - justify-content: center; - margin-top: 60px; -} - -footer{ - text-align: center; - margin-top: 20px; -} \ No newline at end of file From 2c10be6b99fcde5364cbfb5f32f7b02650342e43 Mon Sep 17 00:00:00 2001 From: Jakob Gregory <7+jakob.gregory@noreply.localhost> Date: Mon, 20 Jul 2026 19:17:23 +0200 Subject: [PATCH 5/9] feat(global): set theme color to primary color --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 1cebe27..2e26983 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,7 @@ limitations under the License. + Seekra From 8faace292ea7739081e788d3ff27317c245b7f99 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Tue, 21 Jul 2026 18:56:58 +0200 Subject: [PATCH 6/9] chore: add commit template --- .gitmessage | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .gitmessage diff --git a/.gitmessage b/.gitmessage new file mode 100644 index 0000000..fb6c9dc --- /dev/null +++ b/.gitmessage @@ -0,0 +1,8 @@ + + +# ------------------------------------------------ SUBJECT AREA +# ---------------------------------------------------------------------- DETAIL AREA + +# Please enter a subject that is not longer than 50 character. +# If you enter a detailed description, each line should not be longer +# than 72 characters. Break the line as soon as you reach this limit. From 80dec73fb0ef07db62f56f6f51937665e34e65a0 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Tue, 21 Jul 2026 18:59:08 +0200 Subject: [PATCH 7/9] chore: add setup scripts --- .gitmessage | 2 +- README.md | 6 +++++- scripts/setup.ps1 | 3 +++ scripts/setup.sh | 3 +++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 scripts/setup.ps1 create mode 100755 scripts/setup.sh diff --git a/.gitmessage b/.gitmessage index fb6c9dc..95629f4 100644 --- a/.gitmessage +++ b/.gitmessage @@ -3,6 +3,6 @@ # ------------------------------------------------ SUBJECT AREA # ---------------------------------------------------------------------- DETAIL AREA -# Please enter a subject that is not longer than 50 character. +# Please enter a subject that is not longer than 50 characters. # If you enter a detailed description, each line should not be longer # than 72 characters. Break the line as soon as you reach this limit. diff --git a/README.md b/README.md index fe56826..31510de 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # frontend -The frontend of the search engine Seekra. \ No newline at end of file +The frontend of the search engine Seekra. + +## Setup + +Please execute the setup script in `scripts/` for your platform when cloning the repository. \ No newline at end of file diff --git a/scripts/setup.ps1 b/scripts/setup.ps1 new file mode 100755 index 0000000..e45b876 --- /dev/null +++ b/scripts/setup.ps1 @@ -0,0 +1,3 @@ +#!/usr/bin/env pwsh + +git config --local commit.template .gitmessage \ No newline at end of file diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100755 index 0000000..edb81af --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +git config --local commit.template .gitmessage \ No newline at end of file From d4363f75151b7749e1f4223028697b5baa4aa005 Mon Sep 17 00:00:00 2001 From: Jakob Gregory <7+jakob.gregory@noreply.localhost> Date: Tue, 21 Jul 2026 19:08:26 +0200 Subject: [PATCH 8/9] fix(i18n): load default language on startup --- src/main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index e29e5b1..4caed66 100644 --- a/src/main.js +++ b/src/main.js @@ -16,7 +16,7 @@ limitations under the License. import { createApp } from 'vue' import App from './App.vue' -import { i18n, loadLanguage } from './i18n' +import { i18n, loadLanguage, fallbackLocale } from './i18n' import getCurrentLanguage from './utils/currentLanguage' import router from './router' @@ -24,7 +24,13 @@ import './styles/common.css' import './styles/variables/colors.css' (async () => { - await loadLanguage(getCurrentLanguage()) + await loadLanguage(fallbackLocale) + + const currentLanguage = getCurrentLanguage() + + if (currentLanguage !== fallbackLocale) { + await loadLanguage(currentLanguage) + } createApp(App) .use(router) From f343d994068dd05d47bb38f4c57b8cba7e9ce2a2 Mon Sep 17 00:00:00 2001 From: Jakob Gregory <7+jakob.gregory@noreply.localhost> Date: Tue, 21 Jul 2026 19:19:31 +0200 Subject: [PATCH 9/9] fix(i18n): always load fallback language on startup --- src/main.js | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/src/main.js b/src/main.js index 4caed66..d34ab5a 100644 --- a/src/main.js +++ b/src/main.js @@ -14,26 +14,21 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { createApp } from 'vue' -import App from './App.vue' -import { i18n, loadLanguage, fallbackLocale } from './i18n' -import getCurrentLanguage from './utils/currentLanguage' -import router from './router' +import { createApp } from 'vue'; +import App from './App.vue'; +import { i18n, loadLanguage, fallbackLocale } from './i18n'; +import getCurrentLanguage from './utils/currentLanguage'; +import router from './router'; -import './styles/common.css' -import './styles/variables/colors.css' +import './styles/common.css'; +import './styles/variables/colors.css'; (async () => { - await loadLanguage(fallbackLocale) + await loadLanguage(fallbackLocale); + await loadLanguage(getCurrentLanguage()); - const currentLanguage = getCurrentLanguage() - - if (currentLanguage !== fallbackLocale) { - await loadLanguage(currentLanguage) - } - - createApp(App) - .use(router) - .use(i18n) - .mount('#app') -})() \ No newline at end of file + createApp(App) + .use(router) + .use(i18n) + .mount('#app'); +})(); \ No newline at end of file