File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 31
31
"postcss-loader" : " ^3.0.0" ,
32
32
"tailwindcss" : " ^1.3.5" ,
33
33
"vue" : " ^2.6.12" ,
34
- "vue-telescope-analyzer" : " ^0.9.18 " ,
34
+ "vue-telescope-analyzer" : " ^0.9.19 " ,
35
35
"vuex" : " ^3.1.3" ,
36
36
"webextension-polyfill" : " ^0.3.1"
37
37
},
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ async function analyze () {
22
22
const vueVersion = window . $nuxt ?. $root ?. constructor ?. version || window . Vue ?. version || [ ...document . querySelectorAll ( "*" ) ] . map ( ( el ) => el . __vue__ ?. $root ?. constructor ?. version || el . __vue_app__ ?. version ) . filter ( Boolean ) [ 0 ]
23
23
const { ssr } = await detectors . getVueMeta ( context )
24
24
const framework = await detectors . getFramework ( context )
25
+ if ( framework ?. slug === 'nuxtjs' && vueVersion ) {
26
+ try {
27
+ framework . version = window . __unctx__ ?. get ( 'nuxt-app' ) ?. use ( ) ?. versions ?. nuxt
28
+ } catch ( e ) { }
29
+ framework . version = framework . version || `Version ${ vueVersion . split ( '.' ) [ 0 ] } `
30
+ }
25
31
const ui = await detectors . getUI ( context )
26
32
const plugins = await detectors . getPlugins ( context )
27
33
const nuxtMeta = await detectors . getNuxtMeta ( context )
Original file line number Diff line number Diff line change 105
105
106
106
<ExploreDataItem
107
107
v-if =" showcase.framework"
108
- label =" Framework"
108
+ : label =" showcase.framework.version ? showcase.framework.name : ' Framework' "
109
109
tag =" a"
110
110
:href =" showcase.framework.url"
111
111
target =" _blank"
116
116
:src =" iconURL(showcase.framework.imgPath)"
117
117
alt
118
118
/>
119
- <div class =" text-base leading-seven font-bold-body-weight" >
120
- {{ showcase.framework.name }}
119
+ <div class =" text-base leading-base font-bold-body-weight" >
120
+ {{ showcase.framework.version || showcase.framework. name }}
121
121
</div >
122
122
</ExploreDataItem >
123
123
Original file line number Diff line number Diff line change @@ -7317,10 +7317,10 @@ vue-svg-loader@^0.16.0:
7317
7317
loader-utils "^1.2.3"
7318
7318
svg-to-vue "^0.7.0"
7319
7319
7320
- vue-telescope-analyzer@^0.9.18 :
7321
- version "0.9.18 "
7322
- resolved "https://registry.yarnpkg.com/vue-telescope-analyzer/-/vue-telescope-analyzer-0.9.18 .tgz#1ce5d725a613e84d71af373430c6fc989f3b59ad "
7323
- integrity sha512-ly8ykP/2FZyMGqMZs5gu0dUaeQ/F2+LJ/Jbsx/H3Qo81cCXliFzDKpPgEhtMsxcrcPElPNkThJUrJczYVSaomg ==
7320
+ vue-telescope-analyzer@^0.9.19 :
7321
+ version "0.9.19 "
7322
+ resolved "https://registry.yarnpkg.com/vue-telescope-analyzer/-/vue-telescope-analyzer-0.9.19 .tgz#29d1586b76a1f5cc84cc722965b652529117369b "
7323
+ integrity sha512-F0ZsDwtb3BJhv9QvlXUEP+TWFIlYgdhuwk7hoh+YsIptufY5SQRI9HqDhl2wLE+FIYGfyhJpop/wHDLDCw4X5w ==
7324
7324
dependencies :
7325
7325
consola "^2.15.3"
7326
7326
make-dir "^3.1.0"
You can’t perform that action at this time.
0 commit comments