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 3131 "postcss-loader" : " ^3.0.0" ,
3232 "tailwindcss" : " ^1.3.5" ,
3333 "vue" : " ^2.6.12" ,
34- "vue-telescope-analyzer" : " ^0.9.18 " ,
34+ "vue-telescope-analyzer" : " ^0.9.19 " ,
3535 "vuex" : " ^3.1.3" ,
3636 "webextension-polyfill" : " ^0.3.1"
3737 },
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ async function analyze () {
2222 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 ]
2323 const { ssr } = await detectors . getVueMeta ( context )
2424 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+ }
2531 const ui = await detectors . getUI ( context )
2632 const plugins = await detectors . getPlugins ( context )
2733 const nuxtMeta = await detectors . getNuxtMeta ( context )
Original file line number Diff line number Diff line change 105105
106106 <ExploreDataItem
107107 v-if =" showcase.framework"
108- label =" Framework"
108+ : label =" showcase.framework.version ? showcase.framework.name : ' Framework' "
109109 tag =" a"
110110 :href =" showcase.framework.url"
111111 target =" _blank"
116116 :src =" iconURL(showcase.framework.imgPath)"
117117 alt
118118 />
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 }}
121121 </div >
122122 </ExploreDataItem >
123123
Original file line number Diff line number Diff line change @@ -7317,10 +7317,10 @@ vue-svg-loader@^0.16.0:
73177317 loader-utils "^1.2.3"
73187318 svg-to-vue "^0.7.0"
73197319
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 ==
73247324 dependencies :
73257325 consola "^2.15.3"
73267326 make-dir "^3.1.0"
You can’t perform that action at this time.
0 commit comments