An open-source, cross-platform terminal for seamless workflows
Go to file
Evan Simkowitz e527e2ab77
Add authkey header for requests to the backend ()
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
.github bump node version 2024-08-01 02:18:27 -07:00
.storybook Make magnify icon always visible, transition from magnify to minimize () 2024-08-05 16:13:26 -07:00
.vscode Fix yaml formatting () 2024-07-18 15:53:20 -07:00
build remove wails deps 2024-06-12 11:58:17 -07:00
cmd Add authkey header for requests to the backend () 2024-08-21 15:04:39 -07:00
db Update copyright indicators on a bunch of files () 2024-08-20 17:01:29 -07:00
emain Add authkey header for requests to the backend () 2024-08-21 15:04:39 -07:00
frontend Add authkey header for requests to the backend () 2024-08-21 15:04:39 -07:00
pkg Add authkey header for requests to the backend () 2024-08-21 15:04:39 -07:00
public try adding the wave logo to header 2024-08-06 16:41:00 -07:00
scripts/artifacts update readme 2024-08-16 18:17:10 -07:00
.editorconfig Fix prettier formatting 2024-05-28 12:12:28 -07:00
.gitignore Set up electron-builder for new app () 2024-07-17 18:42:49 -07:00
.prettierignore Add filewatcher for config files () 2024-06-19 23:59:41 -07:00
.yarnrc.yml Fix prettier formatting 2024-05-28 12:12:28 -07:00
electron-builder.config.cjs Fix sharp import issue () 2024-08-20 13:18:47 -07:00
electron.vite.config.ts Fix sharp import issue () 2024-08-20 13:18:47 -07:00
eslint.config.js Switch to using electron-vite instead of WebPack () 2024-06-13 16:49:25 -07:00
go.mod Windows Pty () 2024-08-09 18:49:35 -07:00
go.sum Windows Pty () 2024-08-09 18:49:35 -07:00
index.html Simplify frontend/wave path in index.html () 2024-06-13 17:00:07 -07:00
LICENSE Setup the Build Helper pipeline () 2024-07-17 22:39:22 -07:00
package.json Fix sharp import issue () 2024-08-20 13:18:47 -07:00
prettier.config.cjs Switch to using electron-vite instead of WebPack () 2024-06-13 16:49:25 -07:00
README.md Switch to using electron-vite instead of WebPack () 2024-06-13 16:49:25 -07:00
Taskfile.yml Optimize taskfile dependencies to remove duplicate generate tasks () 2024-08-20 16:48:38 -07:00
tsconfig.json modals component and model and TOS modal () 2024-07-30 11:44:19 -07:00
version.cjs Get version for Taskfile from version.js () 2024-06-13 18:11:21 -07:00
vitest.config.ts Switch to using electron-vite instead of WebPack () 2024-06-13 16:49:25 -07:00
yarn.lock Fix sharp import issue () 2024-08-20 13:18:47 -07:00

The Next Wave

Prereqs:

You'll need to install "task" (which we're using as a build/run system):

brew install go-task

On first checkout:

yarn
go mod tidy

Then, run the following command to start the app using the Vite dev server (this will enable Hot Module Reloading):

task electron:dev

To run the app without the dev server, run the following instead:

task electron:start