Commit Graph

23 Commits

Author SHA1 Message Date
Kurt Hutten
e526fa812e Improve three scene performance and add JSCAD
- smoothed follow mouse animation
- made mobile friendlier down to about 330px ish
- added default social image
- used smaller hero asset
2021-09-12 14:40:10 +10:00
Frank Noirot
8a54a88b0a Merge branch 'main' into keyboard-shortcuts 2021-09-08 17:52:58 -04:00
Frank Johnson
0cf599bbe2 Fixed NPM/Yarn mixup and ran linter, updated AllShortcutsModal shortcut 2021-09-08 10:36:21 -04:00
Kurt Hutten
22da074965 Move worker into webpack build
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 #444
Resolves #494
2021-09-08 06:16:52 +10:00
Kurt Hutten
4a3144d360 Remove s3
but also upgrade the cad lamdbas to use built javascript files,
allowing us to use typescript, and patching redwood
2021-09-04 23:52:44 +10:00
Kurt Hutten
1c13a38ccb Fix font imports after tailwind upgrade 2021-09-03 07:02:19 +10:00
Kurt Hutten
01a28f4d53 upgrade redwood to v 0.36 2021-08-31 20:12:18 +10:00
Kurt Hutten
f5113da9c2 Upgrade redwood to v 0.35 2021-08-31 18:35:51 +10:00
Kurt Hutten
cdbf6ed6b4 Fix select styling 2021-08-27 18:21:51 +10:00
Kurt Hutten
32155ba98c Get image upload to cloudinary with the same public id
This means we can put a consistent url in the head for the card image
2021-08-14 15:19:48 +10:00
Kurt Hutten
b88ace2117 Change Z axis to up for Three.json
Openscad camera still needs to be fixed
2021-08-08 19:56:53 +10:00
Kurt Hutten
3819e4313d Add aspect-ratio to docs tailwind 2021-07-18 20:16:29 +10:00
Kurt Hutten
8e558d2342 massive refactor toDrop cascadeStudio and add CadQuery + OpenSCAD
resolves #400
2021-07-17 17:47:29 +10:00
Kurt Hutten
3e0f17ee3c Upgrade redwood 34.1 2021-06-19 11:09:13 +10:00
Kurt Hutten
3c18a24cb6 Add proper menu
related to #360
2021-06-12 19:20:24 +10:00
Kurt Hutten
2e91c74baf Add initial sentry setup
Related to #343 but will probably need a few more changes
2021-06-05 20:32:56 +10:00
Kurt Hutten
563700d995 Upgrade redwood to 0.33
Resolves #341.
2021-06-05 12:52:39 +10:00
Kurt Hutten
e433648fe6 Upgrade redwood to 0.32.2 2021-06-05 12:32:13 +10:00
Kurt Hutten
bd58e6c7cb Add stl download for OpenSCAD and CadQuery IDEs
Resolves #330.
2021-05-30 08:11:46 +10:00
Kurt Hutten
f629833229 Add the ability to link to text resource for IDE
Very basic feature, puts the url of the resource in the url for the ide
to fetch when it loads. I haven't added the ability to create these
links as it probably needs some consideration with how it fits into the
IDE.

Should work with any url that returns text but obviously has to CORS
enable since it's in the browser, of which gitlab raw content is not
which is kinda bizzare.

works with github raw content like so:
`#fetch_text_v1=https://raw.githubusercontent.com/aaevan/openscad_objects/main/fire_tablet_bottom_corner.scad`
however I would recommend url encoding it with `encodeURIComponent` in
case there are special characters in the path
`#fetch_text_v1=https%3A%2F%2Fraw.githubusercontent.com%2Faaevan%2Fopenscad_objects%2Fmain%2Ffire_tablet_bottom_corner.scad`

In the case of github, linking to raw is the safest, however it will try
and get to the raw content from the web-app url i.e. the following still
works:
`#fetch_text_v1=https://github.com/aaevan/openscad_objects/blob/main/fire_tablet_bottom_corner.scad`

Resolves #327
2021-05-28 06:45:39 +10:00
Kurt Hutten
053b1d642c Improve script URL ecoding
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).
2021-05-08 09:07:54 +10:00
Kurt Hutten
e343bca75f Upgrade to tailwind 2 2021-05-01 09:29:16 +10:00
Kurt Hutten
78677a99f8 Attempt to at move app into app sub dir 2021-05-01 07:32:21 +10:00