Commit Graph

43 Commits

Author SHA1 Message Date
Kurt Hutten
078c79d8ee format project 2021-08-08 19:55:05 +10:00
Davor Hrg
ff492fc1c7 Update jscadParams.ts 2021-08-07 16:03:59 +02:00
Kurt Hutten
dcd9d42d32 deeply compare old and new params 2021-08-07 21:26:11 +10:00
Kurt Hutten
02160e1e8e store latest params in the store 2021-08-07 17:09:56 +10:00
Kurt Hutten
2d7df96ad9 Add a few type improvements to jscadParams.ts 2021-08-07 15:49:53 +10:00
Kurt Hutten
7cc989014a format project 2021-08-06 20:17:55 +10:00
Davor Hrg
e851593c12 cleanup, few fixes 2021-08-06 11:22:09 +02:00
Davor Hrg
80b12a6e3a Merge branch 'kurt/customizer-start-320' of https://github.com/Irev-Dev/cadhub into kurt/customizer-start-320 2021-08-04 23:59:42 +02:00
Davor Hrg
00c0ae801a ... 2021-08-04 23:54:45 +02:00
Kurt Hutten
c9e3d3a708 Add live update checkbox to customizer 2021-08-05 07:44:21 +10:00
Davor Hrg
2b2080c232 more param types to check and style 2021-08-04 00:11:55 +02:00
Davor Hrg
77ee959c43 working somewhat ok 2021-08-02 23:24:26 +02:00
Kurt Hutten
336501aaff add customizerParams to state 2021-08-02 23:19:57 +10:00
Kurt Hutten
5e14ad0829 fix constructor bug 2021-08-01 21:13:19 +10:00
Kurt Hutten
cedad90513 update import style 2021-08-01 19:53:05 +10:00
Davor Hrg
67d5d76d67 Delete CSGToBuffers.js 2021-08-01 10:47:58 +02:00
Kurt Hutten
43477d33cc useEntities directly 2021-08-01 17:15:07 +10:00
Kurt Hutten
d8998a73b3 format project 2021-08-01 17:09:47 +10:00
Davor Hrg
8162a182d7 Update jsCadController.ts 2021-07-31 21:03:44 +02:00
Davor Hrg
6e88e7030d Update jsCadController.ts 2021-07-27 10:47:29 +02:00
Davor Hrg
0b769a6524 something works 2021-07-27 10:36:02 +02:00
Kurt Hutten
3b1bb23563 getting some geometry into the 3d view 2021-07-27 07:48:56 +10:00
Davor Hrg
1479832b51 stupid typo 2021-07-26 23:01:51 +02:00
Davor Hrg
438a9135e4 unhealthy on err 2021-07-26 22:57:22 +02:00
Davor Hrg
1bfba591ea initial scrappy integration 2021-07-26 22:43:51 +02:00
Kurt Hutten
de71b8f67c Demo branch adding JSCAD type, without implementing the render
Related to #411
2021-07-25 20:59:53 +10:00
Kurt Hutten
9e968479fc Formatting after #411 2021-07-18 08:37:48 +10:00
Kurt Hutten
21608b740a Add demo CAD kernel Controller, and typing to suit
We might be adding JSCAD soon and adding some guidance on the happy
path with good typing for the CadKernels is a good idea

related to #411
2021-07-18 08:24:32 +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
f176bbe090 Use high quality render for CadQuery download 2021-07-04 20:48:11 +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
5a4588ac7f Emergency fix for cad base url 2021-07-01 20:58:30 +10:00
Kurt Hutten
8f8dae70c2 Deploy optimized CadQuery stls 2021-06-29 18:43:43 +10:00
Kurt Hutten
7417499d4b Formatting 2021-06-29 17:17:21 +10:00
Kurt Hutten
e95d47cfdf Update default cq stl quality 2021-06-27 05:52:37 +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
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
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
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
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