Alex Gleason
4acc969e1e
ignore electron/dist in eslint
2025-10-29 21:15:58 -05:00
Alex Gleason
897a8e40bb
Make electron app installable with npm
2025-10-29 21:12:23 -05:00
Alex Gleason
31fcbe99a9
Clean up some electron config
2025-10-29 17:39:39 -05:00
Alex Gleason
695b56c3cb
Merge branch 'electron' into 'main'
...
Electron
See merge request soapbox-pub/shakespeare!68
2025-10-29 22:35:22 +00:00
Alex Gleason
d1b9a9bffd
Fix test
2025-10-29 16:50:07 -05:00
Alex Gleason
c9350aa8bd
Fix type errors
2025-10-29 16:42:08 -05:00
Alex Gleason
579fb0d843
Remove Anthropic from provider presets
2025-10-29 16:37:58 -05:00
Alex Gleason
4ca9feb252
Fix "git reset" subcommand in virtual terminal
2025-10-29 15:30:18 -05:00
Alex Gleason
d13bc84232
Checkout branch with "force" so it updates the tree
2025-10-29 15:10:20 -05:00
Alex Gleason
05bdd275d1
Support service fee in Credits Dialog
2025-10-29 01:22:46 -05:00
Alex Gleason
7bc80f2b9e
Fix Vercel API keys URL
2025-10-27 16:14:48 -05:00
Alex Gleason
919c76befa
electron/GUIDE.md -> electron/AGENTS.md
2025-10-27 13:19:07 -05:00
Alex Gleason
8e296f2eb8
Merge remote-tracking branch 'origin/main' into electron
2025-10-27 13:05:08 -05:00
Alex Gleason
511a02312d
Improve design of PWA update prompt
2025-10-27 01:33:00 -05:00
Alex Gleason
05834af874
Add shakespeare favicon service, configure it as the default, move provider-specific hacks into it
2025-10-27 01:19:02 -05:00
Alex Gleason
3988a81c31
Add Vercel AI provider
2025-10-27 00:30:36 -05:00
Alex Gleason
de420cd615
Export giftcards to csv
2025-10-26 23:46:22 -05:00
Alex Gleason
3120f47b50
Add printable QR codes to gift cards
2025-10-26 23:43:02 -05:00
Alex Gleason
a798114de0
Add rough Gift Card redeem flow
2025-10-26 22:09:02 -05:00
Alex Gleason
e14e298ad4
Fix Credits Dialog giftcards query logic
2025-10-26 21:37:31 -05:00
Alex Gleason
f033a40e8e
Simplify CreditsDialog
2025-10-26 20:49:35 -05:00
Alex Gleason
1101573d20
Reorganize credits dialog into accordions
2025-10-26 20:44:20 -05:00
Alex Gleason
f881a4b8a5
Add gift card support
2025-10-26 20:25:16 -05:00
Alex Gleason
a0821468e9
Remove "Offline Cache" section from Storage settings
2025-10-25 11:50:01 -05:00
Alex Gleason
ad9fdb16c2
Add mirrors to README
2025-10-25 11:38:16 -05:00
Alex Gleason
2f96db8b96
Add Service Worker to System Settings
2025-10-25 11:36:03 -05:00
Alex Gleason
84bebe02cb
Remove rollupOptions
2025-10-25 11:20:11 -05:00
Alex Gleason
caa555986a
Change ServiceWorker to prompt
2025-10-25 11:14:05 -05:00
Alex Gleason
f0b819dc33
Add Mirrors
2025-10-25 11:03:25 -05:00
Alex Gleason
e85e429ba1
Fix LightningFS Uint8Array types
2025-10-25 10:49:54 -05:00
Alex Gleason
cfa8f69ad5
Add offline support
2025-10-25 10:25:33 -05:00
Alex Gleason
51f71689fa
Fix electron FS adapter
2025-10-25 01:41:55 -05:00
Alex Gleason
b025f519be
Simplify electron scripts
2025-10-25 01:31:33 -05:00
Alex Gleason
130cb7055a
Remove isElectron
2025-10-25 01:28:19 -05:00
Alex Gleason
4bd48a65bb
Fix tests
2025-10-25 00:47:29 -05:00
Alex Gleason
51645b284a
Remove unnecessary triple-slash directives
2025-10-25 00:35:59 -05:00
Alex Gleason
1a0693e72a
Use platform-specific default paths
2025-10-25 00:34:50 -05:00
Alex Gleason
557f244991
Revert unnecessary text change in Terminal.tsx
2025-10-25 00:18:45 -05:00
Alex Gleason
16a5a79ddb
Condense electron md files
2025-10-25 00:16:38 -05:00
Alex Gleason
28665385cc
Remove unnecessary docs
2025-10-24 23:26:23 -05:00
Alex Gleason
766262ca1a
Fix ElectronFSAdapter types
2025-10-24 23:14:01 -05:00
Alex Gleason
b334680ee7
Use app://./index.html to prevent Electron from adding trailing slash
2025-10-24 23:11:19 -05:00
Alex Gleason
58b4d1562d
Fix protocol handler to strip trailing slashes
...
The URL app://index.html/ was failing because of the trailing slash.
Now strips trailing slashes before resolving file paths.
2025-10-24 23:11:05 -05:00
Alex Gleason
c833716723
Fix LightningFSAdapter types
2025-10-24 23:05:26 -05:00
Alex Gleason
446bd84742
Fix custom protocol registration
...
Protocol schemes must be registered with privileges before app.whenReady().
Added registerSchemesAsPrivileged() call and more logging.
2025-10-24 22:47:59 -05:00
Alex Gleason
8bc7fe7aeb
Add console logging for debugging load issues
2025-10-24 22:47:45 -05:00
Alex Gleason
3765e8f8c0
Add DevTools keyboard shortcuts (Ctrl+Shift+I, F12)
...
Even though we removed the menu, users need access to the inspector
for debugging. This adds keyboard shortcuts to toggle DevTools.
2025-10-24 22:47:37 -05:00
Alex Gleason
50811bde7a
Revert unnecessary CSP change
...
The font-src 'data:' addition was not needed for Electron support.
Browser mode works fine without it.
2025-10-24 19:59:58 -05:00
Alex Gleason
369ab0bf1e
Use custom protocol handler instead of base: './'
...
This is a much cleaner solution that eliminates the need for:
- Changing base: './' in vite.config.ts
- Importing assets in components
- Any workarounds for absolute paths
How it works:
- Register app:// protocol in Electron main process
- Maps app://path/to/file to dist/path/to/file
- Allows absolute paths (/) to work naturally in Electron
- No changes needed to source code or build config
Benefits:
- vite.config.ts stays clean (no base: './' hack)
- Components use normal paths: src="/shakespeare.svg"
- Works in both browser (https://) and Electron (app://)
- This is the standard Electron approach for serving local files
Reverted:
- vite.config.ts: Removed base: './'
- ShakespeareLogo: Back to src="/shakespeare.svg"
- AppShowcaseCard: Back to src="/badge.svg"
Updated:
- electron/main.js: Added protocol.registerFileProtocol('app', ...)
- electron/main.js: Changed loadURL to app://index.html
2025-10-24 19:59:16 -05:00
Alex Gleason
6cf69da69e
Remove development artifact documentation
...
These were temporary files created during the cleanup process and
should not be included in the merge to main.
2025-10-24 19:55:12 -05:00