Improve integration with cascade studio #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, CadHub has a very incomplete integration with a fork of CascadeStudio.
Original: https://github.com/zalo/CascadeStudio
My fork: https://github.com/Irev-Dev/CascadeStudio
The integration is working locally, but is buggy and tends to stop working after opening a second project/part, and it doesn't work at all on the live website, So debugging this might involve a bunch of deploys to see if it's working live.
Netlify is setup to rebuild on PR, so label your PR as WIP if you are just trying to test instead of a final PR.
I'll consider this issue completed if parts successfuly load on the live website, and changing to a different part works.
The solution might be simple but will probably need someone with a reasonable amount of web-dev experience. Bonus points if you're able to get CascadeStudio related code to lazy load as at the moment I think it's slowing down initial page paint.
Because the integration is done by git submodules, pull requests will be needed for both this PR and the CascadeStudio fork, but I've labelled that with
hacktoberfestas well.It might be useful to look at the PR diff in my fork to see what I've changed to get it what's working so far.
https://github.com/Irev-Dev/cadhub
Plus one of my earlier PRs in this repo when I wan setting up cascadeStudio
https://github.com/Irev-Dev/cadhub/pull/1/files
There's a lot of unrelated stuff in the PR, though Part.js might be of use.
As well as the code I pasted from the original project directily into index.html
Some relevante stuff in HomePage.js though it has since been moved out.
Of course happy to help out as much as I can too, if I can answer any questions on the work I've done so far.