Skip to content

Commit

Permalink
Merge pull request #198 from Tresjs/feature-157-re-order-components
Browse files Browse the repository at this point in the history
feat(Cientos): re-order components
  • Loading branch information
JaimeTorrealba authored Sep 7, 2023
2 parents 9f2e2da + badf258 commit cc3f3e9
Show file tree
Hide file tree
Showing 54 changed files with 197 additions and 336 deletions.
19 changes: 10 additions & 9 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,9 @@ export default defineConfig({
text: 'Abstractions',
items: [
{ text: 'Text3D', link: '/guide/abstractions/text-3d' },
{ text: 'Levioso (Float)', link: '/guide/abstractions/levioso' },
{ text: 'useAnimations', link: '/guide/abstractions/use-animations' },
{ text: 'Environment', link: '/guide/abstractions/environment' },
{ text: 'useEnvironment', link: '/guide/abstractions/use-environment' },
{ text: 'MouseParallax', link: '/guide/abstractions/mouse-parallax' },
{ text: 'Stars', link: '/guide/abstractions/stars' },
{ text: 'Smoke', link: '/guide/abstractions/smoke' },
{ text: 'Levioso (Float)', link: '/guide/abstractions/levioso' },
{ text: 'Contact Shadows', link: '/guide/abstractions/contact-shadows' },
{ text: 'Precipitation', link: '/guide/abstractions/precipitation' },
],
},
{
Expand Down Expand Up @@ -92,11 +86,18 @@ export default defineConfig({
},
{
text: 'Staging',
collapsed: true,
items: [{ text: 'Backdrop', link: '/guide/staging/backdrop' }],
items: [
{ text: 'Backdrop', link: '/guide/staging/backdrop' },
{ text: 'Environment', link: '/guide/staging/environment' },
{ text: 'useEnvironment', link: '/guide/staging/use-environment' },
{ text: 'Stars', link: '/guide/staging/stars' },
{ text: 'Smoke', link: '/guide/staging/smoke' },
{ text: 'Contact Shadows', link: '/guide/staging/contact-shadows' },
{ text: 'Precipitation', link: '/guide/staging/precipitation' }],
},
{
text: 'Misc',
collapsed: true,
items: [
{ text: 'useTweakpane', link: '/guide/misc/use-tweakpane' },
{ text: 'Stats', link: '/guide/misc/stats' },
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Is a component abstraction that automatically sets up a global cubemap, which affects the default `scene.environment`, and optionally `scene.background`,

It uses the composable [useEnvironment](/guide/abstractions/use-environment) under the hood to load the cubemap.
It uses the composable [useEnvironment](/guide/staging/use-environment) under the hood to load the cubemap.

## Usage

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"vite-svg-loader": "^4.0.0"
},
"dependencies": {
"@tresjs/cientos": "workspace:^"
"@tresjs/cientos": "workspace:^",
"@tweakpane/plugin-essentials": "^0.2.0"
}
}
6 changes: 3 additions & 3 deletions playground/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"PropType": true,
"Ref": true,
"VNode": true,
"WritableComputedRef": true,
"computed": true,
"createApp": true,
"customRef": true,
Expand Down Expand Up @@ -48,6 +49,7 @@
"toRaw": true,
"toRef": true,
"toRefs": true,
"toValue": true,
"triggerRef": true,
"unref": true,
"useAttrs": true,
Expand All @@ -57,8 +59,6 @@
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"toValue": true,
"WritableComputedRef": true
"watchSyncEffect": true
}
}
4 changes: 0 additions & 4 deletions playground/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
AkuAku: typeof import('./src/components/AkuAku.vue')['default']
BackdropDemo: typeof import('./src/components/BackdropDemo.vue')['default']
ContactShadowsDemo: typeof import('./src/components/ContactShadowsDemo.vue')['default']
EnvironmentDemo: typeof import('./src/components/EnvironmentDemo.vue')['default']
GlassMaterialDemo: typeof import('./src/components/GlassMaterialDemo.vue')['default']
Gltf: typeof import('./src/components/gltf/index.vue')['default']
Expand All @@ -18,8 +16,6 @@ declare module 'vue' {
ModelsDemo: typeof import('./src/components/ModelsDemo.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
ScrollDemo: typeof import('./src/components/ScrollDemo.vue')['default']
SVGDemo: typeof import('./src/components/SVGDemo.vue')['default']
TheGizmos: typeof import('./src/components/TheGizmos.vue')['default']
UseVideoTextureDemo: typeof import('./src/components/useVideoTextureDemo.vue')['default']
WobbleMaterial: typeof import('./src/components/WobbleMaterial.vue')['default']
Expand Down
51 changes: 0 additions & 51 deletions playground/src/components/EnvironmentDemo.vue

This file was deleted.

94 changes: 0 additions & 94 deletions playground/src/components/TheGizmos.vue

This file was deleted.

60 changes: 0 additions & 60 deletions playground/src/pages/LeviosoDemo.vue

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion playground/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<template>
<Suspense>
<GlassMaterialDemo />
<ModelsDemo />
</Suspense>
</template>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useVideoTexture, OrbitControls } from '@tresjs/cientos'
import { useVideoTexture, OrbitControls, Sphere } from '@tresjs/cientos'
import { TresCanvas } from '@tresjs/core'
import { SRGBColorSpace, NoToneMapping } from 'three'
import { Sphere } from '../../../src/core'
const gl = {
clearColor: '#333',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit cc3f3e9

Please sign in to comment.