Commit Graph

434 Commits

Author SHA1 Message Date
Kurt Hutten
a0b588000a Replace redwood flash with toaster
https://community.redwoodjs.com/t/redwood-flash-is-being-replaced-with-react-hot-toast-how-to-update-your-project-v0-27-0/1921
Resolves #326.
2021-06-06 06:12:26 +10:00
Kurt Hutten
7caf857c98 Merge pull request #344 from Irev-Dev/kurt/sentry-343
Add initial sentry setup
2021-06-05 20:35:17 +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
c38f94558a Disable esbuild
Related to #341
2021-06-05 13:06:55 +10:00
Kurt Hutten
c86a9d39f2 Merge pull request #342 from Irev-Dev/kurt/341-upgade-redwood
Upgrade redwood
2021-06-05 12:53:58 +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
4a351385e1 Merge pull request #339 from Irev-Dev/kurt/338-Round-anything-library
Add experimental support for OpenSCAD libraries
2021-06-05 12:22:11 +10:00
Kurt Hutten
b868ab292b Add experimental support for OpenSCAD libraries
I've been able to get a proof of concept of downloading a openscad
library when the docker image builds
https://twitter.com/IrevDev/status/1400785325509660678
Since its experimental atm I'll leave it with just the one for now.

I've also got a local dev working again for the cad lambdas.

Resolves #338
2021-06-05 12:20:53 +10:00
Kurt Hutten
a2327b6169 Merge pull request #335 from Irev-Dev/kurt/improve-caching-334
Improve browser caching with cache control header
2021-05-31 17:00:28 +10:00
Kurt Hutten
913045fe12 Improve browser caching with cache control header
Not only does the header need to be added, but the signed URL needs to
have it's expiry rounded so that the return url is the same for a given
window, say 10minutes

I followed this https://advancedweb.hu/cacheable-s3-signed-urls/
basically what this means is that because we're caching the assets
themselves, if as user asks for a part that already exists we'll return
a url for the existing part instead of regenerating it, however if it
was them that generated the part less than 10 minutes ago, they'll still
have to download the asset again. This way it will save us costs and
will be quicker for them.

Resolves #334
2021-05-31 16:56:21 +10:00
Kurt Hutten
c049a1d3db Merge pull request #333 from Irev-Dev/kurt/fix-init-code-bug
Make sure the code-init is robust when local storage is empty
2021-05-30 14:01:52 +10:00
Kurt Hutten
bd7aa4cc4e Make sure the code-init is robust when local storage is empty
Plus fix local storage for old code
2021-05-30 13:59:16 +10:00
Kurt Hutten
d7aaeda187 Merge pull request #331 from Irev-Dev/kurt/330-stl-download
Add stl download for OpenSCAD and CadQuery IDEs
2021-05-30 08:47:31 +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
32fa22efcd Merge pull request #328 from Irev-Dev/kurt/327
Add the ability to link to text resource for IDE
2021-05-28 06:59:52 +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
d3f7b40a9b Merge pull request #325 from Irev-Dev/kurt/blog-why-i-started-cadhub
Add "Why I started cadhub" blog post
2021-05-22 06:45:00 +10:00
Kurt Hutten
8ed814ac9f Add "Why I started cadhub" blog post 2021-05-22 06:41:55 +10:00
Kurt Hutten
90f6808663 Merge pull request #322 from Irev-Dev/kurt/link-to-docs
Link to docs
2021-05-18 21:38:50 +10:00
Kurt Hutten
644e431eba Link to docs
Not much connection between the main website and the docs website atm
2021-05-18 21:36:33 +10:00
Kurt Hutten
31b1eb594e Merge pull request #317 from Irev-Dev/kurt/s3-integration-316-rebase
Add s3 integration
2021-05-18 07:19:48 +10:00
Kurt Hutten
315492a08a Add s3 integration
Doing so has a number of benefits
- Overcome the 10Mb limit of the API gateway the lambdas have to go
through
- By storing the key as the hash of the code we can return previous
generated assets, i.e. caching
- cost, transfering assets into the bucket within the AWS ecosystem
is faster than return, and there fore the lambdas execute for less time
- Sets us up for the future as when generating artifacts for repos when
there is a change to master etc we want to store these assets somewhere
and s3 is an obvious choice
- Solved a weird CORS issue where I couldn't get CORS working with
binaryMediaTypes enabled, don't need binary types when dumping in s3

