docsite
docsite copied to clipboard
Playground: Better Share, Better Error Handling, General Cleanup
This PR:
- Renames
ExampleProjectstruct toProject, introducing the concept of a "Project" - The
Projectstruct was moved tomodelout ofexample-projects - Projects can be shared via server API which calls to GitHub Gists.
- Server now needs a
GIST_AUTH_TOKENenvironment variable. - A new
ApiClientstruct which acts as a reqwest client for server <-> playground comms. AppErrorwas moved tomodelto help unify a standard error type.- An
Errorsstruct & context is now provided for components to gracefully push errors which will then be rendered in a modal and logged. - We now have a
monaco_readysignal. It is not yet used everywhere. - A Cors and br compression layer has been added to the server. Cors is set to permissive.
- Adjusted the template settings for smaller builds (1mb, brotli 400kb instead of 36mb)
- Adds example & target rebuilding so the examples and server is primed at startup!
Closes #418 Closes #419