fix: lint type import

This commit is contained in:
Julien Froidefond
2025-03-02 14:02:23 +01:00
parent e8386a4834
commit a4b521fe2e
78 changed files with 595 additions and 242 deletions

View File

@@ -1,7 +1,7 @@
/* eslint-disable @next/next/no-img-element */
"use client";
import { BookReaderProps } from "./types";
import type { BookReaderProps } from "./types";
import { useOrientation } from "./hooks/useOrientation";
import { usePageNavigation } from "./hooks/usePageNavigation";
import { usePageCache } from "./hooks/usePageCache";

View File

@@ -2,7 +2,7 @@
import { useState } from "react";
import { useRouter } from "next/navigation";
import { KomgaBook } from "@/types/komga";
import type { KomgaBook } from "@/types/komga";
import { BookReader } from "./BookReader";
import { Button } from "@/components/ui/button";

View File

@@ -1,6 +1,6 @@
"use client";
import { KomgaBook } from "@/types/komga";
import type { KomgaBook } from "@/types/komga";
import { BookReader } from "./BookReader";
import { useRouter } from "next/navigation";
import { ClientOfflineBookService } from "@/lib/services/client-offlinebook.service";

View File

@@ -1,4 +1,4 @@
import { ControlButtonsProps } from "../types";
import type { ControlButtonsProps } from "../types";
import {
ChevronLeft,
ChevronRight,

View File

@@ -1,4 +1,4 @@
import { NavigationBarProps } from "../types";
import type { NavigationBarProps } from "../types";
import { cn } from "@/lib/utils";
import { Thumbnail } from "./Thumbnail";
import { useThumbnails } from "../hooks/useThumbnails";

View File

@@ -1,4 +1,4 @@
import { ThumbnailProps } from "../types";
import type { ThumbnailProps } from "../types";
import { ImageLoader } from "@/components/ui/image-loader";
import { cn } from "@/lib/utils";
import Image from "next/image";

View File

@@ -1,6 +1,6 @@
import { useCallback, useRef } from "react";
import { PageCache } from "../types";
import { KomgaBook } from "@/types/komga";
import type { PageCache } from "../types";
import type { KomgaBook } from "@/types/komga";
interface UsePageCacheProps {
book: KomgaBook;

View File

@@ -1,5 +1,5 @@
import { useState, useCallback, useEffect, useRef } from "react";
import { KomgaBook } from "@/types/komga";
import type { KomgaBook } from "@/types/komga";
import { ClientOfflineBookService } from "@/lib/services/client-offlinebook.service";
interface UsePageNavigationProps {

View File

@@ -1,5 +1,5 @@
import { useState, useCallback, useEffect } from "react";
import { KomgaBook } from "@/types/komga";
import type { KomgaBook } from "@/types/komga";
interface UseThumbnailsProps {
book: KomgaBook;

View File

@@ -1,4 +1,4 @@
import { KomgaBook } from "@/types/komga";
import type { KomgaBook } from "@/types/komga";
export interface PageCache {
[pageNumber: number]: {