-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
344 lines (329 loc) · 20.1 KB
/
Copy pathindex.html
File metadata and controls
344 lines (329 loc) · 20.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!DOCTYPE html>
<html lang="en" data-theme="system">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi Browser Manager</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="app-container">
<!-- Main content area with tabs and browser views -->
<div class="main-area">
<!-- Tab bar -->
<div class="tab-bar">
<div class="tabs-container" id="tabsContainer">
<div class="welcome-tab tab active" data-tab-id="welcome" title="Home">
<span class="tab-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"
stroke-linecap="round" stroke-linejoin="round">
<path d="M4 10.5L12 4l8 6.5" />
<path d="M6 9.8V19h12V9.8" />
<path d="M10 19v-5h4v5" />
</svg>
</span>
</div>
</div>
<div class="tab-actions">
<button id="updateBadge" class="icon-btn update-badge" title="Update available" hidden>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9"
stroke-linecap="round" stroke-linejoin="round">
<path d="M12 4v10" />
<path d="M8 10.5l4 4 4-4" />
<path d="M5 19h14" />
</svg>
</button>
<button id="newTabBtn" class="icon-btn" title="New session">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round">
<path d="M12 5v14M5 12h14" />
</svg>
</button>
</div>
</div>
<!-- Content area -->
<div class="content-area">
<!-- Welcome screen -->
<div class="tab-content active" id="tab-welcome">
<div class="home">
<div class="home-inner">
<aside class="home-aside">
<div class="brand">
<img class="brand-mark" src="assets/logo-high-res.png" alt="">
<div class="brand-text">
<p class="eyebrow" id="appVersionLabel">Multi Browser</p>
<h1>Session Manager</h1>
</div>
</div>
<div class="update-row" id="updateRow">
<span class="update-status" id="updateStatus">Updates</span>
<div class="update-bar" id="updateBar" hidden>
<span class="update-bar-fill" id="updateBarFill"></span>
</div>
<button type="button" class="update-manual" id="updateManual" hidden>
Download manually
</button>
<button type="button" class="update-action" id="updateAction">Check</button>
</div>
<h2 class="home-headline">Many accounts.<br>One window.<br><em>Zero crossover.</em>
</h2>
<p class="home-lede">
Every session runs in its own storage partition — separate cookies, separate
logins, separate everything. Stay signed into five accounts of the same site at
once.
</p>
<div class="quick-actions">
<button class="btn btn-primary" id="createFirstSession">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round">
<path d="M12 5v14M5 12h14" />
</svg>
New session
</button>
<button class="btn btn-secondary" id="openAISettings">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"
stroke-linecap="round" stroke-linejoin="round">
<path d="M12 3l1.9 5.4L19.5 10l-5.6 1.6L12 17l-1.9-5.4L4.5 10l5.6-1.6L12 3z" />
<path d="M18.5 15.5l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z" />
</svg>
AI settings
</button>
</div>
<div class="home-facts">
<div class="home-fact">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"
stroke-linecap="round" stroke-linejoin="round">
<rect x="4.5" y="10.5" width="15" height="9.5" rx="2.5" />
<path d="M8 10.5V7.8a4 4 0 018 0v2.7" />
</svg>
<div>
<h3>Isolated sessions</h3>
<p>Separate cookies, storage and login state per session.</p>
</div>
</div>
<div class="home-fact">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"
stroke-linecap="round" stroke-linejoin="round">
<path d="M5 7.5C5 5.6 8.1 4 12 4s7 1.6 7 3.5-3.1 3.5-7 3.5-7-1.6-7-3.5z" />
<path d="M5 7.5v9c0 1.9 3.1 3.5 7 3.5s7-1.6 7-3.5v-9" />
<path d="M5 12c0 1.9 3.1 3.5 7 3.5s7-1.6 7-3.5" />
</svg>
<div>
<h3>Persistent by default</h3>
<p>Partitions live on disk, so logins survive restarts.</p>
</div>
</div>
<div class="home-fact">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"
stroke-linecap="round" stroke-linejoin="round">
<path d="M13 3L5.5 13.5H12L11 21l7.5-10.5H12L13 3z" />
</svg>
<div>
<h3>Fast switching</h3>
<p>Tabs across the top; notifications jump you to the right one.</p>
</div>
</div>
<div class="home-fact">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"
stroke-linecap="round" stroke-linejoin="round">
<path d="M10.5 13.5a4 4 0 006 .5l2.5-2.5a4.2 4.2 0 00-6-6L11.5 7" />
<path d="M13.5 10.5a4 4 0 00-6-.5L5 12.5a4.2 4.2 0 006 6L12.5 17" />
</svg>
<div>
<h3>Smart links</h3>
<p>External links open outside; wa.me links land in WhatsApp.</p>
</div>
</div>
<div class="home-fact">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"
stroke-linecap="round" stroke-linejoin="round">
<path d="M12 3l1.9 5.4L19.5 10l-5.6 1.6L12 17l-1.9-5.4L4.5 10l5.6-1.6L12 3z" />
</svg>
<div>
<h3>AI assistant</h3>
<p>Review, translate, reply, summarize — Alt+H in any session.</p>
</div>
</div>
</div>
</aside>
<section class="welcome-sessions-section">
<div class="section-head">
<span class="dot"></span>
<h3>Your sessions</h3>
<span class="rule"></span>
<span class="session-count" id="sessionCount"></span>
<div class="theme-switch" id="themeSwitch" role="group" aria-label="Theme">
<button type="button" class="theme-opt" data-theme-choice="system"
title="Match system" aria-pressed="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<rect x="3.5" y="5" width="17" height="11.5" rx="2" />
<path d="M9 20h6" />
<path d="M12 16.5V20" />
</svg>
</button>
<button type="button" class="theme-opt" data-theme-choice="light" title="Light"
aria-pressed="false">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="4" />
<path d="M12 2.5v2M12 19.5v2M21.5 12h-2M4.5 12h-2M18.4 5.6l-1.4 1.4M7 17l-1.4 1.4M18.4 18.4L17 17M7 7L5.6 5.6" />
</svg>
</button>
<button type="button" class="theme-opt" data-theme-choice="dark" title="Dark"
aria-pressed="false">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 14.5A8.2 8.2 0 019.5 4a8.5 8.5 0 1010.5 10.5z" />
</svg>
</button>
</div>
</div>
<div id="welcomeSessionsContainer">
<div class="loading">Loading sessions</div>
</div>
</section>
</div>
<footer class="home-foot">
<svg class="spark" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 3l1.9 5.4L19.5 10l-5.6 1.6L12 17l-1.9-5.4L4.5 10l5.6-1.6L12 3z" />
</svg>
<span>Vibe coded by Guilherme Peralta — free to fork</span>
</footer>
</div>
</div>
</div>
<!-- Status Bar -->
<div id="status-bar" class="status-bar">
<span id="status-message">Ready</span>
</div>
</div>
</div>
<!-- Modal for creating new sessions -->
<div id="sessionModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="dot"></span>
<h2>New session</h2>
<button class="modal-close" id="closeModal">×</button>
</div>
<form id="createSessionForm">
<div class="form-group">
<label for="sessionName">Session name</label>
<input type="text" id="sessionName" placeholder="Work account, Personal, Testing…" required>
</div>
<div class="form-group">
<label for="sessionUrl">Starting URL <span style="text-transform:none;">(optional)</span></label>
<input type="url" id="sessionUrl" placeholder="https://example.com" list="urlSuggestions"
autocomplete="off">
<datalist id="urlSuggestions">
<option value="https://web.whatsapp.com">WhatsApp Web</option>
<option value="https://web.telegram.org/">Telegram Web</option>
</datalist>
</div>
<div class="form-group">
<label for="sessionLanguages">Spellcheck languages</label>
<select id="sessionLanguages" class="form-select" multiple></select>
<small class="form-hint">Hold Ctrl / Cmd to select more than one.</small>
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary" id="cancelSession">Cancel</button>
<button type="submit" class="btn btn-primary">Create session</button>
</div>
</form>
</div>
</div>
<!-- Rename Modal -->
<div id="renameModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="dot"></span>
<h2>Edit session</h2>
<button class="modal-close" id="closeRenameModal">×</button>
</div>
<form id="renameSessionForm">
<div class="form-group">
<label for="newSessionName">Session name</label>
<input type="text" id="newSessionName" placeholder="Enter new session name" required>
</div>
<div class="form-group">
<label for="renameLanguages">Spellcheck languages</label>
<select id="renameLanguages" class="form-select" multiple></select>
<small class="form-hint">Hold Ctrl / Cmd to select more than one.</small>
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary" id="cancelRename">Cancel</button>
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
<!-- AI Settings Modal -->
<div id="aiSettingsModal" class="modal">
<div class="modal-content" style="max-width: 560px;">
<div class="modal-header">
<span class="dot"></span>
<h2>AI assistant</h2>
<button class="modal-close" id="closeAISettings">×</button>
</div>
<form id="aiSettingsForm">
<div class="form-group">
<label for="aiProvider">Provider</label>
<select id="aiProvider" class="form-select">
<option value="claude-cli">Claude CLI (no API key needed)</option>
<option value="claude-api">Claude API</option>
<option value="openai-api">OpenAI API</option>
<option value="openrouter-api">OpenRouter</option>
</select>
</div>
<div class="form-group ai-api-field" id="claudeApiKeyGroup" style="display:none;">
<label for="claudeApiKey">Claude API key</label>
<input type="password" id="claudeApiKey" placeholder="sk-ant-...">
</div>
<div class="form-group ai-api-field" id="claudeModelGroup" style="display:none;">
<label for="claudeModel">Claude model</label>
<input type="text" id="claudeModel" placeholder="claude-sonnet-4-6-20250514">
</div>
<div class="form-group ai-api-field" id="openaiApiKeyGroup" style="display:none;">
<label for="openaiApiKey">OpenAI API key</label>
<input type="password" id="openaiApiKey" placeholder="sk-...">
</div>
<div class="form-group ai-api-field" id="openaiModelGroup" style="display:none;">
<label for="openaiModel">OpenAI model</label>
<input type="text" id="openaiModel" placeholder="gpt-4o">
</div>
<div class="form-group ai-api-field" id="openrouterApiKeyGroup" style="display:none;">
<label for="openrouterApiKey">OpenRouter API key</label>
<input type="password" id="openrouterApiKey" placeholder="sk-or-...">
</div>
<div class="form-group ai-api-field" id="openrouterModelGroup" style="display:none;">
<label for="openrouterModel">OpenRouter model</label>
<input type="text" id="openrouterModel" placeholder="openai/gpt-4o">
</div>
<div class="form-group">
<label for="aiTargetLanguage">Default translation language</label>
<input type="text" id="aiTargetLanguage" placeholder="English">
</div>
<div class="form-group">
<label for="aiShortcut">Keyboard shortcut</label>
<input type="text" id="aiShortcut" placeholder="Alt+H" readonly
style="cursor:pointer; caret-color:transparent;">
<small class="form-hint">Click the field and press a key — it is combined with Alt.</small>
</div>
<div class="form-group">
<label for="githubToken">GitHub token <span style="text-transform:none;">(updates)</span></label>
<input type="password" id="githubToken" placeholder="ghp_… — only needed while the repo is private">
<small class="form-hint">Used to read releases when checking for updates. Read-only access is
enough; leave empty once the repository is public.</small>
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary" id="cancelAISettings">Cancel</button>
<button type="submit" class="btn btn-primary">Save settings</button>
</div>
</form>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>