Skip to content

Commit

Permalink
Merge pull request #15 from marty-mcgee/threed-app-ts
Browse files Browse the repository at this point in the history
🥕 v0.16.0-a.6 🌱 ThreeD Garden: Cleanup Time
  • Loading branch information
marty-mcgee authored May 14, 2024
2 parents 6e27757 + 7732851 commit 557dc50
Show file tree
Hide file tree
Showing 1,735 changed files with 1,828 additions and 133,227 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ desktop.ini
.npmrc

# assets
lib/wp-threed
lib/wp-threed/assets
# src/lib/wp-threed
# src/lib/wp-threed/assets
public/assets
public/assets/**
public/demo
Expand Down
106 changes: 106 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next
build

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist
.vitepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
19 changes: 19 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
endOfLine: 'crlf',
htmlWhitespaceSensitivity: 'css',
insertPragma: false,
jsxSingleQuote: true,
printWidth: 120,
proseWrap: 'preserve',
quoteProps: 'as-needed',
requirePragma: false,
semi: false,
singleAttributePerLine: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
}
55 changes: 30 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# [🥕 ThreeD Garden: 3D Object Environment w Next.JS React TypeScript Web3 ThreeJS Poimandres React-Three w Apollo State + Leva Control UI w Apollo Stores w MUI + Tailwind](https://github.com/marty-mcgee/threed-garden/)
# [🥕 ThreeD Garden: 3D Environment on 'Next.JS React TypeScript Three.JS React-Three Physics', using Apollo GraphQL State+Stores, Leva Control GUI, Material UI + Tailwind CSS](https://github.com/marty-mcgee/threed-garden/)

3D Dev Environment w React, TypeScript, Three.js, React-Three (poimandres), on Next.js, Apollo Client, GraphQL, WordPress REST API, MUI + Tailwind. ThreeD Web3 Interface for Three-Dimensional JavaScript Objects with React Server + Client Components, Web3 Contracts ...

## Live Demo

🌱 [threedgarden.com](https://threedgarden.com)

🥕 [Demo: Participate](https://threedgarden.com/participate)
🥕 [Demo: Actively Participate](https://threedgarden.com/participate)

## For Developers

🤖 ["name": "threed-garden",](https://www.npmjs.com/package/threed-garden)

🤖 ["version": "0.15.1-beta.x",](https://www.npmjs.com/package/threed-garden?activeTab=versions)
🤖 ["version": "0.16.0-beta.x",](https://www.npmjs.com/package/threed-garden?activeTab=versions)

🤖 ["code": "0.15.1-beta.x",](https://www.npmjs.com/package/threed-garden?activeTab=code)
🤖 ["code": "0.16.0-beta.x",](https://www.npmjs.com/package/threed-garden?activeTab=code)

### Install + Run

Expand All @@ -34,26 +34,27 @@

## FUNCTIONAL NOUNS : ACTIONS : GROUPS == NOUNS + ACTIONS + METADATA 🌱 🤖 🍅 🥕

- Noun | as root JS Object | interface INoun | wp_type threed_noun
- Noun | as root JS Object | interface INoun | type TNoun | wp_type threed_noun

--- Nouns

- Project | as JS Object | interface IProject | wp_type threed_project
- Scene | extends THREE.Scene | interface IScene | wp_type threed_scene
- Plan | as JS Object | interface IPlan | wp_type threed_plan
- ThreeD | as root JS Object | interface IThreeD | wp_type threed_threed
- File | as JS Object | interface IFile | wp_type threed_file
- Participant | as JS Object | interface IParticipant | wp_type threed_participant
- Character | as JS Object | interface ICharacter | wp_type threed_character
- Project | interface IProject | type TProject | wp_type threed_project
- Scene | extends THREE.Scene | interface IScene | type TScene | wp_type threed_scene
- Plan | interface IPlan | type TPlan | wp_type threed_plan
- ThreeD | as root JS Object | interface IThreeD | type TThreed | wp_type threed_threed
- File | interface IFile | type TFile | wp_type threed_file
- Participant | interface IParticipant | type TParticipant | wp_type threed_participant
- Character | interface ICharacter | type TCharacter | wp_type threed_character

--- Actions

- Simulation | as JS Object | interface ISimulation | wp_type threed_simulation
- Game | extends Simulation | interface IGame | wp_type threed_game
- Simulation | interface ISimulation | type TSimulation | wp_type threed_simulation
- Demo | extends Simulation | interface IDemo | type TDemo | wp_type threed_demo
- Game | extends Simulation | interface IGame | type TGame | wp_type threed_game

--- Groups
--- Groups [of Nouns]

- World | as JS Object | interface IWorld | wp_type threed_world
- World | interface IWorld | wp_type threed_world
- Structure | extends THREE.Object3D | interface IStructure | wp_type threed_structure
- Farm | extends THREE.Group | interface IFarm | wp_type threed_farm
- Garden | extends THREE.Group | interface IGarden | wp_type threed_garden
Expand All @@ -68,16 +69,20 @@
- PlantingPlan | Actions | Relationships | interface IPlantingPlan | wp_type threed_planting_plan
- BuildingPlan | Actions | Relationships | interface IBuildingPlan | wp_type threed_building_plan

--- Helpers
--- Helpers (Actions, Utilities)

- Tool | as JS Object | extends ThreeD? | interface ITool
- PlaneTool | extends Tool | interface IPlane
- Camera | extends Tool | extends THREE.Camera | interface ICamera
- Renderer | extends Tool | extends THREE.Renderer | interface IRenderer
- Light | extends Tool | extends THREE.Light.DirectionalLight | interface ILight
- Raster | extends Tool | extends THREE.Raster.Rasterizer | interface IRaster
- Shader | extends Tool | extends THREE.Shader.Shaderizer | interface IShader
- Animation | extends Tool | extends OBJ.animation | interface IAnimation
- Tool | extends ThreeD? | interface ITool | type TTool
- PlaneTool | extends Tool | interface IPlane | type TPlane
- Camera | extends Tool | extends THREE.Camera | interface ICamera | type TCamera
- Light | extends Tool | extends THREE.Light.DirectionalLight | interface ILight | type Light
- Raster | extends Tool | extends THREE.Raster.Rasterizer | interface IRaster | type TRaster
- Shader | extends Tool | extends THREE.Shader.Shaderizer | interface IShader | type TShader
- Animation | extends Tool | extends OBJ.animation | interface IAnimation | type TAnimation

--- Testing (Physics)

- Collider | extends Physics? | interface ICollider | type TCollider
- Energy | extends Physics? | interface IEnergy | type TEnergy

====

Expand Down
41 changes: 41 additions & 0 deletions app/LayoutWrapper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use client'

import { useRef } from 'react'
import dynamic from 'next/dynamic'
// const Scene = dynamic(() => import('#/components/canvas/Scene'), { ssr: false })

const LayoutWrapper = ({ children }: { children: any}) => {
const id: string = 'HEYHEYHEY'
const ref: any = useRef<any>()

return (
<div
id={id}
ref={ref}
style={{
position: 'relative',
width: '100%',
height: '100%',
overflow: 'auto',
touchAction: 'auto',
}}
>
{children}
{/* <Scene
style={{
position: 'fixed',
top: 0,
left: 0,
width: '100vw',
height: '100vh',
pointerEvents: 'none',
}}
eventSource={ref}
eventPrefix='client'
/> */}
</div>
)
}

export { LayoutWrapper }
export default LayoutWrapper
Loading

0 comments on commit 557dc50

Please sign in to comment.