Skip to content

Commit 97e682f

Browse files
committed
devop: 🔧 setup pages
1 parent cf92926 commit 97e682f

File tree

5 files changed

+100
-97
lines changed

5 files changed

+100
-97
lines changed

builds/liveConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const exportObj = {
1313
importWorkboxFrom: 'local',
1414
skipWaiting: true,
1515
clientsClaim: true,
16-
navigateFallback: '/index.html'
16+
navigateFallback: '/index.html',
17+
navigateFallbackDenylist: [/^\/pages/]
1718
}
1819
},
1920
chainWebpack: config => {

connections.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,6 @@ module.exports = [
8686
'https://eth-mainnet.alchemyapi.io:443', // Unstoppable domains
8787
'https://polygon-mainnet.g.alchemy.com:443', // Unstoppable domains
8888
'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
9091
];

package-lock.json

Lines changed: 57 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/components-default/HomeFeatures.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
is-block
2121
>
2222
<template #tabContent1>
23-
<home-features-send class="mt-16 mb-10" />
23+
<home-features-tokens class="mt-16 mb-10" />
2424
</template>
2525
<template #tabContent2>
26-
<home-features-swap class="mt-16 mb-10" />
26+
<home-features-send class="mt-16 mb-10" />
2727
</template>
2828
<template #tabContent3>
29-
<home-features-dapps class="mt-16 mb-10" />
29+
<home-features-swap class="mt-16 mb-10" />
3030
</template>
3131
<template #tabContent4>
32-
<home-features-tokens class="mt-16 mb-10" />
32+
<home-features-dapps class="mt-16 mb-10" />
3333
</template>
3434
</mew-tabs>
3535
</v-container>
@@ -79,6 +79,10 @@ export default {
7979
data: () => ({
8080
mobileTab: null,
8181
mobileItems: [
82+
{
83+
tab: 'Tokens',
84+
img: require('@/assets/images/snippets/mobile/mobile-features-tokens.svg')
85+
},
8286
{
8387
tab: 'ETH',
8488
img: require('@/assets/images/snippets/mobile/mobile-features-send.svg')
@@ -90,13 +94,12 @@ export default {
9094
{
9195
tab: 'DApps',
9296
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')
9797
}
9898
],
9999
mewTabs: [
100+
{
101+
name: 'Tokens'
102+
},
100103
{
101104
name: 'ETH'
102105
},
@@ -105,9 +108,6 @@ export default {
105108
},
106109
{
107110
name: 'DApps'
108-
},
109-
{
110-
name: 'Tokens'
111111
}
112112
]
113113
})

src/views/components-default/HomeFeaturesTokens.vue

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
<div class="mt-10">
1010
<v-row>
1111
<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>
1618
</v-col>
1719
</v-row>
1820
<mew-button
@@ -29,7 +31,7 @@
2931

3032
<script>
3133
import { ROUTES_HOME } from '@/core/configs/configRoutes';
32-
34+
import { knuthShuffle } from '@/modules/create-wallet/handlers/helpers';
3335
export default {
3436
name: 'HomeFeaturesTokens',
3537
components: {},
@@ -97,8 +99,27 @@ export default {
9799
}
98100
],
99101
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+
}
101118
};
102119
</script>
103120

104-
<style lang="scss" scoped></style>
121+
<style lang="scss" scoped>
122+
.no-link-colors {
123+
color: #1f242f;
124+
}
125+
</style>

0 commit comments

Comments
 (0)