Skip to content

Commit 63b41b2

Browse files
committed
refactor: [#658] removed unused code
1 parent 00bea6e commit 63b41b2

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

components/user/UserTable.vue

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,9 @@
2727
</div>
2828
</template>
2929

30-
<!-- <template>
31-
<div class="flex flex-col max-w-md gap-2 mx-auto">
32-
<div class="flex flex-col gap-2">
33-
<template v-for="userProfile in userProfiles">
34-
<div class="flex justify-between p-2 rounded bg-base-100">
35-
<span class="text-base-content">{{ userProfile.username }} ({{ userProfile.email }})</span>
36-
</div>
37-
</template>
38-
</div>
39-
</div>
40-
</template> -->
41-
4230
<script setup lang="ts">
4331
import type { TorrentListing, UserProfile } from "torrust-index-types-lib";
4432
45-
/* import { ArrowDownTrayIcon, LinkIcon, EyeIcon } from "@heroicons/vue/24/outline";
46-
import { type PropType, watch } from "vue";
47-
import type { TorrentListing } from "torrust-index-types-lib";
48-
import { fileSizeDecimal, fileSizeBinary, timeSince, ref, downloadTorrent } from "#imports";
49-
50-
const isOpenList = ref([]);
51-
52-
watch(
53-
() => props.torrents,
54-
(torrents) => {
55-
isOpenList.value = new Array(torrents.length).fill(false);
56-
},
57-
{ immediate: true }
58-
);
59-
60-
function toggleOpen (index: number) {
61-
isOpenList.value[index] = !isOpenList.value[index];
62-
} */
63-
6433
const props = defineProps({
6534
userProfiles: Array as PropType<Array<UserProfile>>
6635
});

composables/states.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PublicSettings, Category, TokenResponse, TorrentTag, UserProfile } from "torrust-index-types-lib";
1+
import type { PublicSettings, Category, TokenResponse, TorrentTag } from "torrust-index-types-lib";
22
import { Rest } from "torrust-index-api-lib";
33
import { notify } from "notiwind-ts";
44
import { useRuntimeConfig, useState } from "#imports";

pages/admin/settings/users.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import type { Ref } from "vue";
1212
import { notify } from "notiwind-ts";
1313
import type { UserProfile } from "torrust-index-types-lib";
14-
import { computed, onMounted, ref, useTags, watch } from "#imports";
14+
import { onMounted, ref, watch } from "#imports";
1515
import { useRestApi } from "~/composables/states";
1616
1717
const route = useRoute();
@@ -51,11 +51,6 @@ onMounted(() => {
5151
});
5252
5353
function loadUserProfiles () {
54-
const query = {
55-
pageSize: pageSize.value,
56-
page: currentPage.value
57-
};
58-
5954
rest.value.user.getUserProfiles(
6055
{
6156
pageSize: pageSize.value,

0 commit comments

Comments
 (0)