Skip to content

Commit

Permalink
feat: display vue version, close #236
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 15, 2023
1 parent f7db6a2 commit 83b775a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/devtools/client/pages/modules/overview.vue
Expand Up @@ -19,6 +19,8 @@ function goIntro() {
isFirstVisit.value = true
router.push('/')
}
const vueVersion = computed(() => client.value?.nuxt.vueApp.version)
</script>

<template>
Expand Down Expand Up @@ -59,6 +61,10 @@ function goIntro() {
<div logos-nuxt-icon text-3xl />
<NpmVersionCheck package-name="nuxt" :options="{ dev: true }" />
</div>
<div v-if="vueVersion" p4 theme-card-green flex="~ col auto">
<div logos-vue text-3xl />
<code>v{{ vueVersion }}</code>
</div>
<template v-if="config">
<NuxtLink v-if="config && config.pages && client" min-w-40 p4 theme-card-lime flex="~ col auto" to="/modules/pages">
<div carbon-tree-view-alt text-3xl />
Expand Down

0 comments on commit 83b775a

Please sign in to comment.