-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add top users to emote statistic
- Loading branch information
Showing
10 changed files
with
276 additions
and
49 deletions.
There are no files selected for viewing
89 changes: 67 additions & 22 deletions
89
apps/api-gql/internal/gql/resolvers/emotes-statistic.resolver.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../community-emotes-statistic/components/community-emotes-details-content-users-history.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script setup lang="ts"> | ||
import { NScrollbar } from 'naive-ui' | ||
import { storeToRefs } from 'pinia' | ||
import Pagination from '@/components/pagination.vue' | ||
import Table from '@/components/table.vue' | ||
import { | ||
useCommunityEmotesDetails, | ||
} from '@/features/community-emotes-statistic/composables/use-community-emotes-details' | ||
import { | ||
useCommunityEmotesDetailsUsersHistory, | ||
} from '@/features/community-emotes-statistic/composables/use-community-emotes-details-users-history' | ||
const { isLoading, usagesPagination } = storeToRefs(useCommunityEmotesDetails()) | ||
const users = useCommunityEmotesDetailsUsersHistory() | ||
</script> | ||
|
||
<template> | ||
<div class="flex flex-col w-full gap-4"> | ||
<Pagination | ||
:total="users.total" | ||
:table="users.table" | ||
:pagination="usagesPagination" | ||
@update:page="(page) => usagesPagination.pageIndex = page" | ||
@update:page-size="(pageSize) => usagesPagination.pageSize = pageSize" | ||
/> | ||
|
||
<NScrollbar style="max-height: 400px;" trigger="none"> | ||
<Table :table="users.table" :is-loading="isLoading" hide-header> | ||
<template #empty-message> | ||
Empty | ||
</template> | ||
</Table> | ||
</NScrollbar> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.