diff --git a/.gitignore b/.gitignore
index 1110f69..c89327a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
.idea
+.history
.DS_Store
.env
.netlify
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index fd4f9ff..014721a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -32,9 +32,9 @@ Install dependencies
yarn install
```
-Setting up the db, you'll need to have a postgres installed locally, you can [follow this guide](https://redwoodjs.com/docs/local-postgres-setup).
+Setting up the db, you'll need to have a postgres installed locally, you can [follow this guide](https://redwoodjs.com/docs/local-postgres-setup).
-Run the following
+Run the following (Note: these commands require the `DATABASE_URL` env variable to be set. if you see no result when you run `echo $DATABASE_URL`, you can set it with a command like `export DATABASE_URL=postgres://postgres:somepassword@localhost`)
``` terminal
yarn rw prisma migrate dev
yarn rw prisma db seed
diff --git a/app/api/db/schema.prisma b/app/api/db/schema.prisma
index e62813d..9b02179 100644
--- a/app/api/db/schema.prisma
+++ b/app/api/db/schema.prisma
@@ -5,7 +5,7 @@ datasource db {
generator client {
provider = "prisma-client-js"
- binaryTargets = "native"
+ binaryTargets = ["native", "darwin-arm64", "darwin"]
}
// sqlLight does not suport enums so we can't use enums until we set up postgresql in dev mode
diff --git a/app/web/src/Routes.js b/app/web/src/Routes.js
index a2f053b..58578bc 100644
--- a/app/web/src/Routes.js
+++ b/app/web/src/Routes.js
@@ -56,6 +56,7 @@ const Routes = () => {
+
diff --git a/app/web/src/components/EditorMenu/menuConfig.tsx b/app/web/src/components/EditorMenu/menuConfig.tsx
index 4408ad9..1e6d41b 100644
--- a/app/web/src/components/EditorMenu/menuConfig.tsx
+++ b/app/web/src/components/EditorMenu/menuConfig.tsx
@@ -1,6 +1,6 @@
import React from 'react'
import { useRender } from 'src/components/IdeWrapper/useRender'
-import { makeStlDownloadHandler, PullTitleFromFirstLine } from './helpers'
+import { makeStlDownloadHandler, PullTitleFromFirstLine } from 'src/helpers/download_stl'
import { useSaveCode } from 'src/components/IdeWrapper/useSaveCode'
import { DropdownItem } from './Dropdowns'
import { useShortcutsModalContext } from './AllShortcutsModal'
diff --git a/app/web/src/components/EmbedProject/EmbedProject.tsx b/app/web/src/components/EmbedProject/EmbedProject.tsx
new file mode 100644
index 0000000..a8ef33c
--- /dev/null
+++ b/app/web/src/components/EmbedProject/EmbedProject.tsx
@@ -0,0 +1,31 @@
+import Seo from 'src/components/Seo/Seo'
+import IdeViewer from 'src/components/IdeViewer/IdeViewer'
+import { useIdeState } from 'src/helpers/hooks/useIdeState'
+import type { Project } from 'src/components/EmbedProjectCell/EmbedProjectCell'
+import { IdeContext } from 'src/helpers/hooks/useIdeContext'
+import { use3dViewerResize } from 'src/helpers/hooks/use3dViewerResize'
+import { useEffect } from 'react'
+
+
+interface Props {
+ project?: Project
+}
+
+const EmbedProject = ({ project }: Props) => {
+ const [state, thunkDispatch] = useIdeState()
+ const { viewerDomRef, handleViewerSizeUpdate } = use3dViewerResize()
+
+ useEffect(() => {
+ handleViewerSizeUpdate()
+ }, [])
+
+ return (
+
+ {/* Because of how specific these styles are to this heading/logo and it doesn't need to be replicated else where as well as it's very precise with the placement of "pre-alpha" I think it's appropriate. */}
+