Skip to content

Commit

Permalink
refactor: playground housekeeping (#719)
Browse files Browse the repository at this point in the history
* refactor: playground housekeeping

* move single-use components into folders with their parent components
* add "Issues" category

* chore: run linter

---------

Co-authored-by: Alvaro Saburido <[email protected]>
  • Loading branch information
andretchen0 and alvarosabu authored Jun 15, 2024
1 parent 12e462d commit 74a2c47
Show file tree
Hide file tree
Showing 31 changed files with 99 additions and 550 deletions.
1 change: 1 addition & 0 deletions playground/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ declare module 'vue' {
LocalOrbitControls: typeof import('./src/components/LocalOrbitControls.vue')['default']
Overlay: typeof import('./src/components/Overlay.vue')['default']
OverlayInfo: typeof import('./src/components/OverlayInfo.vue')['default']
PbrSphere: typeof import('./src/components/PbrSphere.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
TakeOverLoopExperience: typeof import('./src/components/TakeOverLoopExperience.vue')['default']
Expand Down
17 changes: 0 additions & 17 deletions playground/src/components/AkuAku.vue

This file was deleted.

27 changes: 0 additions & 27 deletions playground/src/components/AnimatedObjectUseUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,33 +53,6 @@ watchEffect(() => {
off()
}
})
/* const anotherLog = useThrottleFn(() => console.log('after render'), 3000)
*/
/* useUpdate(() => {
anotherLog()
}, 1) */

/* useUpdate(() => {
console.count('update loop 1')
})

useUpdate(() => {
console.count('update loop 2')
}) */

/* useUpdate(() => {
console.count('before renderer')
}, -1)

useUpdate(() => {
console.log('this should be just before render')
})

useUpdate((state) => {
if (!sphereRef.value) { return }
console.count('after renderer')
sphereRef.value.position.y += Math.sin(state.elapsed) * 0.01
}, 2) */
</script>

<template>
Expand Down
319 changes: 0 additions & 319 deletions playground/src/components/LocalOrbitControls.vue

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- eslint-disable no-console -->
<script setup lang="ts">
import { useFBO } from '../composables/useFBO'
import { useFBO } from './useFBO'

const fboTarget = useFBO({
depth: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from 'three'
import { OrbitControls } from '@tresjs/cientos'
import FBOCube from './FBOCube.vue'
import '@tresjs/leches/styles'
const gl = {
Expand Down
File renamed without changes.
Loading

0 comments on commit 74a2c47

Please sign in to comment.