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",