18
18
class =" px-2 py-0"
19
19
:color =" backgroundColor"
20
20
>
21
- <v-container
22
- fluid
23
- class =" px-0"
24
- >
21
+ <v-container fluid class =" px-0" >
25
22
<v-row dense >
26
- <v-col
27
- class =" d-flex align-center"
28
- cols =" 8"
29
- >
23
+ <v-col class =" d-flex align-center" cols =" 8" >
30
24
<!-- ===================================================================================== -->
31
25
<!-- Displays indicator if notification not read -->
32
26
<!-- ===================================================================================== -->
33
27
<div
34
28
v-if ="
35
29
$vuetify.breakpoint.smAndUp &&
36
- !notification.read &&
37
- showIndicator
30
+ !notification.read &&
31
+ showIndicator
38
32
"
39
33
:class =" [
40
34
getClasses(notification.status.value.toLowerCase()),
41
35
'indicator',
42
36
'ml-2',
43
37
'd-none',
44
- 'd-sm-flex',
38
+ 'd-sm-flex'
45
39
]"
46
40
/>
47
41
59
53
<!-- ===================================================================================== -->
60
54
<!-- Displays swap icons if it is a swap notification -->
61
55
<!-- ===================================================================================== -->
62
- <div
63
- v-else
64
- class =" d-flex flex-column currency-symbol ml-2"
65
- >
56
+ <div v-else class =" d-flex flex-column currency-symbol ml-2" >
66
57
<MewTokenContainer
67
58
:img ="
68
59
notification.fromObj.icon
130
121
</div >
131
122
</div >
132
123
</v-col >
133
- <v-col
134
- cols =" 4"
135
- class =" text-right pr-2"
136
- >
124
+ <v-col cols =" 4" class =" text-right pr-2" >
137
125
<mew-badge
138
126
:badge-title =" notification.type.string"
139
127
:badge-type =" getBadgeType"
148
136
</v-container >
149
137
</v-expansion-panel-header >
150
138
151
- <v-expansion-panel-content
152
- class =" pa-0"
153
- :color =" backgroundColor"
154
- >
139
+ <v-expansion-panel-content class =" pa-0" :color =" backgroundColor" >
155
140
<div class =" expanded-container capitalize" >
156
141
<v-container >
157
- <v-row
158
- v-for =" (detail, idx) in getDetails"
159
- :key =" idx"
160
- >
161
- <v-col
162
- cols =" 6"
163
- class =" textPrimary--text"
164
- >
142
+ <v-row v-for =" (detail, idx) in getDetails" :key =" idx" >
143
+ <v-col cols =" 6" class =" textPrimary--text" >
165
144
{{ detail.string }}:
166
145
</v-col >
167
146
<v-col
183
162
hide-icon
184
163
>
185
164
<template #activatorSlot =" { on } " >
186
- <a
187
- :href =" detail.link"
188
- target =" _blank"
189
- v-on =" on"
190
- >
165
+ <a :href =" detail.link" target =" _blank" v-on =" on" >
191
166
<mew-transform-hash :hash =" detail.value" />
192
167
</a >
193
168
</template >
@@ -221,7 +196,7 @@ export default {
221
196
MewBadge,
222
197
MewBlockie,
223
198
MewTransformHash,
224
- MewTooltip,
199
+ MewTooltip
225
200
},
226
201
props: {
227
202
/**
@@ -240,78 +215,78 @@ export default {
240
215
return {
241
216
txHash: {
242
217
value: ' ' ,
243
- string: ' ' ,
218
+ string: ' '
244
219
},
245
220
gasPrice: {
246
221
value: ' ' ,
247
- string: ' ' ,
222
+ string: ' '
248
223
},
249
224
gasLimit: {
250
225
value: ' ' ,
251
- string: ' ' ,
226
+ string: ' '
252
227
},
253
228
total: {
254
229
value: ' ' ,
255
- string: ' ' ,
230
+ string: ' '
256
231
},
257
232
from: {
258
233
value: ' ' ,
259
- string: ' ' ,
234
+ string: ' '
260
235
},
261
236
to: {
262
237
value: ' ' ,
263
- string: ' ' ,
238
+ string: ' '
264
239
},
265
240
amount: {
266
241
value: ' ' ,
267
- string: ' ' ,
242
+ string: ' '
268
243
},
269
244
timestamp: {
270
245
value: ' ' ,
271
- string: ' ' ,
246
+ string: ' '
272
247
},
273
248
status: {
274
249
value: ' ' ,
275
- string: ' ' ,
250
+ string: ' '
276
251
},
277
252
type: {
278
253
value: ' ' ,
279
- string: ' ' ,
254
+ string: ' '
280
255
},
281
256
fromObj: {
282
257
currency: ' ' ,
283
258
amount: ' ' ,
284
- icon: ' ' ,
259
+ icon: ' '
285
260
},
286
261
toObj: {
287
262
currency: ' ' ,
288
263
amount: ' ' ,
289
264
icon: ' ' ,
290
- to: ' ' ,
265
+ to: ' '
291
266
},
292
- read: false ,
267
+ read: false
293
268
};
294
- },
269
+ }
295
270
},
296
271
showIndicator: {
297
272
type: Boolean ,
298
- default: true ,
299
- },
273
+ default: true
274
+ }
300
275
},
301
276
data () {
302
277
return {
303
278
ethTokenPlaceholder: ethTokenPlaceholder,
304
279
txTypes: {
305
280
in: ' txIn' ,
306
281
out: ' txOut' ,
307
- swap: ' swap' ,
282
+ swap: ' swap'
308
283
},
309
284
txStatusOptions: {
310
285
success: ' success' ,
311
286
pending: ' pending' ,
312
- failed: ' failed' ,
287
+ failed: ' failed'
313
288
},
314
- hashType: ' Transaction Hash' ,
289
+ hashType: ' Transaction Hash'
315
290
};
316
291
},
317
292
computed: {
@@ -326,13 +301,16 @@ export default {
326
301
: this .notification .toObj .amount ;
327
302
},
328
303
backgroundColor () {
304
+ if (this .$vuetify .theme .dark ) {
305
+ return ' buttonGrayLight' ;
306
+ }
329
307
if (this .notification .status .value == this .txStatusOptions .pending ) {
330
308
return ' warning' ;
331
309
}
332
310
if (this .notification .status .value == this .txStatusOptions .failed ) {
333
311
return ' error lighten-1' ;
334
312
}
335
- return ' superPrimary ' ;
313
+ return ' buttonGrayLight ' ;
336
314
},
337
315
getBadgeType () {
338
316
const type = this .notification .type .value .toLowerCase ();
@@ -346,7 +324,7 @@ export default {
346
324
' gasLimit' ,
347
325
' total' ,
348
326
' timestamp' ,
349
- ' status' ,
327
+ ' status'
350
328
];
351
329
for (const key in this .notification ) {
352
330
if (detailTypes .indexOf (key) >= 0 ) {
@@ -357,7 +335,7 @@ export default {
357
335
},
358
336
isSwap () {
359
337
return this .notification .type .value .toLowerCase () === this .txTypes .swap ;
360
- },
338
+ }
361
339
},
362
340
methods: {
363
341
isHash (type ) {
@@ -393,8 +371,8 @@ export default {
393
371
}
394
372
return ' failed-type' ;
395
373
}
396
- },
397
- },
374
+ }
375
+ }
398
376
};
399
377
</script >
400
378
1 commit comments
github-actions[bot] commentedon Jan 24, 2023
Copy of this build can be found at
https://mewcomponents.mewbuilds.com/bd2acecce25a5c2ded606eeb88a362f5d94269fc/index.html
https://www.cloudflare-ipfs.com/ipfs/
Virus Total analysis
https://www.virustotal.com/gui/file/69c9cdb1d384283552fa0d4f2c0de5d0af8732455c7dcd35b96708307733e3a1