Commit Graph
11 Commits
Author SHA1 Message Date
naiba 005b4a0b3b feat(service): replace show-in-service with hide-for-guest toggle
Mirror the server HideForGuest flag on services: rename the
enable_show_in_service field to hide_for_guest across the form, schema
and generated types, reuse the existing HideForGuest label, and drop the
now-orphaned ShowInService i18n keys. Services are now visible to guests
by default and hidden only when the box is checked, matching servers.
2026-06-02 03:07:36 +00:00
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
Weblate (bot)andnlimeres 56b00f19ce Translated using Weblate (Galician) (#153)
Currently translated at 7.7% (19 of 245 strings)

Added translation using Weblate (Galician)

Translated using Weblate (Spanish)

Currently translated at 100.0% (244 of 244 strings)



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

Co-authored-by: nlimeres <dynosaurioprogramador@gmail.com>
2026-02-19 14:34:50 +08:00
6fe192b944 Added translation using Weblate (Indonesian) (#132)
Translated using Weblate (Spanish)

Currently translated at 100.0% (180 of 180 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (180 of 180 strings)




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

Co-authored-by: Kris <krishoodbyair@gmail.com>
Co-authored-by: Kxroqi :3 <loxocker@gmail.com>
2025-06-08 00:49:08 +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)andAndres Pava 10683c88b7 Translated using Weblate (Spanish) (#128)
Currently translated at 96.1% (173 of 180 strings)


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

Co-authored-by: Andres Pava <hola@andrespava.com>
2025-03-29 11:27:36 +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
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
Weblate (bot)andKris 0813b9fd45 Translated using Weblate (Spanish) (#75)
Currently translated at 68.8% (117 of 170 strings)


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

Co-authored-by: Kris <krishoodbyair@gmail.com>
2024-12-25 20:24:59 +08:00
d0d33dbb65 Added translation using Weblate (Spanish) (#59)
Translated using Weblate (German)

Currently translated at 100.0% (160 of 160 strings)

Added translation using Weblate (German)




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

Co-authored-by: Barium <peter.kuehfuss+weblate@gmail.com>
Co-authored-by: Kris <krishoodbyair@gmail.com>
2024-12-17 21:47:09 +08:00