Commit Graph

5 Commits

Author SHA1 Message Date
Arya 49d8eb2bac
Adds config updates and preserves logs when routing (#10)
* adds mod doc, removes unnecessary copyright / license

* removes config form

* uses a relative config path and generates a config if none exists

* adds state, adds `tracing` crate, refactors spawning zebrad and reading its output

* updates `save_config` command to kill the zebrad child process, (which will cause the output reader task to exit as well), read the existing config, overwrite it with the new config, start the zebrad process, and start a new task for reading its output.

* Sleeps for a shorter duration before emitting logs as events

* adds a `read_config` command and a textarea for editing it in the UI

* adds edit mode

* Adds example data, fixes issue with updating

* Adds button styles

* adds some textarea styles

* adds syntax highlighting for config preview with highlightjs

* adds a loading state while Zebrad restarts

* adds tracing logs to save_config command, and wait for zebrad to shutdown before restarting

* moves log state up to App so it persists across route changes, moves wait during setup for webview to start to the async runtime so it doesn't block the setup fn from starting the webview.

* Disallow resizing the config file textarea without resizing the window

---------

Co-authored-by: Automated Release Test <release-tests-no-reply@zfnd.org>
2024-03-05 21:07:04 -05:00
Gustavo Valverde b554d659c4
feat(docker): add a Dockerfile to run `zebra-app` (#9) 2024-03-05 19:15:51 -05:00
Arya 88bfbfec33
Add a configuration page (#6)
* Adds empty config page and applies active styles to active tabs in nav

* adds hover style

* moves pages to a pages dir

* removes unused line (cleanup)

* Adds @modular-forms/solid pkg, and a single config option

---------

Co-authored-by: Automated Release Test <release-tests-no-reply@zfnd.org>
2024-03-04 17:22:46 -05:00
Arya 726beaf3ee
Add Router and move Logs page to its own file (#3)
* sets a max num log lines to avoid endlessly eating memory displaying all of Zebra's logs

* Adds router and refactors logs page into its own file, moves constants to their own file

* displays children in AppContainer instead of always showing logs, renames LogPage to Container

---------

Co-authored-by: Automated Release Test <release-tests-no-reply@zfnd.org>
2024-03-04 12:52:45 -05:00
Arya 30e614c618
Use Tauri v2-beta and SolidJS (#1)
* cargo create-tauri-app --beta

* adds generated files from yarn && yarn tauri dev, adds public dir resolve alias

* fixes a ts warning that an svg file can't be found

* starts zebrad process and emits its logs as events

* works

* Adds setup instructions

* removes extensions.json

* adds styled-components and styles

---------

Co-authored-by: Automated Release Test <release-tests-no-reply@zfnd.org>
2024-02-28 20:31:59 -05:00