Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit f2f8d02

Browse files
authored
Merge pull request #635 from kodadot/main
Security push
2 parents dac053f + c70356c commit f2f8d02

File tree

18 files changed

+124
-126
lines changed

18 files changed

+124
-126
lines changed

src/components/landing/Tutorials.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<!-- <router-link :to="{name: 'createAccount'}"> -->
1818
<a
1919
target="_blank"
20+
rel="noopener noreferrer"
2021
href="https://www.youtube.com/watch?v=iG8iQrONnYo"
2122
>
2223
<b-button type="is-primary" class="mb-6">
@@ -27,6 +28,7 @@
2728
<!-- <router-link :to="{name: 'createAccount'}"> -->
2829
<a
2930
target="_blank"
31+
rel="noopener noreferrer"
3032
href="https://www.youtube.com/watch?v=cYaZWDzU1Yc"
3133
>
3234
<b-button type="is-primary" class="mb-6">
@@ -37,6 +39,7 @@
3739
<!-- <router-link :to="{name: 'createAccount'}"> -->
3840
<a
3941
target="_blank"
42+
rel="noopener noreferrer"
4043
href="https://www.youtube.com/watch?v=pPsbQyJRGVQ"
4144
>
4245
<b-button type="is-primary" class="mb-6">

src/components/rmrk/Credit/Credit.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
+ `&hostLogoUrl=https://nft.kodadot.xyz/kodadot_logo_v1_transparent_400px.png`
1919
+ `&finalUrl=https://nft.kodadot.xyz`
2020
+ `hostApiKey=a99bfvomhhbvzy6thaycxbawz7d3pssuz2a8hsrc`"
21-
target="_blank" >
21+
target="_blank"
22+
rel="noopener noreferrer"
23+
>
2224
Buy Kusama
2325
</b-button><br>
2426
</div>

src/components/rmrk/Gallery/GalleryItem.vue

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,10 @@
5353
<Name :nft="nft" :isLoading="isLoading" />
5454
</div>
5555

56-
<p class="label" v-if="meta.description">
57-
{{ $t('legend')}}
58-
</p>
59-
60-
<div class="subtitle is-size-7">
61-
<p v-if="!isLoading"
62-
class="subtitle is-size-5">
56+
<div v-if="meta.description" class="block">
57+
<p class="label">{{ $t('legend')}}</p>
58+
<p v-if="!isLoading" class="subtitle is-size-5">
6359
{{ meta.description }}
64-
<!-- <markdown-it-vue-light class="md-body" :content="nft.description"/> -->
6560
</p>
6661
<b-skeleton :count="3" size="is-large" :active="isLoading"></b-skeleton>
6762
</div>

src/components/rmrk/Gallery/History.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div>
2+
<div class="block">
33
<p class="label">
44
{{ $t('History') }}
55
</p>

