mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-02-23 19:50:04 -05:00
Organize imports
This commit is contained in:
parent
6ec845ab5b
commit
cb1a17def2
@ -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({
|
||||
|
||||
@ -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(
|
||||
{
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import { sql } from "drizzle-orm";
|
||||
import {
|
||||
index,
|
||||
integer,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { relations, sql } from "drizzle-orm";
|
||||
import { relations } from "drizzle-orm";
|
||||
import {
|
||||
index,
|
||||
integer,
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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 () => {
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user