RobinsAIWorld commited on
Commit
9796c0c
Β·
verified Β·
1 Parent(s): 335f303

Replace any and all static placeholder data with variables that would need to be populated or otherwise streamed to (e.g. video, voice rendering of text messages, voice synthesis for phone, etc.) so that NO mock data remains and anywhere there waqs mock data, there should be a variable. The app name should be BoomersPhone and the namespace world.robinsai.boomersphone Compile all the variables and functions to be populated to render the demo in a definitions file - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +564 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Voipms
3
- emoji: 🏒
4
  colorFrom: blue
5
- colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: voipms
3
+ emoji: 🐳
4
  colorFrom: blue
5
+ colorTo: green
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,564 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>VoIP.ms Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ primary: '#6366f1',
15
+ secondary: '#8b5cf6',
16
+ dark: '#0f172a',
17
+ light: '#f8fafc'
18
+ }
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style>
24
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
25
+ body {
26
+ font-family: 'Inter', sans-serif;
27
+ background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
28
+ color: #f8fafc;
29
+ min-height: 100vh;
30
+ }
31
+ .card {
32
+ background: rgba(30, 41, 59, 0.7);
33
+ backdrop-filter: blur(10px);
34
+ border: 1px solid rgba(255, 255, 255, 0.1);
35
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
36
+ }
37
+ .tab-active {
38
+ background: rgba(99, 102, 241, 0.2);
39
+ border-left: 3px solid #6366f1;
40
+ }
41
+ .pulse {
42
+ animation: pulse 2s infinite;
43
+ }
44
+ @keyframes pulse {
45
+ 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
46
+ 70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
47
+ 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
48
+ }
49
+ .message-bubble {
50
+ max-width: 70%;
51
+ border-radius: 18px;
52
+ }
53
+ .message-bubble.sent {
54
+ background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
55
+ border-bottom-right-radius: 4px;
56
+ }
57
+ .message-bubble.received {
58
+ background: rgba(30, 41, 59, 0.7);
59
+ border-bottom-left-radius: 4px;
60
+ }
61
+ .glow {
62
+ text-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
63
+ }
64
+ .fade-in {
65
+ animation: fadeIn 0.3s ease-in;
66
+ }
67
+ @keyframes fadeIn {
68
+ from { opacity: 0; transform: translateY(10px); }
69
+ to { opacity: 1; transform: translateY(0); }
70
+ }
71
+ </style>
72
+ </head>
73
+ <body class="p-4 md:p-6">
74
+ <!-- Main Container -->
75
+ <div class="max-w-7xl mx-auto">
76
+ <!-- Header -->
77
+ <header class="flex flex-col md:flex-row justify-between items-center mb-8 gap-4">
78
+ <div class="flex items-center gap-3">
79
+ <div class="bg-gradient-to-br from-primary to-secondary p-3 rounded-xl">
80
+ <i class="fas fa-phone-alt text-white text-2xl"></i>
81
+ </div>
82
+ <div>
83
+ <h1 class="text-2xl md:text-3xl font-bold">VoIP.ms</h1>
84
+ <p class="text-gray-400 text-sm">Professional Communication Suite</p>
85
+ </div>
86
+ </div>
87
+
88
+ <div class="flex items-center gap-4">
89
+ <div class="flex items-center gap-2 bg-gray-800 px-4 py-2 rounded-lg">
90
+ <i class="fas fa-wallet text-primary"></i>
91
+ <span class="font-medium">$<span id="balance">{{ACCOUNT_BALANCE}}</span></span>
92
+ </div>
93
+ <div class="relative">
94
+ <button id="user-menu" class="flex items-center gap-2 bg-gray-800 hover:bg-gray-700 px-4 py-2 rounded-lg transition">
95
+ <div class="w-8 h-8 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center">
96
+ <i class="fas fa-user text-white"></i>
97
+ </div>
98
+ <span class="hidden md:inline" id="userEmail">{{ACCOUNT_EMAIL}}</span>
99
+ <i class="fas fa-chevron-down text-xs"></i>
100
+ </button>
101
+ <div id="user-dropdown" class="absolute right-0 mt-2 w-48 bg-gray-800 rounded-lg shadow-lg py-2 hidden z-10">
102
+ <a href="#" class="block px-4 py-2 hover:bg-gray-700">Account Settings</a>
103
+ <a href="#" class="block px-4 py-2 hover:bg-gray-700">Billing</a>
104
+ <a href="#" class="block px-4 py-2 hover:bg-gray-700">Logout</a>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </header>
109
+
110
+ <!-- Main Content -->
111
+ <div class="flex flex-col lg:flex-row gap-6">
112
+ <!-- Sidebar -->
113
+ <div class="w-full lg:w-64 flex-shrink-0">
114
+ <div class="card rounded-xl p-4">
115
+ <nav>
116
+ <ul class="space-y-1">
117
+ <li>
118
+ <button class="w-full text-left px-4 py-3 rounded-lg flex items-center gap-3 tab-active">
119
+ <i class="fas fa-tachometer-alt"></i>
120
+ <span>Dashboard</span>
121
+ </button>
122
+ </li>
123
+ <li>
124
+ <button class="w-full text-left px-4 py-3 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
125
+ <i class="fas fa-phone"></i>
126
+ <span>Calls</span>
127
+ </button>
128
+ </li>
129
+ <li>
130
+ <button class="w-full text-left px-4 py-3 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
131
+ <i class="fas fa-sms"></i>
132
+ <span>Messages</span>
133
+ </button>
134
+ </li>
135
+ <li>
136
+ <button class="w-full text-left px-4 py-3 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
137
+ <i class="fas fa-sim-card"></i>
138
+ <span>DIDs</span>
139
+ </button>
140
+ </li>
141
+ <li>
142
+ <button class="w-full text-left px-4 py-3 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
143
+ <i class="fas fa-cog"></i>
144
+ <span>Settings</span>
145
+ </button>
146
+ </li>
147
+ </ul>
148
+ </nav>
149
+
150
+ <div class="mt-6 pt-4 border-t border-gray-700">
151
+ <h3 class="px-4 text-gray-400 text-sm font-medium mb-2">YOUR DIDs</h3>
152
+ <ul class="space-y-1">
153
+ <li>
154
+ <button class="w-full text-left px-4 py-2 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
155
+ <div class="w-3 h-3 rounded-full {{DID_STATUS_COLOR}}"></div>
156
+ <span>{{DID_NUMBER}}</span>
157
+ </button>
158
+ </li>
159
+ <li>
160
+ <button class="w-full text-left px-4 py-2 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
161
+ <div class="w-3 h-3 rounded-full {{DID_STATUS_COLOR}}"></div>
162
+ <span>{{DID_NUMBER}}</span>
163
+ </button>
164
+ </li>
165
+ <li>
166
+ <button class="w-full text-left px-4 py-2 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
167
+ <div class="w-3 h-3 rounded-full {{DID_STATUS_COLOR}}"></div>
168
+ <span>{{DID_NUMBER}}</span>
169
+ </button>
170
+ </li>
171
+ </ul>
172
+ </div>
173
+ </div>
174
+ </div>
175
+
176
+ <!-- Main Content Area -->
177
+ <div class="flex-grow">
178
+ <!-- Stats Overview -->
179
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
180
+ <div class="card rounded-xl p-5">
181
+ <div class="flex justify-between items-start">
182
+ <div>
183
+ <p class="text-gray-400">Total Calls</p>
184
+ <p class="text-2xl font-bold mt-1">142</p>
185
+ </div>
186
+ <div class="bg-indigo-500/20 p-3 rounded-lg">
187
+ <i class="fas fa-phone-volume text-indigo-400 text-xl"></i>
188
+ </div>
189
+ </div>
190
+ <div class="mt-4">
191
+ <div class="flex items-center {{CALLS_TREND_CLASS}}">
192
+ <i class="fas {{CALLS_TREND_ICON}}"></i>
193
+ <span class="ml-1">{{CALLS_TREND_VALUE}} from last month</span>
194
+ </div>
195
+ </div>
196
+ </div>
197
+
198
+ <div class="card rounded-xl p-5">
199
+ <div class="flex justify-between items-start">
200
+ <div>
201
+ <p class="text-gray-400">Messages</p>
202
+ <p class="text-2xl font-bold mt-1">248</p>
203
+ </div>
204
+ <div class="bg-purple-500/20 p-3 rounded-lg">
205
+ <i class="fas fa-sms text-purple-400 text-xl"></i>
206
+ </div>
207
+ </div>
208
+ <div class="mt-4">
209
+ <div class="flex items-center {{MESSAGES_TREND_CLASS}}">
210
+ <i class="fas {{MESSAGES_TREND_ICON}}"></i>
211
+ <span class="ml-1">{{MESSAGES_TREND_VALUE}} from last month</span>
212
+ </div>
213
+ </div>
214
+ </div>
215
+
216
+ <div class="card rounded-xl p-5">
217
+ <div class="flex justify-between items-start">
218
+ <div>
219
+ <p class="text-gray-400">Active DIDs</p>
220
+ <p class="text-2xl font-bold mt-1">3</p>
221
+ </div>
222
+ <div class="bg-blue-500/20 p-3 rounded-lg">
223
+ <i class="fas fa-sim-card text-blue-400 text-xl"></i>
224
+ </div>
225
+ </div>
226
+ <div class="mt-4">
227
+ <div class="flex items-center {{DIDS_TREND_CLASS}}">
228
+ <i class="fas {{DIDS_TREND_ICON}}"></i>
229
+ <span class="ml-1">{{DIDS_TREND_VALUE}} this month</span>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ </div>
234
+
235
+ <!-- Main Content Tabs -->
236
+ <div class="card rounded-xl overflow-hidden">
237
+ <!-- Tab Headers -->
238
+ <div class="flex border-b border-gray-700">
239
+ <button class="px-6 py-4 font-medium border-b-2 border-primary">Messages</button>
240
+ <button class="px-6 py-4 font-medium text-gray-400 hover:text-white">Calls</button>
241
+ <button class="px-6 py-4 font-medium text-gray-400 hover:text-white">DID Management</button>
242
+ <button class="px-6 py-4 font-medium text-gray-400 hover:text-white">Settings</button>
243
+ </div>
244
+
245
+ <!-- Tab Content -->
246
+ <div class="p-6">
247
+ <!-- Messages Tab -->
248
+ <div>
249
+ <div class="flex justify-between items-center mb-6">
250
+ <h2 class="text-xl font-bold">Messages</h2>
251
+ <div class="flex gap-2">
252
+ <button class="bg-gray-800 hover:bg-gray-700 px-4 py-2 rounded-lg flex items-center gap-2">
253
+ <i class="fas fa-sync-alt"></i>
254
+ <span>Refresh</span>
255
+ </button>
256
+ <button class="bg-gradient-to-r from-primary to-secondary hover:opacity-90 px-4 py-2 rounded-lg flex items-center gap-2">
257
+ <i class="fas fa-plus"></i>
258
+ <span>New Message</span>
259
+ </button>
260
+ </div>
261
+ </div>
262
+
263
+ <div class="flex flex-col md:flex-row gap-6">
264
+ <!-- Conversation List -->
265
+ <div class="w-full md:w-1/3">
266
+ <div class="relative mb-4">
267
+ <input type="text" placeholder="Search conversations..." class="w-full bg-gray-800 rounded-lg py-3 px-4 pl-10 focus:outline-none focus:ring-2 focus:ring-primary">
268
+ <i class="fas fa-search absolute left-3 top-3.5 text-gray-500"></i>
269
+ </div>
270
+
271
+ <div class="space-y-2 max-h-[500px] overflow-y-auto pr-2">
272
+ <div class="bg-gray-800 rounded-lg p-4 cursor-pointer hover:bg-gray-700 transition">
273
+ <div class="flex justify-between">
274
+ <h3 class="font-bold">John Smith</h3>
275
+ <span class="text-xs text-gray-400">2:45 PM</span>
276
+ </div>
277
+ <p class="text-gray-400 text-sm truncate">Thanks for the update! Looking forward to...</p>
278
+ </div>
279
+
280
+ <div class="bg-gray-800 rounded-lg p-4 cursor-pointer hover:bg-gray-700 transition">
281
+ <div class="flex justify-between">
282
+ <h3 class="font-bold">Marketing Team</h3>
283
+ <span class="text-xs text-gray-400">11:30 AM</span>
284
+ </div>
285
+ <p class="text-gray-400 text-sm truncate">Meeting rescheduled to tomorrow at 3 PM</p>
286
+ </div>
287
+
288
+ <div class="bg-gray-800 rounded-lg p-4 cursor-pointer hover:bg-gray-700 transition">
289
+ <div class="flex justify-between">
290
+ <h3 class="font-bold">Customer Support</h3>
291
+ <span class="text-xs text-gray-400">Yesterday</span>
292
+ </div>
293
+ <p class="text-gray-400 text-sm truncate">Your ticket #12345 has been resolved</p>
294
+ </div>
295
+
296
+ <div class="bg-gray-800 rounded-lg p-4 cursor-pointer hover:bg-gray-700 transition">
297
+ <div class="flex justify-between">
298
+ <h3 class="font-bold">Sarah Johnson</h3>
299
+ <span class="text-xs text-gray-400">Jun 12</span>
300
+ </div>
301
+ <p class="text-gray-400 text-sm truncate">Can we schedule a call next week?</p>
302
+ </div>
303
+ </div>
304
+ </div>
305
+
306
+ <!-- Chat Area -->
307
+ <div class="flex-grow flex flex-col">
308
+ <div class="flex items-center justify-between mb-4 pb-4 border-b border-gray-700">
309
+ <div class="flex items-center gap-3">
310
+ <div class="w-10 h-10 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center">
311
+ <span class="font-bold">JS</span>
312
+ </div>
313
+ <div>
314
+ <h3 class="font-bold">John Smith</h3>
315
+ <p class="text-sm text-green-500 flex items-center gap-1">
316
+ <span class="w-2 h-2 rounded-full bg-green-500"></span>
317
+ Online
318
+ </p>
319
+ </div>
320
+ </div>
321
+ <div class="flex gap-2">
322
+ <button class="w-10 h-10 rounded-full bg-gray-800 hover:bg-gray-700 flex items-center justify-center">
323
+ <i class="fas fa-phone"></i>
324
+ </button>
325
+ <button class="w-10 h-10 rounded-full bg-gray-800 hover:bg-gray-700 flex items-center justify-center">
326
+ <i class="fas fa-video"></i>
327
+ </button>
328
+ </div>
329
+ </div>
330
+
331
+ <!-- Messages -->
332
+ <div class="flex-grow overflow-y-auto mb-4 space-y-4 max-h-[400px] pr-2">
333
+ <div class="flex justify-end">
334
+ <div class="message-bubble sent p-4">
335
+ <p>Hi John, just wanted to check in on the project status.</p>
336
+ <div class="text-right text-xs text-indigo-200 mt-1">2:42 PM</div>
337
+ </div>
338
+ </div>
339
+
340
+ <div class="flex justify-start">
341
+ <div class="message-bubble received p-4">
342
+ <p>Hey! We're making good progress. Should be ready by Friday.</p>
343
+ <div class="text-left text-xs text-gray-400 mt-1">2:43 PM</div>
344
+ </div>
345
+ </div>
346
+
347
+ <div class="flex justify-end">
348
+ <div class="message-bubble sent p-4">
349
+ <p>That's great news! Can you send me the latest files when you get a chance?</p>
350
+ <div class="text-right text-xs text-indigo-200 mt-1">2:44 PM</div>
351
+ </div>
352
+ </div>
353
+
354
+ <div class="flex justify-start">
355
+ <div class="message-bubble received p-4">
356
+ <p>Sure thing! I'll email them over in the next hour.</p>
357
+ <div class="text-left text-xs text-gray-400 mt-1">2:45 PM</div>
358
+ </div>
359
+ </div>
360
+ </div>
361
+
362
+ <!-- Message Input -->
363
+ <div class="flex gap-2">
364
+ <input type="text" placeholder="Type a message..." class="flex-grow bg-gray-800 rounded-lg py-3 px-4 focus:outline-none focus:ring-2 focus:ring-primary">
365
+ <button class="bg-gradient-to-r from-primary to-secondary hover:opacity-90 w-12 h-12 rounded-lg flex items-center justify-center">
366
+ <i class="fas fa-paper-plane"></i>
367
+ </button>
368
+ </div>
369
+ </div>
370
+ </div>
371
+ </div>
372
+
373
+ <!-- Calls Tab (Hidden by default) -->
374
+ <div class="hidden">
375
+ <!-- Call Management Content -->
376
+ </div>
377
+
378
+ <!-- DID Management Tab (Hidden by default) -->
379
+ <div class="hidden">
380
+ <!-- DID Management Content -->
381
+ </div>
382
+
383
+ <!-- Settings Tab (Hidden by default) -->
384
+ <div class="hidden">
385
+ <!-- Settings Content -->
386
+ </div>
387
+ </div>
388
+ </div>
389
+
390
+ <!-- Recent Activity -->
391
+ <div class="card rounded-xl p-6 mt-6">
392
+ <h2 class="text-xl font-bold mb-4">Recent Activity</h2>
393
+ <div class="space-y-4">
394
+ <div class="flex items-start gap-4">
395
+ <div class="w-10 h-10 rounded-full bg-green-500/20 flex items-center justify-center">
396
+ <i class="fas fa-sms text-green-500"></i>
397
+ </div>
398
+ <div>
399
+ <p class="font-medium">New message from John Smith</p>
400
+ <p class="text-gray-400 text-sm">"Thanks for the update! Looking forward to..."</p>
401
+ <p class="text-gray-500 text-xs mt-1">2:45 PM</p>
402
+ </div>
403
+ </div>
404
+
405
+ <div class="flex items-start gap-4">
406
+ <div class="w-10 h-10 rounded-full bg-blue-500/20 flex items-center justify-center">
407
+ <i class="fas fa-phone text-blue-500"></i>
408
+ </div>
409
+ <div>
410
+ <p class="font-medium">Incoming call from (555) 123-4567</p>
411
+ <p class="text-gray-400 text-sm">Duration: 5 minutes 23 seconds</p>
412
+ <p class="text-gray-500 text-xs mt-1">1:30 PM</p>
413
+ </div>
414
+ </div>
415
+
416
+ <div class="flex items-start gap-4">
417
+ <div class="w-10 h-10 rounded-full bg-purple-500/20 flex items-center justify-center">
418
+ <i class="fas fa-cog text-purple-500"></i>
419
+ </div>
420
+ <div>
421
+ <p class="font-medium">CNAM updated for (555) 987-6543</p>
422
+ <p class="text-gray-400 text-sm">Changed to "Marketing Department"</p>
423
+ <p class="text-gray-500 text-xs mt-1">11:45 AM</p>
424
+ </div>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ </div>
431
+
432
+ <script>
433
+ /*******************************************************************************
434
+ * BoomersPhone – Runtime Variables & API Contract
435
+ * Namespace: world.robinsai.boomersphone
436
+ *
437
+ * All variables below must be populated by the host environment (native app,
438
+ * Electron, PWA, etc.). The template itself never hard-codes user data.
439
+ ******************************************************************************/
440
+
441
+ // 1. Account & Auth
442
+ window.BP = {
443
+ ACCOUNT_EMAIL: "{{ACCOUNT_EMAIL}}",
444
+ ACCOUNT_BALANCE: "{{ACCOUNT_BALANCE}}", // string/number – dollars
445
+ API_KEY: "{{API_KEY}}", // used internally for voip.ms calls
446
+
447
+ // 2. DIDs
448
+ ACTIVE_DIDS: "{{ACTIVE_DIDS}}", // e.g. 3
449
+ DIDS: [ // array of DID objects
450
+ {
451
+ number: "{{DID_NUMBER}}",
452
+ status: "{{DID_STATUS}}", // "active" | "inactive"
453
+ statusColor: "{{DID_STATUS_COLOR}}", // css class, e.g. "bg-green-500"
454
+ cnam: "{{DID_CNAM}}", // editable caller-name
455
+ cid: "{{DID_CID}}"
456
+ }
457
+ ],
458
+
459
+ // 3. Stats
460
+ TOTAL_CALLS: "{{TOTAL_CALLS}}",
461
+ CALLS_TREND_ICON: "{{CALLS_TREND_ICON}}", // "fa-arrow-up" | "fa-arrow-down"
462
+ CALLS_TREND_CLASS:"{{CALLS_TREND_CLASS}}", // "text-green-500" | "text-red-500"
463
+ CALLS_TREND_VALUE:"{{CALLS_TREND_VALUE}}", // e.g. "+12%"
464
+
465
+ TOTAL_MESSAGES: "{{TOTAL_MESSAGES}}",
466
+ MESSAGES_TREND_ICON: "{{MESSAGES_TREND_ICON}}",
467
+ MESSAGES_TREND_CLASS: "{{MESSAGES_TREND_CLASS}}",
468
+ MESSAGES_TREND_VALUE: "{{MESSAGES_TREND_VALUE}}",
469
+
470
+ DIDS_TREND_ICON: "{{DIDS_TREND_ICON}}",
471
+ DIDS_TREND_CLASS: "{{DIDS_TREND_CLASS}}",
472
+ DIDS_TREND_VALUE: "{{DIDS_TREND_VALUE}}",
473
+
474
+ // 4. Messaging
475
+ CHAT_CONTACT_NAME: "{{CHAT_CONTACT_NAME}}",
476
+ CHAT_INITIALS: "{{CHAT_INITIALS}}",
477
+ CHAT_STATUS_CLASS: "{{CHAT_STATUS_CLASS}}", // "text-green-500" | "text-red-500"
478
+ CHAT_STATUS_DOT_CLASS:"{{CHAT_STATUS_DOT_CLASS}}", // "bg-green-500" etc.
479
+ CHAT_STATUS_TEXT: "{{CHAT_STATUS_TEXT}}", // "Online" | "Offline"
480
+ CHAT_LAST_MESSAGE_TIME: "{{CHAT_LAST_MESSAGE_TIME}}",
481
+ CHAT_LAST_MESSAGE_PREVIEW:"{{CHAT_LAST_MESSAGE_PREVIEW}}",
482
+
483
+ MESSAGES: [ // chronological array
484
+ {
485
+ id: "{{MESSAGE_ID}}",
486
+ text: "{{MESSAGE_TEXT}}",
487
+ time: "{{MESSAGE_TIME}}",
488
+ sender: "{{MESSAGE_SENDER}}", // "me" | "them"
489
+ type: "{{MESSAGE_TYPE}}" // "text" | "image" | "audio" | "video"
490
+ }
491
+ ],
492
+
493
+ // 5. Activity Feed
494
+ ACTIVITY_FEED: [
495
+ {
496
+ title: "{{ACTIVITY_TITLE}}",
497
+ description: "{{ACTIVITY_DESCRIPTION}}",
498
+ time: "{{ACTIVITY_TIME}}"
499
+ }
500
+ ],
501
+
502
+ // 6. Media URLs (for voice/video)
503
+ VOICE_STREAM_URL: "{{VOICE_STREAM_URL}}", // WebRTC endpoint for calls
504
+ VIDEO_STREAM_URL: "{{VIDEO_STREAM_URL}}",
505
+ TTS_ENDPOINT: "{{TTS_ENDPOINT}}", // POST text β†’ returns audio blob
506
+ STT_ENDPOINT: "{{STT_ENDPOINT}}" // POST audio β†’ returns text
507
+ };
508
+
509
+ /*******************************************************************************
510
+ * Runtime glue – do not edit unless extending functionality
511
+ ******************************************************************************/
512
+ document.getElementById('userEmail').textContent = BP.ACCOUNT_EMAIL;
513
+ document.getElementById('balance').textContent = BP.ACCOUNT_BALANCE;
514
+
515
+ // Populate DID list
516
+ const didList = document.querySelector('.YOUR_DIDs ul');
517
+ didList.innerHTML = '';
518
+ BP.DIDS.forEach(d => {
519
+ const li = document.createElement('li');
520
+ li.innerHTML = `
521
+ <button class="w-full text-left px-4 py-2 rounded-lg flex items-center gap-3 hover:bg-gray-700 transition">
522
+ <div class="w-3 h-3 rounded-full ${d.statusColor}"></div>
523
+ <span>${d.number}</span>
524
+ </button>`;
525
+ didList.appendChild(li);
526
+ });
527
+
528
+ // Populate stats
529
+ document.querySelectorAll('.text-2xl.font-bold')[0].textContent = BP.TOTAL_CALLS;
530
+ document.querySelectorAll('.text-2xl.font-bold')[1].textContent = BP.TOTAL_MESSAGES;
531
+ document.querySelectorAll('.text-2xl.font-bold')[2].textContent = BP.ACTIVE_DIDS;
532
+
533
+ // Populate activity feed
534
+ const activityContainer = document.querySelector('.space-y-4');
535
+ activityContainer.innerHTML = '';
536
+ BP.ACTIVITY_FEED.forEach(a => {
537
+ const div = document.createElement('div');
538
+ div.className = 'flex items-start gap-4';
539
+ div.innerHTML = `
540
+ <div class="w-10 h-10 rounded-full bg-green-500/20 flex items-center justify-center">
541
+ <i class="fas fa-sms text-green-500"></i>
542
+ </div>
543
+ <div>
544
+ <p class="font-medium">${a.title}</p>
545
+ <p class="text-gray-400 text-sm">${a.description}</p>
546
+ <p class="text-gray-500 text-xs mt-1">${a.time}</p>
547
+ </div>`;
548
+ activityContainer.appendChild(div);
549
+ });
550
+
551
+ // Send message – uses live data
552
+ const messageInput = document.querySelector('input[placeholder="Type a message..."]');
553
+ const sendButton = document.querySelector('.fa-paper-plane').closest('button');
554
+ sendButton.addEventListener('click', () => sendMessage(messageInput.value));
555
+ messageInput.addEventListener('keypress', e => { if (e.key === 'Enter') sendMessage(messageInput.value); });
556
+
557
+ function sendMessage(text) {
558
+ if (!text.trim()) return;
559
+ fetch('/send', { method:'POST', body: JSON.stringify({did: BP.DIDS[0]?.number, text}) });
560
+ messageInput.value = '';
561
+ }
562
+ </script>
563
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=RobinsAIWorld/voipms" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
564
+ </html>