Skip to content

Commit 6034d69

Browse files
committedFeb 20, 2024
Merge #472: Update dependencies
64a6725 chore(deps): update dependencies (Jose Celano) Pull request description: Update dependencies. ACKs for top commit: josecelano: ACK 64a6725 Tree-SHA512: b4e8f89a9c8083bfb8f86f84832e58e43620bc15478f46fa3fe2768fdaa2cc076478ce1b0bec96d3508a9cef08df9a7bde3430ec390069f96aad5308e7e1df4b
2 parents d06c001 + 64a6725 commit 6034d69

35 files changed

+5054
-4896
lines changed
 

‎app.vue

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
<script setup lang="ts">
2222
import { getCategories, getSettings, getTags, getUser, onBeforeMount, onMounted } from "#imports";
23-
import Footer from "~/components/navigation/Footer.vue";
2423
import Notifications from "~/components/Notifications.vue";
2524
2625
onBeforeMount(() => {

‎components/TorrustSelect.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</template>
7373

7474
<script setup lang="ts">
75-
import { ref, watch, PropType, onBeforeUnmount, computed } from "vue";
75+
import { ref, watch, type PropType, onBeforeUnmount, computed } from "vue";
7676
import { CheckIcon, ChevronDownIcon } from "@heroicons/vue/20/solid";
7777
import { onMounted } from "../.nuxt/imports";
7878

‎components/authentication/AuthenticationForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</template>
3434

3535
<script setup lang="ts">
36-
import { Ref } from "vue";
36+
import { type Ref } from "vue";
3737
import { notify } from "notiwind-ts";
3838
import { loginUser, ref } from "#imports";
3939

‎components/navigation/NavigationBar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<script setup lang="ts">
110110
import { UserCircleIcon, Bars3Icon, MagnifyingGlassIcon } from "@heroicons/vue/24/solid";
111111
import { ChevronDownIcon } from "@heroicons/vue/20/solid";
112-
import { Ref } from "vue";
112+
import { type Ref } from "vue";
113113
import { ref, useSettings, useUser, logoutUser } from "#imports";
114114
115115
const settings = useSettings();

‎components/registration/RegistrationForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</template>
5858

5959
<script setup lang="ts">
60-
import { Ref } from "vue";
60+
import { type Ref } from "vue";
6161
import { EmailOnSignup } from "torrust-index-types-lib";
6262
import { notify } from "notiwind-ts";
6363
import { ref, useRestApi, useSettings } from "#imports";

‎components/torrent/TorrentActionCard.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@
148148

149149
<script setup lang="ts">
150150
import { LinkIcon, CalendarIcon, CircleStackIcon, UserCircleIcon, HashtagIcon, TagIcon } from "@heroicons/vue/24/solid";
151-
import { PropType } from "vue";
152-
import { TorrentResponse } from "torrust-index-types-lib";
151+
import type { PropType } from "vue";
152+
import type { TorrentResponse } from "torrust-index-types-lib";
153153
import { notify } from "notiwind-ts";
154154
import {
155155
fileSize,

‎components/torrent/TorrentCommentTab.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
<script setup lang="ts">
2828
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
29-
import { TorrentResponse } from "torrust-index-types-lib";
30-
import { PropType } from "vue";
29+
import type { TorrentResponse } from "torrust-index-types-lib";
30+
import type { PropType } from "vue";
3131
import { ref } from "#imports";
3232
import Markdown from "~/components/Markdown.vue";
3333

‎components/torrent/TorrentCreatedByTab.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
<script setup lang="ts">
2828
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
29-
import { TorrentResponse } from "torrust-index-types-lib";
30-
import { PropType } from "vue";
29+
import type { TorrentResponse } from "torrust-index-types-lib";
30+
import type { PropType } from "vue";
3131
import { ref } from "#imports";
3232
import Markdown from "~/components/Markdown.vue";
3333

‎components/torrent/TorrentCreationDateTab.vue

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<template v-if="!collapsed">
1515
<div class="flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl">
1616
<template v-if="torrent.creation_date">
17-
{{ formatedDateFromTimestamp }}
17+
{{ formattedDateFromTimestamp }}
1818
</template>
1919
<template v-else>
2020
<span class="italic text-neutral-content">No creation date provided.</span>
@@ -26,10 +26,9 @@
2626

2727
<script setup lang="ts">
2828
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
29-
import { TorrentResponse } from "torrust-index-types-lib";
30-
import { PropType } from "vue";
29+
import type { TorrentResponse } from "torrust-index-types-lib";
30+
import type { PropType } from "vue";
3131
import { ref } from "#imports";
32-
import Markdown from "~/components/Markdown.vue";
3332
import { formatTimestamp } from "~/src/helpers/DateConverter";
3433
3534
const collapsed = ref(false);
@@ -41,7 +40,7 @@ const props = defineProps({
4140
}
4241
});
4342
44-
const formatedDateFromTimestamp = formatTimestamp(props.torrent.creation_date);
43+
const formattedDateFromTimestamp = formatTimestamp(props.torrent.creation_date);
4544
4645
</script>
4746

‎components/torrent/TorrentDescriptionTab.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
<script setup lang="ts">
2828
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
29-
import { TorrentResponse } from "torrust-index-types-lib";
30-
import { PropType } from "vue";
29+
import type { TorrentResponse } from "torrust-index-types-lib";
30+
import type { PropType } from "vue";
3131
import { ref } from "#imports";
3232
import Markdown from "~/components/Markdown.vue";
3333

‎components/torrent/TorrentDetails.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343

4444
<script setup lang="ts">
4545
import { ChevronLeftIcon } from "@heroicons/vue/24/solid";
46-
import { Ref } from "vue";
47-
import { TorrentResponse } from "torrust-index-types-lib";
46+
import type { Ref } from "vue";
47+
import type { TorrentResponse } from "torrust-index-types-lib";
4848
import { notify } from "notiwind-ts";
4949
import { useRoute, navigateTo, ref, useRestApi } from "#imports";
5050
import TorrentActionCard from "~/components/torrent/TorrentActionCard.vue";

‎components/torrent/TorrentEncodingTab.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
<script setup lang="ts">
2828
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
29-
import { TorrentResponse } from "torrust-index-types-lib";
30-
import { PropType } from "vue";
29+
import type { TorrentResponse } from "torrust-index-types-lib";
30+
import type { PropType } from "vue";
3131
import { ref } from "#imports";
3232
import Markdown from "~/components/Markdown.vue";
3333

‎components/torrent/TorrentFilesTab.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@
3939
</template>
4040

4141
<script setup lang="ts">
42-
import { CircleStackIcon } from "@heroicons/vue/24/outline";
4342
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
44-
import { PropType } from "vue";
45-
import { TorrentResponse } from "torrust-index-types-lib";
43+
import type { PropType } from "vue";
44+
import type { TorrentResponse } from "torrust-index-types-lib";
4645
import { ref, fileSize } from "#imports";
4746
4847
const collapsed = ref(false);

‎components/torrent/TorrentList.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<script setup lang="ts">
5353
import { ArrowDownTrayIcon, LinkIcon } from "@heroicons/vue/24/outline";
5454
import { ChevronRightIcon, ChevronDownIcon } from "@heroicons/vue/20/solid";
55-
import { PropType, watch } from "vue";
56-
import { TorrentListing } from "torrust-index-types-lib";
55+
import { type PropType, watch } from "vue";
56+
import type { TorrentListing } from "torrust-index-types-lib";
5757
import { fileSize, timeSince, ref, downloadTorrent } from "#imports";
5858
5959
const props = defineProps({

‎components/torrent/TorrentListTorrentDetails.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
</template>
1616

1717
<script setup lang="ts">
18-
import { Ref } from "vue";
19-
import { TorrentResponse } from "torrust-index-types-lib";
18+
import { type Ref } from "vue";
19+
import { type TorrentResponse } from "torrust-index-types-lib";
2020
import { notify } from "notiwind-ts";
2121
import { onMounted, ref, useRestApi } from "#imports";
2222
import { generateSlug } from "~/src/domain/services/slug";
@@ -36,10 +36,10 @@ const slug = computed(() => generateSlug(torrent.value.title));
3636
3737
onMounted(() => {
3838
rest.value.torrent.getTorrentInfo(props.infoHash)
39-
.then((data) => {
39+
.then((data: TorrentResponse) => {
4040
torrent.value = data;
4141
})
42-
.catch((err) => {
42+
.catch((err: { message: any; }) => {
4343
notify({
4444
group: "error",
4545
title: "Error",

‎components/torrent/TorrentTable.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252

5353
<script setup lang="ts">
5454
import { ArrowDownTrayIcon, LinkIcon } from "@heroicons/vue/24/outline";
55-
import { PropType, watch } from "vue";
56-
import { TorrentListing } from "torrust-index-types-lib";
55+
import { type PropType, watch } from "vue";
56+
import type { TorrentListing } from "torrust-index-types-lib";
5757
import { fileSize, timeSince, ref, downloadTorrent } from "#imports";
5858
5959
const props = defineProps({

‎components/torrent/TorrentTrackersTab.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939

4040
<script setup lang="ts">
4141
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
42-
import { PropType } from "vue";
43-
import { TorrentResponse } from "torrust-index-types-lib";
42+
import type { PropType } from "vue";
43+
import type { TorrentResponse } from "torrust-index-types-lib";
4444
import { ref } from "#imports";
4545
4646
const collapsed = ref(false);

‎composables/states.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PublicSettings, Category, TokenResponse, TorrentTag } 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";

‎cypress/e2e/contexts/torrent/specs/details/magnet_link.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RegistrationForm, random_user_registration_data } from "../../../user/registration";
1+
import { type RegistrationForm, random_user_registration_data } from "../../../user/registration";
22
import { generateRandomTestTorrentInfo } from "../../test_torrent_info";
33

44
describe("A guest user", () => {

‎cypress/e2e/contexts/torrent/specs/download.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RegistrationForm, random_user_registration_data } from "../../user/registration";
1+
import { type RegistrationForm, random_user_registration_data } from "../../user/registration";
22
import { parseInfoHash } from "../api";
33
import { generateRandomTestTorrentInfo } from "../test_torrent_info";
44

‎cypress/e2e/contexts/torrent/specs/list/magnet_link.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RegistrationForm, random_user_registration_data } from "../../../user/registration";
1+
import { type RegistrationForm, random_user_registration_data } from "../../../user/registration";
22
import { generateRandomTestTorrentInfo } from "../../test_torrent_info";
33

44
describe("A guest user", () => {

‎cypress/e2e/contexts/torrent/specs/list/no_torrents_to_display.cy.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { baseURL } from "nuxt/dist/core/runtime/nitro/paths";
2-
31
describe("Users", () => {
42
before(() => {
53
// Deletes all torrents and their related info from the database so the test can pass

‎cypress/e2e/contexts/torrent/specs/upload.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RegistrationForm, random_user_registration_data } from "../../user/registration";
1+
import { type RegistrationForm, random_user_registration_data } from "../../user/registration";
22
import { parseInfoHash } from "../api";
33
import { generateRandomTestTorrentInfo } from "../test_torrent_info";
44

‎cypress/e2e/contexts/torrent/tasks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Custom tasks for user context
22

3-
import { DatabaseConfig, DatabaseQuery, runDatabaseQuery } from "../../common/database";
3+
import { type DatabaseConfig, type DatabaseQuery, runDatabaseQuery } from "../../common/database";
44

55
// Task to grant admin role to a user by username
66
export const deleteTorrent = async (infohash: string, db_config: DatabaseConfig): Promise<boolean> => {

‎cypress/e2e/contexts/user/tasks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Custom tasks for user context
22

3-
import { DatabaseConfig, DatabaseQuery, runDatabaseQuery } from "../../common/database";
3+
import { type DatabaseConfig, type DatabaseQuery, runDatabaseQuery } from "../../common/database";
44

55
// Task to grant admin role to a user by username
66
export const grantAdminRole = async (username: string, db_config: DatabaseConfig): Promise<number> => {

‎cypress/support/commands.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import "../e2e/contexts/user/commands";
22
import "../e2e/contexts/torrent/commands";
33
import "../e2e/contexts/category/commands";
44
import "../e2e/common/commands";
5-
import { TestTorrentInfo } from "../e2e/contexts/torrent/test_torrent_info";
6-
import { RegistrationForm } from "../e2e/contexts/user/registration";
5+
import type { TestTorrentInfo } from "../e2e/contexts/torrent/test_torrent_info";
6+
import type { RegistrationForm } from "../e2e/contexts/user/registration";
77

88
declare global {
99
namespace Cypress {

0 commit comments

Comments
 (0)