1+
2+ const domain = `tp.xyz`
3+
14export 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