-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
335 lines (307 loc) · 19.7 KB
/
Copy pathindex.html
File metadata and controls
335 lines (307 loc) · 19.7 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
<!doctype html>
<html lang="fr" data-theme="dark">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/auralis.svg"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>Auralis</title>
<link rel="stylesheet" href="/src/styles/theme.css"/>
<link rel="stylesheet" href="/src/styles/glass.css"/>
<link rel="stylesheet" href="/src/styles/layout.css"/>
<link rel="stylesheet" href="/src/styles/tabs.css"/>
<link rel="stylesheet" href="/src/styles/navbar.css"/>
<link rel="stylesheet" href="/src/styles/favbar.css"/>
<link rel="stylesheet" href="/src/styles/newtab.css"/>
<link rel="stylesheet" href="/src/styles/buttons.css"/>
<link rel="stylesheet" href="/src/styles/panels.css"/>
<link rel="stylesheet" href="/src/styles/auralis-page.css"/>
<link rel="stylesheet" href="/src/styles/data.css"/>
</head>
<body>
<div id="app">
<!-- ═══════════════════════════════════════════════
CHROME : topbar + navbar + barre des favoris
═══════════════════════════════════════════════ -->
<div id="browser-chrome" class="browser-chrome">
<!-- TOPBAR : onglets + bouton + contrôles fenêtre à DROITE -->
<div id="topbar" class="topbar" data-tauri-drag-region>
<div id="tab-strip" class="tab-strip" data-tauri-drag-region="false">
<button class="btn-new-tab" id="btn-new-tab"
data-i18n-title="tab.new_title" title="Nouvel onglet (Ctrl+T)"
aria-label="Nouvel onglet">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
<path d="M6 1v10M1 6h10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="topbar-spacer" data-tauri-drag-region></div>
<div class="window-controls" data-tauri-drag-region="false">
<button class="win-btn win-minimize" id="btn-minimize" title="Réduire" aria-label="Réduire">
<svg width="10" height="2" viewBox="0 0 10 2" fill="none" aria-hidden="true">
<path d="M1 1h8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
</button>
<button class="win-btn win-maximize" id="btn-maximize" title="Agrandir" aria-label="Agrandir">
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" aria-hidden="true">
<rect x="1" y="1" width="8" height="8" rx="1" stroke="currentColor" stroke-width="1.3"/>
</svg>
</button>
<button class="win-btn win-close" id="btn-close" title="Fermer" aria-label="Fermer">
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" aria-hidden="true">
<path d="M1.5 1.5l7 7M8.5 1.5l-7 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
</button>
</div>
</div><!-- /topbar -->
<!-- NAVBAR -->
<div id="navbar" class="navbar" data-tauri-drag-region>
<div class="nav-controls" data-tauri-drag-region="false">
<button class="nav-btn" id="btn-back" title="Précédent (Alt+←)" disabled aria-label="Précédent">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M10.5 12.5L6 8l4.5-4.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<button class="nav-btn" id="btn-forward" title="Suivant (Alt+→)" disabled aria-label="Suivant">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M5.5 3.5L10 8l-4.5 4.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<button class="nav-btn" id="btn-reload" title="Recharger (Ctrl+R)" aria-label="Recharger">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M13 8A5 5 0 1 1 8 3" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
<path d="M7.5 1.5l2 1.5-2 1.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<button class="nav-btn" id="btn-home" data-i18n-title="nav.home" title="Accueil" aria-label="Accueil">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M2 7.2L8 2.5l6 4.7V13a1 1 0 0 1-1 1h-3.2V9.4H6.2V14H3a1 1 0 0 1-1-1V7.2z" stroke="currentColor" stroke-width="1.35" stroke-linejoin="round"/>
</svg>
</button>
</div>
<div class="urlbar-wrapper" data-tauri-drag-region="false">
<div class="urlbar-security-icon" id="urlbar-icon" aria-hidden="true">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none">
<circle cx="6.5" cy="6.5" r="5" stroke="currentColor" stroke-width="1.1"/>
<path d="M6.5 2C6.5 2 5 4 5 6.5S6.5 11 6.5 11M6.5 2C6.5 2 8 4 8 6.5S6.5 11 6.5 11M2 6.5h9" stroke="currentColor" stroke-width="1.1"/>
</svg>
</div>
<input type="text" id="urlbar" class="urlbar"
data-i18n-ph="nav.urlbar"
placeholder="Rechercher ou entrer une adresse…"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
aria-label="Barre d'adresse"/>
<button class="urlbar-action-btn" id="btn-show-pw-prompt"
data-i18n-title="nav.passwords" title="Mots de passe" aria-label="Enregistrer le mot de passe">
<span id="pw-indicator">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" aria-hidden="true">
<rect x="3" y="5.5" width="7" height="6" rx="1" stroke="currentColor" stroke-width="1.1"/>
<path d="M4.5 5.5V4a2 2 0 1 1 4 0v1.5" stroke="currentColor" stroke-width="1.1" stroke-linecap="round"/>
<circle cx="6.5" cy="8.5" r=".7" fill="currentColor"/>
</svg>
</span>
</button>
<button class="urlbar-action-btn" id="btn-bookmark"
data-i18n-title="nav.bookmark_add" title="Ajouter aux favoris" aria-label="Favori">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" aria-hidden="true">
<path d="M2.5 1.5h8a.5.5 0 0 1 .5.5v9.5l-4.5-3-4.5 3V2a.5.5 0 0 1 .5-.5z" stroke="currentColor" stroke-width="1.1" class="bm-stroke" fill="none"/>
</svg>
</button>
</div>
<div class="navbar-right" data-tauri-drag-region="false">
<button class="nav-btn" id="btn-passwords"
data-i18n-title="nav.passwords" title="Mots de passe" aria-label="Mots de passe">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<rect x="3" y="7" width="10" height="8" rx="1.5" stroke="currentColor" stroke-width="1.3"/>
<path d="M5.5 7V5a2.5 2.5 0 0 1 5 0v2" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>
<circle cx="8" cy="11" r="1" fill="currentColor"/>
</svg>
</button>
<button class="nav-btn" id="btn-settings"
data-i18n-title="settings.title" title="Paramètres" aria-label="Paramètres">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<circle cx="8" cy="8" r="2.2" stroke="currentColor" stroke-width="1.3"/>
<path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4"
stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>
</svg>
</button>
</div>
</div><!-- /navbar -->
<!-- BARRE DES FAVORIS -->
<div id="favorites-bar" class="favorites-bar" role="navigation" aria-label="Favoris" data-tauri-drag-region>
<button class="favbar-import-btn" id="btn-favbar-import" data-tauri-drag-region="false"
data-i18n-title="favbar.import_title" title="Importer les favoris">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" aria-hidden="true">
<path d="M6.5 1v7M3.5 5l3 3 3-3" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M1.5 10.5h10" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>
</svg>
<span data-i18n="favbar.import">Importer</span>
</button>
</div>
<!-- PROMPT AJOUT FAVORI - barre inline dans le chrome.
La hauteur du chrome augmente quand visible → ResizeObserver → updateBounds(). -->
<div id="bm-save-prompt" class="bm-save-prompt hidden" role="dialog" aria-label="Ajouter un favori">
<p class="pw-save-title" data-i18n="bm.prompt_title">Nom du favori :</p>
<div class="bm-save-fields">
<input type="text" id="bm-title-input" class="setting-input"
data-i18n-ph="bm.title_ph" placeholder="Titre du favori"
autocomplete="off" autocorrect="off" spellcheck="false"/>
</div>
<div class="pw-save-actions">
<button class="btn-secondary" id="btn-bm-save-cancel" data-i18n="settings.cancel">Annuler</button>
<button class="btn-primary" id="btn-bm-save-confirm" data-i18n="settings.save">Enregistrer</button>
</div>
</div>
<!-- PROMPT ENREGISTREMENT MDP - barre inline dans le chrome.
En devenant visible (retrait de .hidden), elle augmente la hauteur du
chrome → le ResizeObserver dans browser.ts appelle updateBounds()
pour décaler le webview natif vers le bas. -->
<div id="pw-save-prompt" class="pw-save-prompt hidden" role="dialog" aria-label="Enregistrer le mot de passe">
<p class="pw-save-title" data-i18n="pw.save_prompt">Enregistrer le mot de passe pour ce site ?</p>
<div class="pw-save-fields">
<input type="text" id="pw-username-input" class="setting-input"
data-i18n-ph="pw.username" placeholder="Identifiant" autocomplete="username"/>
<input type="password" id="pw-password-input" class="setting-input"
data-i18n-ph="pw.password" placeholder="Mot de passe" autocomplete="current-password"/>
</div>
<div class="pw-save-actions">
<button class="btn-secondary" id="btn-pw-save-cancel" data-i18n="settings.cancel">Annuler</button>
<button class="btn-primary" id="btn-pw-save-confirm" data-i18n="pw.save">Enregistrer</button>
</div>
</div>
</div><!-- /browser-chrome -->
<!-- ═══════════════════════════════════════════════
ZONE DE CONTENU
═══════════════════════════════════════════════ -->
<div id="content-area" class="content-area">
<!-- PAGE NOUVEL ONGLET -->
<div id="newtab-page" class="newtab-page active">
<div class="newtab-bg" aria-hidden="true">
<div class="newtab-glow newtab-glow-1"></div>
<div class="newtab-glow newtab-glow-2"></div>
<div class="newtab-glow newtab-glow-3"></div>
</div>
<div class="newtab-content">
<div class="newtab-logo">
<div class="logo-emblem" aria-hidden="true">
<svg width="54" height="54" viewBox="0 0 56 56" fill="none">
<defs>
<linearGradient id="lg" x1="0" y1="0" x2="56" y2="56" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="var(--accent-rose)"/>
<stop offset="100%" stop-color="var(--accent-violet)"/>
</linearGradient>
</defs>
<path d="M28 8L44 46H12L28 8z" stroke="url(#lg)" stroke-width="2" stroke-linejoin="round" fill="none"/>
<path d="M18 34h20" stroke="url(#lg)" stroke-width="2" stroke-linecap="round"/>
<circle cx="28" cy="28" r="26" stroke="url(#lg)" stroke-width="0.5" opacity="0.3"/>
</svg>
</div>
<h1 class="logo-wordmark">Auralis</h1>
</div>
<div class="newtab-search-wrap">
<div class="newtab-search-inner">
<svg class="newtab-search-icon" width="18" height="18" viewBox="0 0 18 18" fill="none" aria-hidden="true">
<circle cx="7.5" cy="7.5" r="5.5" stroke="currentColor" stroke-width="1.5"/>
<path d="M11.5 11.5L16 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
<input type="text" id="newtab-searchbar" class="newtab-searchbar"
data-i18n-ph="newtab.search" placeholder="Rechercher sur le web…"
autocomplete="off" spellcheck="false" aria-label="Recherche"/>
</div>
</div>
<div id="newtab-favorites" class="newtab-favorites" aria-label="Favoris"></div>
</div>
</div>
<!-- Le contenu web est rendu dans un child webview natif Tauri (lib.rs). -->
<button id="btn-open-external" class="btn-open-external hidden"
title="Ouvrir dans le navigateur système" aria-label="Ouvrir externalement">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
<path d="M6 2H2.5A1.5 1.5 0 0 0 1 3.5v8A1.5 1.5 0 0 0 2.5 13h8A1.5 1.5 0 0 0 12 11.5V8M8 1h5m0 0v5m0-5L6.5 7.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<!-- ══════════════════════════════════════
AURALIS PAGES (auralis:home, auralis:settings/*)
══════════════════════════════════════ -->
<div id="auralis-page" class="auralis-page hidden" role="main">
<aside class="ap-sidebar">
<div class="ap-sidebar-brand">
<svg width="18" height="18" viewBox="0 0 56 56" fill="none" aria-hidden="true">
<defs>
<linearGradient id="apg" x1="0" y1="0" x2="56" y2="56" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="var(--accent-rose)"/>
<stop offset="100%" stop-color="var(--accent-violet)"/>
</linearGradient>
</defs>
<path d="M28 8L44 46H12L28 8z" stroke="url(#apg)" stroke-width="2.5" stroke-linejoin="round" fill="none"/>
<path d="M18 34h20" stroke="url(#apg)" stroke-width="2.5" stroke-linecap="round"/>
</svg>
<span>Auralis</span>
</div>
<nav id="ap-nav">
<a class="ap-nav-item" data-page="home" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M2 6.5L7 2l5 4.5V12H2V6.5z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/><path d="M5.25 12V8.5h3.5V12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
<span>Accueil</span>
</a>
<a class="ap-nav-item" data-page="apparence" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><circle cx="7" cy="7" r="5" stroke="currentColor" stroke-width="1.2"/><path d="M7 2v3M7 9v3M2 7h3M9 7h3" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
<span data-i18n="settings.apparence">Apparence</span>
</a>
<a class="ap-nav-item" data-page="moteur" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><circle cx="6" cy="6" r="4" stroke="currentColor" stroke-width="1.2"/><path d="M9.5 9.5L12.5 12.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg>
<span data-i18n="settings.moteur">Moteur</span>
</a>
<a class="ap-nav-item" data-page="demarrage" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M2 7a5 5 0 1 1 10 0" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/><path d="M7 2v2M4.2 3.2l1.4 1.4M2.5 6h2" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/><path d="M2 8h10v4H2z" rx="1" stroke="currentColor" stroke-width="1.2"/></svg>
<span data-i18n="settings.demarrage">Démarrage</span>
</a>
<a class="ap-nav-item" data-page="favoris" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M2 2h4l1 1.5H12a1 1 0 0 1 1 1V11a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z" stroke="currentColor" stroke-width="1.2"/></svg>
<span data-i18n="settings.favoris">Favoris</span>
</a>
<a class="ap-nav-item" data-page="historique" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><circle cx="7" cy="7" r="5" stroke="currentColor" stroke-width="1.2"/><path d="M7 4v3l2 1.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
<span data-i18n="settings.historique">Historique</span>
</a>
<a class="ap-nav-item" data-page="securite" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><rect x="2.5" y="6" width="9" height="7" rx="1" stroke="currentColor" stroke-width="1.2"/><path d="M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/><circle cx="7" cy="9.5" r=".8" fill="currentColor"/></svg>
<span data-i18n="settings.securite">Sécurité</span>
</a>
<a class="ap-nav-item" data-page="cache" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M2 4h10M4 4V2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5V4M3 4l.75 8h6.5L11 4" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
<span data-i18n="settings.cache">Cache</span>
</a>
<a class="ap-nav-item" data-page="a-propos" href="#">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><circle cx="7" cy="7" r="5" stroke="currentColor" stroke-width="1.2"/><path d="M7 6v5M7 4.5v.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
<span data-i18n="settings.a_propos">À propos</span>
</a>
</nav>
</aside>
<div class="ap-content" id="ap-content">
<!-- Rendered by main.ts -->
</div>
</div><!-- /auralis-page -->
<!-- ══════════════════════════════════════
PANNEAU MOTS DE PASSE
══════════════════════════════════════ -->
<div id="pw-panel" class="pw-panel hidden" role="dialog" aria-modal="true" aria-label="Mots de passe">
<div class="pw-backdrop" id="pw-backdrop"></div>
<div class="pw-inner glass-panel">
<div class="settings-header">
<h2 data-i18n="settings.securite">Sécurité</h2>
<button class="icon-btn" id="btn-close-pw" aria-label="Fermer">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="settings-body">
<p class="pw-hint" data-i18n="settings.passwords_hint">Les mots de passe sont chiffrés localement.</p>
<div id="pw-list" class="pw-list"></div>
</div>
</div>
</div>
</div><!-- /content-area -->
<div id="status-url" class="status-url hidden" aria-live="polite"></div>
</div><!-- /app -->
<script type="module" src="/src/main.ts"></script>
</body>
</html>