Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Feb 20, 2024
1 parent d06c001 commit 64a6725
Show file tree
Hide file tree
Showing 35 changed files with 5,054 additions and 4,896 deletions.
1 change: 0 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

<script setup lang="ts">
import { getCategories, getSettings, getTags, getUser, onBeforeMount, onMounted } from "#imports";
import Footer from "~/components/navigation/Footer.vue";
import Notifications from "~/components/Notifications.vue";
onBeforeMount(() => {
Expand Down
2 changes: 1 addition & 1 deletion components/TorrustSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</template>

<script setup lang="ts">
import { ref, watch, PropType, onBeforeUnmount, computed } from "vue";
import { ref, watch, type PropType, onBeforeUnmount, computed } from "vue";
import { CheckIcon, ChevronDownIcon } from "@heroicons/vue/20/solid";
import { onMounted } from "../.nuxt/imports";
Expand Down
2 changes: 1 addition & 1 deletion components/authentication/AuthenticationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script setup lang="ts">
import { Ref } from "vue";
import { type Ref } from "vue";
import { notify } from "notiwind-ts";
import { loginUser, ref } from "#imports";
Expand Down
2 changes: 1 addition & 1 deletion components/navigation/NavigationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<script setup lang="ts">
import { UserCircleIcon, Bars3Icon, MagnifyingGlassIcon } from "@heroicons/vue/24/solid";
import { ChevronDownIcon } from "@heroicons/vue/20/solid";
import { Ref } from "vue";
import { type Ref } from "vue";
import { ref, useSettings, useUser, logoutUser } from "#imports";
const settings = useSettings();
Expand Down
2 changes: 1 addition & 1 deletion components/registration/RegistrationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</template>

<script setup lang="ts">
import { Ref } from "vue";
import { type Ref } from "vue";
import { EmailOnSignup } from "torrust-index-types-lib";
import { notify } from "notiwind-ts";
import { ref, useRestApi, useSettings } from "#imports";
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentActionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@

<script setup lang="ts">
import { LinkIcon, CalendarIcon, CircleStackIcon, UserCircleIcon, HashtagIcon, TagIcon } from "@heroicons/vue/24/solid";
import { PropType } from "vue";
import { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import { notify } from "notiwind-ts";
import {
fileSize,
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentCommentTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<script setup lang="ts">
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { TorrentResponse } from "torrust-index-types-lib";
import { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import { ref } from "#imports";
import Markdown from "~/components/Markdown.vue";
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentCreatedByTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<script setup lang="ts">
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { TorrentResponse } from "torrust-index-types-lib";
import { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import { ref } from "#imports";
import Markdown from "~/components/Markdown.vue";
Expand Down
9 changes: 4 additions & 5 deletions components/torrent/TorrentCreationDateTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<template v-if="!collapsed">
<div class="flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl">
<template v-if="torrent.creation_date">
{{ formatedDateFromTimestamp }}
{{ formattedDateFromTimestamp }}
</template>
<template v-else>
<span class="italic text-neutral-content">No creation date provided.</span>
Expand All @@ -26,10 +26,9 @@

<script setup lang="ts">
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { TorrentResponse } from "torrust-index-types-lib";
import { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import { ref } from "#imports";
import Markdown from "~/components/Markdown.vue";
import { formatTimestamp } from "~/src/helpers/DateConverter";
const collapsed = ref(false);
Expand All @@ -41,7 +40,7 @@ const props = defineProps({
}
});
const formatedDateFromTimestamp = formatTimestamp(props.torrent.creation_date);
const formattedDateFromTimestamp = formatTimestamp(props.torrent.creation_date);
</script>

Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentDescriptionTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<script setup lang="ts">
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { TorrentResponse } from "torrust-index-types-lib";
import { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import { ref } from "#imports";
import Markdown from "~/components/Markdown.vue";
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

<script setup lang="ts">
import { ChevronLeftIcon } from "@heroicons/vue/24/solid";
import { Ref } from "vue";
import { TorrentResponse } from "torrust-index-types-lib";
import type { Ref } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import { notify } from "notiwind-ts";
import { useRoute, navigateTo, ref, useRestApi } from "#imports";
import TorrentActionCard from "~/components/torrent/TorrentActionCard.vue";
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentEncodingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<script setup lang="ts">
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { TorrentResponse } from "torrust-index-types-lib";
import { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import { ref } from "#imports";
import Markdown from "~/components/Markdown.vue";
Expand Down
5 changes: 2 additions & 3 deletions components/torrent/TorrentFilesTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@
</template>

<script setup lang="ts">
import { CircleStackIcon } from "@heroicons/vue/24/outline";
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { PropType } from "vue";
import { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import { ref, fileSize } from "#imports";
const collapsed = ref(false);
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<script setup lang="ts">
import { ArrowDownTrayIcon, LinkIcon } from "@heroicons/vue/24/outline";
import { ChevronRightIcon, ChevronDownIcon } from "@heroicons/vue/20/solid";
import { PropType, watch } from "vue";
import { TorrentListing } from "torrust-index-types-lib";
import { type PropType, watch } from "vue";
import type { TorrentListing } from "torrust-index-types-lib";
import { fileSize, timeSince, ref, downloadTorrent } from "#imports";
const props = defineProps({
Expand Down
8 changes: 4 additions & 4 deletions components/torrent/TorrentListTorrentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</template>

<script setup lang="ts">
import { Ref } from "vue";
import { TorrentResponse } from "torrust-index-types-lib";
import { type Ref } from "vue";
import { type TorrentResponse } from "torrust-index-types-lib";
import { notify } from "notiwind-ts";
import { onMounted, ref, useRestApi } from "#imports";
import { generateSlug } from "~/src/domain/services/slug";
Expand All @@ -36,10 +36,10 @@ const slug = computed(() => generateSlug(torrent.value.title));
onMounted(() => {
rest.value.torrent.getTorrentInfo(props.infoHash)
.then((data) => {
.then((data: TorrentResponse) => {
torrent.value = data;
})
.catch((err) => {
.catch((err: { message: any; }) => {
notify({
group: "error",
title: "Error",
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

<script setup lang="ts">
import { ArrowDownTrayIcon, LinkIcon } from "@heroicons/vue/24/outline";
import { PropType, watch } from "vue";
import { TorrentListing } from "torrust-index-types-lib";
import { type PropType, watch } from "vue";
import type { TorrentListing } from "torrust-index-types-lib";
import { fileSize, timeSince, ref, downloadTorrent } from "#imports";
const props = defineProps({
Expand Down
4 changes: 2 additions & 2 deletions components/torrent/TorrentTrackersTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

<script setup lang="ts">
import { ChevronDownIcon } from "@heroicons/vue/24/solid";
import { PropType } from "vue";
import { TorrentResponse } from "torrust-index-types-lib";
import type { PropType } from "vue";
import type { TorrentResponse } from "torrust-index-types-lib";
import { ref } from "#imports";
const collapsed = ref(false);
Expand Down
2 changes: 1 addition & 1 deletion composables/states.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PublicSettings, Category, TokenResponse, TorrentTag } from "torrust-index-types-lib";
import type { PublicSettings, Category, TokenResponse, TorrentTag } from "torrust-index-types-lib";
import { Rest } from "torrust-index-api-lib";
import { notify } from "notiwind-ts";
import { useRuntimeConfig, useState } from "#imports";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RegistrationForm, random_user_registration_data } from "../../../user/registration";
import { type RegistrationForm, random_user_registration_data } from "../../../user/registration";
import { generateRandomTestTorrentInfo } from "../../test_torrent_info";

describe("A guest user", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/contexts/torrent/specs/download.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RegistrationForm, random_user_registration_data } from "../../user/registration";
import { type RegistrationForm, random_user_registration_data } from "../../user/registration";
import { parseInfoHash } from "../api";
import { generateRandomTestTorrentInfo } from "../test_torrent_info";

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/contexts/torrent/specs/list/magnet_link.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RegistrationForm, random_user_registration_data } from "../../../user/registration";
import { type RegistrationForm, random_user_registration_data } from "../../../user/registration";
import { generateRandomTestTorrentInfo } from "../../test_torrent_info";

describe("A guest user", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { baseURL } from "nuxt/dist/core/runtime/nitro/paths";

describe("Users", () => {
before(() => {
// Deletes all torrents and their related info from the database so the test can pass
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/contexts/torrent/specs/upload.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RegistrationForm, random_user_registration_data } from "../../user/registration";
import { type RegistrationForm, random_user_registration_data } from "../../user/registration";
import { parseInfoHash } from "../api";
import { generateRandomTestTorrentInfo } from "../test_torrent_info";

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/contexts/torrent/tasks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Custom tasks for user context

import { DatabaseConfig, DatabaseQuery, runDatabaseQuery } from "../../common/database";
import { type DatabaseConfig, type DatabaseQuery, runDatabaseQuery } from "../../common/database";

// Task to grant admin role to a user by username
export const deleteTorrent = async (infohash: string, db_config: DatabaseConfig): Promise<boolean> => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/contexts/user/tasks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Custom tasks for user context

import { DatabaseConfig, DatabaseQuery, runDatabaseQuery } from "../../common/database";
import { type DatabaseConfig, type DatabaseQuery, runDatabaseQuery } from "../../common/database";

// Task to grant admin role to a user by username
export const grantAdminRole = async (username: string, db_config: DatabaseConfig): Promise<number> => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import "../e2e/contexts/user/commands";
import "../e2e/contexts/torrent/commands";
import "../e2e/contexts/category/commands";
import "../e2e/common/commands";
import { TestTorrentInfo } from "../e2e/contexts/torrent/test_torrent_info";
import { RegistrationForm } from "../e2e/contexts/user/registration";
import type { TestTorrentInfo } from "../e2e/contexts/torrent/test_torrent_info";
import type { RegistrationForm } from "../e2e/contexts/user/registration";

declare global {
namespace Cypress {
Expand Down
Loading

0 comments on commit 64a6725

Please sign in to comment.