π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fixes
Smaug67395bab2e3ce653
diff --git a/backend/utils/functions.ts b/backend/utils/functions.tsindex d1f41d5e..68ac9a98 100644--- a/backend/utils/functions.ts+++ b/backend/utils/functions.ts@@ -27,10 +27,13 @@ export function checkAndChange(obj: any) {else return success(obj);}-export function parseCookies(cookies: string = ''): any {- return cookies.split(';').reduce((obj: any, c: string) => {- const n: any = c.trim().split('=');- obj[n[0]] = n[1].trim();+type Cookies = {+ [key: string]: any;+};+export function parseCookies(cookies: string = '') {+ return cookies.split(';').reduce((obj: Cookies, c: string) => {+ const n = c.trim().split('=');+ if (n[0]) obj[n[0]] = n[1]?.trim();return obj;}, {});}diff --git a/frontend/components/sidebar/Search.vue b/frontend/components/sidebar/Search.vueindex c782a216..8bd91a68 100644--- a/frontend/components/sidebar/Search.vue+++ b/frontend/components/sidebar/Search.vue@@ -63,7 +63,7 @@ const handleTab = (event: KeyboardEvent) => {} else {nextIndex = (currentIndex + 1) % focusableItems.length;}- focusableItems[nextIndex].focus();+ focusableItems[nextIndex]?.focus();}onMounted(() => document.addEventListener('keydown', handleSearchShortCut));@@ -110,10 +110,12 @@ const handleSearchShortCut = (e: KeyboardEvent) => {display: flex;align-items: center;+input {background-color: var(--bg-color);border: none;outline: none;+ width: 100%;}svg {diff --git a/frontend/pages/login.vue b/frontend/pages/login.vueindex dc1490e2..4cfe102e 100644--- a/frontend/pages/login.vue+++ b/frontend/pages/login.vue@@ -46,8 +46,6 @@ function login() {}}--async function connect(username: string, password: string) {const content = JSON.stringify({username: username,@@ -64,7 +62,10 @@ async function connect(username: string, password: string) {});const result = await responce.json();- if (result.status == "success" && result.result.auth) router.push("/dashboard");+ if (result.status == "success" && result.result.auth) {+ logIn();+ router.push("/dashboard");+ }else errors.value.general = result.message;}