Commit Graph

47 Commits

Author SHA1 Message Date
Kurt Hutten
ad0e9c1d4d format project 2021-08-01 09:44:10 +10:00
Kurt Hutten
caf944716b Move og-image-gen out of functions folder 2021-08-01 09:42:15 +10:00
Kurt Hutten
22f3fb6e3e Remove og image types 2021-08-01 04:45:43 +10:00
Kurt Hutten
6d68b939be try moving things into dev dependencies 2021-07-31 17:26:10 +10:00
Kurt Hutten
5c673a6a01 attempt to got functions to deploy 2021-07-31 17:04:20 +10:00
Kurt Hutten
cbaa79b697 add netlify builder to capture social images
plus also added an invalidator that should invalidate the image each
month
2021-07-31 16:06:22 +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
70e55a039d Implement gzip compression for cad artifacts
The stls from CadQuery and OpenSCAD are not compressed and so we're
throwing away bandwidth and taking a performance hit by not gziping.

Gzip for s3 basically needs to be gziped before upload and than have

'content-type'      :  'text/stl'
'content-encoding'  :  'gzip'
set.

https://stackoverflow.com/questions/8080824/how-to-serve-gzipped-assets-from-amazon-s3

The obvious part that needs to change is putObject in
app/api/src/docker/common/utils.js but there might be a few more
nuances.

resolves #391
2021-07-03 08:25:20 +10:00
Kurt Hutten
084c4afdc3 Update email code to send an email per EditUserCell
using multiple recipients is break of privacy since user will be able
to see each other's emails.
2021-07-01 20:14:46 +10:00
Kurt Hutten
43376b8214 Add build path back for openscad 2021-07-01 07:08:48 +10:00
Kurt Hutten
fc7c74f3e1 Upgrade openscad to 2021.01
resolves #321
2021-07-01 06:59:53 +10:00
Kurt Hutten
8fec470e9f Improve aws/docker docs a little. 2021-06-29 17:34:03 +10:00
Kurt Hutten
7417499d4b Formatting 2021-06-29 17:17:21 +10:00
Kurt Hutten
98d1b0643d Add admin email notifications 2021-06-29 16:21:28 +10:00
Kurt Hutten
0da15443cb Add email integration to be able to broadcast emails to all users.
Resolves #388
2021-06-29 06:37:04 +10:00
Torsten Paul
c0b961ee39 Update variable name for lambda base URL. 2021-06-27 02:19:55 +02:00
Kurt Hutten
1ed1f3a2b6 Add more details to the docker readme 2021-06-27 07:38:19 +10:00
Kurt Hutten
c56cf6f4ce Improve three.js scene lighting
Related to #383
2021-06-27 06:23:28 +10:00
Kurt Hutten
e95d47cfdf Update default cq stl quality 2021-06-27 05:52:37 +10:00
Jeremy Wright
f84d4cacee Updated for cq-cli beta 2 of v2.2, which adds the ability to adjust STL quality 2021-06-25 20:14:10 -04:00
Kurt Hutten
e91a264768 lint project 2021-06-26 06:14:49 +10:00
Kurt Hutten
29999bc2ce Allow admins to edit parts
Needed for moderation
2021-06-25 19:43:34 +10:00
Kurt Hutten
87e43ab7ce Add Cors headers to lamda timeout so they can be detected on the FE 2021-06-25 19:26:33 +10:00
Kurt Hutten
0773915fbc Update cq-cli to latest (beta) 2021-06-25 19:26:12 +10:00
Jeremy Wright
3cebb100c7 Added libglew 2.1 to Dockerfile install line 2021-06-24 17:35:07 -04:00
Kurt Hutten
7a98afa8df Merge pull request #374 from jmwright/main
Updated Dockerfile for newer version of CadQuery and cq-cli
2021-06-25 05:43:04 +10:00
Kurt Hutten
473f8d667c Fix images being deleted when they shouldn't
Resolves #375
2021-06-25 05:34:17 +10:00
Jeremy Wright
8fa779bb32 Updated Dockerfile for newer version of CadQuery and cq-cli 2021-06-24 10:09:19 -04:00
Kurt Hutten
52bf8922c4 Lint project 2021-06-24 20:36:56 +10:00
Kurt Hutten
df5fc0a100 regenerate lock file 2021-06-24 20:25:51 +10:00
Kurt Hutten
ec6919d499 import graphql for reasons 2021-06-19 11:23:42 +10:00
Kurt Hutten
3e0f17ee3c Upgrade redwood 34.1 2021-06-19 11:09:13 +10:00
Kurt Hutten
13f769af5e Add api logs back in 2021-06-19 10:30:12 +10:00
Kurt Hutten
35a1d84951 Explicitly add graphql-tag as api dependency 2021-06-19 08:51:42 +10:00
Kurt Hutten
13b5d9c108 Remove all logs from api 2021-06-19 07:54:21 +10:00
Kurt Hutten
7f588ebedf Try removing logs 2021-06-19 05:56:34 +10:00
Kurt Hutten
142bf2c890 Start adding ide colors, includes adding custom theme to openscad
Resolves #365
2021-06-16 21:49: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
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
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
bd58e6c7cb Add stl download for OpenSCAD and CadQuery IDEs
Resolves #330.
2021-05-30 08:11:46 +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
78677a99f8 Attempt to at move app into app sub dir 2021-05-01 07:32:21 +10:00
Kurt Hutten
9db76458d1 Revert "Move app into app directory"
This reverts commit 5c53902caf.
2021-05-01 07:29:45 +10:00
Kurt Hutten
5c53902caf Move app into app directory 2021-05-01 07:13:47 +10:00