Commit Graph
10 Commits
Author SHA1 Message Date
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 fa02679936 Add Electron support 2025-10-23 10:43:44 -05:00
Alex Gleason 7041ac3648 Fix CalVer timezone issue 2025-10-22 20:00:54 -05:00
Alex Gleason ee78156071 Add CalVer to Settings 2025-10-22 18:37:27 -05:00
Alex Gleason 388afd0b16 Enable sourcemap in Shakespeare itself 2025-10-02 17:59:29 -05:00
Alex Gleason 94d14a87aa Try a different code-splitting tactic 2025-09-16 00:07:30 -05:00
Alex Gleason 7ceb99ec79 Start implementing streaming API 2025-08-21 13:45:56 -05:00
Alex Gleason 6d6e928854 It's very close but still not working 2025-08-07 14:53:09 -05:00
Alex Gleason 3d8ccdca45 Build progress 2025-07-17 18:15:54 -05:00
Alex Gleason ec5d8de6c2 Stack: nostr:naddr1qvzqqqrhl5pzqprpljlvcnpnw3pejvkkhrc3y6wvmd7vjuad0fg2ud3dky66gaxaqqrk66mnw3skx6c4g6ltw 2025-07-16 14:07:08 -05:00