Commit Graph
567 Commits
Author SHA1 Message Date
sawka 9e7df9787d move widgets back to right hand side 2024-08-22 11:36:35 -07:00
Evan SimkowitzandGitHub d5140129cd Fix block numbering and switching with arrow keys (#258) 2024-08-21 17:43:11 -07:00
Mike SawkaandGitHub dedfc31344 implement Cmd-I and restructure block viewmodels (#257) 2024-08-21 15:49:23 -07:00
Evan SimkowitzandGitHub 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
Evan SimkowitzandGitHub 23261a7a98 Add flag for specifying a new node as magnified on insert (#253) 2024-08-20 20:14:14 -07:00
Evan SimkowitzandGitHub bd4bf93d4a Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
Mike SawkaandGitHub 037497e7f1 wsh edit working (#252) 2024-08-20 14:56:48 -07:00
sawka 2f020099ec cmd:n and cmd:t 2024-08-19 22:39:52 -07:00
sawka e70e08e531 implement history functions for preview 2024-08-19 22:07:35 -07:00
sawka 9a06b43266 implement a viewmodel keydown handler 2024-08-19 18:41:47 -07:00
sawka f535c5c1ab default file to ~ 2024-08-19 18:33:52 -07:00
sawka a0734a3bbe implement cmd+t 2024-08-19 18:28:28 -07:00
sawka a639fc3c8d implement defaultwidgets 2024-08-19 17:21:44 -07:00
Red J AdayaandGitHub 964c422a02 about modal (#244) 2024-08-19 15:49:40 -07:00
Mike SawkaandGitHub 534fcc5d0a client support for rpc cancel (#249) 2024-08-19 15:44:30 -07:00
sawka 00958b8fed refactor 2024-08-19 15:01:00 -07:00
Mike SawkaandGitHub 0d8c159101 remote file preview (streaming) working (#248) 2024-08-19 14:37:52 -07:00
Evan Simkowitz 319d84d0b5 remove layout Dimensions declaration in favor of global 2024-08-19 14:33:44 -07:00
Evan Simkowitz bdfd7b22d9 increase debounce time 2024-08-19 14:29:58 -07:00
Evan Simkowitz fd375b95d8 uselayouteffect for window controls overlay callback 2024-08-19 14:28:01 -07:00
Evan Simkowitz a52e5c6c9b remove unused declarations in app.tsx 2024-08-19 14:23:58 -07:00
Evan SimkowitzandGitHub e6003c310e Set background color for window controls on Linux (#247)
The Window Controls Overlay API applies a transparent overlay on
Windows, but not on Linux. This PR addresses this by capturing the area
underneath the overlay, averaging the color of the area, and setting
this as the overlay background color.

It will also detect whether to make the control symbols white or black,
depending on how dark the background color is.

On Linux, this will set both the background color and the symbol color,
on Windows it will just set the symbol color.

<img width="721" alt="image"
src="https://github.com/user-attachments/assets/e6f9f8f8-a49f-41b6-984e-09e7d52c631d">
2024-08-19 14:16:09 -07:00
sawka 3f37837394 fix term keydown handler 2024-08-19 12:24:08 -07:00
sawka b412f72f6b remove unsafe btoa calls 2024-08-19 11:54:54 -07:00
Mike SawkaandGitHub 8651659c02 get remote preview working (#246)
almost all there -- just need to fix streamfile for web urls.
2024-08-19 11:02:40 -07:00