Commit Graph

126 Commits

Author SHA1 Message Date
Kurt Hutten
c48afaf07b Fix stl download name (#593)
Was broken on the profile page, would set the name to undefined.stl
2022-01-18 06:16:55 +11:00
Scott Martin
e7dec57644 Add "STL Download" to project profile page (#585)
* Moved EditorMenu/helpers.ts file to src/helpers. Reused STL download helper on a new button in the project profile page

* Tweak download STL style - flex-wrap the column and grow original "built with" content so the button is pushed write but remains responsive on smaller screens
2022-01-11 06:48:20 +11:00
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
c402b051e2 Fix stl download bug 2021-10-18 07:25:38 +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
Davor Hrg
549217e953 Hide console option in view menu (#545)
* Update menuConfig.tsx

* Revert "Update menuConfig.tsx"

This reverts commit 7be28e2a76.

* second attempt

* Update mosaic tree to remove and add the console.

* Added Toggle UI component

* Remove console noise from Toggle component

Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
Co-authored-by: Frank Johnson <frankjohnson1993@gmail.com>
2021-10-12 20:44:16 +11:00
Kurt Hutten
4804c3bfe9 Put social media save popover into editor tab (#541)
and make them live
2021-10-12 06:09:56 +11:00
Kurt Hutten
32d6ef27ad Attempt 2 at fixing prerendering error 2021-10-07 21:25:07 +11:00
Kurt Hutten
aabe682782 Fix netify's prerendering service (#546)
If there's an error in netlify's prerendering service,
we don't have access to the log so we have to spin it up locally to
check.

textures was causing a issue on the home page resulting in "Fatal Error"
as the social preview text, not good.

As a bonus I thing I fix FE sentry logging too.
2021-10-05 18:52:24 +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
38b905e180 Change how customizer params are applied (#529)
* Only send customizer params when it's open

* Add customizer reset button and have two modes of customizer vs not

depending of if the customizer is open.

* Remove re-render on customizer open/close in project profile
2021-09-28 06:05:22 +10:00
Kurt Hutten
9aee4ae725 Add comment 2021-09-26 21:05:35 +10:00
Kurt Hutten
892b1d3809 Patch for customizer bug causing CQ projects to fail 2021-09-26 05:01:37 +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
33c08119ec format 2021-09-20 17:53:00 +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
4c4f5643f4 Merge branch 'editor-tabs' of https://github.com/Irev-Dev/cadhub into editor-tabs 2021-09-19 11:07:32 -04:00
Frank Johnson
634304dfce Added cadPackage to ProjectsOfUser, other cleanup/linting 2021-09-19 11:06:45 -04:00
Frank Noirot
70980afab0 Update app/web/src/helpers/markdown.ts
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
2021-09-19 09:48:17 -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
2d4977ba8f Fixed TS errors with file 2021-09-19 01:05:51 -04: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
cd1cecd774 Remove double icon 2021-09-18 16:19:31 +10:00
Frank Johnson
2ec3a0b202 Sorted out using <details> element, got ancestor clicks closing out to their level 2021-09-12 17:13:30 -04:00
Kurt Hutten
69c83d33b1 State controlled tray mvp 2021-09-12 19:54:31 +10: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