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.
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>
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: enhance public notes functionality with flexible options
- Make public notes optional to prevent default values causing frontend issues
- Add dual editing modes: raw text editing and custom fields (avoid hardcoded schema)
- Set raw text mode as default, populate input on edit, submit raw text content always
- Add toggle switch: submit raw text when enabled, submit empty & hide controls when disabled
- New records default to disabled public notes; auto-expand on edit based on content
* chore: auto-fix linting and formatting issues
* feat: Add public annotation data structure and utility functions
Implemented Zod validation patterns, default values, parsing functions, and utility functions for public notes, and updated related internationalization text.
* chore: auto-fix linting and formatting issues
* refactor(server): Replace i18n implementation
Replace direct use of i18n.t with react-i18next's useTranslation hook to improve internationalization support.
* refactor(public-note): Optimize data model and validation logic
Removed the pruneEmpty function and simplified the date processing logic, making billingDataMod and planDataMod optional fields. Also optimized the validation logic to handle optional fields.
* chore: auto-fix linting and formatting issues
* fix zod validation & don't write empty values when parsing
* use raw mode if object contains unknown fields
* rename some features
* chore: Update dependency package versions
Upgrade multiple npm dependencies to their latest versions, including react, tailwindcss, and eslint. Ignore lock files.
* fix(server): Fix default value when bill amount is undefined
Changed undefined values for bill amount to the default value "0" to avoid potential null value errors.
---------
Co-authored-by: Guccen <171530509+Chillln@users.noreply.github.com>
Co-authored-by: uubulb <uub@suwako.de>
* 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: menu add back to home item
* chore: auto-fix linting and formatting issues
---------
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>
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>
* 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