You've already forked AstralRinth
forked from didirus/AstralRinth
* Begin UI for threads and moderation overhaul * Hide close button on non-report threads * Fix review age coloring * Add project count * Remove action buttons from queue page and add queued date to project page * Hook up to actual data * Remove unused icon * Get up to 1000 projects in queue * prettier * more prettier * Changed all the things * lint * rebuild * Add omorphia * Workaround formatjs bug in ThreadSummary.vue * Fix notifications page on prod * Fix a few notifications and threads bugs * lockfile * Fix duplicate button styles * more fixes and polishing * More fixes * Remove legacy pages * More bugfixes * Add some error catching for reports and notifications * More error handling * fix lint * Add inbox links * Remove loading component and rename member header * Rely on threads always existing * Handle if project update notifs are not grouped * oops * Fix chips on notifications page * Import ModalModeration * finish threads * New authentication (#1234) * Initial new auth work * more auth pages * Finish most * more * fix on landing page * Finish everything but PATs + Sessions * fix threads merge bugs * fix cf pages ssr * fix most issues * Finish authentication * Fix merge --------- Co-authored-by: triphora <emma@modrinth.com> Co-authored-by: Jai A <jaiagr+gpg@pm.me> Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
136 lines
3.1 KiB
Vue
136 lines
3.1 KiB
Vue
<template>
|
|
<div>
|
|
<section class="universal-card payout-history">
|
|
<Breadcrumbs
|
|
current-title="Transfer history"
|
|
:link-stack="[{ href: '/dashboard/revenue', label: 'Revenue' }]"
|
|
/>
|
|
<h2>Transfer history</h2>
|
|
<p>
|
|
All of your transfers from your Modrinth balance to your PayPal or Venmo accounts will be
|
|
listed here:
|
|
</p>
|
|
<div class="grid-table">
|
|
<div class="grid-table__row grid-table__header">
|
|
<div class="desktop">Date</div>
|
|
<div class="desktop">Status</div>
|
|
<div class="desktop">Amount</div>
|
|
<div class="mobile">Transaction</div>
|
|
</div>
|
|
<div
|
|
v-for="(payout, index) in payouts.payouts.filter((x) => x.status === 'success')"
|
|
:key="`payout-${index}`"
|
|
class="grid-table__row"
|
|
>
|
|
<div>{{ $dayjs(payout.created).format('MMMM D, YYYY [at] h:mm A') }}</div>
|
|
<div><Badge :type="payout.status" /></div>
|
|
<div class="amount">{{ $formatMoney(payout.amount) }}</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</template>
|
|
<script setup>
|
|
import Badge from '~/components/ui/Badge.vue'
|
|
import Breadcrumbs from '~/components/ui/Breadcrumbs.vue'
|
|
|
|
useHead({
|
|
title: 'Transfer history - Modrinth',
|
|
})
|
|
|
|
const auth = await useAuth()
|
|
|
|
const { data: payouts } = await useAsyncData(`user/${auth.value.user.id}/payouts`, () =>
|
|
useBaseFetch(`user/${auth.value.user.id}/payouts`)
|
|
)
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.grid-table {
|
|
display: grid;
|
|
grid-template-columns: auto auto auto;
|
|
border-radius: var(--size-rounded-sm);
|
|
overflow: hidden;
|
|
margin-top: var(--spacing-card-md);
|
|
|
|
.grid-table__header {
|
|
.mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.grid-table__row {
|
|
display: contents;
|
|
|
|
> div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: var(--spacing-card-sm);
|
|
|
|
// Left edge of table
|
|
&:first-child,
|
|
&.mobile {
|
|
padding-left: var(--spacing-card-bg);
|
|
}
|
|
|
|
// Right edge of table
|
|
&:last-child {
|
|
padding-right: var(--spacing-card-bg);
|
|
}
|
|
}
|
|
|
|
&:nth-child(2n + 1) > div {
|
|
background-color: var(--color-table-alternate-row);
|
|
}
|
|
|
|
> div {
|
|
padding-top: var(--spacing-card-bg);
|
|
padding-bottom: var(--spacing-card-bg);
|
|
}
|
|
|
|
&.grid-table__header > div {
|
|
background-color: var(--color-bg);
|
|
font-weight: bold;
|
|
color: var(--color-text-dark);
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 560px) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
.grid-table__row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
> div {
|
|
padding: var(--spacing-card-xs) var(--spacing-card-bg);
|
|
|
|
&:first-child,
|
|
&.mobile {
|
|
padding-top: var(--spacing-card-bg);
|
|
}
|
|
|
|
&:last-child,
|
|
&.mobile {
|
|
padding-bottom: var(--spacing-card-bg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.grid-table__header {
|
|
.mobile {
|
|
display: flex;
|
|
}
|
|
.desktop {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.amount {
|
|
color: var(--color-heading);
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
</style>
|