diff --git a/.github/workflows/add-pr-labels.yml b/.github/workflows/add-pr-labels.yml index f9b979fbb..c866e38aa 100644 --- a/.github/workflows/add-pr-labels.yml +++ b/.github/workflows/add-pr-labels.yml @@ -1,7 +1,7 @@ name: Add Pull Requests Labels on: pull_request_target: - types: [opened] + types: [opened, closed, ready_for_review] jobs: add-labels: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ae6e0907..6595eedec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,4 +63,5 @@ jobs: - name: Translation Files Check (if changed) if: steps.file-changes.outputs.translation == 'true' run: | - npm run lint check \ No newline at end of file + npm ci --no-audit --no-fund + npm run lang check \ No newline at end of file diff --git a/src/lang/ar-ye.json b/src/lang/ar-ye.json index 041717bc1..dddeeface 100644 --- a/src/lang/ar-ye.json +++ b/src/lang/ar-ye.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/be-by.json b/src/lang/be-by.json index 73d12da1b..fcd9de980 100644 --- a/src/lang/be-by.json +++ b/src/lang/be-by.json @@ -454,5 +454,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/bn-bd.json b/src/lang/bn-bd.json index bfd20c349..ff1e6a85d 100644 --- a/src/lang/bn-bd.json +++ b/src/lang/bn-bd.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/cs-cz.json b/src/lang/cs-cz.json index e4f830f73..c8d38bd24 100644 --- a/src/lang/cs-cz.json +++ b/src/lang/cs-cz.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/de-de.json b/src/lang/de-de.json index 49faa2357..bb843fdef 100644 --- a/src/lang/de-de.json +++ b/src/lang/de-de.json @@ -453,5 +453,6 @@ "prompt update check consent message": "Acode kann nach neuen App-Updates suchen, wenn Sie online sind. Update-Prüfungen aktivieren?", "keywords": "Schlüsselwörter", "author": "Autor", - "filtered by": "Gefiltert nach" + "filtered by": "Gefiltert nach", + "clean install state": "Clean Install State" } diff --git a/src/lang/en-us.json b/src/lang/en-us.json index d8fd68634..ada3a1b59 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/es-sv.json b/src/lang/es-sv.json index 380080c9b..b05eb6b57 100644 --- a/src/lang/es-sv.json +++ b/src/lang/es-sv.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/fr-fr.json b/src/lang/fr-fr.json index 8e0ab79a9..ea5fe18c7 100644 --- a/src/lang/fr-fr.json +++ b/src/lang/fr-fr.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/he-il.json b/src/lang/he-il.json index c164181ad..28cbf14e0 100644 --- a/src/lang/he-il.json +++ b/src/lang/he-il.json @@ -454,5 +454,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/hi-in.json b/src/lang/hi-in.json index 017f81b18..dd19f0f85 100644 --- a/src/lang/hi-in.json +++ b/src/lang/hi-in.json @@ -454,5 +454,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/hu-hu.json b/src/lang/hu-hu.json index 4ff7e4e16..d4fe871eb 100644 --- a/src/lang/hu-hu.json +++ b/src/lang/hu-hu.json @@ -453,5 +453,6 @@ "prompt update check consent message": "Internetkapcsolat esetén az Acode ellenőrizheti az új alkalmazásfrissítéseket. Engedélyezi a frissítések ellenőrzését?", "keywords": "Kulcsszavak", "author": "Szerző", - "filtered by": "Szűrési szempont" + "filtered by": "Szűrési szempont", + "clean install state": "Clean Install State" } diff --git a/src/lang/id-id.json b/src/lang/id-id.json index 9b96455ac..63d478b06 100644 --- a/src/lang/id-id.json +++ b/src/lang/id-id.json @@ -454,5 +454,6 @@ "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" + "filtered by": "Disaring oleh", + "clean install state": "Clean Install State" } diff --git a/src/lang/ir-fa.json b/src/lang/ir-fa.json index 57f638d10..95ca111c1 100644 --- a/src/lang/ir-fa.json +++ b/src/lang/ir-fa.json @@ -454,5 +454,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/it-it.json b/src/lang/it-it.json index 1a9eb1c4e..9fbb2c7e5 100644 --- a/src/lang/it-it.json +++ b/src/lang/it-it.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/ja-jp.json b/src/lang/ja-jp.json index 48d8cb040..348172cfe 100644 --- a/src/lang/ja-jp.json +++ b/src/lang/ja-jp.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/ko-kr.json b/src/lang/ko-kr.json index e139a2ccc..ae226c614 100644 --- a/src/lang/ko-kr.json +++ b/src/lang/ko-kr.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/ml-in.json b/src/lang/ml-in.json index 808f375d4..56f551a6c 100644 --- a/src/lang/ml-in.json +++ b/src/lang/ml-in.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/mm-unicode.json b/src/lang/mm-unicode.json index 2684b86cc..52e4c0a1f 100644 --- a/src/lang/mm-unicode.json +++ b/src/lang/mm-unicode.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/mm-zawgyi.json b/src/lang/mm-zawgyi.json index c7911dce5..6528de8dc 100644 --- a/src/lang/mm-zawgyi.json +++ b/src/lang/mm-zawgyi.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/pl-pl.json b/src/lang/pl-pl.json index 75427bbbb..791f4b507 100644 --- a/src/lang/pl-pl.json +++ b/src/lang/pl-pl.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/pt-br.json b/src/lang/pt-br.json index d01ea4147..025a41981 100644 --- a/src/lang/pt-br.json +++ b/src/lang/pt-br.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/pu-in.json b/src/lang/pu-in.json index df54e283b..ff03fcb75 100644 --- a/src/lang/pu-in.json +++ b/src/lang/pu-in.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/ru-ru.json b/src/lang/ru-ru.json index a001a312d..d7dcf31e7 100644 --- a/src/lang/ru-ru.json +++ b/src/lang/ru-ru.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/tl-ph.json b/src/lang/tl-ph.json index 15e928023..e251db1ba 100644 --- a/src/lang/tl-ph.json +++ b/src/lang/tl-ph.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/tr-tr.json b/src/lang/tr-tr.json index 67503c1cc..c1e7dd0b1 100644 --- a/src/lang/tr-tr.json +++ b/src/lang/tr-tr.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/uk-ua.json b/src/lang/uk-ua.json index 2d07a49a0..4c69bd63e 100644 --- a/src/lang/uk-ua.json +++ b/src/lang/uk-ua.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/uz-uz.json b/src/lang/uz-uz.json index aeac2080d..d39af9fb3 100644 --- a/src/lang/uz-uz.json +++ b/src/lang/uz-uz.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/vi-vn.json b/src/lang/vi-vn.json index 39ee9f228..3054398ea 100644 --- a/src/lang/vi-vn.json +++ b/src/lang/vi-vn.json @@ -454,5 +454,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index 02fad4e9d..92a1aa225 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -453,5 +453,6 @@ "prompt update check consent message": "Acode 能够在有网时检查更新。启用更新检查?", "keywords": "关键字", "author": "作者", - "filtered by": "过滤条件" + "filtered by": "过滤条件", + "clean install state": "Clean Install State" } diff --git a/src/lang/zh-hant.json b/src/lang/zh-hant.json index a7e5e1b9c..990257b60 100644 --- a/src/lang/zh-hant.json +++ b/src/lang/zh-hant.json @@ -453,5 +453,6 @@ "prompt update check consent message": "Acode 能夠在有網時檢查更新。啟用更新檢查?", "keywords": "關鍵字", "author": "作者", - "filtered by": "篩選條件" + "filtered by": "篩選條件", + "clean install state": "Clean Install State" } diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index d9b5f8e86..5f068530a 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -453,5 +453,6 @@ "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" + "filtered by": "Filtered by", + "clean install state": "Clean Install State" } diff --git a/src/settings/appSettings.js b/src/settings/appSettings.js index fd0c8fc30..b9f20f628 100644 --- a/src/settings/appSettings.js +++ b/src/settings/appSettings.js @@ -77,6 +77,10 @@ export default function otherSettings() { value: values.console, select: [appSettings.CONSOLE_LEGACY, appSettings.CONSOLE_ERUDA], }, + { + key: "cleanInstallState", + text: strings["clean install state"], + }, { key: "keyboardMode", text: strings["keyboard mode"], @@ -245,6 +249,28 @@ export default function otherSettings() { } } + case "cleanInstallState": { + const INSTALL_STATE_STORAGE = Url.join(DATA_STORAGE, ".install-state"); + + const fs = fsOperation(INSTALL_STATE_STORAGE); + + if (!(await fs.exists())) { + toast(strings["no such file or directory"]); + break; + } + + loader.create("loading..."); + + try { + await fs.delete(); + loader.destroy(); + toast(strings["success"]); + } catch (error) { + helpers.error(error); + loader.destroy(); + } + } + case "rememberFiles": if (!value) { delete localStorage.files;