waveterm/frontend/util
Evan Simkowitz e527e2ab77
Add authkey header for requests to the backend (#256)
With this PR, Electron will generate a new authorization key that the Go
backend will look for in any incoming requests. The Electron backend
will inject this header with all requests to the backend to ensure no
additional work is required on the frontend.

This also adds a `fetchutil` abstraction that will use the Electron
`net` module when calls are made from the Electron backend to the Go
backend. When using the `node:fetch` module, Electron can't inject
headers to requests. The Electron `net` module is also faster than the
Node module.

This also breaks out platform functions in emain into their own file so
other emain modules can import them.
2024-08-21 15:04:39 -07:00
..
endpoints.ts update license blurbs 2024-07-17 19:46:17 -07:00
fetchutil.ts Add authkey header for requests to the backend (#256) 2024-08-21 15:04:39 -07:00
fontutil.ts fix inter font for variable weight 2024-07-05 14:57:11 -07:00
getenv.ts update license blurbs 2024-07-17 19:46:17 -07:00
historyutil.ts implement history functions for preview 2024-08-19 22:07:35 -07:00
ijson.ts Replace lets with const where possible (#35) 2024-06-11 13:19:29 -07:00
isdev.ts update license blurbs 2024-07-17 19:46:17 -07:00
keyutil.ts keydownWrapper 2024-06-28 17:53:35 -07:00
util.ts New layout model (#210) 2024-08-14 18:40:41 -07:00