Skip to content

Commit

Permalink
Improve Provider File Generator page
Browse files Browse the repository at this point in the history
  • Loading branch information
melvo committed Dec 12, 2023
1 parent b4dbfe8 commit 42d4f2a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions themes/xmpp-providers/static/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const api_levels = [
const providers_data_form_properties_v1 = [
{
name: "website",
type: "dictionary-language-website",
type: "dictionary-language-web-page",
title: "Website",
dataDescription:
"Provider website (per language).",
Expand All @@ -19,7 +19,7 @@ const providers_data_form_properties_v1 = [
type: "integer",
title: "Bus Factor",
dataDescription:
"Bus factor of the XMPP service (i.e., the minimum number of team members that the service could not survive losing) or `-1` for n/a.",
"Bus factor of the XMPP service (i.e., the minimum number of team members that the service could not survive losing) or -1 for n/a.",
},
{
name: "company",
Expand All @@ -29,17 +29,17 @@ const providers_data_form_properties_v1 = [
},
{
name: "passwordReset",
type: "dictionary-language-website",
type: "dictionary-language-web-page",
title: "Password Reset",
dataDescription:
"Password reset website (per language). Website should contain infos about automatic password reset (e.g., via email) / web page describing how to manually reset password (e.g., by contacting the provider).",
"Password reset web page (per language) used for an automatic password reset (e.g., via email) or describing how to manually reset a password (e.g., by contacting the provider).",
},
{
name: "maximumHttpFileUploadTotalSize",
type: "integer",
title: "Maximum HTTP File Upload Total Size",
dataDescription:
"Maximum size of all shared files in total (number in megabytes (MB), 0 for no limit or -1 for less than 1 MB).",
"Maximum size of all shared files in total per user (number in megabytes (MB), 0 for no limit or -1 for less than 1 MB).",
},
{
name: "maximumHttpFileUploadStorageTime",
Expand Down Expand Up @@ -70,22 +70,22 @@ const providers_data_form_properties_v1 = [
},
{
name: "legalNotice",
type: "dictionary-language-website",
type: "dictionary-language-web-page",
title: "Legal Notice",
dataDescription:
"Legal notice website (per language).",
"Legal notice web page (per language).",
},
{
name: "serverLocations",
type: "list-language-string",
title: "Server Locations",
dataDescription: "List of server/backup locations.",
dataDescription: "Server/Backup locations.",
},
{
name: "since",
type: "string-date",
title: "Since",
dataDescription: "Date since the XMPP service is available or listed.",
dataDescription: "Date since the XMPP service is available.",
},
];

Expand Down Expand Up @@ -402,7 +402,7 @@ function _on_generate_json_file_clicked() {
}

for (const property of properties_list) {
if (property.type === "dictionary-language-website") {
if (property.type === "dictionary-language-web-page") {
const container = document.getElementById(`container-${property.name}`);
const entry_rows = container.querySelectorAll(
`.row:not(#add-entry-row-${property.name})`
Expand Down Expand Up @@ -616,7 +616,7 @@ function initialize_provider_data_form() {
outer_div.append(button_row);
}

if (property.type === "dictionary-language-website") {
if (property.type === "dictionary-language-web-page") {
_add_language_entry(property.name);

// "Add Entry" button
Expand Down

0 comments on commit 42d4f2a

Please sign in to comment.