Commit Graph

359 Commits

Author SHA1 Message Date
Kurt Hutten
d6401d8395 Make local storage key, package agnostic 2021-04-27 18:50:36 +10:00
Kurt Hutten
98363afb38 Tidy up the light bit of theming 2021-04-27 18:43:18 +10:00
Kurt Hutten
320e8e4fb8 Fix bug where images was being converted to stl and erroring 2021-04-26 19:18:53 +10:00
Kurt Hutten
924de4c7a1 Tighten up buttons a little 2021-04-26 18:03:59 +10:00
Kurt Hutten
0f4a9b07b4 Pretty up the IDE a little 2021-04-26 17:59:22 +10:00
Kurt Hutten
76a570b0c3 Init multiple types of cadPackages 2021-04-26 07:48:52 +10:00
Kurt Hutten
4ebf5921e2 Merge remote-tracking branch 'origin/main' into kurt/274 2021-04-25 19:57:17 +10:00
Kurt Hutten
24010c6e7a Merge pull request #279 from Irev-Dev/kurt/278
Upgrade redwood to v0.30.0
2021-04-23 20:19:40 +10:00
Kurt Hutten
611e682982 Upgrade redwood to v0.30.0
resolves #278
2021-04-23 20:18:37 +10:00
Kurt Hutten
4702bafc27 Set up staging/preview cad base url 2021-04-23 16:32:22 +10:00
Kurt Hutten
80868ba483 Get cadquery and openscad working with more reuse on the backend 2021-04-23 16:24:51 +10:00
Kurt Hutten
9cf02980cc Use release package instead to avoid conda permission issues
conda permission issue would arise only when deployed. Side stepped this
issue by using the release package instead.

Also cleaned up the docker file. Still need to remove duplication
between openscad and cadquery apis
2021-04-23 07:41:55 +10:00
Kurt Hutten
35d5c02f96 OpenSCAD and CadQuery working together in dev
Still clean up of the backend/lamdas, and there's a conda permission
issue when deploying the Cadquery image
2021-04-18 17:46:03 +10:00
Kurt Hutten
7733694032 Initial cadQuery backend POC
lost of clean up work still needed.
2021-04-18 13:43:44 +10:00
Kurt Hutten
2153e5b1bf Front end changes for cadquery
Basic changes to get the proof of concept working. Lots of attention
was given to the store/reducer to solve existing problems with async
code and stale closures, it seems even today how to handle this with
use reducer is not quiet settle, I guess because once an app reaches
a certain level of maturity everyone grabs an off the shelf solution
to state management. I ended up implementing thunks because they are
really rather simple. Interesting thread about it all here:
https://gist.github.com/astoilkov/013c513e33fe95fa8846348038d8fe42#gistcomment-3377800

