waveterm/pkg
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
..
authkey Add authkey header for requests to the backend (#256) 2024-08-21 15:04:39 -07:00
blockcontroller wsh edit working (#252) 2024-08-20 14:56:48 -07:00
eventbus Add flag for specifying a new node as magnified on insert (#253) 2024-08-20 20:14:14 -07:00
filestore adding telemetry updates (#209) 2024-08-08 18:24:54 -07:00
ijson metadata updates (frontend typing) (#174) 2024-07-30 12:33:28 -07:00
remote wsh edit working (#252) 2024-08-20 14:56:48 -07:00
service wsh edit working (#252) 2024-08-20 14:56:48 -07:00
shellexec wsh edit working (#252) 2024-08-20 14:56:48 -07:00
telemetry adding telemetry updates (#209) 2024-08-08 18:24:54 -07:00
tsgen wsh edit working (#252) 2024-08-20 14:56:48 -07:00
userinput User Input (#119) 2024-07-18 15:21:33 -07:00
util Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
vdom working on vdom implementation, other fixes (#136) 2024-07-23 13:16:53 -07:00
waveai adding telemetry updates (#209) 2024-08-08 18:24:54 -07:00
wavebase adding telemetry updates (#209) 2024-08-08 18:24:54 -07:00
waveobj wsh edit working (#252) 2024-08-20 14:56:48 -07:00
wcloud Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
wconfig wsh edit working (#252) 2024-08-20 14:56:48 -07:00
wcore wsh edit working (#252) 2024-08-20 14:56:48 -07:00
web Add authkey header for requests to the backend (#256) 2024-08-21 15:04:39 -07:00
wps wsh routing + proxy (#224) 2024-08-13 16:52:35 -07:00
wshrpc Add flag for specifying a new node as magnified on insert (#253) 2024-08-20 20:14:14 -07:00
wshutil wsh edit working (#252) 2024-08-20 14:56:48 -07:00
wstore wsh edit working (#252) 2024-08-20 14:56:48 -07:00