You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Fix prompt animation missing
fix prompt bounce out animation missing
This commit is contained in:
@@ -132,7 +132,7 @@
|
|||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="uninstall-container hidden">
|
<div class="uninstall-container hidden-uninstall">
|
||||||
<i class="fa fa-trash"></i>
|
<i class="fa fa-trash"></i>
|
||||||
<span data-i18n="uninstall_webui"></span>
|
<span data-i18n="uninstall_webui"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ async function refreshAppList() {
|
|||||||
clearBtn.style.display = "none";
|
clearBtn.style.display = "none";
|
||||||
appListContainer.innerHTML = '';
|
appListContainer.innerHTML = '';
|
||||||
loadingIndicator.style.display = 'flex';
|
loadingIndicator.style.display = 'flex';
|
||||||
document.querySelector('.uninstall-container').classList.add('hidden');
|
document.querySelector('.uninstall-container').classList.add('hidden-uninstall');
|
||||||
await new Promise(resolve => setTimeout(resolve, 500));
|
await new Promise(resolve => setTimeout(resolve, 500));
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
if (noConnection.style.display === "flex") {
|
if (noConnection.style.display === "flex") {
|
||||||
@@ -253,7 +253,7 @@ async function refreshAppList() {
|
|||||||
}
|
}
|
||||||
await fetchAppList();
|
await fetchAppList();
|
||||||
loadingIndicator.style.display = 'none';
|
loadingIndicator.style.display = 'none';
|
||||||
document.querySelector('.uninstall-container').classList.remove('hidden');
|
document.querySelector('.uninstall-container').classList.remove('hidden-uninstall');
|
||||||
isRefreshing = false;
|
isRefreshing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -651,7 +651,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||||||
await fetchAppList();
|
await fetchAppList();
|
||||||
checkMagisk();
|
checkMagisk();
|
||||||
loadingIndicator.style.display = "none";
|
loadingIndicator.style.display = "none";
|
||||||
document.querySelector('.uninstall-container').classList.remove('hidden');
|
document.querySelector('.uninstall-container').classList.remove('hidden-uninstall');
|
||||||
runExtraScript();
|
runExtraScript();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -724,10 +724,13 @@ helpOverlay.addEventListener("click", (event) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Uninstall WebUI button
|
// Uninstall WebUI
|
||||||
document.querySelector(".uninstall-container").addEventListener("click", async () => {
|
document.querySelector(".uninstall-container").addEventListener("click", async () => {
|
||||||
try {
|
try {
|
||||||
await execCommand('cp -rf "/data/adb/modules/.TA_utl/common/temp/" "/data/adb/modules/TA_utl/"');
|
await execCommand(`
|
||||||
|
su -c "mkdir -p '/data/adb/modules/TA_utl' &&
|
||||||
|
cp -rf '${basePath}temp/'* '/data/adb/modules/TA_utl/'"
|
||||||
|
`);
|
||||||
showPrompt("uninstall_prompt");
|
showPrompt("uninstall_prompt");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to execute uninstall command:", error);
|
console.error("Failed to execute uninstall command:", error);
|
||||||
|
|||||||
@@ -595,7 +595,7 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: #B10000
|
background-color: #B10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uninstall-container i {
|
.uninstall-container i {
|
||||||
@@ -610,7 +610,7 @@ body {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.uninstall-container.hidden-uninstall {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user