Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fixes

Smaug67391e2795df04ff
diff --git a/Makefile b/Makefile
index b61aa73d..a677d9a0 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,9 @@ backend:
cd backend && go run main.go
frontend:
- cd frontend && npm run dev
+ cd frontend && bun dev
+frontendh:
+ cd frontend && bun dev --host
minio:
minio server ./minio --console-address :9001 --address "localhost:9000"
diff --git a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
index 139863ba..9fc9d3f2 100644
--- a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -2,8 +2,8 @@
<div class="editor-container">
<Toolbar :document="document" @execute-action="exec" />
<div style="padding: 6px 8px; flex: 1; display: flex; flex-direction: column; min-height: 0">
- <input placeholder="Title" class="title" v-model="document.name" />
- <input placeholder="Description" class="description" v-model="document.description" />
+ <input placeholder="Title" class="title" v-model="document.name" v-if="!minimal" />
+ <input placeholder="Description" class="description" v-model="document.description" v-if="!minimal" />
<div class="markdown" ref="container">
<div ref="editorContainer" class="codemirror-editor" @scroll="syncScroll" />
<div v-if="showPreview" class="markdown-preview document-theme" ref="markdownPreview" v-html="document.content_html"></div>
@@ -25,7 +25,7 @@ import Toolbar from './Toolbar.vue';
import compile from '~/helpers/markdown';
import type { Document } from '~/stores';
-const props = defineProps<{ doc?: Partial<Document> }>();
+const props = defineProps<{ doc?: Partial<Document>; minimal?: boolean }>();
const emit = defineEmits(['save', 'exit']);
diff --git a/frontend/components/MarkdownEditor/Toolbar.vue b/frontend/components/MarkdownEditor/Toolbar.vue
index 9c92d5f3..b1ebec0c 100644
--- a/frontend/components/MarkdownEditor/Toolbar.vue
+++ b/frontend/components/MarkdownEditor/Toolbar.vue
@@ -82,11 +82,6 @@ const toolbar = [
icon: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M680-80v-60h100v-30h-60v-60h60v-30H680v-60h120q17 0 28.5 11.5T840-280v40q0 17-11.5 28.5T800-200q17 0 28.5 11.5T840-160v40q0 17-11.5 28.5T800-80H680Zm0-280v-110q0-17 11.5-28.5T720-510h60v-30H680v-60h120q17 0 28.5 11.5T840-560v70q0 17-11.5 28.5T800-450h-60v30h100v60H680Zm60-280v-180h-60v-60h120v240h-60ZM120-200v-80h480v80H120Zm0-240v-80h480v80H120Zm0-240v-80h480v80H120Z"/></svg>',
action: 'orderedList',
},
- {
- name: 'Exit',
- icon: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-120q-33 0-56.5-23.5T120-200v-160h80v160h560v-560H200v160h-80v-160q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm220-160-56-58 102-102H120v-80h346L364-622l56-58 200 200-200 200Z"/></svg>',
- action: 'exit',
- },
{
name: 'Preview',
icon: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-480H200v480Zm280-80q-82 0-146.5-44.5T240-440q29-71 93.5-115.5T480-600q82 0 146.5 44.5T720-440q-29 71-93.5 115.5T480-280Zm0-60q56 0 102-26.5t72-73.5q-26-47-72-73.5T480-540q-56 0-102 26.5T306-440q26 47 72 73.5T480-340Zm0-100Zm0 60q25 0 42.5-17.5T540-440q0-25-17.5-42.5T480-500q-25 0-42.5 17.5T420-440q0 25 17.5 42.5T480-380Z"/></svg>',
diff --git a/frontend/pages/(public)/index.vue b/frontend/pages/(public)/index.vue
index 9a5400f7..6aafaaa5 100644
--- a/frontend/pages/(public)/index.vue
+++ b/frontend/pages/(public)/index.vue
@@ -17,13 +17,13 @@
</div>
</div>
<div class="images">
- <img src="`/screenshots/mock/1.png`" alt="Documents Image" />
+ <img src="/screenshots/mock/1.png" alt="Documents Image" />
</div>
</section>
<section class="editor-section">
<h2 class="section-title">Try editor online</h2>
<div class="editor">
- <MarkdownEditor :doc="doc" :options="{ showPreview: !isMobile(), toolbar: 'minimal' }" />
+ <MarkdownEditor :doc="doc" :minimal="true" />
</div>
</section>
<section class="demo-section">
@@ -56,7 +56,6 @@ onMounted(() => {
type();
});
-const colorMode = useColorMode();
const doc = ref({
content_markdown: `# Alexandrie Hub 🚀
@@ -109,8 +108,6 @@ const app = "Alexandrie";
console.log("Welcome to " + app);
\`\`\`
-
-
> *"Notes are not just text anymore, they’re an extension of your thoughts."*
:::theorem Support