π 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
Smaug6739aa8aaff239d0
diff --git a/frontend/.env.development b/frontend/.env.developmentindex 3f3c70c6..6c049a37 100644--- a/frontend/.env.development+++ b/frontend/.env.development@@ -1 +1 @@-VITE_BASE_API="http://192.168.0.25:3001"\ No newline at end of file+VITE_BASE_API="http://localhost:3000"\ No newline at end of filediff --git a/frontend/bun.lockb b/frontend/bun.lockbindex 67032e0d..ec672e54 100755Binary files a/frontend/bun.lockb and b/frontend/bun.lockb differdiff --git a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vueindex ed388c91..71247397 100644--- a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue+++ b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue@@ -29,7 +29,8 @@ const editor = new Editor(textarea, toolbar);const emit = defineEmits(['save']);const update = () => {- document.value.content_html = compile(textarea.value?.innerHTML || '');+ // Replace fix use of & in katex expressions+ document.value.content_html = compile(textarea.value?.innerHTML.replaceAll('&', '&') || '');};const handleClick = () => editor.updateContextMenu();diff --git a/frontend/package.json b/frontend/package.jsonindex 8d9fe70a..90cc918e 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -30,5 +30,8 @@"preview": "nuxt preview","postinstall": "nuxt prepare"},- "type": "module"+ "type": "module",+ "dependencies": {+ "markdown-it-highlightjs": "^4.1.0"+ }}diff --git a/frontend/pages/login.vue b/frontend/pages/login.vueindex c7cf757b..7746c7b0 100644--- a/frontend/pages/login.vue+++ b/frontend/pages/login.vue@@ -41,7 +41,6 @@ const router = useRouter();function login() {errors.value.username = !username.value.trim() ? 'Username is required' : '';errors.value.password = !password.value.trim() ? 'Password is required' : '';-if (username.value && password.value) {connect(username.value, password.value);}@@ -49,6 +48,8 @@ function login() {async function connect(username: string, password: string) {try {+ console.log("Fetching...");+ console.log(`${import.meta.env.VITE_BASE_API}/api/v1/auth`)const response = await fetch(`${import.meta.env.VITE_BASE_API}/api/v1/auth`, {method: 'POST',headers: {@@ -72,9 +73,7 @@ async function connect(username: string, password: string) {}}-function logIn() {- // Handle successful login action if needed-}+</script><style scoped>