@shellui/core 0.5.4-alpha.1 → 0.6.0-beta.1
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/README.md +2 -0
- package/package.json +6 -4
- package/schemas/shellui.config.schema.json +104 -64
- package/src/app.tsx +5 -3
- package/src/components/ContentView.tsx +26 -5
- package/src/components/LoadingOverlay.tsx +1 -1
- package/src/components/ui/sonner.spec.tsx +138 -0
- package/src/components/ui/sonner.tsx +5 -5
- package/src/components/ui/switch.tsx +1 -1
- package/src/features/admin/AdminView.tsx +14 -3
- package/src/features/ai/AiBridge.tsx +106 -0
- package/src/features/ai/AiUnavailableResponder.tsx +39 -0
- package/src/features/ai/README.md +52 -0
- package/src/features/ai/ShellAiHost.tsx +24 -0
- package/src/features/ai/adapters/ollama.ts +170 -0
- package/src/features/ai/adapters/promptApi.spec.ts +135 -0
- package/src/features/ai/adapters/promptApi.ts +222 -0
- package/src/features/ai/adapters/webllm.experimental.spec.ts +69 -0
- package/src/features/ai/adapters/webllm.spec.ts +527 -0
- package/src/features/ai/adapters/webllm.ts +142 -0
- package/src/features/ai/aiDisabledResponses.spec.ts +29 -0
- package/src/features/ai/aiDisabledResponses.ts +32 -0
- package/src/features/ai/browserInstallStore.spec.ts +58 -0
- package/src/features/ai/browserInstallStore.ts +76 -0
- package/src/features/ai/catalog.ts +31 -0
- package/src/features/ai/createRegistry.ts +83 -0
- package/src/features/ai/developHarness.spec.ts +108 -0
- package/src/features/ai/developHarness.ts +161 -0
- package/src/features/ai/engine/formatAiError.spec.ts +85 -0
- package/src/features/ai/engine/formatAiError.ts +132 -0
- package/src/features/ai/engine/mapInitProgress.ts +9 -0
- package/src/features/ai/engine/normalizeWebLlmModule.spec.ts +47 -0
- package/src/features/ai/engine/vite-worker.d.ts +6 -0
- package/src/features/ai/engine/webllm.worker.ts +51 -0
- package/src/features/ai/engine/webllmEngine.ts +1011 -0
- package/src/features/ai/handleRequest.spec.ts +288 -0
- package/src/features/ai/handleRequest.ts +325 -0
- package/src/features/ai/isAiFeatureEnabled.spec.ts +15 -0
- package/src/features/ai/isAiFeatureEnabled.ts +9 -0
- package/src/features/ai/promptApiSupport.spec.ts +64 -0
- package/src/features/ai/promptApiSupport.ts +117 -0
- package/src/features/ai/registry.spec.ts +100 -0
- package/src/features/ai/registry.ts +131 -0
- package/src/features/ai/status.spec.ts +92 -0
- package/src/features/ai/status.ts +85 -0
- package/src/features/ai/types.ts +100 -0
- package/src/features/ai/webLlmBrowserSupport.spec.ts +86 -0
- package/src/features/ai/webLlmBrowserSupport.ts +92 -0
- package/src/features/alertDialog/DialogContext.tsx +3 -1
- package/src/features/auth/AuthProvider.tsx +254 -39
- package/src/features/auth/backends/index.ts +8 -0
- package/src/features/auth/backends/shellui.spec.ts +201 -0
- package/src/features/auth/backends/shellui.ts +93 -16
- package/src/features/auth/backends/supabase.ts +8 -0
- package/src/features/auth/backends/types.ts +16 -1
- package/src/features/auth/components/LoginButton.tsx +26 -2
- package/src/features/auth/components/LoginView.tsx +114 -133
- package/src/features/auth/components/SessionLoadingView.tsx +21 -0
- package/src/features/auth/hooks/useAuth.tsx +12 -0
- package/src/features/auth/shellAccountRequests.ts +76 -0
- package/src/features/auth/utils/authRequestError.ts +4 -1
- package/src/features/auth/utils/authSessionPersistence.spec.ts +11 -0
- package/src/features/auth/utils/authSessionPersistence.ts +12 -0
- package/src/features/auth/utils/index.ts +4 -0
- package/src/features/auth/utils/resolveLoginSettings.spec.ts +33 -0
- package/src/features/auth/utils/resolveLoginSettings.ts +33 -0
- package/src/features/auth/utils/shareInFlight.spec.ts +41 -0
- package/src/features/auth/utils/shareInFlight.ts +14 -0
- package/src/features/config/ConfigProvider.ts +9 -1
- package/src/features/config/types.ts +43 -0
- package/src/features/layouts/appbar/AppBarLayout.tsx +8 -3
- package/src/features/layouts/filterNavigationForAuthState.spec.ts +41 -0
- package/src/features/layouts/floating/FloatingLayout.tsx +9 -4
- package/src/features/layouts/sidebar/SidebarLayout.tsx +9 -4
- package/src/features/layouts/utils.ts +6 -2
- package/src/features/layouts/windows/WindowsLayout.tsx +8 -3
- package/src/features/messaging/MessagingSecurityBootstrap.tsx +6 -6
- package/src/features/security/trustedFrames.spec.ts +65 -0
- package/src/features/security/trustedFrames.ts +52 -0
- package/src/features/settings/SettingsIcons.tsx +17 -0
- package/src/features/settings/SettingsProvider.tsx +28 -3
- package/src/features/settings/SettingsRoutes.tsx +8 -0
- package/src/features/settings/SettingsView.tsx +21 -4
- package/src/features/settings/components/Ai.tsx +830 -0
- package/src/features/settings/components/Develop.tsx +4 -0
- package/src/features/settings/components/Storage.tsx +197 -32
- package/src/features/settings/components/UserSettingsPanel.tsx +160 -12
- package/src/features/settings/components/createUserSettingsRoute.tsx +4 -0
- package/src/features/settings/components/develop/AiTestTools.tsx +231 -0
- package/src/features/settings/utils/buildSettingsForPropagation.spec.ts +54 -1
- package/src/features/settings/utils/buildSettingsForPropagation.ts +15 -1
- package/src/features/settings/utils/mergePreferencesIntoSettings.spec.ts +6 -0
- package/src/features/settings/utils/shouldShowStorageSettings.spec.ts +49 -0
- package/src/features/settings/utils/shouldShowStorageSettings.ts +19 -0
- package/src/features/storage/uploads/UploadToastCard.tsx +2 -442
- package/src/features/storage/uploads/UploadToaster.tsx +2 -44
- package/src/features/storage/uploads/uploadQueue.ts +128 -308
- package/src/features/storage/uploads/useUploadQueue.ts +7 -3
- package/src/features/transfers/TransferToastCard.tsx +467 -0
- package/src/features/transfers/TransferToaster.tsx +50 -0
- package/src/features/transfers/index.ts +33 -0
- package/src/features/transfers/transferQueue.spec.ts +97 -0
- package/src/features/transfers/transferQueue.ts +442 -0
- package/src/features/transfers/types.ts +38 -0
- package/src/features/transfers/useTransferQueue.ts +30 -0
- package/src/i18n/translations/en/common.json +46 -2
- package/src/i18n/translations/en/settings.json +151 -2
- package/src/i18n/translations/fr/common.json +46 -2
- package/src/i18n/translations/fr/settings.json +151 -2
- package/src/index.css +57 -4
- package/src/index.ts +1 -0
- package/src/routes/components/NavigationItemRoute.tsx +2 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"dataPrivacy": "Data Privacy",
|
|
16
16
|
"legalDocuments": "Legal documents",
|
|
17
17
|
"storage": "Storage",
|
|
18
|
+
"ai": "AI",
|
|
18
19
|
"develop": "Develop",
|
|
19
20
|
"serviceWorker": "Service Worker"
|
|
20
21
|
},
|
|
@@ -33,6 +34,15 @@
|
|
|
33
34
|
"groups": "Groups",
|
|
34
35
|
"noGroups": "None"
|
|
35
36
|
},
|
|
37
|
+
"name": {
|
|
38
|
+
"edit": "Edit name",
|
|
39
|
+
"save": "Save",
|
|
40
|
+
"saving": "Saving…",
|
|
41
|
+
"cancel": "Cancel",
|
|
42
|
+
"savedTitle": "Name updated",
|
|
43
|
+
"savedDescription": "Your name is now {{name}}.",
|
|
44
|
+
"errorTitle": "Could not update your name"
|
|
45
|
+
},
|
|
36
46
|
"loginMethods": {
|
|
37
47
|
"unknown": "Unknown",
|
|
38
48
|
"magicLinkEmail": "Magic link (Email)",
|
|
@@ -58,7 +68,24 @@
|
|
|
58
68
|
},
|
|
59
69
|
"actions": {
|
|
60
70
|
"loggingOut": "Logging out...",
|
|
61
|
-
"logout": "Logout"
|
|
71
|
+
"logout": "Logout",
|
|
72
|
+
"deleteAccount": "Delete account",
|
|
73
|
+
"deletingAccount": "Deleting account…"
|
|
74
|
+
},
|
|
75
|
+
"deleteAccount": {
|
|
76
|
+
"title": "Delete your account?",
|
|
77
|
+
"description": "You will be removed from {{appName}} and your data will be deleted. This cannot be undone.",
|
|
78
|
+
"adminWarning": "You are an administrator of {{appName}}. Deleting your account removes your access to it, including its admin settings.",
|
|
79
|
+
"confirm": "Delete account",
|
|
80
|
+
"cancel": "Cancel",
|
|
81
|
+
"successTitle": "Account deleted",
|
|
82
|
+
"successDescription": "Your {{appName}} account has been deleted.",
|
|
83
|
+
"reauthTitle": "Sign in again to continue",
|
|
84
|
+
"reauthDescription": "For your security, deleting your account requires a recent sign-in. Sign in again, then retry from your account settings.",
|
|
85
|
+
"reauthAction": "Sign in again",
|
|
86
|
+
"lastOwnerTitle": "Add another owner first",
|
|
87
|
+
"lastOwnerDescription": "You are the only owner of {{companies}}. Deleting your account would leave it without anyone who can manage it. Make another member an owner, then delete your account.",
|
|
88
|
+
"errorTitle": "Could not delete your account"
|
|
62
89
|
}
|
|
63
90
|
},
|
|
64
91
|
"updateApp": {
|
|
@@ -145,6 +172,7 @@
|
|
|
145
172
|
},
|
|
146
173
|
"storage": {
|
|
147
174
|
"description": "See how much of your storage quota is in use.",
|
|
175
|
+
"remoteTitle": "File storage",
|
|
148
176
|
"yourUsage": "Your usage",
|
|
149
177
|
"organization": "Organization",
|
|
150
178
|
"noPersonalLimit": "No personal limit. Your files count toward the organization quota.",
|
|
@@ -153,7 +181,97 @@
|
|
|
153
181
|
"signInRequired": "Sign in to see your storage usage.",
|
|
154
182
|
"loading": "Loading storage usage…",
|
|
155
183
|
"error": "Unable to load storage usage.",
|
|
156
|
-
"retry": "Try again"
|
|
184
|
+
"retry": "Try again",
|
|
185
|
+
"aiModels": {
|
|
186
|
+
"title": "Local AI models",
|
|
187
|
+
"description": "Browser and catalog usage for on-device models. Catalog sizes are estimates until real weights are stored.",
|
|
188
|
+
"originUsage": "This browser origin",
|
|
189
|
+
"originHint": "Total space this site reports via the browser storage API (includes more than AI).",
|
|
190
|
+
"catalogEstimate": "Installed catalog estimate",
|
|
191
|
+
"catalogEstimateHint": "Sum of listed model sizes for catalog entries marked installed. Not exact disk use until downloads store real weights.",
|
|
192
|
+
"catalogUsed": "{{used}} estimated · {{count}} installed",
|
|
193
|
+
"noneInstalled": "No browser catalog models are installed yet.",
|
|
194
|
+
"estimateUnavailable": "Browser storage estimate is unavailable.",
|
|
195
|
+
"loading": "Checking local storage…"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"ai": {
|
|
199
|
+
"description": "On-device models for apps in this shell. Nothing is sent to a cloud AI service from Shellui itself.",
|
|
200
|
+
"unknownError": "Something went wrong.",
|
|
201
|
+
"enabled": {
|
|
202
|
+
"title": "Allow apps to use AI",
|
|
203
|
+
"description": "Apps cannot open AI sessions while this is off."
|
|
204
|
+
},
|
|
205
|
+
"status": {
|
|
206
|
+
"title": "Status",
|
|
207
|
+
"loading": "Checking status…",
|
|
208
|
+
"error": "Unable to check AI status.",
|
|
209
|
+
"retry": "Try again",
|
|
210
|
+
"refresh": "Refresh",
|
|
211
|
+
"webGpu": "WebGPU",
|
|
212
|
+
"webGpuHint": "Required for browser models",
|
|
213
|
+
"ollama": "Ollama",
|
|
214
|
+
"ollamaOnlineHint": "Ready to list local models",
|
|
215
|
+
"storage": "Browser storage",
|
|
216
|
+
"storageHint": "Holds catalog installs on this device",
|
|
217
|
+
"available": "Available",
|
|
218
|
+
"unavailable": "Not available",
|
|
219
|
+
"connected": "Connected",
|
|
220
|
+
"offline": "Offline",
|
|
221
|
+
"reachable": "Connected",
|
|
222
|
+
"notReachable": "Offline",
|
|
223
|
+
"ollamaOffline": "Start Ollama, then refresh",
|
|
224
|
+
"ollamaDisabled": "Ollama is turned off above."
|
|
225
|
+
},
|
|
226
|
+
"providers": {
|
|
227
|
+
"title": "Providers",
|
|
228
|
+
"ollama": "Ollama",
|
|
229
|
+
"ollamaHint": "Models already on this computer via the Ollama app.",
|
|
230
|
+
"browser": "Browser models",
|
|
231
|
+
"browserHint": "Catalog installs stay in this browser. Inference is not wired yet; use Ollama for prompts.",
|
|
232
|
+
"browserStubNote": "Install records a catalog entry on this device. Browser inference is not wired yet; use Ollama for prompts.",
|
|
233
|
+
"promptApi": "Built-in browser model",
|
|
234
|
+
"promptApiHint": "Built-in browser model (Chrome Prompt API). Runs on-device; shown only when your browser provides it."
|
|
235
|
+
},
|
|
236
|
+
"defaultModel": {
|
|
237
|
+
"title": "Default model",
|
|
238
|
+
"description": "Used when an app does not choose one.",
|
|
239
|
+
"none": "Automatic (first ready model)",
|
|
240
|
+
"empty": "No ready models yet. Start Ollama or install a catalog entry."
|
|
241
|
+
},
|
|
242
|
+
"models": {
|
|
243
|
+
"ollama": "Ollama models",
|
|
244
|
+
"ollamaEmpty": "Ollama is offline. Start it, then refresh.",
|
|
245
|
+
"ollamaEmptyReady": "Connected, but no models yet. Run ollama pull.",
|
|
246
|
+
"browser": "Browser catalog",
|
|
247
|
+
"browserEmpty": "No browser models in the catalog.",
|
|
248
|
+
"promptApiEmpty": "The built-in browser model is turned off above.",
|
|
249
|
+
"enable": "Enable",
|
|
250
|
+
"enabling": "Enabling…",
|
|
251
|
+
"promptApiSettingUp": "Setting up built-in model…",
|
|
252
|
+
"download": "Install",
|
|
253
|
+
"cancel": "Cancel",
|
|
254
|
+
"delete": "Remove",
|
|
255
|
+
"downloadProgress": "{{percent}}%",
|
|
256
|
+
"needsWebGpuAction": "This browser needs WebGPU before catalog installs.",
|
|
257
|
+
"unsupportedBrowser": "Browser models need Chrome, Edge, or Safari (WebGPU). Use Ollama on this browser.",
|
|
258
|
+
"experimentalBrowser": "Browser models work best in Chrome, Edge, or Safari (WebGPU). Support in this browser is experimental — you can still try Install; if it fails, use Ollama.",
|
|
259
|
+
"status": {
|
|
260
|
+
"ready": "Ready",
|
|
261
|
+
"downloadable": "Not installed",
|
|
262
|
+
"downloading": "Installing",
|
|
263
|
+
"needsWebGpu": "Needs WebGPU",
|
|
264
|
+
"unsupported": "Unsupported browser",
|
|
265
|
+
"unavailable": "Unavailable"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"details": {
|
|
269
|
+
"title": "Details",
|
|
270
|
+
"webGpuDetail": "WebGPU",
|
|
271
|
+
"ollamaDetail": "Ollama",
|
|
272
|
+
"empty": "No extra probe details right now."
|
|
273
|
+
},
|
|
274
|
+
"footnote": "Large models use disk space and can heat the GPU on first load. Treat prompts from apps as untrusted content."
|
|
157
275
|
},
|
|
158
276
|
"dataPrivacy": {
|
|
159
277
|
"title": "Data Privacy",
|
|
@@ -471,6 +589,37 @@
|
|
|
471
589
|
"openDrawer": "Open demo (drawer iframe)",
|
|
472
590
|
"close": "Close demo"
|
|
473
591
|
}
|
|
592
|
+
},
|
|
593
|
+
"ai": {
|
|
594
|
+
"title": "AI test tools",
|
|
595
|
+
"description": "Developer probes over the same shell AI path as apps. Day-to-day setup lives in Settings → AI.",
|
|
596
|
+
"webGpu": "WebGPU",
|
|
597
|
+
"ollama": "Ollama",
|
|
598
|
+
"defaultModel": "Default model",
|
|
599
|
+
"adapters": "Registered adapters",
|
|
600
|
+
"aiEnabled": "Apps allowed to use AI",
|
|
601
|
+
"yes": "Yes",
|
|
602
|
+
"no": "No",
|
|
603
|
+
"none": "None",
|
|
604
|
+
"loading": "Checking…",
|
|
605
|
+
"unknownError": "Something went wrong.",
|
|
606
|
+
"promptHint": "Prompt test sends: “Reply with exactly: pong”.",
|
|
607
|
+
"buttons": {
|
|
608
|
+
"refresh": "Refresh status",
|
|
609
|
+
"listModels": "List models",
|
|
610
|
+
"prompt": "Run prompt test",
|
|
611
|
+
"stream": "Run stream test",
|
|
612
|
+
"clear": "Clear log"
|
|
613
|
+
},
|
|
614
|
+
"logRefreshed": "Status refreshed.",
|
|
615
|
+
"logNoModels": "No models found (start Ollama or enable a browser model).",
|
|
616
|
+
"logModels": "Models: {{list}}",
|
|
617
|
+
"logPromptResult": "Prompt via {{model}}: {{text}}",
|
|
618
|
+
"logPromptError": "Prompt failed: {{message}}",
|
|
619
|
+
"logStreamStart": "Streaming…",
|
|
620
|
+
"logStreamChunk": "chunk: {{chunk}}",
|
|
621
|
+
"logStreamDone": "Stream via {{model}} done: {{text}}",
|
|
622
|
+
"logStreamError": "Stream failed: {{message}}"
|
|
474
623
|
}
|
|
475
624
|
}
|
|
476
625
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"navigationError": "Erreur de navigation",
|
|
11
11
|
"navigationNotAllowed": "Cette URL n'est pas configurée dans la navigation de l'application.",
|
|
12
|
+
"sessionLoading": "Restauration de votre session…",
|
|
12
13
|
"adminShell": {
|
|
13
14
|
"djangoAdmin": "Admin Django"
|
|
14
15
|
},
|
|
@@ -21,7 +22,8 @@
|
|
|
21
22
|
"noEmail": "Aucun e-mail",
|
|
22
23
|
"userFallback": "Utilisateur",
|
|
23
24
|
"goToLoginAriaLabel": "Aller à la connexion",
|
|
24
|
-
"openAccountMenuAriaLabel": "Ouvrir le menu du compte pour {{name}}"
|
|
25
|
+
"openAccountMenuAriaLabel": "Ouvrir le menu du compte pour {{name}}",
|
|
26
|
+
"loadingAccount": "Chargement du compte…"
|
|
25
27
|
},
|
|
26
28
|
"loginPage": {
|
|
27
29
|
"welcomeBack": "Bon retour",
|
|
@@ -47,7 +49,10 @@
|
|
|
47
49
|
"noMethodsEnabled": "Aucune méthode de connexion n'est activée dans les paramètres d'authentification du backend.",
|
|
48
50
|
"cancel": "Annuler",
|
|
49
51
|
"brandingIframeTitle": "Image de connexion",
|
|
50
|
-
"
|
|
52
|
+
"magicLinkSentTitle": "Consultez vos e-mails",
|
|
53
|
+
"magicLinkSentDescription": "Ouvrez le lien de connexion envoyé à",
|
|
54
|
+
"magicLinkChangeEmail": "Utiliser une autre adresse e-mail",
|
|
55
|
+
"magicLinkChangeEmailIn": "Utiliser une autre adresse e-mail ({{seconds}} s)",
|
|
51
56
|
"enterEmail": "Veuillez saisir votre adresse e-mail.",
|
|
52
57
|
"couldNotSendMagicLink": "Impossible d'envoyer le lien magique.",
|
|
53
58
|
"methodUnsupported": "Ce backend ne prend pas en charge la connexion {{method}}.",
|
|
@@ -96,6 +101,45 @@
|
|
|
96
101
|
"statusError": "Échec",
|
|
97
102
|
"statusCancelled": "Annulé"
|
|
98
103
|
},
|
|
104
|
+
"transfers": {
|
|
105
|
+
"titleUploading_one": "Envoi de {{count}} fichier",
|
|
106
|
+
"titleUploading_other": "Envoi de {{count}} fichiers",
|
|
107
|
+
"titleDownloading_one": "Téléchargement de {{count}} modèle",
|
|
108
|
+
"titleDownloading_other": "Téléchargement de {{count}} modèles",
|
|
109
|
+
"titleTransferring_one": "{{count}} transfert en cours",
|
|
110
|
+
"titleTransferring_other": "{{count}} transferts en cours",
|
|
111
|
+
"titleUploadComplete_one": "{{count}} fichier envoyé",
|
|
112
|
+
"titleUploadComplete_other": "{{count}} fichiers envoyés",
|
|
113
|
+
"titleDownloadComplete_one": "{{count}} modèle prêt",
|
|
114
|
+
"titleDownloadComplete_other": "{{count}} modèles prêts",
|
|
115
|
+
"titleComplete_one": "{{count}} transfert terminé",
|
|
116
|
+
"titleComplete_other": "{{count}} transferts terminés",
|
|
117
|
+
"titleFailed_one": "{{count}} transfert a échoué",
|
|
118
|
+
"titleFailed_other": "{{count}} transferts ont échoué",
|
|
119
|
+
"titleMixed": "{{success}} terminés, {{errors}} en échec",
|
|
120
|
+
"titleCancelled_one": "{{count}} transfert annulé",
|
|
121
|
+
"titleCancelled_other": "{{count}} transferts annulés",
|
|
122
|
+
"bytesProgress": "{{transferred}} sur {{total}}",
|
|
123
|
+
"itemsProgress": "{{done}} sur {{total}} terminés",
|
|
124
|
+
"progressPercent": "{{percent}} %",
|
|
125
|
+
"errorCount_one": "{{count}} erreur",
|
|
126
|
+
"errorCount_other": "{{count}} erreurs",
|
|
127
|
+
"cancelledCount_one": "{{count}} annulé",
|
|
128
|
+
"cancelledCount_other": "{{count}} annulés",
|
|
129
|
+
"expand": "Afficher les détails",
|
|
130
|
+
"collapse": "Masquer les détails",
|
|
131
|
+
"dismiss": "Fermer",
|
|
132
|
+
"closeAndCancel": "Annuler les transferts en cours et fermer",
|
|
133
|
+
"cancelItem": "Annuler",
|
|
134
|
+
"removeItem": "Retirer",
|
|
135
|
+
"cancelAll": "Tout annuler",
|
|
136
|
+
"statusUploading": "Envoi en cours",
|
|
137
|
+
"statusDownloading": "Téléchargement",
|
|
138
|
+
"statusUploadComplete": "Envoyé",
|
|
139
|
+
"statusDownloadComplete": "Prêt",
|
|
140
|
+
"statusError": "Échec",
|
|
141
|
+
"statusCancelled": "Annulé"
|
|
142
|
+
},
|
|
99
143
|
"storagePicker": {
|
|
100
144
|
"title": "Sélectionner des fichiers ou dossiers",
|
|
101
145
|
"description": "Choisissez des éléments, puis confirmez."
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"dataPrivacy": "Confidentialité des données",
|
|
16
16
|
"legalDocuments": "Documents légaux",
|
|
17
17
|
"storage": "Stockage",
|
|
18
|
+
"ai": "IA",
|
|
18
19
|
"develop": "Développement",
|
|
19
20
|
"serviceWorker": "Service Worker"
|
|
20
21
|
},
|
|
@@ -33,6 +34,15 @@
|
|
|
33
34
|
"groups": "Groupes",
|
|
34
35
|
"noGroups": "Aucun"
|
|
35
36
|
},
|
|
37
|
+
"name": {
|
|
38
|
+
"edit": "Modifier le nom",
|
|
39
|
+
"save": "Enregistrer",
|
|
40
|
+
"saving": "Enregistrement…",
|
|
41
|
+
"cancel": "Annuler",
|
|
42
|
+
"savedTitle": "Nom mis à jour",
|
|
43
|
+
"savedDescription": "Votre nom est désormais {{name}}.",
|
|
44
|
+
"errorTitle": "Impossible de mettre à jour votre nom"
|
|
45
|
+
},
|
|
36
46
|
"loginMethods": {
|
|
37
47
|
"unknown": "Inconnue",
|
|
38
48
|
"magicLinkEmail": "Lien magique (e-mail)",
|
|
@@ -58,7 +68,24 @@
|
|
|
58
68
|
},
|
|
59
69
|
"actions": {
|
|
60
70
|
"loggingOut": "Déconnexion...",
|
|
61
|
-
"logout": "Se déconnecter"
|
|
71
|
+
"logout": "Se déconnecter",
|
|
72
|
+
"deleteAccount": "Supprimer le compte",
|
|
73
|
+
"deletingAccount": "Suppression du compte…"
|
|
74
|
+
},
|
|
75
|
+
"deleteAccount": {
|
|
76
|
+
"title": "Supprimer votre compte ?",
|
|
77
|
+
"description": "Vous serez retiré de {{appName}} et vos données seront supprimées. Cette action est irréversible.",
|
|
78
|
+
"adminWarning": "Vous êtes administrateur de {{appName}}. Supprimer votre compte vous retire l'accès à l'application, y compris à son administration.",
|
|
79
|
+
"confirm": "Supprimer le compte",
|
|
80
|
+
"cancel": "Annuler",
|
|
81
|
+
"successTitle": "Compte supprimé",
|
|
82
|
+
"successDescription": "Votre compte {{appName}} a été supprimé.",
|
|
83
|
+
"reauthTitle": "Reconnectez-vous pour continuer",
|
|
84
|
+
"reauthDescription": "Pour votre sécurité, la suppression du compte nécessite une connexion récente. Reconnectez-vous, puis réessayez depuis les paramètres de votre compte.",
|
|
85
|
+
"reauthAction": "Se reconnecter",
|
|
86
|
+
"lastOwnerTitle": "Ajoutez d'abord un autre propriétaire",
|
|
87
|
+
"lastOwnerDescription": "Vous êtes le seul propriétaire de {{companies}}. Supprimer votre compte la laisserait sans personne pour la gérer. Désignez un autre membre comme propriétaire, puis supprimez votre compte.",
|
|
88
|
+
"errorTitle": "Impossible de supprimer votre compte"
|
|
62
89
|
}
|
|
63
90
|
},
|
|
64
91
|
"updateApp": {
|
|
@@ -145,6 +172,7 @@
|
|
|
145
172
|
},
|
|
146
173
|
"storage": {
|
|
147
174
|
"description": "Consultez l'utilisation de votre quota de stockage.",
|
|
175
|
+
"remoteTitle": "Stockage de fichiers",
|
|
148
176
|
"yourUsage": "Votre utilisation",
|
|
149
177
|
"organization": "Organisation",
|
|
150
178
|
"noPersonalLimit": "Aucune limite personnelle. Vos fichiers comptent dans le quota de l'organisation.",
|
|
@@ -153,7 +181,97 @@
|
|
|
153
181
|
"signInRequired": "Connectez-vous pour voir votre utilisation du stockage.",
|
|
154
182
|
"loading": "Chargement de l'utilisation du stockage…",
|
|
155
183
|
"error": "Impossible de charger l'utilisation du stockage.",
|
|
156
|
-
"retry": "Réessayer"
|
|
184
|
+
"retry": "Réessayer",
|
|
185
|
+
"aiModels": {
|
|
186
|
+
"title": "Modèles IA locaux",
|
|
187
|
+
"description": "Utilisation navigateur et catalogue pour les modèles sur cet appareil. Les tailles catalogue sont des estimations tant que les poids ne sont pas stockés.",
|
|
188
|
+
"originUsage": "Cette origine navigateur",
|
|
189
|
+
"originHint": "Espace total signalé par l'API de stockage du navigateur pour ce site (inclut plus que l'IA).",
|
|
190
|
+
"catalogEstimate": "Estimation catalogue installé",
|
|
191
|
+
"catalogEstimateHint": "Somme des tailles listées pour les entrées catalogue marquées installées. Pas une mesure exacte tant que les téléchargements ne stockent pas les vrais poids.",
|
|
192
|
+
"catalogUsed": "{{used}} estimés · {{count}} installés",
|
|
193
|
+
"noneInstalled": "Aucun modèle catalogue navigateur n'est encore installé.",
|
|
194
|
+
"estimateUnavailable": "L'estimation de stockage navigateur est indisponible.",
|
|
195
|
+
"loading": "Vérification du stockage local…"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"ai": {
|
|
199
|
+
"description": "Modèles sur cet appareil pour les applications du shell. Shellui n'envoie rien à un service d'IA cloud de lui-même.",
|
|
200
|
+
"unknownError": "Une erreur s’est produite.",
|
|
201
|
+
"enabled": {
|
|
202
|
+
"title": "Autoriser les applications à utiliser l'IA",
|
|
203
|
+
"description": "Les applications ne peuvent pas ouvrir de sessions IA tant que c'est désactivé."
|
|
204
|
+
},
|
|
205
|
+
"status": {
|
|
206
|
+
"title": "État",
|
|
207
|
+
"loading": "Vérification de l'état…",
|
|
208
|
+
"error": "Impossible de vérifier l'état de l'IA.",
|
|
209
|
+
"retry": "Réessayer",
|
|
210
|
+
"refresh": "Actualiser",
|
|
211
|
+
"webGpu": "WebGPU",
|
|
212
|
+
"webGpuHint": "Requis pour les modèles navigateur",
|
|
213
|
+
"ollama": "Ollama",
|
|
214
|
+
"ollamaOnlineHint": "Prêt à lister les modèles locaux",
|
|
215
|
+
"storage": "Stockage navigateur",
|
|
216
|
+
"storageHint": "Conserve les installations catalogue sur cet appareil",
|
|
217
|
+
"available": "Disponible",
|
|
218
|
+
"unavailable": "Indisponible",
|
|
219
|
+
"connected": "Connecté",
|
|
220
|
+
"offline": "Hors ligne",
|
|
221
|
+
"reachable": "Connecté",
|
|
222
|
+
"notReachable": "Hors ligne",
|
|
223
|
+
"ollamaOffline": "Démarrez Ollama, puis actualisez",
|
|
224
|
+
"ollamaDisabled": "Ollama est désactivé ci-dessus."
|
|
225
|
+
},
|
|
226
|
+
"providers": {
|
|
227
|
+
"title": "Fournisseurs",
|
|
228
|
+
"ollama": "Ollama",
|
|
229
|
+
"ollamaHint": "Modèles déjà présents via l'application Ollama.",
|
|
230
|
+
"browser": "Modèles navigateur",
|
|
231
|
+
"browserHint": "Les installations catalogue restent dans ce navigateur. L'inférence n'est pas encore branchée ; utilisez Ollama pour les invites.",
|
|
232
|
+
"browserStubNote": "Installer enregistre une entrée catalogue sur cet appareil. L'inférence navigateur n'est pas encore branchée ; utilisez Ollama pour les invites.",
|
|
233
|
+
"promptApi": "Modèle intégré du navigateur",
|
|
234
|
+
"promptApiHint": "Modèle intégré du navigateur (API Prompt de Chrome). S'exécute sur l'appareil ; affiché uniquement lorsque votre navigateur le fournit."
|
|
235
|
+
},
|
|
236
|
+
"defaultModel": {
|
|
237
|
+
"title": "Modèle par défaut",
|
|
238
|
+
"description": "Utilisé lorsqu'une application n'en choisit pas.",
|
|
239
|
+
"none": "Automatique (premier modèle prêt)",
|
|
240
|
+
"empty": "Aucun modèle prêt. Démarrez Ollama ou installez une entrée catalogue."
|
|
241
|
+
},
|
|
242
|
+
"models": {
|
|
243
|
+
"ollama": "Modèles Ollama",
|
|
244
|
+
"ollamaEmpty": "Ollama est hors ligne. Démarrez-le, puis actualisez.",
|
|
245
|
+
"ollamaEmptyReady": "Connecté, mais aucun modèle. Lancez ollama pull.",
|
|
246
|
+
"browser": "Catalogue navigateur",
|
|
247
|
+
"browserEmpty": "Aucun modèle navigateur dans le catalogue.",
|
|
248
|
+
"promptApiEmpty": "Le modèle intégré du navigateur est désactivé ci-dessus.",
|
|
249
|
+
"enable": "Activer",
|
|
250
|
+
"enabling": "Activation…",
|
|
251
|
+
"promptApiSettingUp": "Configuration du modèle intégré…",
|
|
252
|
+
"download": "Installer",
|
|
253
|
+
"cancel": "Annuler",
|
|
254
|
+
"delete": "Retirer",
|
|
255
|
+
"downloadProgress": "{{percent}} %",
|
|
256
|
+
"needsWebGpuAction": "Ce navigateur a besoin de WebGPU avant les installations catalogue.",
|
|
257
|
+
"unsupportedBrowser": "Les modèles navigateur nécessitent Chrome, Edge ou Safari (WebGPU). Utilisez Ollama sur ce navigateur.",
|
|
258
|
+
"experimentalBrowser": "Les modèles navigateur fonctionnent mieux dans Chrome, Edge ou Safari (WebGPU). La prise en charge de ce navigateur est expérimentale — vous pouvez tout de même essayer l’installation ; en cas d’échec, utilisez Ollama.",
|
|
259
|
+
"status": {
|
|
260
|
+
"ready": "Prêt",
|
|
261
|
+
"downloadable": "Non installé",
|
|
262
|
+
"downloading": "Installation",
|
|
263
|
+
"needsWebGpu": "WebGPU requis",
|
|
264
|
+
"unsupported": "Navigateur non pris en charge",
|
|
265
|
+
"unavailable": "Indisponible"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"details": {
|
|
269
|
+
"title": "Détails",
|
|
270
|
+
"webGpuDetail": "WebGPU",
|
|
271
|
+
"ollamaDetail": "Ollama",
|
|
272
|
+
"empty": "Aucun détail de sonde pour le moment."
|
|
273
|
+
},
|
|
274
|
+
"footnote": "Les gros modèles prennent de l'espace disque et peuvent chauffer le GPU au premier chargement. Traitez les invites des applications comme du contenu non fiable."
|
|
157
275
|
},
|
|
158
276
|
"dataPrivacy": {
|
|
159
277
|
"title": "Confidentialité des données",
|
|
@@ -471,6 +589,37 @@
|
|
|
471
589
|
"openDrawer": "Ouvrir la démo (tiroir iframe)",
|
|
472
590
|
"close": "Fermer la démo"
|
|
473
591
|
}
|
|
592
|
+
},
|
|
593
|
+
"ai": {
|
|
594
|
+
"title": "Outils de test IA",
|
|
595
|
+
"description": "Sondes développeur sur le même chemin AI que les applications. La configuration courante est dans Paramètres → IA.",
|
|
596
|
+
"webGpu": "WebGPU",
|
|
597
|
+
"ollama": "Ollama",
|
|
598
|
+
"defaultModel": "Modèle par défaut",
|
|
599
|
+
"adapters": "Adaptateurs enregistrés",
|
|
600
|
+
"aiEnabled": "Applications autorisées à utiliser l’IA",
|
|
601
|
+
"yes": "Oui",
|
|
602
|
+
"no": "Non",
|
|
603
|
+
"none": "Aucun",
|
|
604
|
+
"loading": "Vérification…",
|
|
605
|
+
"unknownError": "Une erreur s’est produite.",
|
|
606
|
+
"promptHint": "Le test d’invite envoie : « Reply with exactly: pong ».",
|
|
607
|
+
"buttons": {
|
|
608
|
+
"refresh": "Actualiser l’état",
|
|
609
|
+
"listModels": "Lister les modèles",
|
|
610
|
+
"prompt": "Tester une invite",
|
|
611
|
+
"stream": "Tester le flux",
|
|
612
|
+
"clear": "Effacer le journal"
|
|
613
|
+
},
|
|
614
|
+
"logRefreshed": "État actualisé.",
|
|
615
|
+
"logNoModels": "Aucun modèle trouvé (démarrez Ollama ou activez un modèle navigateur).",
|
|
616
|
+
"logModels": "Modèles : {{list}}",
|
|
617
|
+
"logPromptResult": "Invite via {{model}} : {{text}}",
|
|
618
|
+
"logPromptError": "Échec de l’invite : {{message}}",
|
|
619
|
+
"logStreamStart": "Flux en cours…",
|
|
620
|
+
"logStreamChunk": "morceau : {{chunk}}",
|
|
621
|
+
"logStreamDone": "Flux via {{model}} terminé : {{text}}",
|
|
622
|
+
"logStreamError": "Échec du flux : {{message}}"
|
|
474
623
|
}
|
|
475
624
|
}
|
|
476
625
|
}
|
package/src/index.css
CHANGED
|
@@ -676,10 +676,21 @@ html.shellui-theme-switching
|
|
|
676
676
|
outline-color: color-mix(in oklch, var(--ring) 50%, transparent);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
/*
|
|
680
|
-
*
|
|
681
|
-
|
|
682
|
-
|
|
679
|
+
/* The position list can be wider than the cards (mobile spans the viewport).
|
|
680
|
+
* Keep the list itself inert so clicks outside the cards reach the app, including
|
|
681
|
+
* the gaps around a stack. Cards and their buttons opt back in so they stay
|
|
682
|
+
* clickable when a Radix modal sets pointer-events: none on body. That also
|
|
683
|
+
* keeps the iPad pointerdown path (elementFromPoint) on the buttons. */
|
|
684
|
+
[data-sonner-toaster] {
|
|
685
|
+
pointer-events: none !important;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
[data-sonner-toast],
|
|
689
|
+
[data-sonner-toast] [data-button],
|
|
690
|
+
[data-sonner-toast] [data-cancel],
|
|
691
|
+
[data-sonner-toast] [data-close-button],
|
|
692
|
+
[data-upload-toast],
|
|
693
|
+
[data-upload-toast] button {
|
|
683
694
|
pointer-events: auto !important;
|
|
684
695
|
}
|
|
685
696
|
|
|
@@ -1193,6 +1204,48 @@ html.shellui-theme-switching
|
|
|
1193
1204
|
}
|
|
1194
1205
|
}
|
|
1195
1206
|
|
|
1207
|
+
/* Settings → AI: collapse detail when the master switch is off.
|
|
1208
|
+
*
|
|
1209
|
+
* Keep the 0fr → 1fr height animation, but do NOT let the open track eat leftover
|
|
1210
|
+
* viewport/panel height. This grid sits in a Settings flex column (`flex-1` scroll
|
|
1211
|
+
* body); without content-sizing, `grid-template-rows: 1fr` expands to fill free
|
|
1212
|
+
* space → a huge empty white slab under the last provider (e.g. after toggling
|
|
1213
|
+
* the Prompt API section). */
|
|
1214
|
+
[data-shellui-ai-details] {
|
|
1215
|
+
display: grid;
|
|
1216
|
+
grid-template-rows: 0fr;
|
|
1217
|
+
opacity: 0;
|
|
1218
|
+
/* Hug content in the settings flex column — never stretch to fill free space. */
|
|
1219
|
+
align-self: start;
|
|
1220
|
+
width: 100%;
|
|
1221
|
+
flex: 0 0 auto;
|
|
1222
|
+
height: max-content;
|
|
1223
|
+
transition:
|
|
1224
|
+
grid-template-rows 280ms ease,
|
|
1225
|
+
opacity 200ms ease;
|
|
1226
|
+
}
|
|
1227
|
+
[data-shellui-ai-details='open'] {
|
|
1228
|
+
grid-template-rows: 1fr;
|
|
1229
|
+
opacity: 1;
|
|
1230
|
+
}
|
|
1231
|
+
[data-shellui-ai-details] > [data-shellui-ai-details-inner] {
|
|
1232
|
+
min-height: 0;
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
/* Room for focus-visible ring + ring-offset on full-width Select/Input.
|
|
1235
|
+
* Without this, the gold focus outline is clipped flush left/right by
|
|
1236
|
+
* overflow:hidden (collapse animation). 0.25rem keeps the control full-width-ish. */
|
|
1237
|
+
padding-inline: 0.25rem;
|
|
1238
|
+
}
|
|
1239
|
+
/* Once open, stop clipping focus rings / shadows on full-width controls. */
|
|
1240
|
+
[data-shellui-ai-details='open'] > [data-shellui-ai-details-inner] {
|
|
1241
|
+
overflow: visible;
|
|
1242
|
+
}
|
|
1243
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1244
|
+
[data-shellui-ai-details] {
|
|
1245
|
+
transition: none;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1196
1249
|
/* Auth account dropdown menu animation (LoginButton) */
|
|
1197
1250
|
@keyframes auth-menu-in {
|
|
1198
1251
|
from {
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,8 @@ export const NavigationItemRoute = () => {
|
|
|
15
15
|
const { url, currentItem } = useNavigationItems();
|
|
16
16
|
|
|
17
17
|
if (!currentItem) {
|
|
18
|
-
|
|
18
|
+
// `hideWhenLoggedOut` items only match once the restored session is known.
|
|
19
|
+
return isLoading ? <RouteFallback /> : <NotFoundView />;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
const next = `${location.pathname}${location.search}`;
|