From 50f0078540f9632b85aca340a466524a723297e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 15:54:21 +0000 Subject: [PATCH] Remove TripleUMDM from MDM kit list Drop the TripleUMDM entry from the kits list and the eGate/TripleUMDM sort priority map, delete the apk/TripleUMDM/ source assets, and rebuild the docs/ mirror so apks.json and the published JS/SVG copies are in sync. https://claude.ai/code/session_019coFd9LS2LRQJUBuUvg45c --- apk/TripleUMDM/command.txt | 2 -- apk/TripleUMDM/tripleumdm.svg | 1 - docs/apk/TripleUMDM/command.txt | 2 -- docs/apk/TripleUMDM/tripleumdm.svg | 1 - docs/apks.json | 10 ---------- docs/js/apps.js | 4 ++-- docs/js/data/kits.js | 11 ----------- docs/js/reviews.js | 4 ++++ js/apps.js | 4 ++-- js/data/kits.js | 11 ----------- 10 files changed, 8 insertions(+), 42 deletions(-) delete mode 100644 apk/TripleUMDM/command.txt delete mode 100644 apk/TripleUMDM/tripleumdm.svg delete mode 100644 docs/apk/TripleUMDM/command.txt delete mode 100644 docs/apk/TripleUMDM/tripleumdm.svg diff --git a/apk/TripleUMDM/command.txt b/apk/TripleUMDM/command.txt deleted file mode 100644 index 4ebfffd..0000000 --- a/apk/TripleUMDM/command.txt +++ /dev/null @@ -1,2 +0,0 @@ -dpm set-device-owner "com.tripleu.mdm/.a" -pm grant com.tripleu.mdm android.permission.WRITE_SECURE_SETTINGS diff --git a/apk/TripleUMDM/tripleumdm.svg b/apk/TripleUMDM/tripleumdm.svg deleted file mode 100644 index 049629c..0000000 --- a/apk/TripleUMDM/tripleumdm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/apk/TripleUMDM/command.txt b/docs/apk/TripleUMDM/command.txt deleted file mode 100644 index 4ebfffd..0000000 --- a/docs/apk/TripleUMDM/command.txt +++ /dev/null @@ -1,2 +0,0 @@ -dpm set-device-owner "com.tripleu.mdm/.a" -pm grant com.tripleu.mdm android.permission.WRITE_SECURE_SETTINGS diff --git a/docs/apk/TripleUMDM/tripleumdm.svg b/docs/apk/TripleUMDM/tripleumdm.svg deleted file mode 100644 index 049629c..0000000 --- a/docs/apk/TripleUMDM/tripleumdm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/apks.json b/docs/apks.json index 6785236..d305da7 100644 --- a/docs/apks.json +++ b/docs/apks.json @@ -122,16 +122,6 @@ ], "pricing": "$156 yearly" }, - { - "name": "TripleUMDM", - "image": "apk/TripleUMDM/tripleumdm.svg", - "url": "https://pub-587c8a0ce03148689a821b1655d304f5.r2.dev/TripleUMDM.apk", - "postInstallCommands": [ - "dpm set-device-owner \"com.tripleu.mdm/.a\"", - "pm grant com.tripleu.mdm android.permission.WRITE_SECURE_SETTINGS" - ], - "badge": "Free" - }, { "name": "eGate", "image": "apk/eGate/egate.svg", diff --git a/docs/js/apps.js b/docs/js/apps.js index ff5bef2..c5f3c79 100644 --- a/docs/js/apps.js +++ b/docs/js/apps.js @@ -447,9 +447,9 @@ class JTechMDMInstaller { }; }); - // Sort to make eGate and TripleUMDM most prominent + // Sort to make eGate most prominent this.availableApks.sort((a, b) => { - const priority = { 'eGate': 1, 'TripleUMDM': 2 }; + const priority = { 'eGate': 1 }; const aPriority = priority[a.key] || 999; const bPriority = priority[b.key] || 999; return aPriority - bPriority; diff --git a/docs/js/data/kits.js b/docs/js/data/kits.js index dcff2b1..689e3eb 100644 --- a/docs/js/data/kits.js +++ b/docs/js/data/kits.js @@ -1,15 +1,4 @@ const KITS = [ - { - key: "TripleUMDM", - title: "TripleU MDM", - description: "A free, community-driven MDM with rich features and frequent updates, though small bugs may occur.", - baseUrl: "/TripleUMDM", - infoUrl: "https://github.com/TripleU613/TripleUMDM_Public", - apkName: "TripleUMDM.apk", - cmdName: "command.txt", - image: "tripleumdm.svg", - badge: "Free", - }, { key: "eGate", title: "eGate", diff --git a/docs/js/reviews.js b/docs/js/reviews.js index 16e7fed..ec1da67 100644 --- a/docs/js/reviews.js +++ b/docs/js/reviews.js @@ -5,7 +5,9 @@ const LOCAL_KEY = 'mdm_reviews_v1'; function backendEnabled() { try { const cfg = window.REVIEWS_CONFIG || {}; + // Explicit off switch if (cfg.disableBackend === true) return false; + // Only enable if explicitly requested const allowed = cfg.enableBackend === true || cfg.allowDirectSupabase === true; if (!allowed) return false; const supa = (cfg && cfg.supabase) || window.REVIEWS_SUPABASE; @@ -65,6 +67,7 @@ async function submitToSupabase(vendor, review) { Authorization: `Bearer ${cfg.apiKey}`, Prefer: 'return=representation', }, + // Ensure no cookies/CF creds leak and CORS is explicit mode: 'cors', credentials: 'omit', referrerPolicy: 'no-referrer', @@ -77,6 +80,7 @@ async function submitToSupabase(vendor, review) { }), }); if (!res.ok) { + // Log and let caller continue with local fallback without surfacing provider-specific text let body = ''; try { body = await res.text(); } catch {} console.warn('Supabase insert failed', res.status, body?.slice(0, 200)); diff --git a/js/apps.js b/js/apps.js index ff5bef2..c5f3c79 100644 --- a/js/apps.js +++ b/js/apps.js @@ -447,9 +447,9 @@ class JTechMDMInstaller { }; }); - // Sort to make eGate and TripleUMDM most prominent + // Sort to make eGate most prominent this.availableApks.sort((a, b) => { - const priority = { 'eGate': 1, 'TripleUMDM': 2 }; + const priority = { 'eGate': 1 }; const aPriority = priority[a.key] || 999; const bPriority = priority[b.key] || 999; return aPriority - bPriority; diff --git a/js/data/kits.js b/js/data/kits.js index dcff2b1..689e3eb 100644 --- a/js/data/kits.js +++ b/js/data/kits.js @@ -1,15 +1,4 @@ const KITS = [ - { - key: "TripleUMDM", - title: "TripleU MDM", - description: "A free, community-driven MDM with rich features and frequent updates, though small bugs may occur.", - baseUrl: "/TripleUMDM", - infoUrl: "https://github.com/TripleU613/TripleUMDM_Public", - apkName: "TripleUMDM.apk", - cmdName: "command.txt", - image: "tripleumdm.svg", - badge: "Free", - }, { key: "eGate", title: "eGate",