Resolves #316
2021-05-18 07:13:08 +10:00
Kurt Hutten
027b45e6c3 Merge pull request #314 from Irev-Dev/kurt/add-live-demo-links-313
Add live demo links to OpenSCAD tutorial
2021-05-08 22:32:55 +10:00
Kurt Hutten
8a5728508c Add live demo links to OpenSCAD tutorial
Resolves #313
2021-05-08 22:31:43 +10:00
Kurt Hutten
a08426e078 Merge pull request #312 from Irev-Dev/kurt/improve-script-url-encoding-311
Improve script url encoding
2021-05-08 09:15:49 +10:00
Kurt Hutten
7749a14da3 All apostrophes in jsx 2021-05-08 09:09:07 +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
53985dd250 Merge pull request #307 from Tobbe/patch-1
the-basics.mdx: Make text match example code
2021-05-08 05:20:33 +10:00
Kurt Hutten
cc8166183e Merge branch 'main' into patch-1 2021-05-08 05:20:00 +10:00
Kurt Hutten
9bca10b380 Merge pull request #308 from Tobbe/patch-2
the-basics.mdx: Fix punctuation formatting
2021-05-08 05:17:18 +10:00
Kurt Hutten
c50ffc5c8b Merge pull request #309 from Tobbe/tobbe-basics-translate
the-basics.mdx: Small updates to the Translate section
2021-05-08 05:16:44 +10:00
Tobbe Lundberg
277dc6c008 the-basics.mdx: Small updates to the Translate section 2021-05-07 15:08:59 +02:00
Tobbe Lundberg
81ee147f51 the-basics.mdx: Fix punctuation formatting 2021-05-07 15:03:03 +02:00
Tobbe Lundberg
f0d32d7754 the-basics.mdx: Fix punctuation formatting 2021-05-07 15:00:37 +02:00
Kurt Hutten
aba9b2e19e Merge pull request #305 from Irev-Dev/kurt/docs-polish-304
docs polish
2021-05-07 20:45:00 +10:00
Kurt Hutten
67324f0d0c Remove reference to primer 2021-05-07 20:38:26 +10:00
Kurt Hutten
7070ac21d4 Proof read docs 2021-05-07 20:38:26 +10:00
Kurt Hutten
2d828d7739 Add rounding and spacing at the bottom of images 2021-05-07 20:38:04 +10:00
Kurt Hutten
be6613ad09 Merge pull request #301 from Irev-Dev/kurt/docs-meta-tweaks
Tweak meta data for learn subdomain
2021-05-01 11:54:27 +10:00
Kurt Hutten
8c8d2e7d01 Tweak meta data for learn subdomain 2021-05-01 11:53:42 +10:00
Kurt Hutten
2b37a23471 Merge pull request #299 from Irev-Dev/kurt/get-docs-deployed
tweaks to test docs build
2021-05-01 10:02:01 +10:00
Kurt Hutten
f7b86249e6 tweaks 2021-05-01 10:01:15 +10:00
Kurt Hutten
2bb1f34dc5 Merge pull request #298 from Irev-Dev/kurt/get-docs-deployed
Upgrade to tailwind 2
2021-05-01 09:31:33 +10:00
Kurt Hutten
e343bca75f Upgrade to tailwind 2 2021-05-01 09:29:16 +10:00
Kurt Hutten
911dbccbca Merge pull request #297 from Irev-Dev/kurt/get-docs-deployed
add node version
2021-05-01 08:18:32 +10:00
Kurt Hutten
a5ebcc0446 add node version 2021-05-01 08:17:56 +10:00
Kurt Hutten
96f10e500c Merge pull request #296 from Irev-Dev/kurt/259
Couple tweaks
2021-05-01 08:12:12 +10:00
Kurt Hutten
940f3f1d79 Couple tweaks 2021-05-01 08:11:38 +10:00
Kurt Hutten
78a078da3d Merge pull request #295 from Irev-Dev/kurt/259
build docs using yarn not npm
2021-05-01 08:07:06 +10:00