Skip to content

Commit

Permalink
chore: update vue in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 29, 2024
1 parent 8835e98 commit 205e3df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/docs/typedoc.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"isolatedModules": true,

"experimentalDecorators": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": false,
"jsx": "preserve",
Expand Down
4 changes: 2 additions & 2 deletions packages/online-playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ if (hash.startsWith('__DEV__')) {
const store = new ReplStore({
serializedState: hash,
defaultVueRuntimeURL:
'https://cdn.jsdelivr.net/npm/@vue/runtime-dom@3.3.9/dist/runtime-dom.esm-browser.js',
'https://cdn.jsdelivr.net/npm/@vue/runtime-dom@3.4.21/dist/runtime-dom.esm-browser.js',
defaultVueServerRendererURL:
'https://cdn.jsdelivr.net/npm/@vue/server-renderer@3.3.9/dist/server-renderer.esm-browser.js',
'https://cdn.jsdelivr.net/npm/@vue/server-renderer@3.4.21/dist/server-renderer.esm-browser.js',
})
const previewOptions: ReplProps['previewOptions'] = {
Expand Down
6 changes: 3 additions & 3 deletions packages/online-playground/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ const store = useStore()
<template>
<button @click="store.n++">Increment {{ store.n }}</button>
</template>
`.trim()
`.trimStart()

export const counterTs = `
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useStore = defineStore('store', () => {
export const useStore = defineStore('counter', () => {
const n = ref(0)
return { n }
})
`.trim()
`.trimStart()

export const PiniaVersionKey: InjectionKey<Ref<string>> =
Symbol('pinia-version')

0 comments on commit 205e3df

Please sign in to comment.