* Discord chat bot to announce projects (#590)
Add support for discord chat bot to announce when images are set, with instructions on configuring for dev. This uses the REST
API instead of a websocket connection, which is needed for serverless deployment.
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
* Remove discord.js dependency.
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
* Force netlify build
builds are being canceled even though there are changes
* Revert "Upgrade packages (#594)"
This reverts commit 5531f2e0c1.
* Revert "Discord chat bot to announce projects (#590)"
This reverts commit 90fece9598.
* Revert "Force netlify build"
This reverts commit 315ebf0c59.
* Make sure project title is robust
* Add support for discord chat bot to announce when images are set, with instructions on configuring for dev
* Tweak discord bot message.
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
The jscad worker code was hosted as a static asset, making it odd
javascript where we have to be conscious of what javascript features we
can use and if it will work on older browsers, plus it can't be
typescript like the rest of the codebase.
Since redwood 0.36 we using webpack 5 should make loading workers easy
https://webpack.js.org/guides/web-workers/
But I had trouble with this (see:
https://community.redwoodjs.com/t/has-anyone-tried-workers-with-webpack-5-rw0-36-x/2394)
and instead used the webpack 4 loader without any issues
This issue relates to #411 , and is a checklist item on #444Resolves#494
added some magic to get scripts to efficiently encoded into the URL.
We're using pako to compress the script, but this outputs to a 8bit
array. Stringifying this array adds a lot of overhead, because "125"
has three characters in it.
Instead we're using the character codes to turn these a bit numbers
into single characters base64 is used as well because not all of the
characters are allowed in a url (and b64 is better than
encodeURIComponent).