diff --git a/public/app.js b/public/app.js index 3eab261..678ccd8 100644 --- a/public/app.js +++ b/public/app.js @@ -36,7 +36,8 @@ async function fetchQuotas() { ]; activeQuotas.forEach(quota => { - updateRow(quota.provider.toLowerCase(), quota); + const providerId = quota.provider.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, ''); + updateRow(providerId, quota); }); } catch (error) { console.error('Error fetching quotas:', error); diff --git a/public/index.html b/public/index.html index 9e219ec..2e380b1 100644 --- a/public/index.html +++ b/public/index.html @@ -35,27 +35,7 @@
- -
-
-
- 🤖 - Antigravity (Gemini) -
-
-
-
-
-
-
- 0% - Loading... -
-
-
-
-
@@ -75,24 +55,118 @@
- -
+
- ⚡ - MiniMax (M3) + 🤖 + AG Gemini (5h)
-
+
- 0% - Loading... + 0% + Loading...
-
+
+
+ +
+
+
+ 🤖 + AG Gemini (Weekly) +
+
+
+
+
+
+
+ 0% + Loading... +
+
+
+
+ +
+
+
+ âš¡ + AG Claude (5h) +
+
+
+
+
+
+
+ 0% + Loading... +
+
+
+
+ +
+
+
+ âš¡ + AG Claude (Weekly) +
+
+
+
+
+
+
+ 0% + Loading... +
+
+
+
+ +
+
+
+ 🔥 + MiniMax (5h) +
+
+
+
+
+
+
+ 0% + Loading... +
+
+
+
+ +
+
+
+ 🔥 + MiniMax (Weekly) +
+
+
+
+
+
+
+ 0% + Loading... +
+
+
diff --git a/update_index.js b/update_index.js new file mode 100644 index 0000000..e834c5b --- /dev/null +++ b/update_index.js @@ -0,0 +1,36 @@ +const fs = require('fs'); +let html = fs.readFileSync('public/index.html', 'utf8'); + +const generateRow = (id, icon, name) => ` +
+
+
+ ${icon} + ${name} +
+
+
+
+
+
+
+ 0% + Loading... +
+
+
+
`; + +const newSection = `
+${generateRow('poe', '🧠', 'POE')} +${generateRow('ag-gemini-5h', '🤖', 'AG Gemini (5h)')} +${generateRow('ag-gemini-weekly', '🤖', 'AG Gemini (Weekly)')} +${generateRow('ag-claude-5h', '⚡', 'AG Claude (5h)')} +${generateRow('ag-claude-weekly', '⚡', 'AG Claude (Weekly)')} +${generateRow('minimax-5h', '🔥', 'MiniMax (5h)')} +${generateRow('minimax-weekly', '🔥', 'MiniMax (Weekly)')} +
`; + +html = html.replace(/
[\s\S]*?<\/section>/, newSection); +fs.writeFileSync('public/index.html', html); +console.log('updated index.html');