fluxy-bot 0.3.10 → 0.3.11

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.
@@ -10,11 +10,12 @@
10
10
  <link rel="apple-touch-icon" href="/fluxy_frame1.png" />
11
11
  <link rel="manifest" href="/fluxy/manifest.json" />
12
12
  <title>Fluxy Chat</title>
13
- <script type="module" crossorigin src="/fluxy/assets/fluxy-BHtLCJ52.js"></script>
13
+ <script type="module" crossorigin src="/fluxy/assets/fluxy-DLIL3txd.js"></script>
14
14
  <link rel="modulepreload" crossorigin href="/fluxy/assets/globals-rUljfzoe.js">
15
15
  <link rel="stylesheet" crossorigin href="/fluxy/assets/globals-BfWXHFxc.css">
16
16
  </head>
17
17
  <body class="bg-background text-foreground">
18
18
  <div id="root"></div>
19
+ <script>if('serviceWorker' in navigator){navigator.serviceWorker.register('/fluxy/sw.js',{scope:'/fluxy/'})}</script>
19
20
  </body>
20
21
  </html>
@@ -0,0 +1,4 @@
1
+ // Minimal service worker — required for PWA installability
2
+ self.addEventListener('install', () => self.skipWaiting());
3
+ self.addEventListener('activate', (e) => e.waitUntil(self.clients.claim()));
4
+ self.addEventListener('fetch', () => {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxy-bot",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Self-hosted AI bot — run your own AI assistant from anywhere",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -226,10 +226,8 @@ function FluxyApp() {
226
226
  installPrompt.prompt();
227
227
  const result = await installPrompt.userChoice;
228
228
  if (result.outcome === 'accepted') setInstallPrompt(null);
229
- } else if (isIos) {
230
- setShowIosModal(true);
231
229
  } else {
232
- // Fallback: try prompt anyway (some browsers)
230
+ // iOS or browser that doesn't support beforeinstallprompt — show instructions
233
231
  setShowIosModal(true);
234
232
  }
235
233
  }}
@@ -285,45 +283,70 @@ function FluxyApp() {
285
283
  </div>
286
284
  <div className="px-5 pb-6 pt-1">
287
285
  <p className="text-white/50 text-[13px] mb-5 leading-relaxed">
288
- {isIos
289
- ? 'Add Fluxy to your home screen for a full-screen app experience.'
290
- : 'Install Fluxy as an app on your device.'}
286
+ Add Fluxy to your home screen for a full-screen app experience.
291
287
  </p>
292
- <div className="space-y-3.5">
293
- <div className="flex items-start gap-3">
294
- <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">1</span>
295
- <div className="flex-1">
296
- <p className="text-white text-[14px] font-medium">
297
- Tap the Share button
298
- </p>
299
- <p className="text-white/40 text-[12px] mt-0.5 flex items-center gap-1.5">
300
- The <Share className="h-3.5 w-3.5 inline" /> icon at the bottom of Safari
301
- </p>
288
+ {isIos ? (
289
+ <div className="space-y-3.5">
290
+ <div className="flex items-start gap-3">
291
+ <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">1</span>
292
+ <div className="flex-1">
293
+ <p className="text-white text-[14px] font-medium">
294
+ Tap the Share button
295
+ </p>
296
+ <p className="text-white/40 text-[12px] mt-0.5 flex items-center gap-1.5">
297
+ The <Share className="h-3.5 w-3.5 inline" /> icon at the bottom of Safari
298
+ </p>
299
+ </div>
302
300
  </div>
303
- </div>
304
- <div className="flex items-start gap-3">
305
- <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">2</span>
306
- <div className="flex-1">
307
- <p className="text-white text-[14px] font-medium">
308
- Scroll down and tap
309
- </p>
310
- <p className="text-white/40 text-[12px] mt-0.5">
311
- "Add to Home Screen"
312
- </p>
301
+ <div className="flex items-start gap-3">
302
+ <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">2</span>
303
+ <div className="flex-1">
304
+ <p className="text-white text-[14px] font-medium">
305
+ Scroll down and tap
306
+ </p>
307
+ <p className="text-white/40 text-[12px] mt-0.5">
308
+ "Add to Home Screen"
309
+ </p>
310
+ </div>
311
+ </div>
312
+ <div className="flex items-start gap-3">
313
+ <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">3</span>
314
+ <div className="flex-1">
315
+ <p className="text-white text-[14px] font-medium">
316
+ Tap "Add"
317
+ </p>
318
+ <p className="text-white/40 text-[12px] mt-0.5">
319
+ Fluxy will appear on your home screen
320
+ </p>
321
+ </div>
313
322
  </div>
314
323
  </div>
315
- <div className="flex items-start gap-3">
316
- <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">3</span>
317
- <div className="flex-1">
318
- <p className="text-white text-[14px] font-medium">
319
- Tap "Add"
320
- </p>
321
- <p className="text-white/40 text-[12px] mt-0.5">
322
- Fluxy will appear on your home screen
323
- </p>
324
+ ) : (
325
+ <div className="space-y-3.5">
326
+ <div className="flex items-start gap-3">
327
+ <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">1</span>
328
+ <div className="flex-1">
329
+ <p className="text-white text-[14px] font-medium">
330
+ Open browser menu
331
+ </p>
332
+ <p className="text-white/40 text-[12px] mt-0.5">
333
+ Tap the three-dot menu in your browser
334
+ </p>
335
+ </div>
336
+ </div>
337
+ <div className="flex items-start gap-3">
338
+ <span className="flex-shrink-0 w-7 h-7 rounded-full bg-[#007AFF]/15 text-[#007AFF] text-[13px] font-semibold flex items-center justify-center mt-0.5">2</span>
339
+ <div className="flex-1">
340
+ <p className="text-white text-[14px] font-medium">
341
+ Tap "Install app" or "Add to Home screen"
342
+ </p>
343
+ <p className="text-white/40 text-[12px] mt-0.5">
344
+ Fluxy will be installed as a standalone app
345
+ </p>
346
+ </div>
324
347
  </div>
325
348
  </div>
326
- </div>
349
+ )}
327
350
  <button
328
351
  onClick={() => setShowIosModal(false)}
329
352
  className="w-full mt-5 py-2.5 bg-white/[0.06] hover:bg-white/[0.1] text-white text-[14px] font-medium rounded-xl transition-colors"
@@ -14,5 +14,6 @@
14
14
  <body class="bg-background text-foreground">
15
15
  <div id="root"></div>
16
16
  <script type="module" src="/fluxy-main.tsx"></script>
17
+ <script>if('serviceWorker' in navigator){navigator.serviceWorker.register('/fluxy/sw.js',{scope:'/fluxy/'})}</script>
17
18
  </body>
18
19
  </html>
@@ -0,0 +1,4 @@
1
+ // Minimal service worker — required for PWA installability
2
+ self.addEventListener('install', () => self.skipWaiting());
3
+ self.addEventListener('activate', (e) => e.waitUntil(self.clients.claim()));
4
+ self.addEventListener('fetch', () => {});