mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Update prettier
This commit is contained in:
parent
ec1184d5c9
commit
a6a26cdf8d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extends": "expo/tsconfig.base",
|
"extends": "expo/tsconfig.base",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true
|
"strict": true,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
@ -47,8 +47,8 @@ export const withTranslations = (
|
|||||||
...commonOptions,
|
...commonOptions,
|
||||||
lng: props.pageProps.__lang,
|
lng: props.pageProps.__lang,
|
||||||
resources: props.pageProps.__resources,
|
resources: props.pageProps.__resources,
|
||||||
}),
|
}),
|
||||||
i18next),
|
i18next),
|
||||||
[props.pageProps.__lang, props.pageProps.__resources],
|
[props.pageProps.__lang, props.pageProps.__resources],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
"incremental": true,
|
"incremental": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["src/*"]
|
"~/*": ["src/*"],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"],
|
||||||
}
|
}
|
||||||
|
@ -63,8 +63,8 @@ export const queryFn = async <Data,>(
|
|||||||
"path" in context
|
"path" in context
|
||||||
? (context.path.filter((x) => x) as string[])
|
? (context.path.filter((x) => x) as string[])
|
||||||
: "pageParam" in context && context.pageParam
|
: "pageParam" in context && context.pageParam
|
||||||
? [context.pageParam as string]
|
? [context.pageParam as string]
|
||||||
: (context.queryKey.filter((x) => x) as string[]),
|
: (context.queryKey.filter((x) => x) as string[]),
|
||||||
)
|
)
|
||||||
.join("/")
|
.join("/")
|
||||||
.replace("/?", "?");
|
.replace("/?", "?");
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
"incremental": true,
|
"incremental": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["src/*"]
|
"~/*": ["src/*"],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"],
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ import { YoshikiStyle } from "yoshiki/src/type";
|
|||||||
export type YoshikiEnhanced<Style> = Style extends any
|
export type YoshikiEnhanced<Style> = Style extends any
|
||||||
? {
|
? {
|
||||||
[key in keyof Style]: YoshikiStyle<Style[key]>;
|
[key in keyof Style]: YoshikiStyle<Style[key]>;
|
||||||
}
|
}
|
||||||
: never;
|
: never;
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
|
@ -48,7 +48,7 @@ export const A = ({
|
|||||||
? {
|
? {
|
||||||
nativeBehavior: "stack-replace",
|
nativeBehavior: "stack-replace",
|
||||||
isNestedNavigator: false,
|
isNestedNavigator: false,
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
textProps={css(
|
textProps={css(
|
||||||
|
@ -195,7 +195,7 @@ export const ContrastArea = ({
|
|||||||
overlay1: theme.user.overlay1,
|
overlay1: theme.user.overlay1,
|
||||||
heading: theme.contrast,
|
heading: theme.contrast,
|
||||||
paragraph: theme.heading,
|
paragraph: theme.heading,
|
||||||
}
|
}
|
||||||
: theme
|
: theme
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
@ -34,5 +34,5 @@ export const focusReset: object =
|
|||||||
? {
|
? {
|
||||||
boxShadow: "unset",
|
boxShadow: "unset",
|
||||||
outline: "none",
|
outline: "none",
|
||||||
}
|
}
|
||||||
: {};
|
: {};
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
"incremental": true,
|
"incremental": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["src/*"]
|
"~/*": ["src/*"],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"],
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ const MediaInfoTable = ({
|
|||||||
[t("mediainfo.video")]: video
|
[t("mediainfo.video")]: video
|
||||||
? `${video.width}x${video.height} (${video.quality}) - ${formatBitrate(
|
? `${video.width}x${video.height} (${video.quality}) - ${formatBitrate(
|
||||||
video.bitrate,
|
video.bitrate,
|
||||||
)} - ${video.codec}`
|
)} - ${video.codec}`
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
audios === undefined
|
audios === undefined
|
||||||
|
@ -167,10 +167,10 @@ const VolumeSlider = () => {
|
|||||||
isMuted || volume == 0
|
isMuted || volume == 0
|
||||||
? VolumeOff
|
? VolumeOff
|
||||||
: volume < 25
|
: volume < 25
|
||||||
? VolumeMute
|
? VolumeMute
|
||||||
: volume < 65
|
: volume < 65
|
||||||
? VolumeDown
|
? VolumeDown
|
||||||
: VolumeUp
|
: VolumeUp
|
||||||
}
|
}
|
||||||
onPress={() => setMuted(!isMuted)}
|
onPress={() => setMuted(!isMuted)}
|
||||||
{...tooltip(t("player.mute"), true)}
|
{...tooltip(t("player.mute"), true)}
|
||||||
|
@ -111,12 +111,12 @@ export const Player = ({ slug, type }: { slug: string; type: "episode" | "movie"
|
|||||||
data.type === "movie"
|
data.type === "movie"
|
||||||
? data.name
|
? data.name
|
||||||
: data.show!.name +
|
: data.show!.name +
|
||||||
" " +
|
" " +
|
||||||
episodeDisplayNumber({
|
episodeDisplayNumber({
|
||||||
seasonNumber: data.seasonNumber,
|
seasonNumber: data.seasonNumber,
|
||||||
episodeNumber: data.episodeNumber,
|
episodeNumber: data.episodeNumber,
|
||||||
absoluteNumber: data.absoluteNumber,
|
absoluteNumber: data.absoluteNumber,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
description={data.overview}
|
description={data.overview}
|
||||||
/>
|
/>
|
||||||
@ -171,14 +171,14 @@ Player.query = (type: "episode" | "movie", slug: string): QueryIdentifier<Item>
|
|||||||
fields: ["nextEpisode", "previousEpisode", "show", "watchStatus"],
|
fields: ["nextEpisode", "previousEpisode", "show", "watchStatus"],
|
||||||
},
|
},
|
||||||
parser: EpisodeP.transform((x) => ({ ...x, type: "episode" })),
|
parser: EpisodeP.transform((x) => ({ ...x, type: "episode" })),
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
path: ["movie", slug],
|
path: ["movie", slug],
|
||||||
params: {
|
params: {
|
||||||
fields: ["watchStatus"],
|
fields: ["watchStatus"],
|
||||||
},
|
},
|
||||||
parser: MovieP.transform((x) => ({ ...x, type: "movie" })),
|
parser: MovieP.transform((x) => ({ ...x, type: "movie" })),
|
||||||
};
|
};
|
||||||
|
|
||||||
Player.infoQuery = (type: "episode" | "movie", slug: string): QueryIdentifier<WatchInfo> => ({
|
Player.infoQuery = (type: "episode" | "movie", slug: string): QueryIdentifier<WatchInfo> => ({
|
||||||
path: ["video", type, slug, "info"],
|
path: ["video", type, slug, "info"],
|
||||||
|
@ -106,7 +106,7 @@ const Video = forwardRef<NativeVideo, VideoProps>(function Video(
|
|||||||
? {
|
? {
|
||||||
type: "index",
|
type: "index",
|
||||||
value: subtitles?.indexOf(subtitle),
|
value: subtitles?.indexOf(subtitle),
|
||||||
}
|
}
|
||||||
: { type: "disabled" }
|
: { type: "disabled" }
|
||||||
}
|
}
|
||||||
{...props}
|
{...props}
|
||||||
|
@ -321,7 +321,7 @@ const toWebVtt = async (srtUrl: string) => {
|
|||||||
headers: token
|
headers: token
|
||||||
? {
|
? {
|
||||||
Authorization: token,
|
Authorization: token,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
});
|
});
|
||||||
const srt = await query.blob();
|
const srt = await query.blob();
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"incremental": true
|
"incremental": true,
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"],
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user