Commit Graph

100 Commits

Author SHA1 Message Date
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
Davor Hrg
2bc4d904c6 simplify default jscad script 2021-08-24 17:03:41 +02:00
Davor Hrg
9aa686b4a4 better default script 2021-08-23 11:54:45 +02: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
9186e457d9 Fix JSCAD, useEdgeSplit issue 2021-08-18 05:18:46 +10:00
Kurt Hutten
644ef8d189 EdgeSplit not flushing out old geometry
Mostly effecting CQ, changing the script and updating leaves a ghost of
the old geometry in the viewer

Resolves #459
2021-08-17 05:13:30 +10:00
Kurt Hutten
580dbb88e6 Some clean up 2021-08-16 20:06:17 +10:00
Kurt Hutten
9fa22a0469 got something working thats only a little hacky 2021-08-16 18:45:33 +10:00
Kurt Hutten
180cbb9503 format project 2021-08-14 21:03:05 +10:00
Kurt Hutten
4cfacb2581 Merge pull request #452 from Irev-Dev/fis-jscad-params-text
parse as number even for text if numeric string
2021-08-14 15:51:53 +10:00
Kurt Hutten
32155ba98c Get image upload to cloudinary with the same public id
This means we can put a consistent url in the head for the card image
2021-08-14 15:19:48 +10:00
Davor Hrg
075779f107 parse as number even for text if numeric string 2021-08-13 22:43:45 +02:00
Kurt Hutten
50e9ac61f8 formatting and helpers 2021-08-13 06:38:15 +10:00
Kurt Hutten
484c50c921 Adjust scene lighting, attach light to camera for consistent lighting 2021-08-12 06:15:23 +10:00
Kurt Hutten
799a32544b Use forked useEdegeSplit to allow updating geomerty 2021-08-11 07:01:09 +10:00
Kurt Hutten
01977170f1 Merge pull request #445 from Irev-Dev/fix-default-jscad-script
update default script to be smaller
2021-08-08 20:14:01 +10:00
Kurt Hutten
078c79d8ee format project 2021-08-08 19:55:05 +10:00
Davor Hrg
696441c39b Update useIdeState.ts 2021-08-08 11:52:35 +02:00
Kurt Hutten
2ea15df9d1 defer ping animation 2021-08-08 07:06:20 +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
725e877f1b Update useIdeState.ts 2021-08-06 11:26:44 +02:00
Davor Hrg
e856f8208e Update useIdeState.ts 2021-08-06 11:26:00 +02:00