Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions apk/TripleUMDM/command.txt

This file was deleted.

1 change: 0 additions & 1 deletion apk/TripleUMDM/tripleumdm.svg

This file was deleted.

2 changes: 0 additions & 2 deletions docs/apk/TripleUMDM/command.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/apk/TripleUMDM/tripleumdm.svg

This file was deleted.

10 changes: 0 additions & 10 deletions docs/apks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions docs/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 0 additions & 11 deletions docs/js/data/kits.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions docs/js/reviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand All @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 0 additions & 11 deletions js/data/kits.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down