From 56facb204ae4a3a997985e25daed8b9a774d6982 Mon Sep 17 00:00:00 2001 From: Massedil Date: Thu, 3 Jul 2025 22:02:50 +0200 Subject: [PATCH] refactor: Improve admin settings design Adding sections permit to be more clear and will help if we add a new "External links" section (#1764) --- src/i18n/en_US.json | 8 + src/i18n/fr_FR.json | 5 + src/views/Admin/SettingsView.vue | 829 ++++++++++++++++--------------- 3 files changed, 430 insertions(+), 412 deletions(-) diff --git a/src/i18n/en_US.json b/src/i18n/en_US.json index c0b3ca552..1ff7d7b8f 100644 --- a/src/i18n/en_US.json +++ b/src/i18n/en_US.json @@ -584,6 +584,7 @@ "Increase": "Increase", "Increasing creation date": "Increasing creation date", "Increasing number of members": "Increasing number of members", + "Informations":"Informations", "Instance": "Instance", "Instance Long Description": "Instance Long Description", "Instance Name": "Instance Name", @@ -849,6 +850,8 @@ "Open user menu": "Open user menu", "Opened reports": "Opened reports", "Or": "Or", + "Open": "Open", + "Options":"Options", "Ordered list": "Ordered list", "Organized": "Organized", "Organized by": "Organized by", @@ -896,6 +899,9 @@ "Pick a profile or a group": "Pick a profile or a group", "Pick an identity": "Pick an identity", "Pick an instance": "Pick an instance", + "Pick a profile or a group": "Pick a profile or a group", + "Pick": "Pick", + "Pictures": "Pictures", "Please add as many details as possible to help identify the problem.": "Please add as many details as possible to help identify the problem.", "Please check your spam folder if you didn't receive the email.": "Please check your spam folder if you didn't receive the email.", "Please contact this instance's Mobilizon admin if you think this is a mistake.": "Please contact this instance's Mobilizon admin if you think this is a mistake.", @@ -903,6 +909,7 @@ "Please enter your password to confirm this action.": "Please enter your password to confirm this action.", "Please make sure the address is correct and that the page hasn't been moved.": "Please make sure the address is correct and that the page hasn't been moved.", "Please read the {fullRules} published by {instance}'s administrators.": "Please read the {fullRules} published by {instance}'s administrators.", + "Policies" : "Policies", "Popular groups close to you": "Popular groups close to you", "Popular groups nearby {position}": "Popular groups nearby {position}", "Post": "Post", @@ -1037,6 +1044,7 @@ "SSL/TLS": "SSL/TLS", "Save": "Save", "Save draft": "Save draft", + "Save instance settings":"Save instance settings", "Schedule": "Schedule", "Search": "Search", "Search events, groups, etc.": "Search events, groups, etc.", diff --git a/src/i18n/fr_FR.json b/src/i18n/fr_FR.json index bb96b6397..5f3c95117 100644 --- a/src/i18n/fr_FR.json +++ b/src/i18n/fr_FR.json @@ -570,6 +570,7 @@ "Increase": "Augmenter", "Increasing creation date": "Date de création croissante", "Increasing number of members": "Nombre croissant de membres", + "Informations":"Informations", "Instances following you": "Instances vous suivant", "Instances you follow": "Instances que vous suivez", "Instances": "Instances", @@ -857,6 +858,7 @@ "Open main menu": "Ouvrir le menu principal", "Open user menu": "Ouvrir le menu utilisateur", "Open": "Ouvert", + "Options":"Options", "Ordered list": "Liste ordonnée", "Organized by {name}": "Organisé par {name}", "Organized by": "Organisé par", @@ -905,6 +907,7 @@ "Pick an instance": "Choisir une instance", "Pick a profile or a group": "Choisir un profil ou groupe", "Pick": "Choisir", + "Pictures": "Images", "Please add as many details as possible to help identify the problem.": "Merci d'ajouter un maximum de détails afin d'aider à identifier le problème.", "Please check your spam folder if you didn't receive the email.": "Merci de vérifier votre dossier des indésirables si vous n'avez pas reçu l'e-mail.", "Please contact this instance's Mobilizon admin if you think this is a mistake.": "Veuillez contacter l'administrateur·rice de cette instance Mobilizon si vous pensez qu’il s’agit d’une erreur.", @@ -912,6 +915,7 @@ "Please enter your password to confirm this action.": "Merci d'entrer votre mot de passe pour confirmer cette action.", "Please make sure the address is correct and that the page hasn't been moved.": "Assurez‐vous que l’adresse est correcte et que la page n’a pas été déplacée.", "Please read the {fullRules} published by {instance}'s administrators.": "Merci de lire les {fullRules} publiées par les administrateur·rice·s de {instance}.", + "Policies": "Règles", "Popular groups close to you": "Groupes populaires proches de vous", "Popular groups nearby {position}": "Groupes populaires près de {position}", "Postal Code": "Code postal", @@ -1047,6 +1051,7 @@ "Rules": "Règles", "Save draft": "Enregistrer le brouillon", "Save": "Enregistrer", + "Save instance settings":"Sauvegarder les paramètres de l'instance", "Schedule": "Programme", "Searching…": "Recherche en cours…", "Search events, groups, etc.": "Rechercher des événements, des groupes, etc.", diff --git a/src/views/Admin/SettingsView.vue b/src/views/Admin/SettingsView.vue index 1943fd55d..b9792c085 100644 --- a/src/views/Admin/SettingsView.vue +++ b/src/views/Admin/SettingsView.vue @@ -7,123 +7,132 @@ ]" /> -
+
- - - -
- - - {{ - t( - "Displayed on homepage and meta tags. Describe what Mobilizon is and what makes this instance special in a single paragraph." - ) - }} - - -
-
- - - {{ - t( - 'A short tagline for your instance homepage. Defaults to "Gather ⋅ Organize ⋅ Mobilize"' - ) - }} - - -
-
- - - {{ t("Can be an email or a link, or just plain text.") }} - - -
- - - - - -
+
+

{{ t("Informations") }}

+ + + +
+ + + {{ + t( + "Displayed on homepage and meta tags. Describe what Mobilizon is and what makes this instance special in a single paragraph." + ) + }} + + +
+
+ + + {{ + t( + "A place to explain who you are and the things that set your instance apart. You can use HTML tags." + ) + }} + + +
+
+ + + {{ + t( + 'A short tagline for your instance homepage. Defaults to "Gather ⋅ Organize ⋅ Mobilize"' + ) + }} + + +
+
+ + + {{ t("Can be an email or a link, or just plain text.") }} + + +
+
+ +
+

{{ t("Pictures") }}

+ + + + +
+ +
+

{{ t("Options") }}

+ +
-
-
- - - {{ t("Main languages you/your moderators speak") }} - - +
+ + + {{ t("Main languages you/your moderators speak") }} + + + + +
+
+ +
+

{{ t("Policies") }}

+
+ + + {{ + t( + "A place for your code of conduct, rules or guidelines. You can use HTML tags." + ) + }} + + +
+ +
+
+
+ + {{ t("Choose the source of the instance's Terms") }} + + + {{ t("Default Mobilizon terms") }} + + + {{ t("Custom URL") }} + + + {{ t("Custom text") }} + +
+
+
+ + {{ t("Default") }} + + + + {{ + t( + "NOTE! The default terms have not been checked over by a lawyer and thus are unlikely to provide full legal protection for all situations for an instance admin using them. They are also not specific to all countries and jurisdictions. If you are unsure, please check with a lawyer." + ) + }} + +
+ {{ t("URL") }} +

+ {{ t("Set an URL to a page with your own terms.") }} +

+
+
+ {{ t("Custom") }} + + + +
+
+
+
+ + - - -
-
- - - {{ - t( - "A place to explain who you are and the things that set your instance apart. You can use HTML tags." - ) - }} - - -
-
- - - {{ - t( - "A place for your code of conduct, rules or guidelines. You can use HTML tags." - ) - }} - - -
- -
-
-
- - {{ t("Choose the source of the instance's Terms") }} - - - {{ t("Default Mobilizon terms") }} - - - {{ t("Custom URL") }} - - - {{ t("Custom text") }} - -
-
-
- - {{ t("Default") }} - - - - {{ - t( - "NOTE! The default terms have not been checked over by a lawyer and thus are unlikely to provide full legal protection for all situations for an instance admin using them. They are also not specific to all countries and jurisdictions. If you are unsure, please check with a lawyer." - ) - }} - -
- {{ t("URL") }} -

- {{ t("Set an URL to a page with your own terms.") }} -

+ + + {{ t("Custom URL") }} + + + {{ t("Custom text") }} + +
-
- {{ t("Custom") }} - +
- - + {{ t("Default") }} + + + +
+
+ {{ t("URL") }} +

+ {{ + t("Set an URL to a page with your own privacy policy.") + }} +

+
+
+ {{ t("Custom") }} + + + +
-
-
- - - - - - - -
-
-
- - {{ t("Choose the source of the instance's Privacy Policy") }} - - - {{ t("Default Mobilizon privacy policy") }} - - - {{ t("Custom URL") }} - - - {{ t("Custom text") }} - -
-
-
-
- {{ t("Default") }} - - - -
-
- {{ t("URL") }} -

- {{ t("Set an URL to a page with your own privacy policy.") }} -

-
-
- {{ t("Custom") }} - - - -
-
-
-
- - - - - - + + + + + + + +
+ {{ - t("Save") + t("Save instance settings") }} - +