From 044c63474dc2cc445e2879a812137e13db35d306 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Tue, 3 May 2022 14:49:14 +0200 Subject: [PATCH] Fix classification of Base64Tool --- package.json | 2 +- public/locales/de/translation.json | 110 +++++++++--------- public/locales/en/translation.json | 110 +++++++++--------- src/_common.scss | 2 +- src/components/LinkBox.module.scss | 3 +- src/pages/Home.tsx | 5 +- src/pages/Tools.tsx | 7 +- .../base64/Base64Tool.tsx | 16 +-- src/tools/tools.ts | 4 +- 9 files changed, 137 insertions(+), 122 deletions(-) diff --git a/package.json b/package.json index bca6aff..5ca9fc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kevins-data-toolbox", - "version": "2.1.0", + "version": "2.1.1", "private": true, "dependencies": { "@loadable/component": "^5.15.0", diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 9b2bfcc..54932b7 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -1,58 +1,64 @@ { - "site": { - "title": "Kevins Datenkasten", - "navigation": { - "tools": "Werkzeuge", - "about": "Über" - } + "site": { + "title": "Kevins Datenkasten", + "navigation": { + "tools": "Werkzeuge", + "about": "Über" + } + }, + "home": { + "heroPretitle": "Kevins", + "heroTitle": "Daten­kasten", + "heroSubtitle": "Dein 1-Stopp-Daten-Shop!" + }, + "tools": { + "toolCategories": "Kategorien", + "toolList": "Liste von Werkzeugen", + "noresults": "Keine Ergebnisse.", + "categories": { + "everything": "Alles", + "cryptography": "Kryptografie", + "encodings": "Kodierungen" }, - "home": { - "heroPretitle": "Kevins", - "heroTitle": "Daten\u00ADkasten", - "heroSubtitle": "Dein 1-Stopp-Daten-Shop!" + "cryptography": { + "common": { + "cleartext": "Entschlüsselter Text", + "ciphertext": "Verschlüsselter Text" + }, + "rot": { + "title": "ROT-N", + "description": "Die ROT-Verschlüsselung, auch oft als Caesar-Verschlüsselung bezeichnet, basiert auf der Idee, jeden Buchstaben um einen bestimmten Versatz zu verschieben, z.B.
A => +13 => N
", + "outOfRangeWarning": "ROT unterstützt nur Buchstaben des Grundalphabets (A-Z). Nummern und Umlaute werden nicht unterstützt und unverschlüsselt kopiert!", + "offset": "ROT-Versatz (oftmals 13)" + } }, - "tools": { - "toolCategories": "Kategorien", - "toolList": "Liste von Werkzeugen", - "noresults": "Keine Ergebnisse.", - "categories": { - "everything": "Alles", - "cryptography": "Kryptografie" + "encodings": { + "common": { + "encoded": "Kodiert", + "decoded": "Dekodiert" }, - "cryptography": { - "common": { - "cleartext": "Entschlüsselter Text", - "ciphertext": "Verschlüsselter Text" - }, - "rot": { - "title": "ROT-N", - "description": "Die ROT-Verschlüsselung, auch oft als Caesar-Verschlüsselung bezeichnet, basiert auf der Idee, jeden Buchstaben um einen bestimmten Versatz zu verschieben, z.B.
A => +13 => N
", - "outOfRangeWarning": "ROT unterstützt nur Buchstaben des Grundalphabets (A-Z). Nummern und Umlaute werden nicht unterstützt und unverschlüsselt kopiert!", - "offset": "ROT-Versatz (oftmals 13)" - }, - "base64": { - "title": "Base64", - "description": "Base64-Codierung wird oft genutzt um beliebige Binärdaten in pure Zeichenfolgen zu schreiben, indem die Daten auf 64 ASCII-Zeichen projeziert werden." - } - } - }, - "about": { - "title": "Über Kevins Datenkasten", - "p1": "Kevins Datenkasten ist meine Kollektion von kleinen, nützlichen Werkzeugen. Schau doch mal ob du was nüzliches findest!", - "p2": "Ich werde mehr Werkzeuge hinzufügen sobald ich diese fertig habe, also schau regelmäßig wieder rein!", - "morebyme": "Mehr von mir", - "visitKevinKdev": "Schau dir meine Website unter <1>KevinK.dev an!" - - }, - "system": { - "notfound": "Seite nicht gefunden", - "language": "Sprache", - "imprint": "Impressum", - "errors": { - "toolException": { - "title": "Ein fatales Problem ist aufgetreten.", - "description": "Im Werkzeug ist ein fatales Problem aufgetreten und die Aufgabe konnte nicht abgeschlossen werden. Bitte erneut versuchen." - } + "base64": { + "title": "Base64", + "description": "Base64-Codierung wird oft genutzt um beliebige Binärdaten in pure Zeichenfolgen zu schreiben, indem die Daten auf 64 ASCII-Zeichen projeziert werden." } } -} \ No newline at end of file + }, + "about": { + "title": "Über Kevins Datenkasten", + "p1": "Kevins Datenkasten ist meine Kollektion von kleinen, nützlichen Werkzeugen. Schau doch mal ob du was nüzliches findest!", + "p2": "Ich werde mehr Werkzeuge hinzufügen sobald ich diese fertig habe, also schau regelmäßig wieder rein!", + "morebyme": "Mehr von mir", + "visitKevinKdev": "Schau dir meine Website unter <1>KevinK.dev an!" + }, + "system": { + "notfound": "Seite nicht gefunden", + "language": "Sprache", + "imprint": "Impressum", + "errors": { + "toolException": { + "title": "Ein fatales Problem ist aufgetreten.", + "description": "Im Werkzeug ist ein fatales Problem aufgetreten und die Aufgabe konnte nicht abgeschlossen werden. Bitte erneut versuchen." + } + } + } +} diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 5afbd4e..f43bf4e 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -1,58 +1,64 @@ { - "site": { - "title": "Kevin's Data-Toolbox", - "navigation": { - "tools": "Tools", - "about": "About" - } + "site": { + "title": "Kevin's Data-Toolbox", + "navigation": { + "tools": "Tools", + "about": "About" + } + }, + "home": { + "heroPretitle": "Kevin's", + "heroTitle": "Data Toolbox", + "heroSubtitle": "Your One-Stop-Data-Shop!" + }, + "tools": { + "toolCategories": "Categories", + "toolList": "List of tools", + "noresults": "No results have been found.", + "categories": { + "everything": "Everything", + "cryptography": "Cryptography", + "encodings": "Encodings" }, - "home": { - "heroPretitle": "Kevin's", - "heroTitle": "Data Toolbox", - "heroSubtitle": "Your One-Stop-Data-Shop!" + "cryptography": { + "common": { + "cleartext": "Cleartext", + "ciphertext": "Ciphertext" + }, + "rot": { + "title": "ROT-N", + "description": "The ROT-cipher, also commonly referred to as the Caesar-cipher, is based on the idea of ofsetting every letter of the alphabet by a certain amount, i.e.
A => +13 => N
", + "outOfRangeWarning": "ROT only supports letters of the basic alphabet (A-Z). Numbers and accented letters are not supported and will be copied as-is!", + "offset": "ROT-Offset (commonly 13)" + } }, - "tools": { - "toolCategories": "Categories", - "toolList": "List of tools", - "noresults": "No results have been found.", - "categories": { - "everything": "Everything", - "cryptography": "Cryptography" + "encodings": { + "common": { + "encoded": "Encoded", + "decoded": "Decoded" }, - "cryptography": { - "common": { - "cleartext": "Cleartext", - "ciphertext": "Ciphertext" - }, - "rot": { - "title": "ROT-N", - "description": "The ROT-cipher, also commonly referred to as the Caesar-cipher, is based on the idea of ofsetting every letter of the alphabet by a certain amount, i.e.
A => +13 => N
", - "outOfRangeWarning": "ROT only supports letters of the basic alphabet (A-Z). Numbers and accented letters are not supported and will be copied as-is!", - "offset": "ROT-Offset (commonly 13)" - }, - "base64": { - "title": "Base64", - "description": "Base64-encoding is commonly used for storing arbitrary binary data in pure strings, by mapping it to 64 ASCII characters." - } - } - }, - "about": { - "title": "About Kevin's Data-Toolbox", - "p1": "Kevin's Data-Toolbox is my collection of useful small tools. Feel free to look through them to see if there anything is of use to you!", - "p2": "There will be more tools added over time as I create them, so check back regularly to learn about new tools!", - "morebyme": "More By Me", - "visitKevinKdev": "Check out my website <1>KevinK.dev!" - - }, - "system": { - "notfound": "Page Not Found", - "language": "Language", - "imprint": "Imprint", - "errors": { - "toolException": { - "title": "The tool encountered a fatal error.", - "description": "The tool encountered a fatal error and was unable to complete its task. Please retry." - } + "base64": { + "title": "Base64", + "description": "Base64-encoding is commonly used for storing arbitrary binary data in pure strings, by mapping it to 64 ASCII characters." } } -} \ No newline at end of file + }, + "about": { + "title": "About Kevin's Data-Toolbox", + "p1": "Kevin's Data-Toolbox is my collection of useful small tools. Feel free to look through them to see if there anything is of use to you!", + "p2": "There will be more tools added over time as I create them, so check back regularly to learn about new tools!", + "morebyme": "More By Me", + "visitKevinKdev": "Check out my website <1>KevinK.dev!" + }, + "system": { + "notfound": "Page Not Found", + "language": "Language", + "imprint": "Imprint", + "errors": { + "toolException": { + "title": "The tool encountered a fatal error.", + "description": "The tool encountered a fatal error and was unable to complete its task. Please retry." + } + } + } +} diff --git a/src/_common.scss b/src/_common.scss index 9d55c9d..b9c8c12 100644 --- a/src/_common.scss +++ b/src/_common.scss @@ -1,6 +1,6 @@ $fontFamily: 'Open Sans', sans-serif; -$colorAccent: #f58428; +$colorAccent: #e52b3e; $colorBackground: #0c0c0c; $layoutWidth: 1200px; diff --git a/src/components/LinkBox.module.scss b/src/components/LinkBox.module.scss index e17af45..d70cd91 100644 --- a/src/components/LinkBox.module.scss +++ b/src/components/LinkBox.module.scss @@ -70,7 +70,8 @@ .lbText { font-size: 1em; - font-weight: 200; + font-weight: 400; + padding-left: 5px; } } } \ No newline at end of file diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 600f243..1de7b07 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Binary, List } from 'lucide-react'; +import { Binary, List, Lock } from 'lucide-react'; import { useTranslation } from 'react-i18next'; @@ -25,7 +25,8 @@ const HomePage = () => {
} /> - } /> + } /> + } /> {/**/}
diff --git a/src/pages/Tools.tsx b/src/pages/Tools.tsx index f915828..800ffe8 100644 --- a/src/pages/Tools.tsx +++ b/src/pages/Tools.tsx @@ -1,6 +1,6 @@ import React from "react"; import { useParams } from "react-router-dom"; -import * as icons from 'lucide-react'; +import {Lock, Binary, List} from 'lucide-react'; import { useTranslation } from 'react-i18next'; @@ -28,8 +28,9 @@ const ToolsPage = () => { {t("tools.toolList")}
- } small={true} highlight={category == null} /> - } small={true} highlight={category === "cryptography"} /> + } small={true} highlight={category == null} /> + } small={true} highlight={category === "cryptography"} /> + } small={true} highlight={category === "encodings"} /> {/**/}
diff --git a/src/tools/cyphers_and_cryptography/base64/Base64Tool.tsx b/src/tools/cyphers_and_cryptography/base64/Base64Tool.tsx index 0721935..b6776d1 100644 --- a/src/tools/cyphers_and_cryptography/base64/Base64Tool.tsx +++ b/src/tools/cyphers_and_cryptography/base64/Base64Tool.tsx @@ -29,19 +29,19 @@ const Base64Tool = () => { return (
- {t("tools.cryptography.base64.title")} | {t("site.title")} - + {t("tools.encodings.base64.title")} | {t("site.title")} +
-

{t("tools.cryptography.base64.title")}

+

{t("tools.encodings.base64.title")}

-

xxx, pre:

}} />

+

xxx, pre:

}} />

- - + + - - + +
) diff --git a/src/tools/tools.ts b/src/tools/tools.ts index abda186..f26be85 100644 --- a/src/tools/tools.ts +++ b/src/tools/tools.ts @@ -23,9 +23,9 @@ const tools = [ "external": false, "urlname": "base64", "icon": Binary, - "category": "cryptography", + "category": "encodings", "hidden": false, - "keywords": "binary, base64, base, 64, cryptography, encryption, decryption" + "keywords": "binary, base64, base, 64, encodings, encryption, decryption" } ]