FEAT: Create basic model embed #588
@@ -16,12 +16,11 @@ const EmbedProject = ({ project }: Props) => {
|
||||
|
|
||||
const { viewerDomRef, handleViewerSizeUpdate } = use3dViewerResize()
|
||||
|
||||
useEffect(() => {
|
||||
console.log({ rect: viewerDomRef.current.getBoundingClientRect(), status: 'uh what?'})
|
||||
|
Could we remove the log? Could we remove the log?
Complete. Complete.
|
||||
handleViewerSizeUpdate()
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="h-screen flex flex-col" ref={viewerDomRef} >
|
||||
|
Could we remove the log? Could we remove the log?
Complete. Complete.
|
||||
<div className="flex flex-col h-screen" ref={viewerDomRef} >
|
||||
|
Could we remove the log? Could we remove the log?
Complete. Complete.
|
||||
<IdeContext.Provider value={{ state, thunkDispatch, project }}>
|
||||
<IdeViewer />
|
||||
</IdeContext.Provider>
|
||||
|
||||
|
Could we remove the log? Could we remove the log?
Could we remove the log? Could we remove the log?
Complete. Complete.
Complete. Complete.
|
||||
@@ -1,33 +1,9 @@
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
import useUser from 'src/helpers/hooks/useUser'
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
import { useIdeState } from 'src/helpers/hooks/useIdeState'
|
||||
import { IdeContext } from 'src/helpers/hooks/useIdeContext'
|
||||
import EmbedViewer from '../EmbedViewer/EmbedViewer'
|
||||
import { QUERY as IdeQuery } from 'src/components/IdeProjectCell'
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
|
||||
export const QUERY = gql`
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
query FIND_PROJECT_BY_USENAME_TITLE(
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
$projectTitle: String!
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
$userName: String!
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
) {
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
project: projectByUserAndTitle(
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
projectTitle: $projectTitle
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
userName: $userName
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
) {
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
id
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
title
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
description
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
code
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
mainImage
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
createdAt
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
cadPackage
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
user {
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
id
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
userName
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
image
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
}
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
}
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
}
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
`
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
export const QUERY = IdeQuery
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
export interface Project {
|
||||
id: string
|
||||
title: string
|
||||
|
||||
|
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
You should be able to import than re export QUERY from You should be able to import than re export QUERY from `app/web/src/components/IdeProjectCell/IdeProjectCell.tsx` instead of redefining it here (can import the Project type too)
I don't mind having some duplication, but having more than one query with the same name `FIND_PROJECT_BY_USENAME_TITLE` can cause issues with apollo, if you don't want to import the query could you atleast rename to something unique.
Ah nice thank you, complete. Ah nice thank you, complete.
Ah nice thank you, complete. Ah nice thank you, complete.
|
||||
Could we remove the log?
Could we remove the log?
Complete.
Complete.