Commit Graph
25 Commits
Author SHA1 Message Date
naibaandcloudcode 964684f1bf feat(settings): add reserved hosts field and surface NAT errors
Add the reserved_hosts setting (input + i18n across all locales) so operators
behind a reverse proxy can declare public dashboard hostnames members must not
register as NAT domains (GHSA-x6fg-52vr-hj4w).

Show the backend error message on NAT create/update failure instead of a
generic "unexpected error", so a reserved-host rejection is explained.

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-31 02:04:47 +00:00
naibaandcloudcode f07c557029 feat(api-tokens): add PAT management UI, CSRF handling, and auth-loading fixes
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>
2026-05-30 15:56:53 +00:00
naiba b23a6c0be1 feat: server transfer rotation 2026-05-25 10:15:24 +00:00
UUBulb f1e4ff8fb9 feat(notification): add option to convert metric units in request body (#147)
* feat(notification): add option to convert metric units in request body

* rename fields

* add prettierignore

* chore: auto-fix linting and formatting issues
2026-01-10 17:27:13 +08:00
Weblate (bot)andTurboHK b6f62635e3 Translated using Weblate (Chinese (Traditional Han script)) (#137)
Currently translated at 100.0% (181 of 181 strings)


Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/zh_Hant/
Translation: Nezha/Admin frontend

Co-authored-by: TurboHK <turbohkcoltd@gmail.com>
2025-08-23 21:07:02 +08:00
TomyJan 1f2a187d7b feat: separate real ip header of frontend/agent (#130)
* 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
2025-04-13 18:40:35 +08:00
Weblate (bot)andUUBulb 70b8f39bd6 Translated using Weblate (Chinese (Traditional Han script)) (#113)
Currently translated at 100.0% (177 of 177 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (177 of 177 strings)


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

Co-authored-by: UUBulb <uub@kuzu.uk>
2025-02-04 11:14:58 +08:00
7e20e3d215 Translated using Weblate (Chinese (Traditional Han script)) (#105)
Currently translated at 99.4% (174 of 175 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (175 of 175 strings)

Translated using Weblate (Tamil)

Currently translated at 100.0% (175 of 175 strings)

Translated using Weblate (Tamil)

Currently translated at 100.0% (175 of 175 strings)

Added translation using Weblate (Tamil)




Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/ta/
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

Co-authored-by: UUBulb <uub@kuzu.uk>
Co-authored-by: தமிழ்நேரம் <anishprabu.t@gmail.com>
2025-01-20 22:07:57 +08:00
UUBulb d49672bdbe chore: update translations (#101)
* chore: update translations

* fix: form values type conversion

* feat: terminal fullscreen mode

* fix
2025-01-19 21:09:52 +08:00
仓鼠andhamster1963 9f6722edcd feat: menu add back to home item (#89)
* feat: menu add back to home item

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
2025-01-04 18:42:58 +08:00
Weblate (bot)andUUBulb 8dc03d22d6 Translated using Weblate (Chinese (Traditional Han script)) (#85)
Currently translated at 100.0% (171 of 171 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (171 of 171 strings)


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

Co-authored-by: UUBulb <uub@kuzu.uk>
2024-12-31 23:59:39 +08:00
f48d0a6393 Translated using Weblate (German) (#77)
Currently translated at 100.0% (170 of 170 strings)

Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (170 of 170 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (170 of 170 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (170 of 170 strings)




Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/de/
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/es/
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/it/
Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/zh_Hant/
Translation: Nezha/Admin frontend

Co-authored-by: Kris <krishoodbyair@gmail.com>
Co-authored-by: UUBulb <uub@kuzu.uk>
2024-12-26 22:31:51 +08:00
naiba 8130e336a9 fix: block button 2024-12-23 19:47:57 +08:00
仓鼠andhamster1963 f694c97704 fix: i18n (#71)
* fix: block_identifier text

* fix: i18n

* chore: auto-fix linting and formatting issues

* fix: block button

* fix: ConfirmBlock text

* fix: i18n

---------

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
2024-12-23 00:38:40 +08:00
UUBulb ee752b1ba7 fix: language code conversion (#53) 2024-12-14 17:17:53 +08:00
78afbb5609 Translations update from Hosted Weblate (#45)
* 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>
2024-12-14 16:59:45 +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
dca8ec9b3f Translated using Weblate (Chinese (Traditional Han script)) (#44)
Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (English)

Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (156 of 156 strings)

Translated using Weblate (English)

Currently translated at 100.0% (156 of 156 strings)

Deleted translation using Weblate (English (United States))

Added translation using Weblate (English (United States))




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

Co-authored-by: Languages add-on <noreply-addon-languages@weblate.org>
Co-authored-by: UUBulb <uub@kuzu.uk>
2024-12-10 21:58:16 +08:00
仓鼠 982ecc7086 feat: add user_template setting (#36) 2024-12-07 01:17:00 +08:00
UUBulb 950318417f fix: missing notification group input in settings (#24)
* fix: missing notification group input in settings

* change script name

* license

* update settings api

* improve: cell width

* feat: site name
2024-12-04 20:03:16 +08:00
GuGuGu 14f4d03320 fix: Kill auto language (#21)
* 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
2024-12-02 20:57:03 +08:00
naiba c49bbb54e1 fix: waf page 2024-11-30 21:31:55 +08:00
Colin a8f7c15f6c fix(I18n): Translation supplement
Translation supplement, automatic lanSupplement the missing translations
2024-11-30 13:04:34 +01:00
naiba c98632bc17 feat: 修改用户名,简化代码 2024-11-30 15:02:42 +08:00
GuGuGu 24286a7449 feat(I18n): Add multiple languages ​​(zh-CN/zh-TW/en/it) (#8) 2024-11-29 20:47:09 +08:00