Commit Graph

80 Commits

Author SHA1 Message Date
Davor Hrg
35fcd55229 Update jsCadController.tsx (#583) 2022-01-09 06:33:13 +11:00
Davor Hrg
3fef6474d3 default values and float type (#582) 2022-01-09 06:32:32 +11:00
Kurt Hutten
cef1d34c6f Give more ram to openscad preview image container
Speeds up the preview images
2021-12-02 07:24:39 +11:00
Lee
2dec867803 Initial work to support curv (#578)
* Initial work to support curv

* Correct the initial code file location

* Preview and stl mvp working

* Prepare changes for review and preview build

* Run curv inside of /tmp

When exporting an stl it writes temporary files which is not allowed
when deployed to aws unless it's in temp.

* Lock in specific curv commit for reproducible builds

see: https://discord.com/channels/412182089279209474/886321278821216277/912507472441401385

* Add curv to backend schema

* Frontend changes to accommodate curv deploy

* Use vcount instead of vsize, as it's independant of geometry size,

This is good for CadHub usecase where we don't know anything about the
user's project

* Final tweaks for deploy

virtual screen size does matter,and curv is a little more memory hungry
than the other functions

* Format project

Co-authored-by: lf94 <inbox@leefallat.ca>
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
2021-11-30 15:24:24 +11:00
Kurt Hutten
a62c5bce03 Update OpenSCAD userGuide 2021-11-12 07:29:44 +11:00
Kurt Hutten
43fc897bf9 Zoom to fit for openscad (#569)
* Add viewall flag to openscad cli in prep for zoom to fit for scad previews

* Fix remaining issues with social image capture
2021-11-06 09:46:55 +11:00
Kurt Hutten
bc1f12971d Make-cq-customizer-more-resilient (#560)
Was failing when initial values were missing
2021-10-16 03:59:19 +11:00
Kurt Hutten
50cd44cd76 Linting 2021-10-16 03:37:59 +11:00
Kurt Hutten
434eb0ef86 Release CQ customizer (#559)
* Switched to Miniconda image

* Update cad endpoint url

and some minor tweaks

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>
2021-10-15 18:06:31 +11:00
Jeremy Wright
96ee9c4aa4 Add CadQuery customizer (#547)
* Rough changes to make the CadQuery integration work with the customizer

* Tweak runCQ

* Switched to Anaconda

* Cleaned up code

* Update CadHub after anaconda

Related to #547

* Add final tweaks to CQ customizer

* Separated out customizer.json from params.json

* Changes after discussing CadHub integration

* linting runCQ

Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
2021-10-15 02:39:03 +11:00
Kurt Hutten
e9ad7180a7 Fixing linting problem from running yarn rw lint (#537)
✖ 118 problems (65 errors, 53 warnings) currently
2021-09-29 17:35:07 +10:00
Kurt Hutten
8170da854d Fix JSCAD download (#528) 2021-09-24 17:59:09 +10:00
Davor Hrg
d255a78cd1 fix parameters retention (#512) 2021-09-24 17:58:58 +10:00
Kurt Hutten
023b4862eb rename scad again 2021-09-20 19:28:18 +10:00
Kurt Hutten
a2d278fa4d Rename scad 2021-09-20 19:27:47 +10:00
Kurt Hutten
f6df9d1988 upgrade rw + lint (#521)
* Various linting fixes

* Fix component name

* Upgrade to redwood 0.36.4
2021-09-20 19:08:03 +10:00
Kurt Hutten
1475fa24d1 tweak uerGuide metadata 2021-09-20 17:52:19 +10:00
Frank Johnson
65fc526220 fixed my broken merge with kurt's branch commit, updated OpenSCAD contributors 2021-09-19 14:10:23 -04:00
Frank Johnson
634304dfce Added cadPackage to ProjectsOfUser, other cleanup/linting 2021-09-19 11:06:45 -04:00
Kurt Hutten
bb4659a2dd Make raw-loader more specific and use .js extension for jscad
suggestion for #519
2021-09-19 20:13:28 +10:00
Frank Johnson
b27bcd2d35 Completed initial CAD package guides, tweaked initial code import 2021-09-18 23:16:43 -04:00
Frank Johnson
2f006d3e3b Added test tabs, got closing and switching working 2021-09-18 19:54:54 -04:00
Kurt Hutten
2e2e7be633 Fix console error messages 2021-09-09 18:36:11 +10:00
Kurt Hutten
3f1947a4d9 Merge pull request #495 from Irev-Dev/kurt/494-move-worker-into-webpack-build
Move worker into webpack build
2021-09-08 18:14:25 +10:00
Kurt Hutten
3e26e3d420 Fix pre-render fail 2021-09-08 17:44:31 +10:00
Kurt Hutten
58b618cf5f format jscad worker 2021-09-08 06:18:11 +10: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
01a28f4d53 upgrade redwood to v 0.36 2021-08-31 20:12:18 +10:00
Kurt Hutten
04261355b7 Up date prod cad endpoint 2021-08-28 07:50:59 +10:00
Kurt Hutten
87f132a684 Add customizer support for OpenSCAD
This also includes sending metadata and part of the concatenated gzip,
not in the s3 metadata as that has a 2kb limit.

Resolves #320
2021-08-27 06:52:04 +10:00
Davor Hrg
5d79efbf15 choice input 2021-08-27 06:50:46 +10:00
Davor Hrg
118c68c9da types and converter for choice input 2021-08-27 06:49:48 +10:00
Kurt Hutten
b0647171d8 r3f-ify jsCadController 2021-08-21 11:04:01 +10:00
Kurt Hutten
0cc335ea9b Add demo for cadhub customizer
relates to #437
2021-08-21 11:02:18 +10:00
Kurt Hutten
180cbb9503 format project 2021-08-14 21:03:05 +10:00
Davor Hrg
075779f107 parse as number even for text if numeric string 2021-08-13 22:43:45 +02:00
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