Skip to content

Commit 5ef516e

Browse files
committed
fix: 🐛 conflicts,lint, and github comment
2 parents 3b26fae + 15c58f9 commit 5ef516e

35 files changed

+279
-193
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12.22.3

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* fix prefilled swaps [#3240](https://github.com/MyEtherWallet/MyEtherWallet/pull/3240)
1010
* use network getter instead of currentNetwork [#3260](https://github.com/MyEtherWallet/MyEtherWallet/pull/3260)
1111
* fix getransferv2 error [#3259](https://github.com/MyEtherWallet/MyEtherWallet/pull/3259)
12+
* fix let toast handle error [#3275](https://github.com/MyEtherWallet/MyEtherWallet/pull/3275)
1213

1314
### Release v6.0.1
1415

@@ -17,9 +18,11 @@
1718
* fix show private key in paper wallet for non pubKeyOnly wallets [#3239](https://github.com/MyEtherWallet/MyEtherWallet/pull/3239)
1819
* Fix contract interaction [#3251](https://github.com/MyEtherWallet/MyEtherWallet/pull/3251)
1920
* Format 24 hour change percentage on module balance [#3248](https://github.com/MyEtherWallet/MyEtherWallet/pull/3248)
21+
* fix $store null [#3273](https://github.com/MyEtherWallet/MyEtherWallet/pull/3273)
2022

2123
### Feature
2224

25+
* Change routes from hardcoded string to consts [#3244](https://github.com/MyEtherWallet/MyEtherWallet/pull/3244)
2326
* Remove divider in Staked UI and replace Russ team member photo [#3246](https://github.com/MyEtherWallet/MyEtherWallet/pull/3246)
2427

2528
### Devop

devmoji.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ module.exports = {
66
{ code: 'revert', gitmoji: 'rewind' },
77
{ code: 'lint', gitmoji: 'card_file_box' },
88
{ code: 'translations', gitmoji: 'globe_with_meridians' },
9-
{ code: 'build', gitmoji: ':green_heart:' },
10-
{ code: 'ci', gitmoji: ':green_heart:' },
11-
{ code: 'chore', gitmoji: ':construction_worker:' },
12-
{ code: 'docs', gitmoji: ':memo:' },
13-
{ code: 'feat', gitmoji: ':sparkles:' },
14-
{ code: 'fix', gitmoji: ':bug:' },
15-
{ code: 'refactor', gitmoji: ':recycle:' },
16-
{ code: 'style', gitmoji: ':art:' },
17-
{ code: 'test', gitmoji: ':white_check_mark:' },
18-
{ code: 'translation', gitmoji: ':globe_with_meridians:' },
19-
{ code: 'sentry', gitmoji: ':fire:' }
9+
{ code: 'build', gitmoji: 'green_heart' },
10+
{ code: 'ci', gitmoji: 'green_heart' },
11+
{ code: 'chore', gitmoji: 'construction_worker' },
12+
{ code: 'docs', gitmoji: 'page_facing_up' },
13+
{ code: 'feat', gitmoji: 'sparkles' },
14+
{ code: 'fix', gitmoji: 'bug' },
15+
{ code: 'refactor', gitmoji: 'recycle' },
16+
{ code: 'style', gitmoji: 'art' },
17+
{ code: 'test', gitmoji: 'white_check_mark' },
18+
{ code: 'translation', gitmoji: 'globe_with_meridians' },
19+
{ code: 'sentry', gitmoji: 'fire' }
2020
]
2121
};

package-lock.json

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

package-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const EXCEPTIONS = [
2020
'@aave/protocol-js',
2121
'@unstoppabledomains/resolution',
2222
'sass',
23-
'scryptsy'
23+
'scryptsy',
24+
'is-ipfs' // verifying this next week
2425
];
2526
const CUSTOM_DIST = {
2627
['babel-core']: 'bridge'

src/core/components/AppCarousel.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
</a>
2424
</template>
2525
<template #slide2>
26-
<router-link :to="{ name: 'BuyHardwareWallet' }" target="_blank">
26+
<router-link
27+
:to="{ name: ROUTES_HOME.BUY_HARDWARE_WALLET.NAME }"
28+
target="_blank"
29+
>
2730
<div class="ad2 px-5 d-flex flex-column justify-center">
2831
<div class="title font-weight-bold mb-n1">Hardware wallets</div>
2932
<div class="mb-2">Buy a hardware wallet!</div>
@@ -63,7 +66,13 @@
6366
</template>
6467

6568
<script>
66-
export default {};
69+
import { ROUTES_HOME } from '@/core/configs/configRoutes';
70+
71+
export default {
72+
data: () => ({
73+
ROUTES_HOME: ROUTES_HOME
74+
})
75+
};
6776
</script>
6877

6978
<style lang="scss" scoped>

src/core/components/AppGetStarted.vue

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@
4040
class="mr-4"
4141
title="Create a new wallet"
4242
btn-size="xlarge"
43-
@click.native="$router.push({ name: 'CreateWallet' })"
43+
@click.native="
44+
$router.push({ name: ROUTES_HOME.CREATE_WALLET.NAME })
45+
"
4446
/>
4547
<mew-button
4648
color-theme="primary"
4749
btn-style="outline"
4850
title="Access my wallet"
4951
btn-size="xlarge"
50-
@click.native="$router.push({ name: 'AccessWallet' })"
52+
@click.native="
53+
$router.push({ name: ROUTES_HOME.ACCESS_WALLET.NAME })
54+
"
5155
/>
5256
</div>
5357
</div>
@@ -90,7 +94,9 @@
9094
has-full-width
9195
title="Create a new wallet"
9296
btn-size="xlarge"
93-
@click.native="$router.push({ name: 'CreateWallet' })"
97+
@click.native="
98+
$router.push({ name: ROUTES_HOME.CREATE_WALLET.NAME })
99+
"
94100
/>
95101
</v-col>
96102
<v-col cols="12" sm="6" class="mb-n2">
@@ -99,7 +105,9 @@
99105
btn-style="outline"
100106
title="Access my wallet"
101107
btn-size="xlarge"
102-
@click.native="$router.push({ name: 'AccessWallet' })"
108+
@click.native="
109+
$router.push({ name: ROUTES_HOME.ACCESS_WALLET.NAME })
110+
"
103111
/>
104112
</v-col>
105113
</v-row>
@@ -110,11 +118,14 @@
110118
</template>
111119

112120
<script>
121+
import { ROUTES_HOME } from '../configs/configRoutes';
113122
export default {
114123
name: 'GetStarted',
115124
components: {},
116125
data() {
117-
return {};
126+
return {
127+
ROUTES_HOME: ROUTES_HOME
128+
};
118129
}
119130
};
120131
</script>

src/core/configs/configRoutes.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const ROUTES_HOME = {
2+
HOME: { NAME: 'Home', PATH: '' },
3+
//A-Z
4+
ACCESS_WALLET: { NAME: 'AccessWallet', PATH: 'wallet/access/:overlay?' },
5+
BUY_HARDWARE_WALLET: { NAME: 'BuyHardwareWallet', PATH: 'company' },
6+
COMPANY_PAGE: { NAME: 'CompanyPage', PATH: 'company' },
7+
CREATE_WALLET: { NAME: 'CreateWallet', PATH: 'wallet/create/:overlay?' },
8+
HOW_IT_WORKS: { NAME: 'HowItWorks', PATH: 'how-it-works' },
9+
PRESS_KIT: { NAME: 'PressKit', PATH: 'presskit' },
10+
PRIVACY_POLICY: { NAME: 'PrivacyPolicy', PATH: 'privacy-policy' },
11+
SECURITY_POLICY: { NAME: 'SecurityPolicy', PATH: 'security-policy' },
12+
TEAM_PAGE: { NAME: 'TeamPage', PATH: 'team' },
13+
TERMS_OF_SERVICE: { NAME: 'TermsOfService', PATH: 'terms-of-service' },
14+
TOOLS: { NAME: 'Tools', PATH: 'tools' }
15+
};
16+
const ROUTES_WALLET = {
17+
WALLETS: { NAME: 'Wallets', PATH: '' },
18+
//A-Z
19+
DAPPS: { NAME: 'Dapps', PATH: 'dapps' },
20+
DASHBOARD: { NAME: 'Dashboard', PATH: 'dashboard' },
21+
DEPLOY_CONTRACT: { NAME: 'DeployContract', PATH: 'deploy' },
22+
INTERACT_WITH_CONTRACT: { NAME: 'InteractWithContract', PATH: 'interact' },
23+
NFT_MANAGER: { NAME: 'NFTManager', PATH: 'nft' },
24+
SEND_TX: { NAME: 'SendTX', PATH: 'send-tx' },
25+
SIGN_MESSAGE: { NAME: 'SignMessage', PATH: 'sign' },
26+
SWAP: { NAME: 'Swap', PATH: 'swap' },
27+
VERIFY_MESSAGE: { NAME: 'VerifyMessage', PATH: 'verify' }
28+
};
29+
30+
export { ROUTES_HOME, ROUTES_WALLET };

src/core/router/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import store from '@/core/store';
33
import langShortCodes from '@/translations/getShortCodes';
44
import routesDefault from './routes-default';
55
import routesWallet from './routes-wallet';
6+
import { ROUTES_HOME } from '../configs/configRoutes';
67
const routes = [routesDefault, routesWallet];
78

89
const getLangBasePath = () => {
@@ -38,7 +39,8 @@ router.beforeResolve((to, from, next) => {
3839
* this is a little hacky but utilizes intended purpose.
3940
* vue router notes: move on to the next hook in the pipeline. If no hooks are left, the navigation is confirmed.
4041
*/
41-
if (from.name !== 'AccessWallet') router.push({ name: 'AccessWallet' });
42+
if (from.name !== ROUTES_HOME.ACCESS_WALLET.NAME)
43+
router.push({ name: ROUTES_HOME.ACCESS_WALLET.NAME });
4244
} else {
4345
if (store.state.external.path !== '') {
4446
const localPath = store.state.external.path;

0 commit comments

Comments
 (0)