diff --git a/data/strings/en/excel-password-remover.yml b/data/strings/en/excel-password-remover.yml index f3ab0dd..79a9fe0 100644 --- a/data/strings/en/excel-password-remover.yml +++ b/data/strings/en/excel-password-remover.yml @@ -1,58 +1,43 @@ # EN - Excel Password Remover -meta.title: Excel Password Remover -meta.description: >- - Small web application from which you can easily remove a password from an Excel - worksheet. It works by leaving the task of editing the XML files on an Excel - document to your browser instead to keep everything local. -meta.description.light: >- - Small web application from which you can easily remove a password from an Excel - worksheet directly in your browser. +meta: + title: Excel Password Remover + description: >- + Small web application from which you can easily remove a password from an Excel + worksheet. It works by leaving the task of editing the XML files on an Excel + document to your browser instead to keep everything local. + description.light: >- + Small web application from which you can easily remove a password from an Excel + worksheet directly in your browser. -#article.subtitle: >- -# View on GitHub -#intro.title: Introduction -#intro.p1: >- -# This project aims to simplify the removal of passwords on Excel's Worksheet by -# leaving the task of editing the XML files on an Excel document to your -# browser. -#working.title: Security & Internal workings -#working.p1: >- -# In terms of security, your browser handles all the data without sending any of -# it to a central server like many web apps do.
This makes it, and your data, -# as safe as your browser can be since it is the only potential point of failure -# here. -#working.p2: >- -# As for the internal workings, the only thing this tool does is extract the -# content of the .xlsx file you gave it and removes the passwords -# on any worksheets and makes a new file with all the changes.
Once all of -# that is done, the file is downloaded via a data -# URL. -#usage.title: Usage -#usage.p1: >- -# To use this tool you can either visit "aziascreations.github.io/Excel-Worksheet-Password-Remover" -# or download the repository and host the web page yourself. -#demo.title: Demonstration video -#links.title: Links -#content.link.demo: Demo hosted on GitHub - - -eula.1: "This tool should only be used with files you have the express permission to unlock." -eula.2: "All password removal is done locally in your browser, and no data is sent online.
+eula: + 1: "This tool should only be used with files you have the express permission to unlock." + 2: "All password removal is done locally in your browser, and no data is sent online.
The original password cannot be revealed as it’s secure by design and not stored in plain text; it simply gets removed." -eula.3: "By using this tool, you accept full responsibility, and that it is provided “as is” without any warranty." + 3: "By using this tool, you accept full responsibility, and that it is provided “as is” without any warranty." -file.selection.title: "File Selection" -file.selection.1: "Drop your excel file(s) here or click on the buttons." +file: + selection: + title: "File Selection" + 1: "Drop your excel file(s) here or click on the buttons." -details.title : "Result(s)" -details.empty.1 : "Your Excel files with their password removed will end up here." +details: + title : "Result(s)" + empty: + 1 : "Your Excel files with their password removed will end up here." -result.success.count: "Removed ??? password(s)" -result.warning.extension: "The file doesn't appear to be an Excel Worksheet !" -result.warning.password: "The Excel Worksheet didn't contain any password !" -result.error.jszip: "JSZip was unable to open the file !" +result: + success: + count: "Removed ??? password(s)" + warning: + extension: "The file doesn't appear to be an Excel Worksheet !" + password: "The Excel Worksheet didn't contain any password !" + error: + jszip: "JSZip was unable to open the file !" + +license: + title: "Licenses" + text: + 1: "This tool uses the JSZip +library, which is licensed under the MIT license." + 2: "The rest of this tool's code is released in the public domain." diff --git a/data/strings/fr/excel-password-remover.yml b/data/strings/fr/excel-password-remover.yml index 122b658..d21e461 100644 --- a/data/strings/fr/excel-password-remover.yml +++ b/data/strings/fr/excel-password-remover.yml @@ -1,53 +1,44 @@ # FR - Excel Password Remover -meta.title: Excel Password Remover -meta.description: >- - Petite application web qui permet de facilement retirer le mot de passe d'une - feuille de calcul Excel depuis votre navigateur web sans avoir à uploader le - fichier sur internet. Cette application laisse votre navigateur modifier les - fichiers XML du fichier Excel afin de tout garder en local. -meta.description.light: >- - Application web qui permet de facilement retirer le mot de passe d'un ficher Excel depuis - votre navigateur web sans avoir à uploader le fichier sur internet. +meta: + title: Excel Password Remover + description: >- + Petite application web qui permet de facilement retirer le mot de passe d'une + feuille de calcul Excel depuis votre navigateur web sans avoir à uploader le + fichier sur internet. Cette application laisse votre navigateur modifier les + fichiers XML du fichier Excel afin de tout garder en local. + description.light: >- + Application web qui permet de facilement retirer le mot de passe d'un ficher Excel depuis + votre navigateur web sans avoir à uploader le fichier sur internet. -#article.subtitle: >- -# Voir sur GitHub -#intro.title: Introduction -#intro.p1: >- -# Ce projet vise à simplifier le processus de suppression des mots de passes sur -# les "worksheet" d'Excel en laissant votre navigateur web s'en charger. -#working.title: Sécurité & Fonctionnement -#working.p1: >- -# Cet outil charge le ficher que vous lui donnez en mémoire et travaille -# directement dessus dans le navigateur web sans utiliser un serveur central, -# vos données restent donc entièrement sur votre machine. -#working.p2: >- -# Par sécurité, nous vous demandons quand même de n'utiliser cet outil qu'avec -# des fichiers pour lesquels vous avez été explicitement autorisés à enlever le -# mot de passe. -#usage.title: Utilisation -#usage.p1: >- -# Vous pouvez utiliser cet outil en allant sur "aziascreations.github.io/Excel-Worksheet-Password-Remover" -# ou en téléchargeant le dépôt et en hébergeant la page web vous-même. -#demo.title: Vidéo de démonstration -#links.title: Liens -#content.link.demo: Démo hébergée sur GitHub - -eula.1 : "Cet outil ne doit être utilisé qu'avec des fichiers pour lesquels vous avez l'autorisation de les déverrouiller." -eula.2 : "Toute suppression de mot de passe se fait localement dans votre navigateur, et aucune donnée n'est envoyée via Internet.
+eula: + 1: "Cet outil ne doit être utilisé qu'avec des fichiers pour lesquels vous avez l'autorisation de les déverrouiller." + 2: "Toute suppression de mot de passe se fait localement dans votre navigateur, et aucune donnée n'est envoyée via Internet.
Le mot de passe original ne peut pas être révélé car il est sécurisé par Excel et n'est pas stocké en texte clair ; il est simplement supprimé." -eula.3 : "En utilisant cet outil, vous acceptez l'entière responsabilité de vos action, et le fait qu'il est fourni “tel quel” sans aucune garantie." + 3: "En utilisant cet outil, vous acceptez l'entière responsabilité de vos action, et le fait qu'il est fourni “tel quel” sans aucune garantie." -file.selection.title : "Sélection de fichier(s)" -file.selection.1 : "Déposez vos fichiers Excel ici ou cliquez sur les boutons." +file: + selection: + title: "Sélection de fichier(s)" + 1: "Déposez vos fichiers Excel ici ou cliquez sur les boutons." -details.title: "Résultat(s)" -details.empty.1 : "Vos fichiers Excel sans leurs mots de passe finiront ici." +details: + title: "Résultat(s)" + empty: + 1: "Vos fichiers Excel sans leurs mots de passe finiront ici." -result.success.count: "Mot de passe(s) supprimé(s) : ???" -result.warning.extension: "Le fichier ne semble pas être une feuille de calcul Excel !" -result.warning.password: "La feuille de calcul Excel ne contenait aucun mot de passe !" -result.error.jszip: "JSZip n'a pas pu ouvrir le fichier !" +result: + success: + count: "Mot de passe(s) supprimé(s) : ???" + warning: + extension: "Le fichier ne semble pas être une feuille de calcul Excel !" + password: "La feuille de calcul Excel ne contenait aucun mot de passe !" + error: + jszip: "JSZip n'a pas pu ouvrir le fichier !" + +license: + title: "Licences" + text: + 1: "Cet outil utilise la bibliothèque JSZip, +qui est distribuée sous licence MIT." + 2: "Le reste du code de cet outil est placé dans le domaine public." diff --git a/static/resources/NibblePoker/js/nibblepoker-core.mjs b/static/resources/NibblePoker/js/nibblepoker-core.mjs index 94b5c36..0846c4b 100644 --- a/static/resources/NibblePoker/js/nibblepoker-core.mjs +++ b/static/resources/NibblePoker/js/nibblepoker-core.mjs @@ -48,7 +48,6 @@ export function initCore() { // Setting up the file drop inputs document.querySelectorAll(".np-file-input-drop-container").forEach(eRootContainer => { - //console.log(eRootContainer); /** @type {HTMLInputElement} */ const eFileDropInput = eRootContainer.querySelector("input[type=file]"); @@ -58,7 +57,6 @@ export function initCore() { /** @type {string} */ const inputId = eFileDropInput.getAttribute("id"); - //console.log(inputId); /** @type {HTMLElement} */ const eFileDropTextEmpty = eRootContainer.querySelector(`#${inputId}-text-drop`); @@ -78,24 +76,29 @@ export function initCore() { /** @type {NodeListOf} */ const eFileDropSelectionCounts = eRootContainer.querySelectorAll(`.np-file-drop-count`); + function handleFileDropClear() { + eFileDropInput.value = ''; + if(eFileDropTextSingle !== null) { + eFileDropTextSingle.hidden = true; + } + if(eFileDropTextMultiple !== null) { + eFileDropTextMultiple.hidden = true; + } + if(eFileDropTextEmpty !== null) { + eFileDropTextEmpty.hidden = false; + } + } + if(eFileDropAddButton !== null) { eFileDropAddButton.addEventListener("click", function() { + handleFileDropClear(); eFileDropInput.click(); }); } if(eFileDropClearButton !== null) { eFileDropClearButton.addEventListener("click", function() { - eFileDropInput.value = ''; - if(eFileDropTextSingle !== null) { - eFileDropTextSingle.hidden = true; - } - if(eFileDropTextMultiple !== null) { - eFileDropTextMultiple.hidden = true; - } - if(eFileDropTextEmpty !== null) { - eFileDropTextEmpty.hidden = false; - } + handleFileDropClear(); }); } diff --git a/templates/applets/excel-password-remover.jinja b/templates/applets/excel-password-remover.jinja index 76024b7..b7ce688 100644 --- a/templates/applets/excel-password-remover.jinja +++ b/templates/applets/excel-password-remover.jinja @@ -27,14 +27,23 @@
@@ -46,13 +55,21 @@ @@ -67,7 +84,11 @@
- + {% if is_standalone %} + + {% else %} + + {% endif %} PlaceholderSuccessName.xlsx - + {% if is_standalone %} + 💾 + {% else %} + + {% endif %}
- + {% if is_standalone %} + ⚠️ + {% else %} + + {% endif %} PlaceholderWarningName.xlsx @@ -92,7 +113,11 @@
- + {% if is_standalone %} + + {% else %} + + {% endif %} PlaceholderErrorName.xlsx @@ -110,8 +135,13 @@ {% if is_standalone %} -
- {{ render_h2(l10n("licenses.title", applet_data.id, user_lang)) }} -

123

+
+ {{ render_h2(l10n("license.title", applet_data.id, user_lang)) }} + +
+ {{ render_paragraph( + l10n("license.text.1", applet_data.id, user_lang) + "
" + l10n("license.text.2", applet_data.id, user_lang) + ) }} +
{% endif %} diff --git a/templates/elements/file-input.jinja b/templates/elements/file-input.jinja index fd9a0d7..d3c8b09 100644 --- a/templates/elements/file-input.jinja +++ b/templates/elements/file-input.jinja @@ -23,7 +23,10 @@
{% if file_upload_button %} {% endif %}