Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0692216

Browse files
committedOct 12, 2022
chore: run lint, ignore e on mew input type number
1 parent f62a576 commit 0692216

File tree

5 files changed

+44
-9
lines changed

5 files changed

+44
-9
lines changed
 

‎CHANGELOG.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
1+
### devop
2+
3+
- ignore e on mew-input type number [#315](https://github.com/MyEtherWallet/mew-components/pull/315)
4+
15
### Release 1.3.7
6+
27
### devop
8+
39
- remove dapp btn capitalization [#313](https://github.com/MyEtherWallet/mew-components/pull/313)
410
- swap notification arrow alignment [#312](https://github.com/MyEtherWallet/mew-components/pull/312)
511
- address selector showing invalid identicon [#311](https://github.com/MyEtherWallet/mew-components/pull/311)
612
- tooltip alignment [#304](https://github.com/MyEtherWallet/mew-components/pull/304)
713

8-
914
### Release 1.3.5
15+
1016
### devop
17+
1118
- Remove text capital style from mew button [#306](https://github.com/MyEtherWallet/mew-components/pull/306)
1219

1320
### fix
21+
1422
- use token container for notification swap tokens [#307](https://github.com/MyEtherWallet/mew-components/pull/307)
1523
- ledger back button [#308](https://github.com/MyEtherWallet/mew-components/pull/308)
1624
- token display on tablet view [#309](https://github.com/MyEtherWallet/mew-components/pull/309)
1725

18-
1926
### Release 1.3.4
27+
2028
### devop
29+
2130
- allow users to hide address select save icon [#302](https://github.com/MyEtherWallet/mew-components/pull/302)
2231
- fix persistent hint [#303](https://github.com/MyEtherWallet/mew-components/pull/303)
2332

@@ -34,6 +43,7 @@
3443
### fix
3544

3645
- mew-address-select showing wrong identicon bug [#296](https://github.com/MyEtherWallet/mew-components/pull/296)
46+
3747
### Release 1.1.0
3848

3949
### devop

‎src/components/MewAddressSelect/MewAddressSelect.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@
8787
class="dropdown-icon-container d-flex align-center justify-center cursor-pointer full-height"
8888
@click="toggle"
8989
>
90-
<v-icon class="mew-heading-1 mx-5"> mdi-chevron-down </v-icon>
90+
<v-icon class="mew-heading-1 mx-5">
91+
mdi-chevron-down
92+
</v-icon>
9193
</div>
9294
</template>
9395

@@ -113,7 +115,10 @@
113115
v-if="!item.resolvedAddr || item.resolvedAddr === ''"
114116
:hash="item.address"
115117
/>
116-
<span v-else class="mew-address">{{ item.address }}</span>
118+
<span
119+
v-else
120+
class="mew-address"
121+
>{{ item.address }}</span>
117122
</div>
118123
<div class="overline primary--text font-weight-medium ml-3">
119124
{{ item.nickname }}

‎src/components/MewBlockie/MewBlockie.vue

+11-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,24 @@
1010
:src="blockieImg"
1111
alt="Blockie Image"
1212
style="display: block; border-radius: 50%"
13-
/>
13+
>
1414

1515
<!--
1616
=====================================================================
1717
Inset shadow on edge of blockie image
1818
=====================================================================
1919
-->
20-
<div v-if="!flat" class="inset-shadow" />
20+
<div
21+
v-if="!flat"
22+
class="inset-shadow"
23+
/>
2124
</div>
22-
<img v-if="currency" alt="icon" class="currency-icon" :src="currency" />
25+
<img
26+
v-if="currency"
27+
alt="icon"
28+
class="currency-icon"
29+
:src="currency"
30+
>
2331
</div>
2432
</template>
2533

‎src/components/MewInput/MewInput.vue

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
:append-icon="showPasswordIcon"
2525
:readonly="isReadOnly"
2626
@click:append="onPasswordIconClick"
27+
@keydown.native="preventCharE($event)"
2728
validate-on-blur
2829
height="62"
2930
>
@@ -328,6 +329,9 @@ export default {
328329
clear(val) {
329330
this.inputValue = val ? val : '';
330331
},
332+
preventCharE(e) {
333+
if (this.type === 'number' && e.key === 'e') e.preventDefault();
334+
},
331335
},
332336
};
333337
</script>

‎src/components/MewTooltip/MewTooltip.vue

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99
>
1010
<!-- Popover trigger -->
1111
<template #trigger>
12-
<v-icon v-if="!hideIcon" class="cursor-pointer" color="searchText" small>
12+
<v-icon
13+
v-if="!hideIcon"
14+
class="cursor-pointer"
15+
color="searchText"
16+
small
17+
>
1318
mdi-information
1419
</v-icon>
15-
<slot name="activatorSlot" class="d-flex" />
20+
<slot
21+
name="activatorSlot"
22+
class="d-flex"
23+
/>
1624
</template>
1725
<!-- Popover content -->
1826
<slot name="contentSlot" />