src/components/rmrk/Gallery/Item/Facts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<ol>
4141
<li v-for="gw in gwList"
4242
:key="gw">
43-
<a :href="gw+imageId" target="_blank">Gateway</a>
43+
<a :href="gw+imageId" target="_blank" rel="noopener noreferrer">Gateway</a>
4444
</li>
4545
</ol>
4646
</p>
Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,49 @@
11
<template>
2-
<div>
3-
<div v-if="detailVisible">
4-
<p
5-
class="title"
6-
:class="[ detailVisible ? 'is-size-1' : 'is-size-3' ]"
7-
>
8-
<span v-if="!isLoading">
9-
<span v-if="nft.burned">「🔥」</span> {{ nft.name }} <span v-if="carbonlessBadge">「🌱」</span>
10-
</span>
11-
<b-skeleton height="100px" size="is-large" :active="isLoading"></b-skeleton>
12-
</p>
13-
<p v-if="nft.burned" class="title is-size-4 has-text-danger">
14-
{{ $t('nft.burned') }} 「🔥」
15-
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
16-
</p>
17-
<p v-if="carbonlessBadge" class="title is-size-4 has-text-success">
18-
{{ $t('nft.carbonless') }} 「🌱」
19-
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
20-
</p>
21-
<p class="label">
22-
{{ $t('collection') }}
23-
</p>
24-
<p class="subtitle is-size-6">
25-
<router-link :to="{ name: 'collectionDetail', params: { id: nft.collectionId } }">
26-
{{ nft.collectionId }}
27-
</router-link>
28-
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
29-
</p>
30-
<p class="label">
31-
{{ $t('creator') }}
32-
</p>
33-
<p class="subtitle is-size-6">
34-
<ProfileLink :address="nft.issuer" :showTwitter="true"/>
35-
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
36-
<!-- <a :href="`https://kusama.subscan.io/account/${nft.currentOwner}`" target="_blank"><Identity :address="nft.currentOwner" /></a> -->
37-
</p>
38-
<template v-if="nft.issuer !== nft.currentOwner">
39-
<p class="label">
40-
{{ $t('owner') }}
41-
</p>
42-
<p class="subtitle is-size-6">
43-
<ProfileLink :address="nft.currentOwner" :showTwitter="true"/>
44-
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
45-
<!-- <a :href="`https://kusama.subscan.io/account/${nft.currentOwner}`" target="_blank"><Identity :address="nft.currentOwner" /></a> -->
46-
</p>
47-
</template>
48-
</div>
2+
<div v-if="detailVisible">
3+
<p
4+
class="title"
5+
:class="[ detailVisible ? 'is-size-1' : 'is-size-3' ]"
6+
>
7+
<span v-if="!isLoading">
8+
<span v-if="nft.burned">「🔥」</span> {{ nft.name }} <span v-if="carbonlessBadge">「🌱」</span>
9+
</span>
10+
<b-skeleton height="100px" size="is-large" :active="isLoading"></b-skeleton>
11+
</p>
12+
<p v-if="nft.burned" class="title is-size-4 has-text-danger">
13+
{{ $t('nft.burned') }} 「🔥」
14+
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
15+
</p>
16+
<p v-if="carbonlessBadge" class="title is-size-4 has-text-success">
17+
{{ $t('nft.carbonless') }} 「🌱」
18+
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
19+
</p>
20+
<p class="label">
21+
{{ $t('collection') }}
22+
</p>
23+
<p class="subtitle is-size-6">
24+
<router-link :to="{ name: 'collectionDetail', params: { id: nft.collectionId } }">
25+
{{ nft.collectionId }}
26+
</router-link>
27+
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
28+
</p>
29+
<p class="label">
30+
{{ $t('creator') }}
31+
</p>
32+
<p class="subtitle is-size-6">
33+
<ProfileLink :address="nft.issuer" :showTwitter="true"/>
34+
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
35+
<!-- <a :href="`https://kusama.subscan.io/account/${nft.currentOwner}`" target="_blank"><Identity :address="nft.currentOwner" /></a> -->
36+
</p>
37+
<template v-if="nft.issuer !== nft.currentOwner">
38+
<p class="label">
39+
{{ $t('owner') }}
40+
</p>
41+
<p class="subtitle is-size-6">
42+
<ProfileLink :address="nft.currentOwner" :showTwitter="true"/>
43+
<b-skeleton :count="1" size="is-large" :active="isLoading"></b-skeleton>
44+
<!-- <a :href="`https://kusama.subscan.io/account/${nft.currentOwner}`" target="_blank"><Identity :address="nft.currentOwner" /></a> -->
45+
</p>
46+
</template>
4947
</div>
5048
</template>
5149

@@ -58,19 +56,19 @@ import { emptyObject } from '@/utils/empty';
5856
5957
const components = {
6058
ProfileLink: () => import('@/components/rmrk/Profile/ProfileLink.vue')
61-
}
59+
};
6260
6361
@Component({ components })
6462
export default class Name extends Vue {
6563
@Prop({ default: () => emptyObject<NFTWithMeta>() }) public nft!: NFTWithMeta;
6664
@Prop() public isLoading!: boolean;
6765
6866
get detailVisible() {
69-
return !isShareMode
67+
return !isShareMode;
7068
}
7169
7270
get carbonlessBadge() {
73-
return this.nft.attributes?.some(({trait_type, value}) => trait_type === 'carbonless' && value)
71+
return this.nft.attributes?.some(({trait_type, value}) => trait_type === 'carbonless' && value);
7472
}
7573
}
7674
</script>

