Commit Graph
22 Commits
Author SHA1 Message Date
naibaandcloudcode dc0cfd0ecb test(e2e): add Playwright suite for auth + CSRF + visibility fixes
Covers the security fixes that landed across both repos:

- auth.spec.ts: login persists nz-jwt cookie and getProfile succeeds;
  password change bumps TokenVersion + revokes the old cookie so the
  pre-change JWT can no longer auth (regression guard for the
  keyId+session backend rewrite).
- cron-csrf.spec.ts: POST /api/v1/cron/:id/manual succeeds while GET
  is no longer routable (regression guard for the cron CSRF fix).
- fm-csrf.spec.ts: POST /api/v1/file is reachable while GET is no
  longer routable (regression guard for the FM CSRF fix).
- visibility.spec.ts: an anonymous caller cannot see a server-group
  that contains zero guest-visible servers (regression guard for the
  server-group leak fix).

Fixtures wrap the noisy login + cleanup boilerplate. tsconfig is
scoped to tests/e2e so the suite stays out of the production tsc
project graph.

Playwright config starts the Vite dev server (npm run dev) and
expects a backend reachable at the URL Vite proxies to. CI workflow
follow-up commit wires the backend up.

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-26 04:34:43 +00:00
naiba b23a6c0be1 feat: server transfer rotation 2026-05-25 10:15:24 +00:00
naiba 1b9c82ca5a fix: server edit dialog submit button unresponsive after first save (#1132)
Upgrade react-hook-form 7.63→7.71 to fix form.reset() race condition
that silently broke zod validation on subsequent submissions.

Reset form and public-note state (publicNoteObj/Raw/Mode/Errors)
from latest data when the edit dialog opens, preventing stale state
from a previous edit session.
2026-02-14 12:11:47 +08:00
UUBulbanduubulb ab10ffb355 improve: add missing try-catch cases (#86)
* improve: add missing try-catch cases

* i18n: support german

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: uubulb <uubulb@users.noreply.github.com>
2025-01-03 22:43:36 +08:00
naiba 97d49de6be refactor: enum i18n 2024-12-14 10:39:07 +08:00
仓鼠andhamster1963 540bb0185d Dashboard Redesign (#48)
* feat: add user_template setting

* style: header

* style: page padding

* style: header

* feat: header now time

* style: login page

* feat: nav indicator

* style: button inset shadow

* style: footer text size

* feat: header show login_ip

* fix: error toast

* fix: frontend_templates setting

* fix: lint

* feat: pr auto format

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
2024-12-13 23:51:33 +08:00
naiba 4cdb11059a fix: websocket 2024-12-02 22:10:07 +08:00
naiba ef70277ff4 feat: 优化复制安装命令提示 2024-11-30 20:14:49 +08:00
naiba a3c9fcec73 fix: copy to clipboard 2024-11-30 17:08:47 +08:00
UUBulb f6656a8e84 fix: type conversion (#9) 2024-11-30 11:41:50 +08:00
UUBulb b1b8b91fb5 feat: responsive header, search boxes (#10) 2024-11-22 07:41:47 +08:00
UUBulb 8248d6c910 implement remaining features of the server page (#9)
* implement remaining features of the server page

* fix fm init

* ?
2024-11-21 22:20:14 +08:00
UUBulb a487e6cb99 implement group page (#6)
* implement group page

* group state, search box

* rename some field

* update api types
2024-11-19 21:40:03 +08:00
UUBulb bf7ffd36e0 further implementing server page (#4)
* further implementing server page

* optimize icon button

* rename some unnecessary file extensions

* add terminal page & fm card
2024-11-18 20:48:30 +08:00
UUBulb f4fbc9f488 further implementing service page (#3) 2024-11-17 10:05:20 +08:00
uubulb 08560316a0 add select 2024-11-15 18:55:09 +08:00
uubulb 599ff6c72a init service card 2024-11-15 18:16:13 +08:00
naiba f842d5aeec feat: auto generate api types 2024-11-09 00:07:21 +08:00
naiba 680dc219d3 feat: server table 1/10 2024-11-06 00:09:03 +08:00
naiba b1a0b607da feat: login & check user 2024-11-03 23:29:32 +08:00
naiba 017e6cfdcf login page 2024-11-02 22:34:43 +08:00
naiba d945ca97c1 🎉 init vite & shadcn-ui 2024-11-01 22:47:49 +08:00