Skip to content

Commit

Permalink
adjustments for renamed endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiwo committed Apr 22, 2021
1 parent fbb2671 commit 4550e6d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/components/TipInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/>
</Component>
<Dropdown
v-if="!userAddress && tipUrlStats && tipUrlStats.tokenTotalAmount.length"
v-if="!userAddress && tipUrlStats && tipUrlStats.tokenTotalAmount.length > (tipAmount.token ? 1 : 0)"
v-slot="{ option }"
:options="tipUrlStats.tokenTotalAmount"
show-right
Expand Down Expand Up @@ -115,8 +115,8 @@ export default {
const urlStats = stats && stats.urlStats.find(({ url }) => url === this.tipUrl);
return {
isTipped: urlStats ? urlStats.senders.includes(this.address) : false,
totalAmount: urlStats ? urlStats.totalamount : '0',
tokenTotalAmount: urlStats ? urlStats.totaltokenamount : [],
totalAmount: urlStats ? urlStats.totalAmount : '0',
tokenTotalAmount: urlStats ? urlStats.totalTokenAmount : [],
};
},
}),
Expand Down
6 changes: 3 additions & 3 deletions src/components/UserInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ export default {
tipStats() {
return [
{
value: this.userStats.totaltipslength,
value: this.userStats.totalTipsLength,
title: this.$t('views.UserProfileView.TipsSent'),
amount: this.userStats.totalamount,
amount: this.userStats.totalAmount,
},
{
value: this.userStats.urlStats?.totaltipslength,
title: this.$t('views.UserProfileView.TipsReceived'),
amount: this.userStats.urlStats?.totalamount,
amount: this.userStats.urlStats?.totalAmount,
},
];
},
Expand Down
8 changes: 4 additions & 4 deletions src/components/layout/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class="overview"
>
<div class="value">
{{ stats.totaltipslength }}
{{ stats.totalTipsLength }}
</div>
<div class="label">
{{ $t('components.layout.Overview.TipsAggregated') }}
Expand All @@ -18,22 +18,22 @@
</div>

<div class="value">
{{ stats.senderslength }}
{{ stats.sendersLength }}
</div>
<div class="label">
{{ $t('components.layout.Overview.UniqueTipSenders') }}
</div>

<AeAmountFiat
:amount="stats.totalamount"
:amount="stats.totalAmount"
class="value"
/>
<div class="label">
{{ $t('components.layout.Overview.TotalTipsValue') }}
</div>

<AeAmountFiat
:amount="stats.totalclaimedamount"
:amount="stats.totalClaimedAmount"
class="value"
/>
<div class="label">
Expand Down
10 changes: 5 additions & 5 deletions src/components/tipRecords/TipPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<Avatar :address="tip.receiver" />
<div class="tip-author_name">
<span class="chain-name">
{{ tip.ChainName.name }}
{{ tip.chainName.name }}
</span>
<span class="address">{{ tip.receiver }}</span>
</div>
Expand Down Expand Up @@ -183,16 +183,16 @@ export default {
}
},
tipPreviewDescription() {
return this.tip?.LinkPreview?.description || '';
return this.tip?.linkPreview?.description || '';
},
tipPreviewTitle() {
return this.tip?.LinkPreview?.title || '';
return this.tip?.linkPreview?.title || '';
},
tipPreviewImage() {
return this.isPreviewToBeVisualized && this.tip.LinkPreview.image !== null ? Backend.getTipPreviewUrl(this.tip.LinkPreview.image) : '';
return this.isPreviewToBeVisualized && this.tip.linkPreview.image !== null ? Backend.getTipPreviewUrl(this.tip.linkPreview.image) : '';
},
isPreviewToBeVisualized() {
return this.tip.LinkPreview?.description || this.tip.LinkPreview?.title;
return this.tip.linkPreview?.description || this.tip.linkPreview?.title;
},
richPreviewComponent() {
return [{
Expand Down
2 changes: 1 addition & 1 deletion src/components/tipRecords/TipRecord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<AuthorAndDate
:date="tip.timestamp"
:address="tip.sender"
:chain-name="tip.ChainName ? tip.ChainName.name : null"
:chain-name="tip.chainName ? tip.chainName.name : null"
>
<ThreeDotsMenu v-if="address">
<div @click="sendReport">
Expand Down
8 changes: 4 additions & 4 deletions src/views/Landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,29 +131,29 @@
>
<VueAos animation-class="animate__animated animate__delay-1s animate__fadeInUp">
<div class="sh-col-3 sm-text-box">
<h4>{{ stats.totaltipslength }}</h4>
<h4>{{ stats.totalTipsLength }}</h4>
<p>Tips aggregated</p>
</div>
</VueAos>
<VueAos animation-class="animate__animated animate__delay-2s animate__fadeInUp">
<div class="sh-col-3 sm-text-box">
<h4>
<AeAmount :amount="stats.totalamount" />
<AeAmount :amount="stats.totalAmount" />
</h4>
<p>Total Tips Value</p>
</div>
</VueAos>
<VueAos animation-class="animate__animated animate__delay-3s animate__fadeInUp">
<div class="sh-col-3 sm-text-box">
<h4>
<AeAmount :amount="stats.totalclaimedamount" />
<AeAmount :amount="stats.totalClaimedAmount" />
</h4>
<p>Total Tips Claimed</p>
</div>
</VueAos>
<VueAos animation-class="animate__animated animate__delay-4s animate__fadeInUp">
<div class="sh-col-3 sm-text-box">
<h4>{{ stats.senderslength }}</h4>
<h4>{{ stats.sendersLength }}</h4>
<p>Unique Tip Senders</p>
</div>
</VueAos>
Expand Down

0 comments on commit 4550e6d

Please sign in to comment.