Skip to content

Commit d4223ef

Browse files
committed
add tp.xyz
1 parent 8107e32 commit d4223ef

File tree

7 files changed

+83
-53
lines changed

7 files changed

+83
-53
lines changed

public/favicon.png

1.09 KB
Loading

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.png">
88
<script>
99
var _hmt = _hmt || [];
1010
(function() {

src/assets/footer/1-on.png

26 Bytes
Loading

src/assets/footer/1.png

58 Bytes
Loading

src/assets/logo-dark.png

14.8 KB
Loading

src/components/common/Footer.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="FooterLayout">
33
<footer class="content">
44
<div class="follow-wrap">
5-
<img class="logo" src="../../assets/logo-w.png" />
5+
<img class="logo" src="../../assets/logo-dark.png" />
66
<div class="footer-follows">
77
<div
88
class="footer-follow"
@@ -223,7 +223,7 @@ export default {
223223
},
224224
{
225225
title: this.$t('COMMON.LAYOUT.dappStore'),
226-
url: `https://tokenpocket.pro/${this.$i18n.locale}/dappstore`
226+
url: this.dappStoreUrl
227227
},
228228
// {
229229
// local: true,
@@ -317,7 +317,8 @@ export default {
317317
},
318318
{
319319
title: this.$t('COMMON.LAYOUT.pressKit'),
320-
url: 'https://hilarious-eucalyptus-a2f.notion.site/TokenPocket-Brand-Resources-ab6e6019d20342eea025ec62955084fc'
320+
url: this.brandKitUrl
321+
// url: 'https://hilarious-eucalyptus-a2f.notion.site/TokenPocket-Brand-Resources-ab6e6019d20342eea025ec62955084fc'
321322
}
322323
]
323324
if (this.isZH) {

src/mixins/NavUrl.js

Lines changed: 78 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
const domain = `tp.xyz`
3+
14
export default {
25
computed: {
36
isTokenPocketPro() {
@@ -18,7 +21,7 @@ export default {
1821
if (this.isTokenPocketPro) {
1922
return 'https://tokenpocket.pro/'
2023
} else {
21-
return 'https://tpwallet.io/'
24+
return `https://${domain}/`
2225
}
2326
},
2427
extensionUrl() {
@@ -30,45 +33,45 @@ export default {
3033
}
3134
} else {
3235
if (this.isZH) {
33-
return 'https://extension.tpwallet.io/?locale=zh'
36+
return `https://extension.${domain}/?locale=zh`
3437
} else {
35-
return 'https://extension.tpwallet.io/?locale=en'
38+
return `https://extension.${domain}/?locale=en`
3639
}
3740
}
3841
},
3942
dappUrl() {
4043
if (this.isTokenPocketPro) {
4144
return `https://tokenpocket.pro/${this.$i18n.locale}/submit/dapp`
4245
} else {
43-
return `https://tpwallet.io/${this.$i18n.locale}/submit/dapp`
46+
return `https://${domain}/${this.$i18n.locale}/submit/dapp`
4447
}
4548
},
4649
tokenUrl() {
4750
if (this.isTokenPocketPro) {
4851
return `https://tokenpocket.pro/${this.$i18n.locale}/submit/token`
4952
} else {
50-
return `https://tpwallet.io/${this.$i18n.locale}/submit/token`
53+
return `https://${domain}/${this.$i18n.locale}/submit/token`
5154
}
5255
},
5356
nftUrl() {
5457
if (this.isTokenPocketPro) {
5558
return `https://tokenpocket.pro/${this.$i18n.locale}/submit/nft`
5659
} else {
57-
return `https://tpwallet.io/${this.$i18n.locale}/submit/nft`
60+
return `https://${domain}/${this.$i18n.locale}/submit/nft`
5861
}
5962
},
6063
recruitingUrl() {
6164
if (this.isTokenPocketPro) {
6265
return `https://tokenpocket.pro/${this.$i18n.locale}/recruiting`
6366
} else {
64-
return `https://tpwallet.io/${this.$i18n.locale}/recruiting`
67+
return `https://${domain}/${this.$i18n.locale}/recruiting`
6568
}
6669
},
6770
aboutUrl() {
6871
if (this.isTokenPocketPro) {
6972
return `https://tokenpocket.pro/${this.$i18n.locale}/about`
7073
} else {
71-
return `https://tpwallet.io/${this.$i18n.locale}/about`
74+
return `https://${domain}/${this.$i18n.locale}/about`
7275
}
7376
},
7477
developerUrl() {
@@ -79,25 +82,30 @@ export default {
7982
}
8083
},
8184
helpUrl() {
82-
if (this.isTokenPocketPro) {
83-
if (this.isZH) {
84-
return 'https://help.tokenpocket.pro/cn/'
85-
} else {
86-
return 'https://help.tokenpocket.pro/en/'
87-
}
85+
if (this.isZH) {
86+
return 'https://help.tokenpocket.pro/cn/'
8887
} else {
89-
if (this.isZH) {
90-
return 'https://help.tpwallet.io/cn/'
91-
} else {
92-
return 'https://help.tpwallet.io/en/'
93-
}
88+
return 'https://help.tokenpocket.pro/en/'
9489
}
90+
// if (this.isTokenPocketPro) {
91+
// if (this.isZH) {
92+
// return 'https://help.tokenpocket.pro/cn/'
93+
// } else {
94+
// return 'https://help.tokenpocket.pro/en/'
95+
// }
96+
// } else {
97+
// if (this.isZH) {
98+
// return `https://help.${domain}/cn/`
99+
// } else {
100+
// return `https://help.${domain}/en/`
101+
// }
102+
// }
95103
},
96104
desktopUrl() {
97105
if (this.isTokenPocketPro) {
98106
return `https://tokenpocket.pro/${this.$i18n.locale}/download/pc`
99107
} else {
100-
return `https://tpwallet.io/${this.$i18n.locale}/download/pc`
108+
return `https://${domain}/${this.$i18n.locale}/download/pc`
101109
}
102110
},
103111
approvalUrl() {
@@ -146,19 +154,24 @@ export default {
146154
}
147155
},
148156
contactUsUrl() {
149-
if (this.isTokenPocketPro) {
150-
if (this.isZH) {
151-
return 'https://help.tokenpocket.pro/cn/contact-us/contact-methods'
152-
} else {
153-
return 'https://help.tokenpocket.pro/en/contact-us/contact-methods'
154-
}
157+
if (this.isZH) {
158+
return 'https://help.tokenpocket.pro/cn/contact-us/contact-methods'
155159
} else {
156-
if (this.isZH) {
157-
return 'https://help.tpwallet.io/cn/contact-us/contact-methods'
158-
} else {
159-
return 'https://help.tpwallet.io/en/contact-us/contact-methods'
160-
}
160+
return 'https://help.tokenpocket.pro/en/contact-us/contact-methods'
161161
}
162+
// if (this.isTokenPocketPro) {
163+
// if (this.isZH) {
164+
// return 'https://help.tokenpocket.pro/cn/contact-us/contact-methods'
165+
// } else {
166+
// return 'https://help.tokenpocket.pro/en/contact-us/contact-methods'
167+
// }
168+
// } else {
169+
// if (this.isZH) {
170+
// return `https://help.${domain}/cn/contact-us/contact-methods`
171+
// } else {
172+
// return `https://help.${domain}/en/contact-us/contact-methods`
173+
// }
174+
// }
162175
},
163176
rexUrl() {
164177
if (this.isTokenPocketPro) {
@@ -176,19 +189,24 @@ export default {
176189
}
177190
},
178191
joinUsUrl() {
179-
if (!this.isTokenPocketPro) {
180-
if (this.isZH) {
181-
return 'https://help.tokenpocket.pro/cn/contact-us/joinus'
182-
} else {
183-
return 'https://help.tokenpocket.pro/en/contact-us/Joinus'
184-
}
192+
if (this.isZH) {
193+
return 'https://help.tokenpocket.pro/cn/contact-us/joinus'
185194
} else {
186-
if (this.isZH) {
187-
return 'https://help.tpwallet.io/cn/contact-us/joinus'
188-
} else {
189-
return 'https://help.tpwallet.io/en/contact-us/Joinus'
190-
}
195+
return 'https://help.tokenpocket.pro/en/contact-us/Joinus'
191196
}
197+
// if (!this.isTokenPocketPro) {
198+
// if (this.isZH) {
199+
// return 'https://help.tokenpocket.pro/cn/contact-us/joinus'
200+
// } else {
201+
// return 'https://help.tokenpocket.pro/en/contact-us/Joinus'
202+
// }
203+
// } else {
204+
// if (this.isZH) {
205+
// return `https://help.${domain}/cn/contact-us/joinus`
206+
// } else {
207+
// return `https://help.${domain}/en/contact-us/Joinus`
208+
// }
209+
// }
192210
},
193211
stakeVaultUrl() {
194212
if (this.isTokenPocketPro) {
@@ -209,7 +227,7 @@ export default {
209227
if (this.isTokenPocketPro) {
210228
return `https://verify.tokenpocket.pro/?locale=${this.$i18n.locale}#/`
211229
} else {
212-
return `https://verify.tpwallet.io/?locale=${this.$i18n.locale}#/`
230+
return `https://verify.${domain}/?locale=${this.$i18n.locale}#/`
213231
}
214232
},
215233
fiveDegreesUrl() {
@@ -269,13 +287,17 @@ export default {
269287
// }
270288
},
271289
tokenClaimUrl() {
272-
return `https://claim.tokenpocket.pro/?locale=${this.$i18n.locale}#/`
290+
if (this.isTokenPocketPro) {
291+
return `https://claim.tokenpocket.pro/?locale=${this.$i18n.locale}#/`
292+
} else {
293+
return `https://claim.${domain}/?locale=${this.$i18n.locale}#/`
294+
}
273295
},
274296
dappStoreUrl() {
275297
if (this.isTokenPocketPro) {
276298
return `https://tokenpocket.pro/${this.$i18n.locale}/dappstore`;
277299
} else {
278-
return `https://tpwallet.io/${this.$i18n.locale}/dappstore`;
300+
return `https://${domain}/${this.$i18n.locale}/dappstore`;
279301
}
280302
},
281303
privacyUrl() {
@@ -287,9 +309,9 @@ export default {
287309
}
288310
} else {
289311
if (this.isZH) {
290-
return `https://tpwallet.io/privacy-zh/index.html`;
312+
return `https://${domain}/privacy-zh/index.html`;
291313
} else {
292-
return `https://tpwallet.io/privacy-en/index.html`;
314+
return `https://${domain}/privacy-en/index.html`;
293315
}
294316
}
295317
},
@@ -302,11 +324,18 @@ export default {
302324
}
303325
} else {
304326
if (this.isZH) {
305-
return `https://tpwallet.io/terms-zh/index.html`;
327+
return `https://${domain}/terms-zh/index.html`;
306328
} else {
307-
return `https://tpwallet.io/terms-en/index.html`;
329+
return `https://${domain}/terms-en/index.html`;
308330
}
309331
}
310332
},
333+
brandKitUrl() {
334+
if (this.isTokenPocketPro) {
335+
return `https://tokenpocket.pro/${this.$i18n.locale}/brandkit`;
336+
} else {
337+
return `https://${domain}/${this.$i18n.locale}/brandkit`;
338+
}
339+
},
311340
}
312341
}

0 commit comments

Comments
 (0)