|
9 | 9 | icon="ghost" |
10 | 10 | ></b-icon> |
11 | 11 | <a :href="`https://kusama.subscan.io/account/${id}`" target="_blank" |
12 | | - ><Identity :address="id" :inline="true" |
| 12 | + ><Identity ref="identity" :address="id" :inline="true" |
13 | 13 | /></a> |
14 | 14 | </p> |
15 | 15 | <Sharing v-if="!sharingVisible" label="Check this awesome Profile on %23KusamaNetwork %23KodaDot" :iframe="iframeSettings" /> |
@@ -56,7 +56,22 @@ const components = { |
56 | 56 |
|
57 | 57 | const eq = (tab: string) => (el: string) => tab === el |
58 | 58 |
|
59 | | -@Component({ components }) |
| 59 | +@Component<Profile>({ |
| 60 | + components, |
| 61 | + metaInfo() { |
| 62 | + return { |
| 63 | + meta: [ |
| 64 | + { property: 'og:title', content: this.name }, |
| 65 | + { property: 'og:type', content: 'website'}, |
| 66 | + { property: 'og:image', vmid: 'og:image', content: this.firstNFT as string}, |
| 67 | + { property: 'og:video', vmid: 'og:video' , content: this.firstNFT as string }, |
| 68 | + { property: 'twitter:title', content: this.name }, |
| 69 | + { property: 'twitter:image', vmid: 'twitter:image', content: this.firstNFT as string }, |
| 70 | + { property: 'twitter:card', content: 'summary_large_image' }, |
| 71 | + ] |
| 72 | + }; |
| 73 | + }, |
| 74 | + }) |
60 | 75 | export default class Profile extends Vue { |
61 | 76 | public activeTab: string = 'nft'; |
62 | 77 | protected id: string = ''; |
@@ -94,7 +109,6 @@ export default class Profile extends Vue { |
94 | 109 | showNotification(`${e}`, notificationTypes.danger); |
95 | 110 | console.warn(e); |
96 | 111 | } |
97 | | -
|
98 | 112 | this.isLoading = false; |
99 | 113 | this.name = ((this.$refs['identity'] as Identity).name as string); |
100 | 114 | } |
|
0 commit comments