Web version (#43)

* Create client package
* Create the UI package
* Init web app
* Use isomorphic 'ws' for web sockets
* File and asset implementations
* Use Opfs SAH version of sqlite in browser
* Generate Svg sprites for emojis and icons
* Include emojis sprite
* Improve and refactor assets
* More assets improvements
* Implement emoji and icons db import as readonly
* Improve import paths
* Handle concurrency limits for sqlite
* Fix event broadcast in web
* Pass windowId for subscribe and unsubscribe queries in desktop
* Remove asset context
* Implement avatar upload/download with the new structure
* Improve file handlings
* Move the necessary dependencies to client and ui packages
* Update packages
* Improve open file dialog
* Make sure database files are deleted in browser
* Improve avatar loading
* Improve file loading
* Fix some assets
* Implement asset caching for offline access
* Small fixes and improvements
* Use server instead of pre signed urls for file upload/download
* Cleanup some client related metadata
* Switch Axios with ky
* Refactor mutation results
* Minor concurrency fix
* Refactor web sockets
* Improve file uploading
* Handle connection close on server
* Use stream for downloading the file
* Add config options for cors
* Update document in all tabs on local change
* Include necessary icons for web
* Update docker compose
* Implement server upgrade required component
* Use correct client type and platform in web and desktop
* Improve service worker
* Improve versioning
* Fix an import
* Minor fixes
* Update some user endpoints
* Minor endpoint changes
* Enable app badge for desktop
* Add error handling in some database operations
* Update mutation naming convention
* Update query naming convention
* Update event and some metadata naming conventions
* Update event and job naming conventions in server
* Update Github workflow files
* Restructure assets directory
* Update packages
* Upgrade to Zod v4
* Upgrade to react 19
* Upgrade to tailwind v4
* Minor ui improvements
* Fix some cursor pointers
* Add browser not supported message in web
* Enhance server create flow, allow insecure connections and custom api paths
* Execute electron-rebuild as postinstall command
* Update docker compose
This commit is contained in:
Hakan Shehu
2025-06-11 00:14:17 +02:00
committed by GitHub
parent 357aeb6c36
commit 30e15e4bd3
1092 changed files with 24194 additions and 17409 deletions

90
packages/ui/package.json Normal file
View File

@@ -0,0 +1,90 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@colanode/ui",
"version": "1.0.0",
"type": "module",
"exports": {
".": "./src/index.ts"
},
"files": [
"src"
],
"scripts": {
"compile": "tsc --noEmit",
"test": "vitest",
"lint": "eslint . --max-warnings 0",
"build": "tsc",
"coverage": "vitest run --coverage "
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.8",
"@types/is-hotkey": "^0.1.10",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.6",
"tailwindcss": "^4.1.8",
"tw-animate-css": "^1.3.4"
},
"dependencies": {
"@colanode/client": "*",
"@colanode/core": "*",
"@floating-ui/react": "^0.27.12",
"@hookform/resolvers": "^5.1.1",
"@radix-ui/react-alert-dialog": "^1.1.14",
"@radix-ui/react-checkbox": "^1.3.2",
"@radix-ui/react-collapsible": "^1.1.11",
"@radix-ui/react-context-menu": "^2.2.15",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-dropdown-menu": "^2.1.15",
"@radix-ui/react-hover-card": "^1.1.14",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-popover": "^1.1.14",
"@radix-ui/react-scroll-area": "^1.2.9",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-tooltip": "^1.2.7",
"@tanstack/react-query": "^5.80.6",
"@tanstack/react-virtual": "^3.13.10",
"@tiptap/extension-blockquote": "^2.14.0",
"@tiptap/extension-bold": "^2.14.0",
"@tiptap/extension-bullet-list": "^2.14.0",
"@tiptap/extension-code": "^2.14.0",
"@tiptap/extension-code-block-lowlight": "^2.14.0",
"@tiptap/extension-document": "^2.14.0",
"@tiptap/extension-dropcursor": "^2.14.0",
"@tiptap/extension-horizontal-rule": "^2.14.0",
"@tiptap/extension-italic": "^2.14.0",
"@tiptap/extension-link": "^2.14.0",
"@tiptap/extension-list-item": "^2.14.0",
"@tiptap/extension-list-keymap": "^2.14.0",
"@tiptap/extension-ordered-list": "^2.14.0",
"@tiptap/extension-paragraph": "^2.14.0",
"@tiptap/extension-placeholder": "^2.14.0",
"@tiptap/extension-strike": "^2.14.0",
"@tiptap/extension-task-item": "^2.14.0",
"@tiptap/extension-task-list": "^2.14.0",
"@tiptap/extension-text": "^2.14.0",
"@tiptap/extension-underline": "^2.14.0",
"@tiptap/pm": "^2.14.0",
"@tiptap/react": "^2.14.0",
"@tiptap/suggestion": "^2.14.0",
"class-variance-authority": "^0.7.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"is-hotkey": "^0.2.0",
"lucide-react": "^0.513.0",
"re-resizable": "^6.11.2",
"react": "^19.1.0",
"react-day-picker": "^9.7.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^19.1.0",
"react-hook-form": "^7.57.0",
"react-intersection-observer": "^9.16.0",
"sonner": "^2.0.5",
"tailwind-merge": "^3.3.0",
"tiptap-extension-auto-joiner": "^0.1.3",
"ts-pattern": "^5.7.1",
"zod": "^3.25.57"
}
}