From aa9a27f574fdafebc909b2b6caf40630ba9c0444 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Tue, 10 Jun 2025 11:57:45 +0200 Subject: [PATCH 1/2] fix: display guest name validity Signed-off-by: skjnldsv --- l10n/messages.pot | 21 ++++++++++++++ lib/components/PublicAuthPrompt.vue | 24 ++++++++++++++- lib/public-auth.ts | 1 - lib/utils/guestNameValidity.ts | 45 +++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 lib/utils/guestNameValidity.ts diff --git a/l10n/messages.pot b/l10n/messages.pot index d4f84560c..ad6eded33 100644 --- a/l10n/messages.pot +++ b/l10n/messages.pot @@ -2,12 +2,21 @@ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" +msgid "\"{char}\" is not allowed inside a name." +msgstr "" + +msgid "\"{extension}\" is not an allowed name." +msgstr "" + msgid "\"{name}\" is an invalid folder name." msgstr "" msgid "\"{name}\" is not an allowed folder name" msgstr "" +msgid "\"{segment}\" is a reserved name and not allowed." +msgstr "" + msgid "\"/\" is not allowed inside a folder name." msgstr "" @@ -76,6 +85,9 @@ msgstr "" msgid "Home" msgstr "" +msgid "Invalid name." +msgstr "" + msgid "Modified" msgstr "" @@ -88,6 +100,15 @@ msgstr "" msgid "Name" msgstr "" +msgid "Names must not be empty." +msgstr "" + +msgid "Names must not end with \"{extension}\"." +msgstr "" + +msgid "Names must not start with a dot." +msgstr "" + msgid "New" msgstr "" diff --git a/lib/components/PublicAuthPrompt.vue b/lib/components/PublicAuthPrompt.vue index bd5a10ffc..218b5b632 100644 --- a/lib/components/PublicAuthPrompt.vue +++ b/lib/components/PublicAuthPrompt.vue @@ -6,11 +6,12 @@