Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #26

Merged
merged 2 commits into from
Oct 8, 2019
Merged

Dev #26

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions src/components/EventShowCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,34 @@
size="is-small"
type="is-toggle"
>
<b-tab-item label="Decoded">
<b-table :data="data">
<template slot-scope="props">
<b-table-column width="70" label="#" field="id">{{props.row.id}}</b-table-column>
<b-table-column width="170" label="Name" field="name">{{props.row.name}}</b-table-column>
<b-table-column width="220" label="Type" field="type">
{{props.row.type}}
<sup
style="padding: 2px 5px; border-radius: 3px; font-size: 11px"
class="has-background-primary has-text-light"
v-if="props.row.indexed"
>indexed</sup>
</b-table-column>
<b-table-column label="Data" field="value">
<a
v-if="props.row.type === 'address'"
target="_blank"
class="has-text-weight-semibold is-family-monospace display-6"
:href="`https://insight.vecha.in/#/accounts/${props.row.value}`"
>{{props.row.value | toChecksumAddress}}</a>
<span
v-else
class="has-text-weight-semibold is-family-monospace display-6 has-text-grey"
>{{props.row.value}}</span>
</b-table-column>
</template>
</b-table>
</b-tab-item>
<b-tab-item label="Raw">
<div>
<b-field
Expand All @@ -53,7 +81,7 @@
<li
class="is-family-monospace display-6 has-text-grey has-text-weight-semibold"
v-for="(topic, i) in item.topics"
:key="i"
:key="item.meta.blockID + i"
>
<span>[{{i}}]</span>
{{topic}}
Expand All @@ -73,34 +101,6 @@
</b-field>
</div>
</b-tab-item>
<b-tab-item label="Decoded">
<b-table :data="data">
<template slot-scope="props">
<b-table-column width="70" label="#" field="id">{{props.row.id}}</b-table-column>
<b-table-column width="170" label="Name" field="name">{{props.row.name}}</b-table-column>
<b-table-column width="220" label="Type" field="type">
{{props.row.type}}
<sup
style="padding: 2px 5px; border-radius: 3px; font-size: 11px"
class="has-background-primary has-text-light"
v-if="props.row.indexed"
>indexed</sup>
</b-table-column>
<b-table-column label="Data" field="value">
<a
v-if="props.row.type === 'address'"
target="_blank"
class="has-text-weight-semibold is-family-monospace display-6"
:href="`https://insight.vecha.in/#/accounts/${props.row.value}`"
>{{props.row.value | toChecksumAddress}}</a>
<span
v-else
class="has-text-weight-semibold is-family-monospace display-6 has-text-grey"
>{{props.row.value}}</span>
</b-table-column>
</template>
</b-table>
</b-tab-item>
</b-tabs>
</div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions src/views/FilterView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
</div>
</div>
</nav>
<b-loading :is-full-page="false" :active.sync="isLoading" :can-cancel="true"></b-loading>
<b-loading class="log-loading" :is-full-page="false" :active.sync="isLoading" :can-cancel="true"></b-loading>
<template v-for="(item, i) in list">
<EventShowCard :item="item" :key="i" :params="abi.inputs">
<EventShowCard :item="item" :key="item.meta.txID + page.num" :params="abi.inputs">
<span slot="title">#{{page.num * page.size + i + 1}}</span>
</EventShowCard>
</template>
Expand Down Expand Up @@ -140,6 +140,7 @@ export default class FilterView extends Vue {
this.getList(this.page.num)
}
}

private nextPage() {
this.page.num++
this.getList(this.page.num)
Expand Down Expand Up @@ -196,4 +197,7 @@ export default class FilterView extends Vue {
.block-range.field-label {
width: 100px;
}
.log-container .log-loading{
z-index: 111;
}
</style>