From d5a467aa557480e747f93f3f745e249ae394a243 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 17 Apr 2025 18:24:37 +0200 Subject: [PATCH] feat: Add sus (translations missing) --- public/i18n/de.json | 2 + public/i18n/en.json | 2 + public/index.html | 39 +++++++++++----- src/feedback.js | 2 +- src/index.js | 1 + src/main.scss | 14 ++++++ src/sus.js | 107 ++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 155 insertions(+), 12 deletions(-) create mode 100644 src/sus.js diff --git a/public/i18n/de.json b/public/i18n/de.json index 62d3f5e..a8b12d9 100644 --- a/public/i18n/de.json +++ b/public/i18n/de.json @@ -22,6 +22,8 @@ "source-code": "Quellcode", "give-feedback": "Feedback geben", "feedback": "Feedback", + "sus-title": "Bewerte den Rechner", + "submit": "Absenden", "failed-base-area": "Die Mindestgrundfläche des Käfigs muss {{ MINIMUM_BASE_AREA }}m² (also z.B. 100x50cm) betragen.", "failed-overall-area": "Die Gesamtfläche im Käfig ist zu klein.", "failed-fall-height": "Die mögliche Fallhöhe darf nicht mehr als {{ maximum_fall_height }}cm betragen.", diff --git a/public/i18n/en.json b/public/i18n/en.json index 0236e7e..79b8314 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -22,6 +22,8 @@ "source-code": "Source Code", "give-feedback": "Give Feedback", "feedback": "Feedback", + "sus-title": "Rate the calculator", + "submit": "Submit", "failed-base-area": "The base area of the cage must not be below {{ MINIMUM_BASE_AREA }}m².", "failed-overall-area": "The overall area in the cage is to small.", "failed-fall-height": "The possible fall height between floors must not be above {{ maximum_fall_height }}cm.", diff --git a/public/index.html b/public/index.html index c814997..ec7ccbb 100644 --- a/public/index.html +++ b/public/index.html @@ -261,7 +261,8 @@ @@ -274,21 +275,37 @@