diff --git a/package-lock.json b/package-lock.json index e4198e049..f2d00d40d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,6 +54,7 @@ "@types/url-parse": "^1.4.11", "autoprefixer": "^10.4.21", "babel-loader": "^10.0.0", + "com.foxdebug.acode.rk.exec.proot": "file:src/plugins/proot", "com.foxdebug.acode.rk.exec.terminal": "file:src/plugins/terminal", "cordova-android": "^14.0.1", "cordova-clipboard": "^1.3.0", @@ -4334,6 +4335,10 @@ "dev": true, "license": "MIT" }, + "node_modules/com.foxdebug.acode.rk.exec.proot": { + "resolved": "src/plugins/proot", + "link": true + }, "node_modules/com.foxdebug.acode.rk.exec.terminal": { "resolved": "src/plugins/terminal", "link": true @@ -11202,7 +11207,7 @@ "src/plugins/proot": { "name": "com.foxdebug.acode.rk.exec.proot", "version": "1.0.0", - "extraneous": true, + "dev": true, "license": "MIT" }, "src/plugins/sdcard": { diff --git a/package.json b/package.json index d6ef79942..2ab7735fb 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "cordova-plugin-browser": {}, "cordova-plugin-sftp": {}, "cordova-plugin-system": {}, - "com.foxdebug.acode.rk.exec.terminal": {} + "com.foxdebug.acode.rk.exec.terminal": {}, + "com.foxdebug.acode.rk.exec.proot": {} }, "platforms": [ "android" @@ -62,6 +63,7 @@ "@types/url-parse": "^1.4.11", "autoprefixer": "^10.4.21", "babel-loader": "^10.0.0", + "com.foxdebug.acode.rk.exec.proot": "file:src/plugins/proot", "com.foxdebug.acode.rk.exec.terminal": "file:src/plugins/terminal", "cordova-android": "^14.0.1", "cordova-clipboard": "^1.3.0", diff --git a/src/lang/ar-ye.json b/src/lang/ar-ye.json index 645957fed..cb8bc1414 100644 --- a/src/lang/ar-ye.json +++ b/src/lang/ar-ye.json @@ -428,5 +428,8 @@ "contributors": "المساهمون", "quicktools:hyphen": "إدراج شرطة", "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?" + "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" } diff --git a/src/lang/be-by.json b/src/lang/be-by.json index dafe38400..acb0ad114 100644 --- a/src/lang/be-by.json +++ b/src/lang/be-by.json @@ -429,5 +429,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/bn-bd.json b/src/lang/bn-bd.json index 3dfdb3f2f..fbcf89681 100644 --- a/src/lang/bn-bd.json +++ b/src/lang/bn-bd.json @@ -428,5 +428,8 @@ "contributors": "অবদানকারী", "quicktools:hyphen": "হাইফেন যুক্ত করুন", "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?" + "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" } diff --git a/src/lang/cs-cz.json b/src/lang/cs-cz.json index 07e4de6ed..8ca1529c3 100644 --- a/src/lang/cs-cz.json +++ b/src/lang/cs-cz.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/de-de.json b/src/lang/de-de.json index 7559505cd..97774f2a0 100644 --- a/src/lang/de-de.json +++ b/src/lang/de-de.json @@ -428,5 +428,8 @@ "contributors": "Mitwirkende", "quicktools:hyphen": "Bindestrich-Symbol einfügen", "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?" + "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" } diff --git a/src/lang/en-us.json b/src/lang/en-us.json index b2aec6550..73506f184 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/es-sv.json b/src/lang/es-sv.json index f6032ceaa..7ec5373e7 100644 --- a/src/lang/es-sv.json +++ b/src/lang/es-sv.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/fr-fr.json b/src/lang/fr-fr.json index dce7d6ba3..1d8bfa695 100644 --- a/src/lang/fr-fr.json +++ b/src/lang/fr-fr.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/he-il.json b/src/lang/he-il.json index e0bb45c98..47eeced10 100644 --- a/src/lang/he-il.json +++ b/src/lang/he-il.json @@ -429,5 +429,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/hi-in.json b/src/lang/hi-in.json index c47af4d43..c82a22a4b 100644 --- a/src/lang/hi-in.json +++ b/src/lang/hi-in.json @@ -429,5 +429,8 @@ "contributors": "सहयोगी", "quicktools:hyphen": "हाइफ़न प्रतीक डालें", "check for app updates": "ऐप अपडेट की जांच करें", - "prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?" + "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" } diff --git a/src/lang/hu-hu.json b/src/lang/hu-hu.json index 0b18fef43..3902c01db 100644 --- a/src/lang/hu-hu.json +++ b/src/lang/hu-hu.json @@ -428,5 +428,8 @@ "contributors": "Közreműködők", "quicktools:hyphen": "Kötőjel beszúrása", "check for app updates": "Alkalmazásfrissítések ellenőrzése", - "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?" + "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": "Keywords", + "author": "Author", + "filtered by": "Filtered by" } diff --git a/src/lang/id-id.json b/src/lang/id-id.json index 54e22d239..e23b654d4 100644 --- a/src/lang/id-id.json +++ b/src/lang/id-id.json @@ -429,5 +429,8 @@ "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?" + "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" } diff --git a/src/lang/ir-fa.json b/src/lang/ir-fa.json index 7f1a4266a..42eb53298 100644 --- a/src/lang/ir-fa.json +++ b/src/lang/ir-fa.json @@ -429,5 +429,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/it-it.json b/src/lang/it-it.json index 9cb10b9a6..ae0dc623a 100644 --- a/src/lang/it-it.json +++ b/src/lang/it-it.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/ja-jp.json b/src/lang/ja-jp.json index cccc8df05..0cd7eec85 100644 --- a/src/lang/ja-jp.json +++ b/src/lang/ja-jp.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/ko-kr.json b/src/lang/ko-kr.json index be5761d93..0a90b986f 100644 --- a/src/lang/ko-kr.json +++ b/src/lang/ko-kr.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/ml-in.json b/src/lang/ml-in.json index 79ddf4922..2194c23a3 100644 --- a/src/lang/ml-in.json +++ b/src/lang/ml-in.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/mm-unicode.json b/src/lang/mm-unicode.json index 67209d3ab..0fd284657 100644 --- a/src/lang/mm-unicode.json +++ b/src/lang/mm-unicode.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/mm-zawgyi.json b/src/lang/mm-zawgyi.json index 6794d84dc..592873ccc 100644 --- a/src/lang/mm-zawgyi.json +++ b/src/lang/mm-zawgyi.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/pl-pl.json b/src/lang/pl-pl.json index 59af10377..f28fab450 100644 --- a/src/lang/pl-pl.json +++ b/src/lang/pl-pl.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/pt-br.json b/src/lang/pt-br.json index a96d723e2..a6867794c 100644 --- a/src/lang/pt-br.json +++ b/src/lang/pt-br.json @@ -428,5 +428,8 @@ "contributors": "Contribuidores", "quicktools:hyphen": "Inserir símbolo de hífen", "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?" + "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" } diff --git a/src/lang/pu-in.json b/src/lang/pu-in.json index b8fc37e74..93ad13448 100644 --- a/src/lang/pu-in.json +++ b/src/lang/pu-in.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/ru-ru.json b/src/lang/ru-ru.json index 25a98ef62..98d088c09 100644 --- a/src/lang/ru-ru.json +++ b/src/lang/ru-ru.json @@ -428,5 +428,8 @@ "contributors": "Авторы", "quicktools:hyphen": "Вставить символ дефиса", "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?" + "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" } diff --git a/src/lang/tl-ph.json b/src/lang/tl-ph.json index ef3269a99..874736e9f 100644 --- a/src/lang/tl-ph.json +++ b/src/lang/tl-ph.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/tr-tr.json b/src/lang/tr-tr.json index c2fa96353..c33509167 100644 --- a/src/lang/tr-tr.json +++ b/src/lang/tr-tr.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/uk-ua.json b/src/lang/uk-ua.json index 42088a861..c2784ea9c 100644 --- a/src/lang/uk-ua.json +++ b/src/lang/uk-ua.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/uz-uz.json b/src/lang/uz-uz.json index d0b834fc8..7528eec4d 100644 --- a/src/lang/uz-uz.json +++ b/src/lang/uz-uz.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/vi-vn.json b/src/lang/vi-vn.json index 2ff79fe50..85df2bdbb 100644 --- a/src/lang/vi-vn.json +++ b/src/lang/vi-vn.json @@ -429,5 +429,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index 6800c9be3..b72668b1f 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/zh-hant.json b/src/lang/zh-hant.json index ad2c650d8..54202d18b 100644 --- a/src/lang/zh-hant.json +++ b/src/lang/zh-hant.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index 7f9a24980..becdaef5b 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -428,5 +428,8 @@ "contributors": "Contributors", "quicktools:hyphen": "Insert hyphen symbol", "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?" + "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" } diff --git a/src/pages/plugins/plugins.js b/src/pages/plugins/plugins.js index 735e225f6..a0f0bcbe9 100644 --- a/src/pages/plugins/plugins.js +++ b/src/pages/plugins/plugins.js @@ -66,48 +66,108 @@ export default function PluginsInclude(updates) { }, }); + const verifiedLabel = strings["verified publisher"]; + const authorLabel = strings.author || strings.name; + const keywordsLabel = strings.keywords; + + const filterOptions = { + "orderBy:top_rated": { type: "orderBy", value: "top_rated", baseLabel: strings.top_rated }, + "orderBy:newest": { type: "orderBy", value: "newest", baseLabel: strings.newly_added }, + "orderBy:downloads": { type: "orderBy", value: "downloads", baseLabel: strings.most_downloaded }, + "attribute:verified": { type: "verified", value: true, baseLabel: verifiedLabel }, + "attribute:author": { type: "author", baseLabel: authorLabel }, + "attribute:keywords": { type: "keywords", baseLabel: keywordsLabel }, + }; + + async function applyFilter(filterState) { + if (!filterState) return; + + const normalizedFilter = { + ...filterState, + displayLabel: filterState.displayLabel || filterState.baseLabel, + nextPage: 1, + buffer: [], + hasMoreSource: true, + }; + + currentFilter = normalizedFilter; + currentPage = 1; + hasMore = true; + isLoading = false; + plugins.all = []; + + if (currSection !== "all") { + render("all"); + } else { + $list.all.replaceChildren(); + } + + const filterMessage = ( +