mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
Rework the Locations page onto svelte-dnd-action so that container reordering, reordering spools within a location, and moving spools between locations all update live while dragging, matching the old client. Native HTML5 drag couldn't do live cross-card moves because the dragged node is destroyed when it changes each-block. Per-location spool order is persisted in the `locations_spoolorders` setting (keyed by location name, "" for no location), shared with the old client. Shelf dragging is gated to the grip handle via the library's dragDisabled pattern so it doesn't hijack the nested spool zones. Claude-Session: https://claude.ai/code/session_01VQQtwPBPiMCoZCpBbbqS64
37 lines
958 B
JSON
37 lines
958 B
JSON
{
|
|
"name": "spoolman-client-v2",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
"format": "prettier --write .",
|
|
"lint": "prettier --check ."
|
|
},
|
|
"devDependencies": {
|
|
"@inlang/paraglide-js": "^2.18.2",
|
|
"@sveltejs/adapter-static": "^3.0.6",
|
|
"@sveltejs/kit": "^2.8.1",
|
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
"@types/qrcode": "^1.5.6",
|
|
"prettier": "^3.3.3",
|
|
"prettier-plugin-svelte": "^3.2.7",
|
|
"svelte": "^5.1.9",
|
|
"svelte-check": "^4.0.5",
|
|
"typescript": "^5.6.3",
|
|
"vite": "^5.4.10"
|
|
},
|
|
"dependencies": {
|
|
"@lucide/svelte": "^1.25.0",
|
|
"konva": "^10.3.0",
|
|
"qr-scanner": "^1.4.2",
|
|
"qrcode": "^1.5.4",
|
|
"svelte-dnd-action": "^0.9.74",
|
|
"svelte-konva": "^1.0.1"
|
|
}
|
|
}
|