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