All editors now work on a server document at the same time instead of taking turns behind an edit lock. - The document's content is a sequence of Yjs updates (document_updates); DocumentChannel stores and relays them immediately, checks access on subscribe and again whenever links or memberships change. - app/frontend/collab/: the store stays position-based; a binding maps it to a Yjs form with stable row/column ids, so a row inserted by one person doesn't misplace what another is typing. Remote changes are applied only after pending local ones went into Yjs. - Per-person undo (Y.UndoManager), presence via awareness: the others' selections as coloured boxes with names, avatars in the toolbar. - Existing JSON documents convert on first open, deterministically, so two people opening one at once end up with the same Yjs state. - Editors compact the stored updates after 200 and keep a JSON snapshot current for export and duplicating. Edit lock and polling are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
||
"name": "numolus",
|
||
"private": true,
|
||
"version": "1.0.0",
|
||
"type": "module",
|
||
"description": "Browser-Tabellenkalkulation nach dem Vorbild von Apple Numbers – mit selbst geschriebener Formel-Engine.",
|
||
"scripts": {
|
||
"dev": "bin/dev",
|
||
"build": "vue-tsc --noEmit && vite build",
|
||
"test": "vitest run",
|
||
"test:watch": "vitest",
|
||
"test:server": "bin/rails test",
|
||
"lint": "eslint . --ext .ts,.vue",
|
||
"format": "prettier --write \"app/frontend/**/*.{ts,vue,css}\""
|
||
},
|
||
"dependencies": {
|
||
"@rails/actioncable": "^8.1.400",
|
||
"chart.js": "^4.4.6",
|
||
"fflate": "^0.8.3",
|
||
"lib0": "^0.2.119",
|
||
"vue": "^3.5.13",
|
||
"xlsx": "^0.18.5",
|
||
"y-protocols": "^1.0.7",
|
||
"yjs": "^13.6.33"
|
||
},
|
||
"devDependencies": {
|
||
"@types/rails__actioncable": "^8.0.3",
|
||
"@vitejs/plugin-vue": "^5.2.0",
|
||
"@vue/eslint-config-prettier": "^10.1.0",
|
||
"@vue/eslint-config-typescript": "^14.1.3",
|
||
"eslint": "^9.15.0",
|
||
"eslint-plugin-vue": "^9.31.0",
|
||
"fake-indexeddb": "^6.2.5",
|
||
"jsdom": "^25.0.1",
|
||
"prettier": "^3.3.3",
|
||
"typescript": "~5.6.3",
|
||
"vite": "^5.4.21",
|
||
"vite-plugin-ruby": "^5.2.4",
|
||
"vitest": "^2.1.5",
|
||
"vue-tsc": "^2.1.10"
|
||
}
|
||
}
|