I also move some of settings that were persisted in the openScad
controller into the data store as I ulimately thing what I was doing
in that file was very confusing, with the fact that it had to be
called multiple times with different information before it would be able
to render something properly.
2021-04-18 12:28:23 +10:00
Jeremy Wright
1a702ddae1 Added hacked cadquery Dockerfile to ensure it would work 2021-04-14 13:17:44 -04:00
Kurt Hutten
68f8c7a741 Merge pull request #271 from Irev-Dev/kurt/270
Upgrade to redwood 0.28.0
2021-03-27 05:12:48 +11:00
Kurt Hutten
f132ad2b87 Upgrade to redwood 0.28.0
resolves #270
2021-03-27 05:11:35 +11:00
Kurt Hutten
9d7fdaa64a Merge pull request #268 from Irev-Dev/kurt/update-view-on-window-resize
Update view on window resize
2021-03-21 16:07:57 +11:00
Kurt Hutten
1bf4370815 Update view on window resize 2021-03-21 16:07:24 +11:00
Kurt Hutten
99dbbd2853 Merge pull request #266 from Irev-Dev/kurt/265
265 Send logs, put temp code in local storage and let panels handle scrolling
2021-03-21 15:34:02 +11:00
Kurt Hutten
ab394ed564 Make the ide more full screen like 2021-03-21 15:30:27 +11:00
Kurt Hutten
fef69917f5 Add storage for openscad code 2021-03-21 14:59:47 +11:00
Kurt Hutten
f9f35183af Send console message with healthy render 2021-03-21 14:48:54 +11:00
Kurt Hutten
cc1c0e7278 Update Docker docs 2021-03-21 05:22:22 +11:00
Kurt Hutten
f345b1c106 Merge pull request #263 from Irev-Dev/kurt/262
Kurt/262
2021-03-20 10:35:13 +11:00
Kurt Hutten
b349cd3fdd Upgrade redwood to 0.27.1
resolves #262
2021-03-20 10:34:16 +11:00
Kurt Hutten
73c3a7c6f4 Lazy load monaco editor
related to #262
2021-03-20 10:06:17 +11:00
Kurt Hutten
dba9ad8810 Merge pull request #258 from Irev-Dev/franknoirot/239
added multiplication by device pixel ratio to render
2021-03-17 19:45:05 +11:00
Kurt Hutten
8efae75699 Remove console log 2021-03-17 19:44:08 +11:00
Frank Noirot
02dcb60d5e added multiplication by device pixel ratio to render 2021-03-17 00:20:31 -04:00
Kurt Hutten
b2c53e6097 Update cascade submodule 2021-03-16 20:52:36 +11:00
Kurt Hutten
8b9d29ef05 Merge pull request #254 from Irev-Dev/kurt/253
Encode code into url to make sharing snippets easy
2021-03-16 20:28:25 +11:00
Kurt Hutten
01bc76e09a Encode code into url to make sharing snippets easy
resolves #253
2021-03-16 20:26:58 +11:00
Kurt Hutten
03ce3530c1 Merge pull request #251 from Irev-Dev/kurt/239
Adjust render image size with mosiac panel change
2021-03-15 18:12:42 +11:00
Kurt Hutten
b6867fc8a8 Move viewport state into openscad controller 2021-03-14 17:41:29 +11:00
Frank Noirot
785025fca8 initial commit with full-size image, but broken OpenSCAD image source size. 2021-03-13 20:37:02 -05:00
Kurt Hutten
df3f492aee Add default camera settings 2021-03-14 10:23:24 +11:00
Kurt Hutten
aee882b47c Merge pull request #249 from Irev-Dev/kurt/couple-tweaks
Kurt/couple tweaks
2021-03-14 09:52:55 +11:00
Kurt Hutten
a2454a3f80 Remove openscad specific state from ideState 2021-03-14 09:49:58 +11:00
Kurt Hutten
44c8192d81 Add ctrl|meta + s for generating new preview 2021-03-14 09:38:22 +11:00
Kurt Hutten
d7ebb00c3b Couple of tweaks 2021-03-14 08:59:29 +11:00
Kurt Hutten
c4005f149f Merge pull request #244 from Irev-Dev/kurt/241
Fix OpenSCAD move sync
2021-03-13 18:36:47 +11:00
Kurt Hutten
1de49b66dc Fix OpenSCAD move sync
Hard to capture in a title. when you move the object with right-click drag, that axis move away from the shape.

resolves #241
2021-03-13 17:29:26 +11:00
Kurt Hutten
ba45e3ea57 Merge pull request #243 from Irev-Dev/kurt/242
Move local development openSCAD url to env vars
2021-03-13 17:26:56 +11:00
Kurt Hutten
39f408bd49 Move local development openSCAD url to env vars
I think this make it easier to swap between using the aws endpoint and
local endpoint but without having to worry about accidentally committing
the local endpoint if you absent mindedly staging everything, and it
still defaults to aws so it's easy setup for anyone doing a fresh clone.

add OPENSCAD_BASE_URL="http://localhost:8080" to you .env file.

You will have to restart yarn rw dev for the url to swap over though.

Resolves #242
2021-03-13 17:26:09 +11:00
Kurt Hutten
0f41622566 Merge pull request #238 from Irev-Dev/kurt/237
Fix camera perspective and other polish for openscad viewer
2021-03-13 17:14:47 +11:00
Kurt Hutten
e5149f2c95 Tidy up 2021-03-13 17:10:15 +11:00
Kurt Hutten
b70e14cfd9 Merge pull request #236 from Irev-Dev/kurt/235
Convert between Three.js's euler rotation and Openscad's camera
2021-03-12 19:56:57 +11:00
Kurt Hutten
23e34a0a64 Add loading spinner on scroll 2021-03-12 19:48:33 +11:00