Skip to content

Commit

Permalink
refactor: remove pinia
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jun 28, 2024
1 parent 3ad7862 commit 474eda0
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Be the first to support this project [here](https://github.com/sponsors/tresjs)
- toggleSession is called
- startSession is called
- XR session is requested
- XR session is saved to global session pinia store
- XR session is saved to global session
- Set status as entered
- Save copy of global session XR session to provided state
- Watch effects trigger for second time (after reactive depedencies update)
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
},
"dependencies": {
"@tresjs/core": "^4.0.2",
"pinia": "^2.1.7",
"three": "^0.165.0",
"vue": "^3.4.30"
},
Expand Down
1 change: 0 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"@tresjs/cientos": "^3.9.0",
"pinia": "^2.1.7",
"vue": "^3.4.30",
"vue-router": "^4.4.0"
},
Expand Down
3 changes: 0 additions & 3 deletions playground/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { createApp } from 'vue'
import './style.css'
import { createPinia } from 'pinia'
import App from './App.vue'
import { router } from './router'
import 'uno.css'

const app = createApp(App)
const pinia = createPinia()

app.use(router)
app.use(pinia)

app.mount('#app')
6 changes: 3 additions & 3 deletions playground/src/pages/basics/XR.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ function onError(error) {
<div>
<VRButton />
<TresCanvas window-size alpha>
<TresPerspectiveCamera :position="[0, 0, 5]" />
<TresPerspectiveCamera :position="[0, 0, 0]" />
<XR v-bind="{ onSessionStart, onError }">
<TresMesh :position="[-2, 0, 0]">
<TresMesh :position="[-2, 0, -5]">
<TresTorusGeometry :args="[1, 0.5, 16, 32]" />
<TresMeshBasicMaterial color="blue" />
</TresMesh>
</XR>
<TresMesh :position="[2, 0, 0]">
<TresMesh :position="[2, 0, -5]">
<TresTorusGeometry :args="[1, 0.5, 16, 32]" />
<TresMeshBasicMaterial color="orange" />
</TresMesh>
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions src/stores/globalSession.ts

This file was deleted.

0 comments on commit 474eda0

Please sign in to comment.