From 296e0ee7e955a96604327d20f87f766bfbc75a3e Mon Sep 17 00:00:00 2001 From: SuRu <33urus+github@gmail.com> Date: Mon, 29 Apr 2024 01:32:49 +0300 Subject: [PATCH] Improve date diff page (#55) --- .eslintrc.js => .eslintrc.cjs | 0 package.json | 5 +- src/commons/constants.ts | 6 +- src/commons/utils.country.ts | 2 +- src/components/AppFooter.tsx | 2 +- src/components/AppHeader.tsx | 2 +- .../tools/dates/DateDifferenceCalculator.tsx | 60 +- src/main.tsx | 2 +- yarn.lock | 2571 ++++++++++------- 9 files changed, 1577 insertions(+), 1073 deletions(-) rename .eslintrc.js => .eslintrc.cjs (100%) diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/package.json b/package.json index 9aaecfa..0921833 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "boring-devtools", "private": true, - "version": "1.0.7", + "version": "1.0.9", + "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", @@ -37,6 +38,6 @@ "eslint-plugin-json": "^3.1.0", "eslint-plugin-react": "^7.32.1", "typescript": "^4.9.4", - "vite": "^4.0.4" + "vite": "5.1.0-beta.2" } } diff --git a/src/commons/constants.ts b/src/commons/constants.ts index a49db40..1a2c74d 100644 --- a/src/commons/constants.ts +++ b/src/commons/constants.ts @@ -3,10 +3,10 @@ const __ = { emptyStr: "", space: " ", tzUTC: "UTC", - addressSeperator: "\n--\n", + addressSeparator: "\n--\n", settings: { - appname: "boring-devtools", - version: "1.0.7", + appName: "boring-devtools", + version: "1.0.9", fontFamily: "'JetBrains Mono', monospace", myURL: "https://suru.im", license: "MIT", diff --git a/src/commons/utils.country.ts b/src/commons/utils.country.ts index 73ef5d9..d4f38b3 100644 --- a/src/commons/utils.country.ts +++ b/src/commons/utils.country.ts @@ -12,5 +12,5 @@ export const generateAddress = (countries: CountryCode[], locale = defaultFakerL `${$faker.address.zipCode(getZipCodeFormat(country))}, ${$faker.address.city()}`, country === "US" ? `${$faker.address.state()}, ${getCountryName(country)}` : getCountryName(country) ].join(__.newLine); - return range(count).map(() => address(chooseRandom(countries))).join(__.addressSeperator); + return range(count).map(() => address(chooseRandom(countries))).join(__.addressSeparator); }; diff --git a/src/components/AppFooter.tsx b/src/components/AppFooter.tsx index f499588..1e7f113 100644 --- a/src/components/AppFooter.tsx +++ b/src/components/AppFooter.tsx @@ -10,7 +10,7 @@ const AppFooter = () => {