From 1b2a1701f4662177df0896836915039d4229754f Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Sat, 7 Dec 2024 16:10:13 +0800 Subject: [PATCH] Invisible module update method, more New update card for invisible module, refine module visibility logic (better adapt with MMRL). Add active class. --- module/service.sh | 23 ++++--- module/webroot/index.html | 4 ++ module/webroot/index.js | 12 +++- module/webroot/locales/A-template.json | 5 +- module/webroot/locales/en-US.json | 3 + module/webroot/locales/ru-RU.json | 3 + module/webroot/locales/tl-PH.json | 3 + module/webroot/locales/zh-CN.json | 3 + module/webroot/locales/zh-TW.json | 3 + module/webroot/styles.css | 87 +++++++++++++++++++++----- 10 files changed, 116 insertions(+), 30 deletions(-) diff --git a/module/service.sh b/module/service.sh index 982e7d9..2dc5412 100644 --- a/module/service.sh +++ b/module/service.sh @@ -18,6 +18,13 @@ elif [ ! -d "$TSPA" ] && [ -f "/storage/emulated/0/stop-tspa-auto-target" ]; the rm -f "/storage/emulated/0/stop-tspa-auto-target" fi +if [ -f "$TS/action.sh" ]; then + rm -f "$TS/action.sh" +fi +if [ -d "$TS/webroot" ]; then + rm -rf "$TS/webroot" +fi + if [ -d "$MODPATH/common/temp" ]; then if [ "$KSU" ] || [ "$APATCH" ]; then rm -f "$MODPATH/module.prop" @@ -29,23 +36,15 @@ if [ -d "$MODPATH/common/temp" ]; then exit 0 fi MODPATH="$HIDE_DIR" + if [ -f "$MODPATH/action.sh" ]; then + ln -s "$MODPATH/action.sh" "$TS/action.sh" + fi + ln -s "$MODPATH/webroot" "$TS/webroot" fi OUTPUT_APP="$MODPATH/common/applist" OUTPUT_SKIP="$MODPATH/common/skiplist" -if [ -f "$MODPATH/action.sh" ]; then - if [ -f "$TS/action.sh" ]; then - rm -f "$TS/action.sh" - fi - ln -s "$MODPATH/action.sh" "$TS/action.sh" -else - if [ -d "$TS/webroot" ]; then - rm -rf "$TS/webroot" - fi - ln -s "$MODPATH/webroot" "$TS/webroot" -fi - until [ "$(getprop sys.boot_completed)" = "1" ]; do sleep 1 done diff --git a/module/webroot/index.html b/module/webroot/index.html index 68be35e..1ed25fe 100644 --- a/module/webroot/index.html +++ b/module/webroot/index.html @@ -77,6 +77,10 @@
+
+

+

+