From 979966bcce0c3d676310fba67a8052002b6a6262 Mon Sep 17 00:00:00 2001 From: ArEnSc <6252325+ArEnSc@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:28:42 -0400 Subject: [PATCH 01/31] Update README.md --- README.md | 62 ++----------------------------------------------------- 1 file changed, 2 insertions(+), 60 deletions(-) diff --git a/README.md b/README.md index 5797a74a14..762ccd33d6 100644 --- a/README.md +++ b/README.md @@ -6,66 +6,8 @@ Fast Prototyping with Better Netlify Pipeline: - [Netlify Functions Overview](https://docs.netlify.com/functions/overview) - [Tailwind Docs](https://tailwindcss.com/docs) -## Netlify Setup - -1. Install the [Netlify CLI](https://docs.netlify.com/cli/get-started/): - -```sh -npm i -g netlify-cli +Setup ``` - -If you have previously installed the Netlify CLI, you should update it to the latest version: - -```sh -npm i -g netlify-cli@latest -``` - -2. Sign up and log in to Netlify: - -```sh -netlify login -``` - -3. Create a new site: - -```sh -netlify init -``` - -## Development - -Ensure all packages are installed by running: - -```sh npm install -``` - -Run - -```sh -netlify dev -``` - -Open up [http://localhost:8888](http://localhost:8888), and you're ready to go! - -### Serve your site locally - -To serve your site locally in a production-like environment, run - -```sh -netlify serve -``` - -Your site will be available at [http://localhost:8888](http://localhost:8888). Note that it will not auto-reload when you make changes. - -## Deployment - -There are two ways to deploy your app to Netlify, you can either link your app to your git repo and have it auto deploy changes to Netlify, or you can deploy your app manually. If you've followed the setup instructions already, all you need to do is run this: - -```sh -# preview deployment -netlify deploy --build - -# production deployment -netlify deploy --build --prod +npm run dev ``` From 99ba7ebf3aaf684a355e2c96b174669e57a57c4f Mon Sep 17 00:00:00 2001 From: ArEnSc <6252325+ArEnSc@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:26:18 -0400 Subject: [PATCH 02/31] Revert "move shapes, fix delete bug" --- app/components/InputVector.tsx | 7 ---- app/components/Textarea.tsx | 21 +++++------ app/pages/PageEnigma/PageEnigma.tsx | 2 +- app/pages/PageEnigma/PageEnigmaComponent.tsx | 8 +---- app/pages/PageEnigma/Queue/toEngineActions.ts | 2 -- .../ControlPanelSceneObject.tsx | 17 ++++----- .../comps/Controls3D/Controls3D.tsx | 33 ++++++++++++++++++ .../comps/SidePanelTabs/TabStylization.tsx | 1 - .../PageEnigma/comps/Timeline/Timeline.tsx | 4 --- .../contexts/TrackContext/TrackProvider.tsx | 7 ++-- app/pages/PageEnigma/js/editor.ts | 30 +++++++++------- app/pages/PageEnigma/js/timeline.ts | 12 ++----- app/pages/PageEnigma/store/index.ts | 1 - app/pages/PageEnigma/store/media.ts | 32 +++-------------- app/pages/PageEnigma/store/selectedItem.ts | 2 -- app/pages/PageEnigma/store/shape.ts | 12 ------- public/resources/shapes/cube.png | Bin 7585 -> 0 bytes public/resources/shapes/cylinder.png | Bin 5742 -> 0 bytes public/resources/shapes/donut.png | Bin 10512 -> 0 bytes public/resources/shapes/sphere.png | Bin 8557 -> 0 bytes 20 files changed, 78 insertions(+), 113 deletions(-) delete mode 100644 app/pages/PageEnigma/store/shape.ts delete mode 100644 public/resources/shapes/cube.png delete mode 100644 public/resources/shapes/cylinder.png delete mode 100644 public/resources/shapes/donut.png delete mode 100644 public/resources/shapes/sphere.png diff --git a/app/components/InputVector.tsx b/app/components/InputVector.tsx index 3c4d3c5a17..0a10274524 100644 --- a/app/components/InputVector.tsx +++ b/app/components/InputVector.tsx @@ -1,6 +1,5 @@ import { useRef } from "react"; import { twMerge } from "tailwind-merge"; -import { ignoreDelete } from "~/pages/PageEnigma/store"; interface InputVectorProps { x: number; @@ -42,8 +41,6 @@ export const InputVector = ({ x, y, z, onChange }: InputVectorProps) => { onChange={handleOnChange} ref={xRef} value={x} - onFocus={() => (ignoreDelete.value = true)} - onBlur={() => (ignoreDelete.value = false)} /> { onChange={handleOnChange} ref={yRef} value={y} - onFocus={() => (ignoreDelete.value = true)} - onBlur={() => (ignoreDelete.value = false)} /> { onChange={handleOnChange} ref={zRef} value={z} - onFocus={() => (ignoreDelete.value = true)} - onBlur={() => (ignoreDelete.value = false)} /> diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index cc35c75ac2..278b54a7cb 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -2,7 +2,6 @@ import { TextareaHTMLAttributes } from "react"; import { twMerge } from "tailwind-merge"; import { Label } from "./Typography"; import { kebabCase } from "~/utilities"; -import { ignoreDelete } from "~/pages/PageEnigma/store"; type ResizeType = | "none" @@ -25,10 +24,14 @@ export const Textarea = ({ }) => { return (
- {label && } - + {label && + + } +