fix: audit
This commit is contained in:
parent
9f8aad114c
commit
b91b81f5c9
21 changed files with 140 additions and 53 deletions
|
@ -69,6 +69,7 @@
|
|||
v-if="txDepositInfo.txHash"
|
||||
:href="txExplorerUrl(txDepositInfo.txHash)"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="value"
|
||||
:data-value="txDepositInfo.txHash"
|
||||
>
|
||||
|
@ -82,6 +83,7 @@
|
|||
v-if="txDepositInfo.txHash"
|
||||
:href="addressExplorerUrl(txDepositInfo.from)"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="value"
|
||||
>
|
||||
{{ txDepositInfo.from }}
|
||||
|
@ -155,6 +157,7 @@
|
|||
v-if="txWithdrawalInfo.txHash"
|
||||
:href="txExplorerUrl(txWithdrawalInfo.txHash)"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="value"
|
||||
:data-value="txWithdrawalInfo.txHash"
|
||||
>
|
||||
|
@ -168,6 +171,7 @@
|
|||
v-if="txWithdrawalInfo.to"
|
||||
:href="addressExplorerUrl(txWithdrawalInfo.to)"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="value"
|
||||
>
|
||||
{{ txWithdrawalInfo.to }}
|
||||
|
|
|
@ -13,6 +13,22 @@
|
|||
<i18n path="binanceInternalTxsNotification" />
|
||||
</b-notification>
|
||||
|
||||
<b-notification
|
||||
:active="isActiveNotification.third"
|
||||
class="main-notification"
|
||||
type="is-warning"
|
||||
icon-pack="icon"
|
||||
has-icon
|
||||
:aria-close-label="$t('closeNotification')"
|
||||
@close="disableNotification({ key: 'third' })"
|
||||
>
|
||||
<i18n path="trustBanner.trustLess">
|
||||
<template v-slot:link>
|
||||
<a href="https://tornado.cash/">{{ $t('trustBanner.link') }}</a>
|
||||
</template>
|
||||
</i18n>
|
||||
</b-notification>
|
||||
|
||||
<b-notification
|
||||
:active="isActiveNotification.first"
|
||||
class="main-notification"
|
||||
|
@ -27,7 +43,7 @@
|
|||
<a
|
||||
href="https://twitter.com/TornadoCash/status/1204745639759884289"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
rel="noopener noreferrer"
|
||||
>{{ $t('indexNotificationLinkText') }}</a
|
||||
>
|
||||
</template>
|
||||
|
@ -82,21 +98,20 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.$store.dispatch('application/setNativeCurrency', { netId: this.netId })
|
||||
},
|
||||
mounted() {
|
||||
if (this.$route.query.note) {
|
||||
this.activeTab = 1
|
||||
}
|
||||
this.checkIsTrustedUrl()
|
||||
},
|
||||
methods: {
|
||||
...mapActions('settings', ['disableNotification']),
|
||||
checkIsTrustedUrl() {
|
||||
const isIpfs = this.$isLoadedFromIPFS()
|
||||
if (!isIpfs) {
|
||||
this.disableNotification({ key: 'third' })
|
||||
}
|
||||
},
|
||||
onGetKey(fn) {
|
||||
this.getKeys = fn
|
||||
},
|
||||
async tabChanged(tabIndex) {
|
||||
if (!this.$route.query.note) {
|
||||
this.$root.$emit('resetWithdraw')
|
||||
}
|
||||
if (tabIndex === 1) {
|
||||
this.$store.dispatch('relayer/pickRandomRelayer', { type: 'tornado' })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue