|
1 | 1 | <template>
|
2 |
| - <div class="relative extension bg-white"> |
| 2 | + <div class="relative bg-white extension"> |
3 | 3 | <div class="px-4 pt-4">
|
4 | 4 | <div class="flex items-center justify-between mb-8">
|
5 |
| - <a href="http://vuetelemetry.com/" target="_blank"> |
| 5 | + <a href="http://vuetelescope.com/" target="_blank"> |
6 | 6 | <LogoIcon class="h-8" />
|
7 | 7 | </a>
|
8 | 8 |
|
9 | 9 | <div class="flex items-center">
|
10 | 10 | <a
|
11 | 11 | v-if="isRootUrl && showcase && showcase.hasVue && showcase.isPublic"
|
12 |
| - :href="`https://vuetelemetry.com/explore/${showcase.slug}`" |
| 12 | + :href="`https://vuetelescope.com/explore/${showcase.slug}`" |
13 | 13 | target="_blank"
|
14 | 14 | class="mr-3"
|
15 | 15 | >
|
16 | 16 | <AppButton size="small" appearance="primary" outlined>Open</AppButton>
|
17 | 17 | </a>
|
18 | 18 | <AppButton v-else-if="isRootUrl && showcase && showcase.hasVue && !showcase.isPublic && !savingError" @click.native="saveShowcase" size="small" appearance="primary" class="mr-3">{{ saving ? 'Saving...' : 'Save' }}</AppButton>
|
19 | 19 |
|
20 |
| - <a href="https://twitter.com/VueTelemetry" target="_blank" class="mr-3"> |
| 20 | + <a href="https://twitter.com/VueTelescope" target="_blank" class="mr-3"> |
21 | 21 | <TwitterIcon class="w-5 h-5 hover:text-primary-500" />
|
22 | 22 | </a>
|
23 | 23 |
|
24 |
| - <a href="https://github.com/nuxt-company/vue-telemetry-analyzer" target="_blank"> |
| 24 | + <a href="https://github.com/nuxt-company/vue-telescope-analyzer" target="_blank"> |
25 | 25 | <GithubIcon class="w-5 h-5 hover:text-primary-500" />
|
26 | 26 | </a>
|
27 | 27 | </div>
|
28 | 28 | </div>
|
29 | 29 |
|
30 | 30 | <!-- <div v-if="isLoading && (!showcase || !showcase.url)">Please refresh the page to detect.</div> -->
|
31 | 31 |
|
32 |
| - <div v-if="isLoading" class="absolute top-0 left-0 w-full h-full flex items-center justify-center"> |
| 32 | + <div v-if="isLoading" class="absolute top-0 left-0 flex items-center justify-center w-full h-full"> |
33 | 33 | <div class="font-bold-body-weight text-seven">Loading...</div>
|
34 | 34 | </div>
|
35 | 35 |
|
36 |
| - <div v-else-if="!showcase || !showcase.url" class="absolute top-0 left-0 w-full h-full flex items-center justify-center"> |
| 36 | + <div v-else-if="!showcase || !showcase.url" class="absolute top-0 left-0 flex items-center justify-center w-full h-full"> |
37 | 37 | <div class="font-bold-body-weight text-eight">Please enter an url in the address bar.</div>
|
38 | 38 | </div>
|
39 | 39 |
|
40 | 40 | <div v-else-if="showcase">
|
41 | 41 | <div v-if="showcase.hasVue">
|
42 | 42 | <div class="mb-8">
|
43 | 43 | <div v-if="savingError" class="mb-4 text-orange">
|
44 |
| - Could not save website to Vue Telemetry, please try again later or <a class="underline" :href="`mailto:vuetelemetry@nuxtjs.com?subject=Could not save ${showcase.url}`">contact us</a>. |
| 44 | + Could not save website to Vue Telescope, please try again later or <a class="underline" :href="`mailto:vuetelescope@nuxtjs.com?subject=Could not save ${showcase.url}`">contact us</a>. |
45 | 45 | </div>
|
46 | 46 | <div class="mb-4">
|
47 |
| - <h3 class="flex items-center font-bold-body-weight pl-2 text-primary-500 uppercase"> |
48 |
| - <InfoIcon class="h-5 mr-2 text-primary-5700 opacity-50" />Info |
| 47 | + <h3 class="flex items-center pl-2 uppercase font-bold-body-weight text-primary-500"> |
| 48 | + <InfoIcon class="h-5 mr-2 opacity-50 text-primary-5700" />Info |
49 | 49 | </h3>
|
50 | 50 | </div>
|
51 | 51 |
|
|
62 | 62 | :src="iconURL('/vue.svg')"
|
63 | 63 | alt
|
64 | 64 | />
|
65 |
| - <div class=" text-base leading-base font-bold-body-weight"> |
| 65 | + <div class="text-base leading-base font-bold-body-weight"> |
66 | 66 | {{ showcase.vueVersion }}
|
67 | 67 | </div>
|
68 | 68 | </ExploreDataItem>
|
|
126 | 126 |
|
127 | 127 | <div v-if="showcase.plugins.length" class="mb-4">
|
128 | 128 | <div class="mb-4">
|
129 |
| - <h3 class="flex items-center font-bold-body-weight pl-2 text-primary-500 uppercase"> |
130 |
| - <PluginsIcon class="h-6 mr-2 text-primary-500 opacity-50" />Plugins |
| 129 | + <h3 class="flex items-center pl-2 uppercase font-bold-body-weight text-primary-500"> |
| 130 | + <PluginsIcon class="h-6 mr-2 opacity-50 text-primary-500" />Plugins |
131 | 131 | </h3>
|
132 | 132 | </div>
|
133 | 133 |
|
|
137 | 137 | :key="plugin.id"
|
138 | 138 | :href="plugin.url"
|
139 | 139 | target="_blank"
|
140 |
| - class="mr-4 mb-4 bg-grey-50 hover:bg-grey-100 border border-grey-200 rounded-xl" |
| 140 | + class="mb-4 mr-4 border bg-grey-50 hover:bg-grey-100 border-grey-200 rounded-xl" |
141 | 141 | >
|
142 | 142 | <span
|
143 |
| - class="block font-bold-body-weight px-4 py-2 text-sm" |
| 143 | + class="block px-4 py-2 text-sm font-bold-body-weight" |
144 | 144 | >
|
145 | 145 | {{ plugin.name }}
|
146 | 146 | </span>
|
|
150 | 150 |
|
151 | 151 | <div v-if="showcase.modules.length">
|
152 | 152 | <div class="mb-4">
|
153 |
| - <h3 class="flex items-center font-bold-body-weight pl-2 text-primary-500 uppercase"> |
154 |
| - <ModulesIcon class="h-6 mr-2 text-primary-500 opacity-50" />Nuxt Modules |
| 153 | + <h3 class="flex items-center pl-2 uppercase font-bold-body-weight text-primary-500"> |
| 154 | + <ModulesIcon class="h-6 mr-2 opacity-50 text-primary-500" />Nuxt Modules |
155 | 155 | </h3>
|
156 | 156 | </div>
|
157 | 157 |
|
|
161 | 161 | :key="module.id"
|
162 | 162 | :href="module.url"
|
163 | 163 | target="_blank"
|
164 |
| - class="mr-4 mb-4 bg-grey-50 hover:bg-grey-100 border border-grey-200 rounded-xl" |
| 164 | + class="mb-4 mr-4 border bg-grey-50 hover:bg-grey-100 border-grey-200 rounded-xl" |
165 | 165 | >
|
166 | 166 | <span
|
167 |
| - class="block font-bold-body-weight px-4 py-2 text-sm" |
| 167 | + class="block px-4 py-2 text-sm font-bold-body-weight" |
168 | 168 | >
|
169 | 169 | {{ module.name }}
|
170 | 170 | </span>
|
|
173 | 173 | </div>
|
174 | 174 | </div>
|
175 | 175 |
|
176 |
| - <div v-else-if="!showcase.hasVue" class=" pointer-events-none absolute top-0 left-0 w-full h-full flex items-center justify-center"> |
| 176 | + <div v-else-if="!showcase.hasVue" class="absolute top-0 left-0 flex items-center justify-center w-full h-full pointer-events-none "> |
177 | 177 | <div class="font-bold-body-weight text-eight">Vue is not used on this website</div>
|
178 | 178 | </div>
|
179 | 179 | </div>
|
@@ -289,7 +289,7 @@ export default {
|
289 | 289 | // })
|
290 | 290 | // },
|
291 | 291 | iconURL (path) {
|
292 |
| - return `https://icons.vuetelemetry.com${path}` |
| 292 | + return `https://icons.vuetelescope.com${path}` |
293 | 293 | },
|
294 | 294 | async saveShowcase () {
|
295 | 295 | this.saving = true
|
@@ -318,20 +318,6 @@ export default {
|
318 | 318 | }
|
319 | 319 | })
|
320 | 320 |
|
321 |
| - // await fetch(`https://vuetelemetry.com/api/analyze?url=${this.showcase.url}&isPublic=true`, { |
322 |
| - // method: 'GET' |
323 |
| - // }) |
324 |
| - // .then((response) => { |
325 |
| - // if (!response.ok) { |
326 |
| - // throw new Error('API call to VT failed') |
327 |
| - // } |
328 |
| - // return response.json() |
329 |
| - // }) |
330 |
| - // .then(({ body }) => { |
331 |
| - // this.showcase.slug = body.slug |
332 |
| - // this.showcase.isPublic = body.isPublic |
333 |
| - // this.saving = false |
334 |
| - // }) |
335 | 321 | const tabId = this.currentTab.id
|
336 | 322 | await this.sendToBackground({
|
337 | 323 | from: 'popup',
|
|
0 commit comments