Files
romm/frontend/package.json
Georges-Antoine Assi b037276bfc Add Playwright e2e cover for permission gating
The #3954 fix is about what a read-only user can SEE, which the Vitest
specs can't reach: visibility depends on grants the backend resolves and
`useCan` projects. These drive a real instance instead.

  frontend/e2e/rom-actions.spec.ts        ⋯ menu items + divider collapse
  frontend/e2e/profile-role.spec.ts       no self-editable role control
  frontend/e2e/game-media-files.spec.ts   Media/Files upload + delete

Every spec asserts both sides -- absent for `e2e_viewer`, present for
`e2e_admin` -- so it can't pass against a page that failed to render, and
notices a fix that over-hides. Verified by reverting the fix: 8 of 15 fail,
and the 6 admin-side guards stay green.

`backend/tools/seed_e2e_users.py` seeds the two fixture users idempotently.
Specs live in e2e/ so Vitest's src/** and test/** globs skip them, and
tsconfig now covers them so they're typechecked.

Not wired into CI: that needs a backend, a database and a library fixture
in the runner.
2026-07-26 09:07:14 -04:00

111 lines
3.2 KiB
JSON

{
"name": "romm",
"private": true,
"version": "0.0.1",
"author": "Zurdi <https://github.com/zurdi15>",
"description": "A beautiful, powerful, self-hosted ROM manager",
"license": "AGPL-3.0-only",
"homepage": "https://github.com/rommapp/romm",
"repository": {
"type": "git",
"url": "git+github.com/rommapp/romm.git"
},
"bugs": {
"url": "https://github.com/rommapp/romm/issues"
},
"keywords": [
"rom",
"manager",
"emulation"
],
"type": "module",
"scripts": {
"build:tokens": "tsx scripts/build-tokens.ts",
"predev": "npm run build:tokens",
"prebuild": "npm run build:tokens",
"dev": "vite --host",
"build": "vite build",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit",
"generate": "openapi --input http://127.0.0.1:3000/openapi.json --output ./src/__generated__ --client axios --useOptions --useUnionTypes --exportServices false --exportSchemas false --exportCore false",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:test": "vitest run test/storybook.test.ts",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
},
"dependencies": {
"@floating-ui/vue": "^1.1.11",
"@mdi/font": "7.4.47",
"@vueuse/core": "^13.7.0",
"axios": "^1.18.1",
"bowser": "^2.14.1",
"cronstrue": "^2.57.0",
"date-fns": "^4.1.0",
"js-cookie": "^3.0.7",
"lodash": "^4.18.1",
"md-editor-v3": "^5.8.4",
"mitt": "^3.0.1",
"pinia": "^3.0.1",
"qrcode": "^1.5.4",
"semver": "^7.6.2",
"socket.io-client": "^4.7.5",
"tailwindcss": "^4.0.0",
"vanilla-tilt": "^1.8.1",
"vue": "^3.4.27",
"vue-i18n": "^11.1.10",
"vue-router": "^4.3.2",
"vue3-pdf-app": "^1.0.3",
"vuetify": "^3.9.2"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.61.1",
"@storybook/addon-a11y": "^10.2.19",
"@storybook/addon-docs": "^10.2.19",
"@storybook/addon-themes": "^10.2.19",
"@storybook/vue3-vite": "^10.2.19",
"@tailwindcss/vite": "^4.3.1",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.16",
"@types/node": "^22.13.14",
"@types/qrcode": "^1.5.5",
"@types/semver": "^7.7.0",
"@vitejs/plugin-vue": "^6.0.7",
"@vitest/ui": "^4.1.5",
"@vue/test-utils": "^2.4.9",
"@vue/tsconfig": "^0.7.0",
"axe-core": "^4.12.1",
"browserslist": "^4.28.1",
"eslint": "^10.0.3",
"eslint-plugin-vue": "^10.8.0",
"eslint-plugin-vuejs-accessibility": "^2.5.0",
"globals": "^16.0.0",
"happy-dom": "^20.9.0",
"openapi-typescript-codegen": "^0.29.0",
"storybook": "^10.2.19",
"tsx": "^4.21.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.56.1",
"vite": "^8.0.16",
"vite-plugin-mkcert": "^1.17.8",
"vite-plugin-pwa": "^1.3.0",
"vite-plugin-vuetify": "^2.0.4",
"vitest": "^4.1.5",
"vue-tsc": "^2.2.8"
},
"overrides": {
"rolldown": "1.0.1",
"esbuild": "^0.28.1",
"form-data": "^4.0.6"
},
"engines": {
"node": "24",
"npm": ">=11.10"
},
"packageManager": "npm@11.13.0"
}