Add an API tokens management route to create, list, and revoke PATs, showing
the plaintext token once on creation with scope and server-id selection.
Mirror the nz-csrf cookie into the X-CSRF-Token header on unsafe fetcher
methods (POST/PUT/PATCH/DELETE) for the server-side double-submit check, and
self-heal expired sessions via refresh-token without a recursive fetch loop.
Gate protected routes behind resolved auth state to avoid pre-auth SWR fetches,
and fix the login loading/race so stale probes cannot clobber the session.
Add i18n keys for the new screens across all locales.
Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
* feat(notification): add option to convert metric units in request body
* rename fields
* add prettierignore
* chore: auto-fix linting and formatting issues
* feat: separate real ip header of frontend/agent
* test(ci): test
* Revert "test(ci): test"
This reverts commit 7d2f16ed24e5f95f6101dc3ac67816ece2dc5ade.
* chore: auto-fix linting and formatting issues
* feat: batch set server config
* make every field optional
* chore: auto-fix linting and formatting issues
* update
* [WIP] improve batch edit ux
* chore: auto-fix linting and formatting issues
* fix: window.DisableAnimatedMan as boolean
* chore: auto-fix linting and formatting issues
* feat: user role
* feat: use user agent_secret
* feat: hide setting when user role is not admin
* feat: new waf api
* chore: auto-fix linting and formatting issues
* fix: admin settings page
* feat: online-user setting
* fix: pagination
---------
Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
* Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (158 of 158 strings)
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (158 of 158 strings)
Translated using Weblate (English)
Currently translated at 100.0% (158 of 158 strings)
Translated using Weblate (English)
Currently translated at 100.0% (158 of 158 strings)
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (158 of 158 strings)
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 96.8% (153 of 158 strings)
Translated using Weblate (Italian)
Currently translated at 69.6% (110 of 158 strings)
Translated using Weblate (English)
Currently translated at 100.0% (158 of 158 strings)
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 99.3% (157 of 158 strings)
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 70.8% (112 of 158 strings)
Translated using Weblate (Italian)
Currently translated at 99.3% (157 of 158 strings)
Translated using Weblate (English)
Currently translated at 100.0% (158 of 158 strings)
Co-authored-by: Anonymous <noreply@weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: UUBulb <uub@kuzu.uk>
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/en/
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/it/
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/zh_Hant/
Translation: Nezha/Admin frontend
* chore: auto-fix linting and formatting issues
---------
Co-authored-by: UUBulb <uub@kuzu.uk>
Co-authored-by: weblate <weblate@users.noreply.github.com>
* fix: Kill auto language
Kill the background automatic recognition of language to prevent backend
Language file correction
* refactor(Aggregate): Ports and install hosts
Optimize multi-language
* fix(I18n): Kill spurious shortcuts
Fix wrong import