Storage (desktop): - The webview can no longer name a path. Five commands that read, wrote, listed and deleted any path the frontend sent are replaced by name-only commands (backups, logs) that resolve under the app data folder, and by export/import commands that open the native dialog from Rust, so the only file touched is the one the user picked (json/jsonl/txt/csv/md, 20 MB). The fs and shell plugins are removed (Rust, npm, capabilities). - The settings "mirror" file is gone: it was written next to the data folder (a missing path separator) and never read back. On first start the file becomes a restorable backup — never applied on its own — and the stray log folder is merged into the right one. - Automatic backups on desktop: after library changes (quiet 30 s, at most every 10 min, skipped when unchanged or empty), newest ten kept, plus one before every restore. Settings lists them with Restore. - One tray icon, built in code with the app icon (the config entry that could add a second, iconless one is removed). Backup & restore (every platform): - Format 2 files carry each section's store version; imports run the stores' own migrations (now exported functions), then a whitelist sanitizer: known fields and values only, editor limits, safe unique ids. - Reads every earlier export: v0.15-v0.38 envelopes (log exports were labelled "history"), pre-v0.15 bare arrays, the old desktop data file. - Restore dialog: new / already here / different per item, merge (keep the newer one, or both) or replace, section and item selection, one step, Undo. Newer-version sections are shown, not restored. - Settings: Back up (choose sections) / Restore / drop a file. Consent and panel state are never exported or overwritten. - History export as CSV (spreadsheet-safe) or JSON; logs export as "logs"; dated file names; no more 250 ms timer guessing that a picker was cancelled. Library: - Templates save every editor field; presets save store link types and the other per-game fields; profiles save donate, community links and the custom graphics preset. Edit forms can update from the current editor, start fresh each time they open, and save on Enter. Toasts translated. Dev: Vite no longer watches src-tauri (cargo's locked .dll crashed `tauri dev` on Windows). Verified in `tauri dev` on Windows under a test identifier: legacy file recovered, old logs merged, auto backup, restore from the legacy backup with a backup before it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
84 lines
2.8 KiB
JSON
84 lines
2.8 KiB
JSON
{
|
|
"name": "yt-desc-gen",
|
|
"version": "0.38.0",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint": "eslint src/ tests/ scripts/ worker/ build-plugins/",
|
|
"lint:fix": "eslint src/ tests/ scripts/ worker/ build-plugins/ --fix",
|
|
"knip": "knip",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:all": "tsc --noEmit -p tsconfig.check.json",
|
|
"format": "prettier --write \"{src,tests,scripts,worker,build-plugins}/**/*.{ts,tsx,css}\"",
|
|
"format:check": "prettier --check \"{src,tests,scripts,worker,build-plugins}/**/*.{ts,tsx,css}\"",
|
|
"check:version": "tsx scripts/check-version-sync.ts",
|
|
"validate:locales": "tsx scripts/validate-locales.ts",
|
|
"generate:locale": "tsx scripts/generate-locale-template.ts",
|
|
"tauri": "tauri",
|
|
"tauri:dev": "tauri dev",
|
|
"tauri:build": "tauri build",
|
|
"generate:brand": "tsx scripts/generate-brand-assets.ts",
|
|
"cf:dev": "wrangler dev",
|
|
"cf:check": "wrangler deploy --dry-run --outdir .wrangler/dry-run",
|
|
"check:tauri": "tsx scripts/check-tauri-versions.ts",
|
|
"check:bundle": "tsx scripts/check-bundle-size.ts",
|
|
"check:licenses": "tsx scripts/third-party.ts",
|
|
"generate:third-party": "tsx scripts/third-party.ts --write"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/inter": "^5.3.0",
|
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
"@tauri-apps/api": "^2.12.0",
|
|
"@tauri-apps/plugin-opener": "^2.7.0",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"i18next": "^26.4.2",
|
|
"i18next-resources-to-backend": "^1.2.3",
|
|
"lucide-react": "^1.49.0",
|
|
"motion": "^13.4.6",
|
|
"radix-ui": "^1.6.7",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"react-i18next": "^17.0.15",
|
|
"react-router-dom": "^7.18.4",
|
|
"simple-icons": "^16.33.0",
|
|
"sonner": "^2.0.8",
|
|
"zustand": "^5.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@resvg/resvg-js": "2.6.2",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@tauri-apps/cli": "2.12.0",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@types/node": "^26.6.3",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"@vitest/coverage-v8": "^4.1.11",
|
|
"autoprefixer": "^10.6.1",
|
|
"eslint": "^10.11.0",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"knip": "^6.38.0",
|
|
"marked": "18.0.14",
|
|
"postcss": "^8.5.28",
|
|
"prettier": "^3.9.9",
|
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
"tailwindcss": "^4.3.3",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.71.0",
|
|
"vite": "^8.3.1",
|
|
"vitest": "^4.1.11",
|
|
"wrangler": "4.144.0"
|
|
}
|
|
}
|