Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 11, 2023
1 parent 51de4e6 commit b097a1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions packages/online-playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ provide(PiniaVersionKey, piniaVersion)
// piniaVersion.value === 'latest' ? '^2.1.0' : piniaVersion.value
// })
console.log('files', store.getFiles()['import-map.json'])
if (!hash) {
store.setImportMap({
imports: {
Expand Down
10 changes: 3 additions & 7 deletions packages/online-playground/src/Header.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { downloadProject } from './download/download'
import { inject, provide, ref } from 'vue'
import { inject, ref } from 'vue'
import Sun from './icons/Sun.vue'
import Moon from './icons/Moon.vue'
import Share from './icons/Share.vue'
Expand All @@ -19,7 +19,8 @@ const emit = defineEmits(['toggle-theme', 'toggle-dev'])
const { store } = props
const currentCommit = __COMMIT__
const vueVersion = ref(`latest`)
// parse version from the runtimeURL
const vueVersion = ref('latest')
const piniaVersion = inject(PiniaVersionKey)!
async function setVueVersion(v: string) {
Expand All @@ -28,11 +29,6 @@ async function setVueVersion(v: string) {
vueVersion.value = `v${v}`
}
function resetVueVersion() {
store.resetVueVersion()
vueVersion.value = `latest`
}
async function copyLink(e: MouseEvent) {
if (e.metaKey) {
// hidden logic for going to local debug from play.vuejs.org
Expand Down

0 comments on commit b097a1a

Please sign in to comment.