Added VAT calculator tool and applet, Cleaned up launch logs and DOM trash

Update .gitignore, vat-calculator.yml, and 17 more files...
This commit is contained in:
2025-09-07 20:52:02 +02:00
parent eb2ffa296b
commit 615affcc2d
19 changed files with 629 additions and 20 deletions

View File

@@ -0,0 +1,7 @@
applets:
- id: "vat-calculator"
resources:
scripts:
- "applet://vat-calculator.mjs"
stylesheets:
- "applet://vat-calculator.css"

View File

@@ -14,3 +14,4 @@
- "/tools/iban-generator/"
- "/tools/excel-password-remover/"
- "/tools/uuid-generator/"
- "/tools/vat-calculator/"

View File

@@ -91,3 +91,19 @@ format.json: "JSON"
format.yaml: "YAML"
action.generate: "Generate"
country.afghanistan: "Afghanistan"
country.albania: "Albania"
country.algeria: "Algeria"
country.andorra: "Andorra"
country.angola: "Angola"
country.anguilla: "Anguilla"
country.argentina: "Argentina"
country.australia: "Australia"
country.austria: "Austria"
country.azerbaijan: "Azerbaijan"
country.bahamas: "Bahamas"
country.belgium: "Belgium"
country.luxembourg: "Luxembourg"

View File

@@ -0,0 +1,50 @@
# EN - VAT Calculator
meta.title: "VAT Calculator"
meta.description: "Simple VAT calculator with a selection of common rates for over X countries."
preset.label: "Official rates"
option.detailed: "Show VAT rate types"
radio.rate: "VAT rate: "
radio.untaxed: "Excl. VAT: "
radio.taxed: "Incl. VAT: "
text.radio.explanation: "The selected radio input indicates the automatically calculated field."
rate.option.custom: "Custom rate"
rate.type.standard: "Standard"
rate.type.intermediate: "Intermediate"
rate.type.reduced: "Reduced"
rate.type.reduced.super: "Super reduced"
option.decimal-places: "Decimal places count"
option.trim-zeroes: "Trim trailing zeroes"
rounding.mode.label: "Rounding mode"
rounding.mode.group.regular: "Regular rounding"
rounding.mode.group.half: "Half rounding (Towards nearest neighbour)"
rounding.mode.up: "Away from zero (Up)"
rounding.mode.down: "Towards zero (Down)"
rounding.mode.ceil: "Towards infinity (Ceil)"
rounding.mode.floor: "Towards negative infinity (Floor)"
rounding.mode.up.half: "Away from zero if equidistant (Half up)"
rounding.mode.down.half: "Towards zero if equidistant (Half down)"
rounding.mode.even.half: "Towards even neighbour if equidistant (Half even)"
rounding.mode.ceil.half: "Towards infinity if equidistant (Half ceil)"
rounding.mode.floor.half: "Towards negative infinity if equidistant (Half floor)"
#rounding.mode.up.half: "Towards nearest neighbour, away from zero if equidistant (Half up)"
#rounding.mode.down.half: "Towards nearest neighbour, towards zero if equidistant (Half down)"
#rounding.mode.even.half: "Towards nearest neighbour, towards even neighbour if equidistant (Half even)"
#rounding.mode.ceil.half: "Towards nearest neighbour, towards infinity if equidistant (Half ceil)"
#rounding.mode.floor.half: "Towards nearest neighbour, towards negative infinity if equidistant (Half floor)"
license.text.1: "This tool uses the <a href=\"https://github.com/MikeMcl/decimal.js-light\">decimal.js-light</a>
library, which is licensed under the <a href=\"https://github.com/MikeMcl/decimal.js-light/blob/master/LICENCE.md\">MIT license</a>."
license.text.2: "The rest of this tool's code is released in the public domain."

View File

@@ -91,3 +91,7 @@ format.json: "JSON"
format.yaml: "YAML"
action.generate: "Générer"
country.belgium: "Belgique"
country.luxembourg: "Luxembourg"

