π 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
chore: use bun as default runtime
Smaug67399bcbfeadd9a0
diff --git a/Makefile b/Makefileindex a677d9a0..023ba9ab 100644--- a/Makefile+++ b/Makefile@@ -5,9 +5,9 @@ backend:cd backend && go run main.gofrontend:- cd frontend && bun dev+ cd frontend && bunx --bun nuxt devfrontendh:- cd frontend && bun dev --host+ cd frontend && bunx --bun nuxt dev --hostminio:minio server ./minio --console-address :9001 --address "localhost:9000"diff --git a/frontend/README.md b/frontend/README.mddeleted file mode 100644index ac24a469..00000000--- a/frontend/README.md+++ /dev/null@@ -1,123 +0,0 @@-# Frontend - Alexandrie--## Overview--The Alexandrie frontend is a Vue 3 application built with Nuxt 4. It features a component-based architecture, state management with Pinia, and a rich editing experience.--## Technology Stack--- **Framework**: Nuxt 4 (Vue 3)-- **State Management**: Pinia-- **Editor**: CodeMirror 6-- **Markdown**: markdown-it with custom extensions-- **Styling**: SCSS with custom design system-- **Build Tool**: Vite-- **PWA**: Offline support with @vite-pwa/nuxt--## Architecture--```-βββββββββββββββββββββββββββββββββββββββ-β User Interface β-ββββββββββββββββ¬βββββββββββββββββββββββ- β- ββββββββ΄βββββββ- β Pages β β Route components- ββββββββ¬βββββββ- β- ββββββββ΄βββββββ- β Components β β Reusable UI elements- ββββββββ¬βββββββ- β- ββββββββββββ΄βββββββββββ- β Composables β β Business logic & API calls- ββββββββββββ¬βββββββββββ- β- ββββββββββββ΄βββββββββββ- β Pinia Stores β β State management- ββββββββββββ¬βββββββββββ- β- ββββββββββββ΄βββββββββββ- β Backend API β β REST API- βββββββββββββββββββββββ-```--## Directory Structure--### `/app/components`--Reusable Vue components organized by feature:--**Base Components**:--- `AppX.vue` - Generic UI elements: (buttons, inputs, modals, etc.)-- `Folder/` - Folder represent a single component (for big components)-- `Other.vue` - Misc reusable components--_Sometimes components are stored in `pages/<page>/_components/` if they are only used by that page._--### `/app/composables`--Reusable composition functions for shared logic:--- **`useNotifications.ts`** - Toast notifications system-- **`useContextMenu.ts`** - Right-click context menus-- **`useNodesTree.ts`** - Tree structure operations on nodes-- **`user.ts`** - User authentication state-- **`Preferences.ts`** - User preferences management-- **`utils.ts`** - Helper functions--### `/app/stores`--Pinia stores for application state:--- **`user.store.ts`** - User authentication and profile-- **`nodes.store.ts`** - Documents and categories management-- **`resources.store.ts`** - File uploads and media-- **`admin.store.ts`** - Admin operations--### `/app/middleware`--Route middleware for navigation guards:--## API Integration--API calls are centralized in `stores/_utils.ts` using the Fetch API with error handling and authentication tokens (also refresh token implementation).--## Development Commands--```bash-# Install dependencies-npm install--# Development server (http://localhost:3000)-npm run dev--# Development with host access (for mobile testing)-npm run dev:host--# Build for production-npm run build--# Preview production build-npm run preview--# Lint code-npm run lint--# Lint and auto-fix-npm run lint:fix--# Lint CSS/SCSS-npm run lint:css-```--## Environment Configuration--Create `.env` file:--```env-# API Configuration-NUXT_PUBLIC_BASE_API=http://localhost:8201-NUXT_PUBLIC_BASE_CDN=http://localhost:9000/alexandrie-```diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.tsindex 3ba75c26..d7686d5c 100644--- a/frontend/nuxt.config.ts+++ b/frontend/nuxt.config.ts@@ -123,6 +123,7 @@ export default defineNuxtConfig({nitro: {compressPublicAssets: true,minify: true,+ preset: 'bun',},pwa: {