baileys-idn 1.0.7 → 1.0.8
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.
- package/lib/Utils/dashboard.d.ts.map +1 -1
- package/lib/Utils/dashboard.js +160 -42
- package/lib/Utils/dashboard.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/Utils/dashboard.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,SAAS;IAClB,OAAO,CAAC,GAAG,CAAY;IACvB,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAiD;IAC/D,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,WAAW,CAAY;gBAEnB,OAAO,GAAE,gBAAqB;IAO1C,OAAO,CAAC,WAAW;
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/Utils/dashboard.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,SAAS;IAClB,OAAO,CAAC,GAAG,CAAY;IACvB,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAiD;IAC/D,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,WAAW,CAAY;gBAEnB,OAAO,GAAE,gBAAqB;IAO1C,OAAO,CAAC,WAAW;IAuBnB,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,gBAAgB;IAuBjB,YAAY,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,YAAY;IAKxD,iBAAiB,CAAC,IAAI,EAAE,MAAM;IAS9B,WAAW,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAMzD,gBAAgB;IAKhB,OAAO,CAAC,OAAO,EAAE,MAAM;IAKvB,KAAK;IAMZ,OAAO,CAAC,UAAU;CAwOrB;AAED,eAAO,MAAM,eAAe,GAAI,UAAU,gBAAgB,cAA2B,CAAA"}
|
package/lib/Utils/dashboard.js
CHANGED
|
@@ -23,6 +23,23 @@ export class Dashboard {
|
|
|
23
23
|
this.app.get('/', (req, res) => {
|
|
24
24
|
res.send(this.renderHTML());
|
|
25
25
|
});
|
|
26
|
+
// Endpoint API proxy untuk pencarian musik dari dashboard ke jerexd API
|
|
27
|
+
this.app.get('/api/play', async (req, res) => {
|
|
28
|
+
const query = req.query.q;
|
|
29
|
+
if (!query) {
|
|
30
|
+
return res.status(400).json({ status: false, message: 'Query parameter "q" is required' });
|
|
31
|
+
}
|
|
32
|
+
try {
|
|
33
|
+
const fetch = (await import('node-fetch')).default;
|
|
34
|
+
const apiUrl = `https://api.jerexd.my.id/api/downloader/play?apikey=XVsu1z4Fzd90UeD9&q=${encodeURIComponent(query)}`;
|
|
35
|
+
const response = await fetch(apiUrl);
|
|
36
|
+
const data = await response.json();
|
|
37
|
+
res.json(data);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
res.status(500).json({ status: false, message: error.message });
|
|
41
|
+
}
|
|
42
|
+
});
|
|
26
43
|
}
|
|
27
44
|
setupSockets() {
|
|
28
45
|
this.io.on('connection', (socket) => {
|
|
@@ -37,7 +54,7 @@ export class Dashboard {
|
|
|
37
54
|
const freeMem = os.freemem();
|
|
38
55
|
const usedMem = totalMem - freeMem;
|
|
39
56
|
const cpus = os.cpus();
|
|
40
|
-
const cpuModel = cpus.length > 0
|
|
57
|
+
const cpuModel = (cpus.length > 0 && cpus[0]?.model) ? cpus[0].model : 'Unknown CPU';
|
|
41
58
|
const uptimeMins = Math.floor((Date.now() - this.startTime) / 60000);
|
|
42
59
|
return {
|
|
43
60
|
title: this.title,
|
|
@@ -64,7 +81,6 @@ export class Dashboard {
|
|
|
64
81
|
log.info(formattedLog);
|
|
65
82
|
this.emitLog(formattedLog);
|
|
66
83
|
}
|
|
67
|
-
// Method baru untuk update hitungan Command & Grup
|
|
68
84
|
updateStats(stats) {
|
|
69
85
|
if (typeof stats.commands === 'number')
|
|
70
86
|
this.totalCommands = stats.commands;
|
|
@@ -95,15 +111,17 @@ export class Dashboard {
|
|
|
95
111
|
<script src="/socket.io/socket.io.js"></script>
|
|
96
112
|
<style>
|
|
97
113
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
98
|
-
body { background-color: #0d1117; color: #c9d1d9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 20px; }
|
|
99
|
-
.
|
|
114
|
+
body { background-color: #0d1117; color: #c9d1d9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 20px; display: flex; flex-direction: column; align-items: center; }
|
|
115
|
+
.container { width: 100%; max-width: 900px; }
|
|
116
|
+
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #21262d; width: 100%; }
|
|
100
117
|
.header h1 { font-size: 1.25rem; font-weight: 600; color: #f0f6fc; display: flex; align-items: center; gap: 8px; }
|
|
101
118
|
.header h1::before { content: 'P'; background: #2563eb; color: #fff; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 12px; font-weight: 800; }
|
|
102
119
|
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
103
120
|
.badge.online { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
|
|
104
121
|
.badge.offline { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
|
|
105
122
|
.badge.connecting { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
|
|
106
|
-
|
|
123
|
+
|
|
124
|
+
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; width: 100%; }
|
|
107
125
|
.card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 14px; position: relative; overflow: hidden; }
|
|
108
126
|
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
|
|
109
127
|
.card.blue::before { background: #3b82f6; }
|
|
@@ -113,57 +131,103 @@ export class Dashboard {
|
|
|
113
131
|
.card .title { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: #8b949e; letter-spacing: 0.5px; margin-bottom: 6px; }
|
|
114
132
|
.card .value { font-size: 1.1rem; font-weight: 700; color: #f0f6fc; }
|
|
115
133
|
.card .subtext { font-size: 0.75rem; color: #6e7681; margin-top: 4px; }
|
|
116
|
-
|
|
134
|
+
|
|
135
|
+
.terminal-card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; overflow: hidden; margin-bottom: 20px; width: 100%; }
|
|
117
136
|
.terminal-header { background: #010409; padding: 10px 14px; font-size: 0.75rem; font-weight: 600; color: #8b949e; border-bottom: 1px solid #21262d; display: flex; justify-content: space-between; align-items: center; }
|
|
118
137
|
.dots { display: flex; gap: 6px; }
|
|
119
138
|
.dot { width: 10px; height: 10px; border-radius: 50%; }
|
|
120
139
|
.dot.red { background: #ef4444; }
|
|
121
140
|
.dot.yellow { background: #eab308; }
|
|
122
141
|
.dot.green { background: #22c55e; }
|
|
123
|
-
|
|
124
|
-
|
|
142
|
+
|
|
143
|
+
#logs { padding: 12px; height: 320px; overflow-y: auto; font-size: 0.8rem; color: #38bdf8; font-family: 'JetBrains Mono', monospace; display: flex; flex-direction: column; }
|
|
144
|
+
.log-entry { margin: 0 !important; padding: 0 !important; line-height: 1.15 !important; word-break: break-all; }
|
|
145
|
+
|
|
146
|
+
/* Music Search Player Style */
|
|
147
|
+
.music-card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
|
|
148
|
+
.music-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 700; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
149
|
+
.search-box { display: flex; gap: 8px; width: 100%; }
|
|
150
|
+
.search-input { flex: 1; background: #0d1117; color: #c9d1d9; border: 1px solid #30363d; padding: 6px 10px; border-radius: 4px; font-size: 0.8rem; outline: none; }
|
|
151
|
+
.search-input:focus { border-color: #3b82f6; }
|
|
152
|
+
.btn-search { background: #238636; color: #fff; border: none; padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
|
|
153
|
+
.btn-search:hover { background: #2ea043; }
|
|
154
|
+
.music-body { display: flex; align-items: center; gap: 14px; background: #0d1117; padding: 10px; border-radius: 6px; border: 1px solid #21262d; }
|
|
155
|
+
.thumbnail { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; background: #21262d; }
|
|
156
|
+
.music-controls { display: flex; align-items: center; gap: 10px; }
|
|
157
|
+
.btn-play { background: #2563eb; color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
|
|
158
|
+
.btn-play:hover { background: #1d4ed8; transform: scale(1.05); }
|
|
159
|
+
.music-info { flex: 1; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
|
|
160
|
+
.music-title { font-size: 0.85rem; font-weight: 700; color: #f0f6fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
161
|
+
.music-artist { font-size: 0.7rem; color: #8b949e; }
|
|
162
|
+
.seek-bar { width: 100%; accent-color: #3b82f6; cursor: pointer; margin-top: 4px; }
|
|
125
163
|
</style>
|
|
126
164
|
</head>
|
|
127
165
|
<body>
|
|
128
|
-
<div class="
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<div class="grid">
|
|
134
|
-
<div class="card blue">
|
|
135
|
-
<div class="title">Operating System</div>
|
|
136
|
-
<div class="value" id="os-name">-</div>
|
|
137
|
-
<div class="subtext" id="cpu-name">-</div>
|
|
166
|
+
<div class="container">
|
|
167
|
+
<div class="header">
|
|
168
|
+
<h1 id="dashboard-title">${this.title}</h1>
|
|
169
|
+
<span id="status-badge" class="badge ${this.status.toLowerCase()}">${this.status}</span>
|
|
138
170
|
</div>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<div class="
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<div class="
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
<div class="
|
|
152
|
-
|
|
171
|
+
|
|
172
|
+
<div class="grid">
|
|
173
|
+
<div class="card blue">
|
|
174
|
+
<div class="title">Operating System</div>
|
|
175
|
+
<div class="value" id="os-name">-</div>
|
|
176
|
+
<div class="subtext" id="cpu-name">-</div>
|
|
177
|
+
</div>
|
|
178
|
+
<div class="card purple">
|
|
179
|
+
<div class="title">Memory Usage</div>
|
|
180
|
+
<div class="value" id="ram-text">- / - MB</div>
|
|
181
|
+
<div class="subtext" id="ram-percent">- % utilized</div>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="card orange">
|
|
184
|
+
<div class="title">Total Commands</div>
|
|
185
|
+
<div class="value" id="total-commands">0</div>
|
|
186
|
+
<div class="subtext">Executed commands</div>
|
|
187
|
+
</div>
|
|
188
|
+
<div class="card green">
|
|
189
|
+
<div class="title">Total Groups</div>
|
|
190
|
+
<div class="value" id="total-groups">0</div>
|
|
191
|
+
<div class="subtext">Active WhatsApp groups</div>
|
|
192
|
+
</div>
|
|
153
193
|
</div>
|
|
154
|
-
</div>
|
|
155
194
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
195
|
+
<div class="terminal-card">
|
|
196
|
+
<div class="terminal-header">
|
|
197
|
+
<span>TERMINAL / LIVE WHATSAPP LOGS</span>
|
|
198
|
+
<div class="dots">
|
|
199
|
+
<div class="dot red"></div>
|
|
200
|
+
<div class="dot yellow"></div>
|
|
201
|
+
<div class="dot green"></div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
<div id="logs">
|
|
205
|
+
<div class="log-entry" style="color: #6e7681;">[SYSTEM] Pterodactyl-style console initialized. Listening for bot events...</div>
|
|
163
206
|
</div>
|
|
164
207
|
</div>
|
|
165
|
-
|
|
166
|
-
|
|
208
|
+
|
|
209
|
+
<!-- Music Search & Player Widget -->
|
|
210
|
+
<div class="music-card">
|
|
211
|
+
<div class="music-header">
|
|
212
|
+
<span>🎧 YOUTUBE MUSIC SEARCH PLAYER</span>
|
|
213
|
+
<span id="player-status" style="color: #38bdf8; font-size: 0.7rem;">Ready</span>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="search-box">
|
|
216
|
+
<input type="text" id="search-query" class="search-input" placeholder="Ketik judul lagu (cth: Ada Apa Dengan Cinta)..." onkeypress="if(event.key === 'Enter') searchMusic()">
|
|
217
|
+
<button class="btn-search" onclick="searchMusic()">Cari & Putar</button>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="music-body">
|
|
220
|
+
<img id="track-thumb" class="thumbnail" src="https://via.placeholder.com/50" alt="Thumb">
|
|
221
|
+
<div class="music-controls">
|
|
222
|
+
<button class="btn-play" id="play-btn" onclick="togglePlay()">▶</button>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="music-info">
|
|
225
|
+
<div class="music-title" id="track-title">Belum ada lagu diputar</div>
|
|
226
|
+
<div class="music-artist" id="track-channel">Ketik pencarian di atas...</div>
|
|
227
|
+
<input type="range" class="seek-bar" id="volume-bar" min="0" max="1" step="0.05" value="0.7" onchange="setVolume(this.value)">
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
<audio id="audio-player" preload="none"></audio>
|
|
167
231
|
</div>
|
|
168
232
|
</div>
|
|
169
233
|
|
|
@@ -211,6 +275,60 @@ export class Dashboard {
|
|
|
211
275
|
badge.innerText = data.status;
|
|
212
276
|
badge.className = 'badge ' + data.status.toLowerCase();
|
|
213
277
|
}
|
|
278
|
+
|
|
279
|
+
// Music Player & Search Controller
|
|
280
|
+
const audio = document.getElementById('audio-player');
|
|
281
|
+
const playBtn = document.getElementById('play-btn');
|
|
282
|
+
const trackTitle = document.getElementById('track-title');
|
|
283
|
+
const trackChannel = document.getElementById('track-channel');
|
|
284
|
+
const trackThumb = document.getElementById('track-thumb');
|
|
285
|
+
const playerStatus = document.getElementById('player-status');
|
|
286
|
+
const searchQuery = document.getElementById('search-query');
|
|
287
|
+
|
|
288
|
+
async function searchMusic() {
|
|
289
|
+
const query = searchQuery.value.trim();
|
|
290
|
+
if (!query) return;
|
|
291
|
+
|
|
292
|
+
playerStatus.innerText = 'Mencari...';
|
|
293
|
+
try {
|
|
294
|
+
const res = await fetch('/api/play?q=' + encodeURIComponent(query));
|
|
295
|
+
const json = await res.json();
|
|
296
|
+
|
|
297
|
+
if (json.status && json.result) {
|
|
298
|
+
const data = json.result;
|
|
299
|
+
trackTitle.innerText = data.title;
|
|
300
|
+
trackChannel.innerText = data.channel + ' (' + data.duration + ')';
|
|
301
|
+
trackThumb.src = data.thumbnail;
|
|
302
|
+
audio.src = data.download || data.downloadUrl || data.download_url;
|
|
303
|
+
|
|
304
|
+
audio.play();
|
|
305
|
+
playBtn.innerText = '❚❚';
|
|
306
|
+
playerStatus.innerText = 'Memutar';
|
|
307
|
+
} else {
|
|
308
|
+
playerStatus.innerText = 'Gagal ditemukan';
|
|
309
|
+
}
|
|
310
|
+
} catch (err) {
|
|
311
|
+
playerStatus.innerText = 'Error API';
|
|
312
|
+
console.error(err);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
function togglePlay() {
|
|
317
|
+
if (!audio.src) return;
|
|
318
|
+
if (audio.paused) {
|
|
319
|
+
audio.play();
|
|
320
|
+
playBtn.innerText = '❚❚';
|
|
321
|
+
playerStatus.innerText = 'Memutar';
|
|
322
|
+
} else {
|
|
323
|
+
audio.pause();
|
|
324
|
+
playBtn.innerText = '▶';
|
|
325
|
+
playerStatus.innerText = 'Dijeda';
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
function setVolume(val) {
|
|
330
|
+
audio.volume = val;
|
|
331
|
+
}
|
|
214
332
|
</script>
|
|
215
333
|
</body>
|
|
216
334
|
</html>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/Utils/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAO9B,MAAM,OAAO,SAAS;IAYlB,YAAY,UAA4B,EAAE;QAXlC,QAAG,GAAG,OAAO,EAAE,CAAA;QACf,WAAM,GAAG,YAAY,CAAC,IAAI,CAAC,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