View File

@@ -0,0 +1,50 @@
# FR - VAT Calculator
meta.title: "Calculateur de TVA"
meta.description: "Simple calculateur de TVA avec une selection de taux communs pour plus de X pays."
preset.label: "Taux officiel"
option.detailed: "Afficher le type de TVA"
radio.rate: "Taux: "
radio.untaxed: "<abbr title=\"Hors Taxe sur la Valeur Ajoutée\">HTVA</abbr>: "
radio.taxed: "<abbr title=\"Toutes Taxes Comprises\">TTC</abbr>: "
text.radio.explanation: "Le cercle en vert indique la valeur automatiquement calculée."
rate.option.custom: "Taux personalisé"
rate.type.standard: "Standard"
rate.type.intermediate: "Intermédiaire"
rate.type.reduced: "Réduit"
rate.type.reduced.super: "Super réduit"
option.decimal-places: "Nombre de décimales"
option.trim-zeroes: "Supprimer les zéros de fin"
rounding.mode.label: "Type d'arrondi"
rounding.mode.group.regular: "Arrondis classiques"
rounding.mode.group.half: "Demi-arrondis&emsp;(Vers le plus proche)"
rounding.mode.up: "Loin de zéro&emsp;(Arrondi au supérieur)"
rounding.mode.down: "Vers zéro&emsp;(Arrondi à l'inférieur)"
rounding.mode.ceil: "Vers l'infini&emsp;(Par plafond)"
rounding.mode.floor: "Vers moins l'infini&emsp;(Par plancher)"
rounding.mode.up.half: "Loin de zéro si équidistant&emsp;(Demi supérieur)"
rounding.mode.down.half: "Vers zéro si équidistant&emsp;(Demi inférieur)"
rounding.mode.even.half: "Vers le pair si équidistant&emsp;(Demi pair)"
rounding.mode.ceil.half: "Vers l'infini&emsp;(Demi plafond)"
rounding.mode.floor.half: "Vers moins l'infini&emsp;(Demi plancher)"
#rounding.mode.up.half: "Vers le plus proche, loin de zéro si équidistant&emsp;(Demi supérieur)"
#rounding.mode.down.half: "Vers le plus proche, vers zéro si équidistant&emsp;(Demi inférieur)"
#rounding.mode.even.half: "Vers le plus proche, vers le pair si équidistant&emsp;(Demi pair)"
#rounding.mode.ceil.half: "Vers le plus proche, vers l'infini&emsp;(Demi plafond)"
#rounding.mode.floor.half: "Vers le plus proche, vers moins l'infini&emsp;(Demi plancher)"
license.text.1: "Cet outil utilise la bibliothèque <a href=\"https://github.com/MikeMcl/decimal.js-light\">decimal.js-light</a>,
qui est distribuée sous licence <a href=\"https://github.com/MikeMcl/decimal.js-light/blob/master/LICENCE.md\">MIT</a>."
license.text.2: "Le reste du code de cet outil est placé dans le domaine public."

View File

@@ -0,0 +1,31 @@
tools:
- id: "vat-calculator"
applet_id: "vat-calculator"
metadata:
head:
title_key: "meta.title"
description_key: "meta.description"
opengraph:
title_key: "meta.title"
description_key: "meta.description"
type: null
url: null
image_url: "/resources/NibblePoker/images/tools/vat-calculator/main-quiet.png"
image_type: null
twitter:
title_key: "meta.title"
description_key: "meta.description"
index:
priority: 500
enable: true
title_key: "meta.title"
preamble_key: "meta.description"
image_url: "/resources/NibblePoker/images/tools/vat-calculator/main-quiet.png"
image_alt_key: ""
general:
icon: "fab fa-python"
title_key: "meta.title"
subtitle_key: "article.subtitle"
tags:
- "calculator"