From 73840ac25dc6fe5a40b5f2732f5e3aca152aa3a3 Mon Sep 17 00:00:00 2001 From: hyperz111 Date: Mon, 18 Aug 2025 10:33:38 +0700 Subject: [PATCH 1/6] chore: update id-id.json --- src/lang/id-id.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lang/id-id.json b/src/lang/id-id.json index ed06e9b09..d456a0da9 100644 --- a/src/lang/id-id.json +++ b/src/lang/id-id.json @@ -423,9 +423,9 @@ "allFileAccess": "Semua akses berkas", "fonts": "Huruf", "sponsor": "Sponsor", - "downloads": "downloads", - "reviews": "reviews", - "overview": "Overview", - "contributors": "Contributors", - "quicktools:hyphen": "Insert hyphen symbol" + "downloads": "Unduhan", + "reviews": "Ulasan", + "overview": "Ikhtisar", + "contributors": "Kontributor", + "quicktools:hyphen": "Masukkan simbol tanda hubung" } From 0c4fe92be52ea20782a94daca2aa0b208557541d Mon Sep 17 00:00:00 2001 From: hyperz111 Date: Fri, 5 Sep 2025 06:20:13 +0700 Subject: [PATCH 2/6] fix(i18n): fix typo in ./src/lang/id-id.json --- src/lang/id-id.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/id-id.json b/src/lang/id-id.json index d456a0da9..b03d1e78a 100644 --- a/src/lang/id-id.json +++ b/src/lang/id-id.json @@ -85,7 +85,7 @@ "soft tab": "Tab lunak", "sort by name": "Urutkan berdasarkan nama", "success": "Sukses", - "tab size": "Ukuram Tab", + "tab size": "Ukuran Tab", "text wrap": "Bungkus Teks", "theme": "Tema", "unable to delete file": "Tidak dapat menghapus berkas", From c2749819cc27d46079984704531771ffcd4ac866 Mon Sep 17 00:00:00 2001 From: hyperz111 Date: Thu, 16 Oct 2025 17:15:11 +0700 Subject: [PATCH 3/6] chore(i18n): update id-id.json with new strings --- src/lang/id-id.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lang/id-id.json b/src/lang/id-id.json index e23b654d4..9bef5e06d 100644 --- a/src/lang/id-id.json +++ b/src/lang/id-id.json @@ -428,9 +428,9 @@ "overview": "Ikhtisar", "contributors": "Kontributor", "quicktools:hyphen": "Masukkan simbol tanda hubung", - "check for app updates": "Check for app updates", - "prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?", - "keywords": "Keywords", - "author": "Author", - "filtered by": "Filtered by" + "check for app updates": "Periksa pembaruan aplikasi", + "prompt update check consent message": "Acode dapat memeriksa pembaruan aplikasi baru saat Anda online. Aktifkan pemeriksaan pembaruan?", + "keywords": "Kata kunci", + "author": "Pembuat", + "filtered by": "Disaring oleh" } From 378279eee1db75c74cd6cf7be593129be6d3232d Mon Sep 17 00:00:00 2001 From: hyperz111 Date: Mon, 2 Feb 2026 15:27:39 +0700 Subject: [PATCH 4/6] refactor: replace moment with dayjs --- package-lock.json | 17 +++++++---------- package.json | 2 +- src/pages/plugin/plugin.view.js | 17 +++++++++++------ 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index cb95a30ac..4ddb2b9de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "cordova": "13.0.0", "core-js": "^3.45.0", "crypto-js": "^4.2.0", + "dayjs": "^1.11.19", "dompurify": "^3.2.6", "escape-string-regexp": "^5.0.0", "filesize": "^11.0.2", @@ -36,7 +37,6 @@ "markdown-it-github-alerts": "^1.0.0", "markdown-it-task-lists": "^2.1.1", "mime-types": "^3.0.1", - "moment": "^2.30.1", "mustache": "^4.2.0", "picomatch": "^4.0.3", "url-parse": "^1.5.10", @@ -4704,6 +4704,12 @@ "integrity": "sha512-AsElvov3LoNB7tf5k37H2jYSB+ZZPMT5sG2QjJCcdlV5chIv6htBUBUui2IKRjgtKAKtCBN7Zbwa+MtwLjSeNw==", "dev": true }, + "node_modules/dayjs": { + "version": "1.11.19", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", + "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==", + "license": "MIT" + }, "node_modules/debug": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", @@ -6318,15 +6324,6 @@ "node": ">= 18" } }, - "node_modules/moment": { - "version": "2.30.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", - "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", diff --git a/package.json b/package.json index 094875d7b..a6464f09b 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "cordova": "13.0.0", "core-js": "^3.45.0", "crypto-js": "^4.2.0", + "dayjs": "^1.11.19", "dompurify": "^3.2.6", "escape-string-regexp": "^5.0.0", "filesize": "^11.0.2", @@ -125,7 +126,6 @@ "markdown-it-github-alerts": "^1.0.0", "markdown-it-task-lists": "^2.1.1", "mime-types": "^3.0.1", - "moment": "^2.30.1", "mustache": "^4.2.0", "picomatch": "^4.0.3", "url-parse": "^1.5.10", diff --git a/src/pages/plugin/plugin.view.js b/src/pages/plugin/plugin.view.js index 6ed0b0886..aa8f05854 100644 --- a/src/pages/plugin/plugin.view.js +++ b/src/pages/plugin/plugin.view.js @@ -6,9 +6,14 @@ import DOMPurify from "dompurify"; import Ref from "html-tag-js/ref"; import actionStack from "lib/actionStack"; import constants from "lib/constants"; -import moment from "moment"; import helpers from "utils/helpers"; import Url from "utils/Url"; +import dayjs from "dayjs/esm"; +import dayjsRelativeTime from "dayjs/esm/plugin/relativeTime"; +import dayjsUpdateLocale from "dayjs/esm/plugin/updateLocale"; + +dayjs.extend(dayjsRelativeTime); +dayjs.extend(dayjsUpdateLocale); export default (props) => { const { @@ -48,8 +53,8 @@ export default (props) => { if (!dateString) return null; try { - // Configure moment for shorter relative time format - moment.updateLocale("en", { + // Configure dayjs for shorter relative time format + dayjs.updateLocale("en", { relativeTime: { future: "in %s", past: "%s ago", @@ -68,12 +73,12 @@ export default (props) => { }, }); - const updateTime = moment.utc(dateString); + const updateTime = dayjs(dateString); if (!updateTime.isValid()) return null; - return updateTime.fromNow(); + return updateTime.fromNow(true); } catch (error) { - console.warn("Error parsing date with moment:", dateString, error); + console.warn("Error parsing date with dayjs:", dateString, error); return null; } }; From fad8730ba71fa2b4974a665b15920b0dc90871eb Mon Sep 17 00:00:00 2001 From: hyperz111 Date: Mon, 2 Feb 2026 15:43:11 +0700 Subject: [PATCH 5/6] chore: use utc plugin --- src/pages/plugin/plugin.view.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/plugin/plugin.view.js b/src/pages/plugin/plugin.view.js index aa8f05854..3d9f99bf4 100644 --- a/src/pages/plugin/plugin.view.js +++ b/src/pages/plugin/plugin.view.js @@ -1,6 +1,10 @@ import fsOperation from "fileSystem"; import TabView from "components/tabView"; import toast from "components/toast"; +import dayjs from "dayjs/esm"; +import dayjsRelativeTime from "dayjs/esm/plugin/relativeTime"; +import dayjsUpdateLocale from "dayjs/esm/plugin/updateLocale"; +import dayjsUtc from "dayjs/esm/plugin/utc"; import alert from "dialogs/alert"; import DOMPurify from "dompurify"; import Ref from "html-tag-js/ref"; @@ -8,11 +12,9 @@ import actionStack from "lib/actionStack"; import constants from "lib/constants"; import helpers from "utils/helpers"; import Url from "utils/Url"; -import dayjs from "dayjs/esm"; -import dayjsRelativeTime from "dayjs/esm/plugin/relativeTime"; -import dayjsUpdateLocale from "dayjs/esm/plugin/updateLocale"; dayjs.extend(dayjsRelativeTime); +dayjs.extend(dayjsUtc); dayjs.extend(dayjsUpdateLocale); export default (props) => { @@ -73,7 +75,7 @@ export default (props) => { }, }); - const updateTime = dayjs(dateString); + const updateTime = dayjs.utc(dateString); if (!updateTime.isValid()) return null; return updateTime.fromNow(true); From 2ee7f495080e2987ba3eae58154a4a126b6896d8 Mon Sep 17 00:00:00 2001 From: hyperz111 Date: Mon, 2 Feb 2026 15:48:46 +0700 Subject: [PATCH 6/6] chore: move dayjs config to top --- src/pages/plugin/plugin.view.js | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/pages/plugin/plugin.view.js b/src/pages/plugin/plugin.view.js index 3d9f99bf4..0d012e2b4 100644 --- a/src/pages/plugin/plugin.view.js +++ b/src/pages/plugin/plugin.view.js @@ -17,6 +17,26 @@ dayjs.extend(dayjsRelativeTime); dayjs.extend(dayjsUtc); dayjs.extend(dayjsUpdateLocale); +// Configure dayjs for shorter relative time format +dayjs.updateLocale("en", { + relativeTime: { + future: "in %s", + past: "%s ago", + s: "now", + ss: "now", + m: "1m", + mm: "%dm", + h: "1h", + hh: "%dh", + d: "1d", + dd: "%dd", + M: "1mo", + MM: "%dmo", + y: "1y", + yy: "%dy", + }, +}); + export default (props) => { const { id, @@ -55,26 +75,6 @@ export default (props) => { if (!dateString) return null; try { - // Configure dayjs for shorter relative time format - dayjs.updateLocale("en", { - relativeTime: { - future: "in %s", - past: "%s ago", - s: "now", - ss: "now", - m: "1m", - mm: "%dm", - h: "1h", - hh: "%dh", - d: "1d", - dd: "%dd", - M: "1mo", - MM: "%dmo", - y: "1y", - yy: "%dy", - }, - }); - const updateTime = dayjs.utc(dateString); if (!updateTime.isValid()) return null;