src/components/rmrk/Gallery/PriceChart.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class PriceChart extends Vue {
2727
// protected UTCDate: any = {};
2828
2929
protected onWindowResize() {
30-
if (this.Chart != null && this.Chart != undefined) {
30+
if (this.Chart) {
3131
this.Chart.resize({ width: 'auto', height: 400 });
3232
}
3333
}
@@ -72,12 +72,16 @@ export default class PriceChart extends Vue {
7272
yAxis: {
7373
type: 'value',
7474
axisLabel: {
75-
formatter: '{value}',
75+
formatter: '{value} KSM',
7676
fontFamily: 'Fira Code',
7777
color: '#fff',
7878
},
79-
name: 'KSM',
80-
nameGap: 10,
79+
splitLine: {
80+
lineStyle: {
81+
color: '#f8f8f8',
82+
opacity: '.2'
83+
}
84+
},
8185
nameTextStyle: {
8286
color: '#fff',
8387
fontFamily: 'Fira Code',

src/components/rmrk/Media/Unknown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<a :href="src" target="_blank">Unknown animated media, click to download</a>
3+
<a :href="src" target="_blank" rel="noopener noreferrer">Unknown animated media, click to download</a>
44
</div>
55
</template>
66

src/components/rmrk/Profile/NavbarProfileDropdown.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
</b-dropdown-item>
3333
<hr class="dropdown-divider" aria-role="menuitem" />
3434
<b-dropdown-item has-link aria-role="menuitem">
35-
<a href="https://twitter.com/kodadot" target="_blank" class="is-flex is-align-items-center pl-3">
35+
<a href="https://twitter.com/kodadot" target="_blank" rel="noopener noreferrer" class="is-flex is-align-items-center pl-3">
3636
<b-icon pack="fab" icon="twitter" class="mr-1"> </b-icon>
3737
<strong>KodaDot</strong>
3838
</a>
3939
</b-dropdown-item>
4040
<b-dropdown-item has-link aria-role="menuitem">
41-
<a href="https://discord.gg/u6ymnbz4PR" target="_blank" class="is-flex is-align-items-center pl-3">
41+
<a href="https://discord.gg/u6ymnbz4PR" target="_blank" rel="noopener noreferrer" class="is-flex is-align-items-center pl-3">
4242
<b-icon pack="fab" icon="discord" class="mr-1"> </b-icon>
4343
<strong>Discord</strong>
4444
</a>

src/components/rmrk/Profile/ProfileLink.vue

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<template>
2-
<div>
3-
<LinkResolver class="profile-link__wrapper" route="profile" :param="address" link="u">
4-
<Identity :address="address" :inline="true" :verticalAlign="true" />
5-
<template v-slot:extra>
6-
<a :href="`https://kusama.subscan.io/account/${address}`" target="_blank">
7-
<figure class="image is-24x24 subscan__less-margin">
8-
<img alt="subscan" :src="require('@/assets/subscan.svg')" />
9-
</figure>
10-
</a>
2+
<div>
3+
<LinkResolver class="profile-link__wrapper" route="profile" :param="address" link="u">
4+
<Identity :address="address" :inline="true" :verticalAlign="true" />
5+
<template v-slot:extra>
6+
<a :href="`https://kusama.subscan.io/account/${address}`" target="_blank" rel="noopener noreferrer">
7+
<figure class="image is-24x24 subscan__less-margin">
8+
<img alt="subscan" :src="require('@/assets/subscan.svg')" />
9+
</figure>
10+
</a>
11+
</template>
12+
</LinkResolver>
13+
<template v-if="showTwitter">
14+
<Identity :address="address" :inline="true" :showTwitter="showTwitter" :verticalAlign="true" />
1115
</template>
12-
</LinkResolver>
13-
<template v-if="showTwitter">
14-
<Identity :address="address" :inline="true" :showTwitter="showTwitter" :verticalAlign="true" />
15-
</template>
16-
</div>
17-
16+
</div>
1817
</template>
1918

2019
<script lang="ts" >
@@ -30,7 +29,6 @@ const components = {
3029
export default class ProfileLink extends Mixins(InlineMixin) {
3130
@Prop() public address!: string;
3231
@Prop() public showTwitter!: boolean;
33-
3432
}
3533
</script>
3634

0 commit comments

Comments
 (0)