4sp-dv 1.0.46 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
  <title>4SP - VERSION 5 CLIENT</title>
7
7
  <link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/4sp-dv@latest/images/logo.png">
8
8
 
9
- <base href="https://cdn.jsdelivr.net/npm/4sp-dv@1.0.45/logged-in/">
9
+ <base href="https://cdn.jsdelivr.net/npm/4sp-dv@1.0.47/logged-in/">
10
10
  <script src="https://cdn.tailwindcss.com"></script>
11
11
  <link href="https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap" rel="stylesheet">
12
12
 
@@ -872,7 +872,7 @@
872
872
  const displayUsername = document.getElementById('display-username');
873
873
  const displayEmail = document.getElementById('display-email');
874
874
 
875
- const BASE_URL = 'https://cdn.jsdelivr.net/npm/4sp-dv@1.0.45/logged-in/';
875
+ const BASE_URL = 'https://cdn.jsdelivr.net/npm/4sp-dv@1.0.47/logged-in/';
876
876
 
877
877
  // Preload Logos
878
878
  const preloadImgs = [
@@ -35,7 +35,6 @@
35
35
  'brand-border': '#252525',
36
36
  'strongdog-orange': '#FFA500',
37
37
  'gn-math': '#FB2651',
38
- 'cmtt': '#22d3ee',
39
38
  'gameboy': '#9A2257',
40
39
  'other-grey': '#AAAAAA',
41
40
  },
@@ -491,7 +490,6 @@
491
490
  const categoryColors = {
492
491
  'StrongdogXP': 'text-strongdog-orange',
493
492
  'GN-Math': 'text-gn-math',
494
- 'CMTT': 'text-cmtt',
495
493
  'Gameboy Games': 'text-gameboy',
496
494
  'Others': 'text-other-grey',
497
495
  };
@@ -499,7 +497,6 @@
499
497
  const CREDITS_DATA = {
500
498
  'StrongdogXP': { credit: "Core game collection provided by Josh P.", githubUrl: "https://github.com/jman1593/" },
501
499
  'GN-Math': { credit: "Primary game source and infrastructure provided by the GN-Math Community.", githubUrl: "https://github.com/gn-math/" },
502
- 'CMTT': { credit: "Games provided by the CMTT repository." },
503
500
  'Gameboy Games': { credit: "Emulator and ROM files from various public sources." },
504
501
  'Others': { credit: "Various community developers and open-source projects (e.g., DOOM, Eaglercraft, Carnage3D, JS-DOS)." }
505
502
  };
@@ -744,15 +741,6 @@
744
741
  return `${GAMES_BASE_URL}${relativePath.replace(/^\.\//, '')}`;
745
742
  }
746
743
 
747
- // --- Game Data (CMTT) ---
748
- const cmttGames = [
749
- { id: "cmtt-airline-manager", name: "Airline Manager Tycoon", imgSrc: "../CMTT/airline-manager-tycoon/airplane-images/b747.png", description: "Manage your airline and become a tycoon.", category: "CMTT", url: "../CMTT/airline-manager-tycoon/index.html" },
750
- { id: "cmtt-ez-money-1", name: "EZ Money 1", imgSrc: "../CMTT/ez-money-1/icon.png", description: "Make easy money in this idle game.", category: "CMTT", url: "../CMTT/ez-money-1/index.html" },
751
- { id: "cmtt-ez-money-2", name: "EZ Money 2", imgSrc: "./images/ez-money-2.png", description: "The sequel to EZ Money.", category: "CMTT", url: "../CMTT/ez-money-2/index.html" },
752
- { id: "cmtt-ez-money-3", name: "EZ Money 3", imgSrc: "./images/ez-money-3.png", description: "The third installment of EZ Money.", category: "CMTT", url: "../CMTT/ez-money-3/index.html" },
753
- { id: "cmtt-slots", name: "Slots", imgSrc: "./images/slots.png", description: "Spin the wheel and test your luck.", category: "CMTT", url: "../CMTT/slots/index.html" }
754
- ];
755
-
756
744
  // --- Game Data (Others) ---
757
745
  // We keep the original relative paths here so the resolver logic above can handle them dynamically
758
746
  const othersGames = [
@@ -839,7 +827,7 @@
839
827
  }
840
828
 
841
829
  function createGameCard(game, forceSmallCard = false) {
842
- if ((game.category === 'Others' || game.category === 'CMTT') && !forceSmallCard) return createOthersGameCard(game);
830
+ if (game.category === 'Others' && !forceSmallCard) return createOthersGameCard(game);
843
831
  const isStrongdog = game.category === 'StrongdogXP';
844
832
 
845
833
  // Resolve Image Src
@@ -1240,10 +1228,10 @@
1240
1228
  const res = await fetch(GN_ZONES_URL);
1241
1229
  const gnMathRaw = await res.json();
1242
1230
  const gnMathGames = gnMathRaw.map(g => ({ id: `gn-${g.id}`, name: g.name, imgSrc: g.cover.replace("{COVER_URL}", GN_COVER_URL_BASE), category: 'GN-Math', url: g.url.replace("{HTML_URL}", GN_HTML_URL_BASE) }));
1243
- allGames = [...strongdogGames, ...gnMathGames, ...cmttGames, ...othersGames];
1231
+ allGames = [...strongdogGames, ...gnMathGames, ...othersGames];
1244
1232
  } catch (error) {
1245
1233
  console.warn("Failed to load GN-Math, falling back to others.", error);
1246
- allGames = [...strongdogGames, ...cmttGames, ...othersGames];
1234
+ allGames = [...strongdogGames, ...othersGames];
1247
1235
  }
1248
1236
 
1249
1237
  allGames = allGames.filter(g => !['bitlife', 'soundboard'].some(term => g.name.toLowerCase().includes(term)));
@@ -1267,7 +1255,7 @@
1267
1255
  }
1268
1256
  });
1269
1257
 
1270
- categories = ['StrongdogXP', 'GN-Math', 'CMTT', 'Gameboy Games', 'Others'].filter(cat => allGames.some(g => g.category === cat));
1258
+ categories = ['StrongdogXP', 'GN-Math', 'Gameboy Games', 'Others'].filter(cat => allGames.some(g => g.category === cat));
1271
1259
 
1272
1260
  const { category: urlCat } = parseURL();
1273
1261
  if (urlCat) currentCategoryIndex = Math.max(0, categories.findIndex(c => c.replace(/\s+/g, '-').toLowerCase() === urlCat.toLowerCase()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "4sp-dv",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/v5-4simpleproblems/v5-4simpleproblems-dv#readme",