File tree Expand file tree Collapse file tree 5 files changed +100
-97
lines changed
src/views/components-default Expand file tree Collapse file tree 5 files changed +100
-97
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ const exportObj = {
13
13
importWorkboxFrom : 'local' ,
14
14
skipWaiting : true ,
15
15
clientsClaim : true ,
16
- navigateFallback : '/index.html'
16
+ navigateFallback : '/index.html' ,
17
+ navigateFallbackDenylist : [ / ^ \/ p a g e s / ]
17
18
}
18
19
} ,
19
20
chainWebpack : config => {
Original file line number Diff line number Diff line change @@ -86,5 +86,6 @@ module.exports = [
86
86
'https://eth-mainnet.alchemyapi.io:443' , // Unstoppable domains
87
87
'https://polygon-mainnet.g.alchemy.com:443' , // Unstoppable domains
88
88
'https://unstoppabledomains.g.alchemy.com:443' , // Unstoppable domains
89
- 'https://metadata.unstoppabledomains.com:443' // Unstoppable domains
89
+ 'https://metadata.unstoppabledomains.com:443' , // Unstoppable domains
90
+ 'https://mew-seo-pages.pages.dev:443' //pages
90
91
] ;
Original file line number Diff line number Diff line change 20
20
is-block
21
21
>
22
22
<template #tabContent1 >
23
- <home-features-send class =" mt-16 mb-10" />
23
+ <home-features-tokens class =" mt-16 mb-10" />
24
24
</template >
25
25
<template #tabContent2 >
26
- <home-features-swap class =" mt-16 mb-10" />
26
+ <home-features-send class =" mt-16 mb-10" />
27
27
</template >
28
28
<template #tabContent3 >
29
- <home-features-dapps class =" mt-16 mb-10" />
29
+ <home-features-swap class =" mt-16 mb-10" />
30
30
</template >
31
31
<template #tabContent4 >
32
- <home-features-tokens class =" mt-16 mb-10" />
32
+ <home-features-dapps class =" mt-16 mb-10" />
33
33
</template >
34
34
</mew-tabs >
35
35
</v-container >
@@ -79,6 +79,10 @@ export default {
79
79
data : () => ({
80
80
mobileTab: null ,
81
81
mobileItems: [
82
+ {
83
+ tab: ' Tokens' ,
84
+ img: require (' @/assets/images/snippets/mobile/mobile-features-tokens.svg' )
85
+ },
82
86
{
83
87
tab: ' ETH' ,
84
88
img: require (' @/assets/images/snippets/mobile/mobile-features-send.svg' )
@@ -90,13 +94,12 @@ export default {
90
94
{
91
95
tab: ' DApps' ,
92
96
img: require (' @/assets/images/snippets/mobile/mobile-features-dapps.svg' )
93
- },
94
- {
95
- tab: ' Tokens' ,
96
- img: require (' @/assets/images/snippets/mobile/mobile-features-tokens.svg' )
97
97
}
98
98
],
99
99
mewTabs: [
100
+ {
101
+ name: ' Tokens'
102
+ },
100
103
{
101
104
name: ' ETH'
102
105
},
@@ -105,9 +108,6 @@ export default {
105
108
},
106
109
{
107
110
name: ' DApps'
108
- },
109
- {
110
- name: ' Tokens'
111
111
}
112
112
]
113
113
})
Original file line number Diff line number Diff line change 9
9
<div class =" mt-10" >
10
10
<v-row >
11
11
<v-col v-for =" (t, k) in tokens" :key =" k" cols =" 12" lg =" 4" sm =" 6" >
12
- <div class =" d-flex align-center" >
13
- <img :src =" t.icon" :alt =" t.label" height =" 20" class =" mr-2" />
14
- <div >{{ t.label }}</div >
15
- </div >
12
+ <a :href =" t.link" >
13
+ <div class =" d-flex align-center no-link-colors" >
14
+ <img :src =" t.icon" :alt =" t.label" height =" 20" class =" mr-2" />
15
+ <div >{{ t.label }}</div >
16
+ </div >
17
+ </a >
16
18
</v-col >
17
19
</v-row >
18
20
<mew-button
29
31
30
32
<script >
31
33
import { ROUTES_HOME } from ' @/core/configs/configRoutes' ;
32
-
34
+ import { knuthShuffle } from ' @/modules/create-wallet/handlers/helpers ' ;
33
35
export default {
34
36
name: ' HomeFeaturesTokens' ,
35
37
components: {},
@@ -97,8 +99,27 @@ export default {
97
99
}
98
100
],
99
101
ROUTES_HOME : ROUTES_HOME
100
- })
102
+ }),
103
+ created () {
104
+ fetch (` https://mew-seo-pages.pages.dev/best-wallet-for.json` )
105
+ .then (res => res .json ())
106
+ .then (json => {
107
+ const tokenData = json .map (token => {
108
+ return {
109
+ label: ` ${ token .name } (${ token .symbol .toUpperCase ()} )` ,
110
+ icon: ` https://img.mewapi.io/?image=${ token .icon } ` ,
111
+ link: ` https://www.myetherwallet.com/pages${ token .path } `
112
+ };
113
+ });
114
+ this .tokens = knuthShuffle (tokenData).slice (0 , 15 );
115
+ })
116
+ .catch (() => {});
117
+ }
101
118
};
102
119
</script >
103
120
104
- <style lang="scss" scoped></style >
121
+ <style lang="scss" scoped>
122
+ .no-link-colors {
123
+ color : #1f242f ;
124
+ }
125
+ </style >
You can’t perform that action at this time.
0 commit comments