Organize imports

This commit is contained in:
Zoe Roux 2026-01-05 12:28:43 +01:00
parent 6ec845ab5b
commit cb1a17def2
No known key found for this signature in database
12 changed files with 16 additions and 23 deletions

View File

@ -1,5 +1,6 @@
import { and, isNull, sql } from "drizzle-orm";
import { Elysia, t } from "elysia";
import type { NonEmptyArray } from "elysia/dist/type-system/types";
import { auth } from "~/auth";
import { prefix } from "~/base";
import { db } from "~/db";
@ -14,6 +15,7 @@ import {
processLanguages,
} from "~/models/utils";
import { desc } from "~/models/utils/descriptions";
import { toQueryStr } from "~/utils";
import {
collectionRelations,
getShows,
@ -23,8 +25,6 @@ import {
showRelations,
showSort,
} from "./logic";
import type { NonEmptyArray } from "elysia/dist/type-system/types";
import { toQueryStr } from "~/utils";
export const showsH = new Elysia({ prefix: "/shows", tags: ["shows"] })
.model({

View File

@ -33,8 +33,8 @@ import {
sortToSql,
} from "~/models/utils";
import { desc } from "~/models/utils/descriptions";
import { getShows, showFilters, showSort } from "./shows/logic";
import { toQueryStr } from "~/utils";
import { getShows, showFilters, showSort } from "./shows/logic";
const studioSort = Sort(
{

View File

@ -1,4 +1,3 @@
import { sql } from "drizzle-orm";
import {
index,
integer,

View File

@ -1,4 +1,4 @@
import { relations, sql } from "drizzle-orm";
import { relations } from "drizzle-orm";
import {
index,
integer,

View File

@ -1,8 +1,10 @@
import {
Column,
type Column,
type ColumnsSelection,
getTableColumns,
type InferSelectModel,
is,
isSQLWrapper,
type SQL,
type SQLWrapper,
type Subquery,
@ -11,9 +13,6 @@ import {
type TableConfig,
View,
ViewBaseConfig,
InferSelectModel,
isTable,
isSQLWrapper,
} from "drizzle-orm";
import type { CasingCache } from "drizzle-orm/casing";
import type { AnyMySqlSelect } from "drizzle-orm/mysql-core";

View File

@ -24,10 +24,7 @@ import {
MeterProvider,
PeriodicExportingMetricReader,
} from "@opentelemetry/sdk-metrics";
import type {
SpanExporter,
SpanProcessor,
} from "@opentelemetry/sdk-trace-base";
import type { SpanExporter } from "@opentelemetry/sdk-trace-base";
import {
BatchSpanProcessor,
NodeTracerProvider,

View File

@ -26,8 +26,8 @@ describe("images", () => {
where: eq(shows.slug, madeInAbyss.slug),
});
expect(ret!.slug).toBe(madeInAbyss.slug);
expect(ret!.original.poster!.blurhash).toBeString();
expect(ret!.original.poster!.blurhash).not.toBe(defaultBlurhash);
expect(ret.original.poster!.blurhash).toBeString();
expect(ret.original.poster!.blurhash).not.toBe(defaultBlurhash);
});
it("Download 404 image", async () => {

View File

@ -1,4 +1,3 @@
import Refresh from "@material-symbols/svg-400/rounded/autorenew.svg";
// import Download from "@material-symbols/svg-400/rounded/download.svg";
import Info from "@material-symbols/svg-400/rounded/info.svg";
import MoreVert from "@material-symbols/svg-400/rounded/more_vert.svg";
@ -8,7 +7,7 @@ import { useTranslation } from "react-i18next";
import { Platform } from "react-native";
import { useYoshiki } from "yoshiki/native";
import { WatchStatusV } from "~/models";
import { HR, IconButton, Menu, tooltip } from "~/primitives";
import { IconButton, Menu, tooltip } from "~/primitives";
import { useAccount } from "~/providers/account-context";
import { useMutation } from "~/query";
import { watchListIcon } from "./watchlist-info";

View File

@ -4,7 +4,7 @@ import BookmarkRemove from "@material-symbols/svg-400/rounded/bookmark_remove.sv
import Bookmark from "@material-symbols/svg-400/rounded/bookmark-fill.svg";
import type { ComponentProps } from "react";
import { useTranslation } from "react-i18next";
import type { Movie, Serie } from "~/models";
import type { Serie } from "~/models";
import { IconButton, Menu, tooltip } from "~/primitives";
import { useAccount } from "~/providers/account-context";
import { useMutation } from "~/query";

View File

@ -1,4 +1,3 @@
import Refresh from "@material-symbols/svg-400/rounded/autorenew.svg";
import BookmarkAdd from "@material-symbols/svg-400/rounded/bookmark_add.svg";
import MoreHoriz from "@material-symbols/svg-400/rounded/more_horiz.svg";
import MovieInfo from "@material-symbols/svg-400/rounded/movie_info.svg";

View File

@ -3,7 +3,7 @@ import PlayArrow from "@material-symbols/svg-400/rounded/play_arrow-fill.svg";
import { LinearGradient } from "expo-linear-gradient";
import { useTranslation } from "react-i18next";
import { View } from "react-native";
import { min, percent, px, rem, useYoshiki, vh } from "yoshiki/native";
import { min, percent, px, rem, vh } from "yoshiki/native";
import { type KImage, Show } from "~/models";
import {
ContrastArea,

View File

@ -2,11 +2,11 @@ import PlayArrow from "@material-symbols/svg-400/rounded/play_arrow-fill.svg";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { ScrollView, View } from "react-native";
import { type Theme, calc, percent, px, rem, useYoshiki } from "yoshiki/native";
import { calc, percent, px, rem, type Theme, useYoshiki } from "yoshiki/native";
import { ItemGrid } from "~/components/items";
import { ItemContext } from "~/components/items/context-menus";
import { ItemWatchStatus } from "~/components/items/item-helpers";
import { type Genre, type KImage, Show, type WatchStatusV } from "~/models";
import { getDisplayDate } from "~/utils";
import {
Chip,
focusReset,
@ -21,7 +21,7 @@ import {
ts,
} from "~/primitives";
import { InfiniteFetch, type Layout, type QueryIdentifier } from "~/query";
import { ItemWatchStatus } from "~/components/items/item-helpers";
import { getDisplayDate } from "~/utils";
export const ItemDetails = ({
slug,