Skip to content

Commit 52b84bd

Browse files
committed
Merge #689: New admin tab for listing users
fdf80ba deps: [#658] updated libs to v3.1.0 (Mario) 8d606dd refactor: [#658] refactor function to display results properly (Mario) 87e32e5 refactor: [#658] removed unused code (Mario) dd35acb refactor: [#658] removed unused code (Mario) 07e3e0c refactor: [#658] styled palceholder user tab for the admin panel (Mario) 73a9bd1 feat: [#658] new user table component (Mario) 12dd5c8 feat: [#658] new function wrapper for getting all user profiles from the API (Mario) e406981 feat: [#658] placeholder admin tab for listing users (Mario) Pull request description: Resolves #658 ACKs for top commit: josecelano: ACK fdf80ba Tree-SHA512: 6635d80906c76295f7fae03961cf5308c3d1d73d9983fbbc4750e4c71b0e279f9f2e4ae93744c6febf5728275abcc4dfe7473f3a885f4d6969cc07e6e6a21464
2 parents 5c1350b + fdf80ba commit 52b84bd

File tree

5 files changed

+190
-22
lines changed

5 files changed

+190
-22
lines changed

components/user/UserTable.vue

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<template>
2+
<div class="flex flex-col w-full overflow-hidden rounded-lg border-base-content/20 rounded-2xl grow">
3+
<div class="flex flex-col overflow-x-auto whitespace-nowrap">
4+
<table class="text-center table-auto bg-base-200 ">
5+
<thead>
6+
<tr class="text-sm text-base-content/75">
7+
<th class="py-2 pl-6">
8+
Username
9+
</th>
10+
<th class="py-2 pl-6">
11+
Email
12+
</th>
13+
</tr>
14+
</thead>
15+
<tbody>
16+
<tr v-for="userProfile in userProfiles" class="text-sm bg-base-100">
17+
<td class="py-2 pl-6 ">
18+
{{ userProfile.username }}
19+
</td>
20+
<td class="py-2 pl-6 ">
21+
{{ userProfile.email }}
22+
</td>
23+
</tr>
24+
</tbody>
25+
</table>
26+
</div>
27+
</div>
28+
</template>
29+
30+
<script setup lang="ts">
31+
import type { TorrentListing, UserProfile } from "torrust-index-types-lib";
32+
33+
const props = defineProps({
34+
userProfiles: Array as PropType<Array<UserProfile>>
35+
});
36+
</script>

0 commit comments

Comments
 (0)