File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,12 @@ async function detectVue (tabId, url) {
79
79
path : 'icons/icon-128.png'
80
80
} )
81
81
}
82
+ } else if ( hasVue ) {
83
+ await analyze ( tabId , url )
82
84
} else {
83
- if ( hasVue ) {
84
- await analyze ( tabId , url )
85
- } else {
86
- store . commit ( 'SET_SHOWCASE' , 'noVue' )
87
- }
85
+ store . commit ( 'SET_SHOWCASE' , 'noVue' )
88
86
}
89
- } catch ( e ) {
90
- }
87
+ } catch ( e ) { }
91
88
92
89
store . commit ( 'SET_ISLOADING' , false )
93
90
}
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" extension bg-white" >
2
+ <div class =" relative extension bg-white" >
3
3
<div class =" px-4 pt-4" >
4
4
<div class =" flex items-center justify-between mb-8" >
5
5
<a href =" http://vuetelemetry.com/" target =" _blank" >
108
108
</a >
109
109
</div >
110
110
</div >
111
+ <RefreshIcon @click =" refresh" class =" cursor-pointer absolute bottom-0 right-0 mb-4 mr-4 w-4 h-4 text-grey-500 hover:text-grey-800" />
111
112
</div >
112
113
<div v-else-if =" state === 'error'" >An error occurred</div >
113
114
<div v-else-if =" state === 'noVue'" >Vue is not used on this website</div >
@@ -127,6 +128,7 @@ import GithubIcon from '../images/github.svg?inline'
127
128
import InfoIcon from ' ../images/info.svg?inline'
128
129
import PluginsIcon from ' ../images/plugins.svg?inline'
129
130
import ModulesIcon from ' ../images/modules.svg?inline'
131
+ import RefreshIcon from ' ../images/refresh.svg?inline'
130
132
131
133
import ListBlock from ' ../components/ListBlock.vue'
132
134
@@ -139,6 +141,7 @@ export default {
139
141
InfoIcon,
140
142
PluginsIcon,
141
143
ModulesIcon,
144
+ RefreshIcon,
142
145
ListBlock
143
146
},
144
147
computed: {
@@ -160,6 +163,10 @@ export default {
160
163
methods: {
161
164
getURL (path ) {
162
165
return ` https://icons.vuetelemetry.com${ path} `
166
+ },
167
+ refresh () {
168
+ // TODO: set loading state and call analyze again
169
+ console .log (' refresh' )
163
170
}
164
171
}
165
172
}
You can’t perform that action at this time.
0 commit comments