mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Lint code
This commit is contained in:
parent
b89617d125
commit
68b4e71281
@ -22,6 +22,7 @@ using System.Threading.Tasks;
|
||||
using Kyoo.Abstractions.Controllers;
|
||||
using Kyoo.Core.Controllers;
|
||||
using Kyoo.Postgresql;
|
||||
using Moq;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Kyoo.Tests.Database
|
||||
@ -37,16 +38,18 @@ namespace Kyoo.Tests.Database
|
||||
{
|
||||
Context = new PostgresTestContext(postgres, output);
|
||||
|
||||
CollectionRepository collection = new(_NewContext());
|
||||
StudioRepository studio = new(_NewContext());
|
||||
Mock<ThumbnailsManager> thumbs = new();
|
||||
CollectionRepository collection = new(_NewContext(), thumbs.Object);
|
||||
StudioRepository studio = new(_NewContext(), thumbs.Object);
|
||||
PeopleRepository people = new(_NewContext(),
|
||||
new Lazy<IShowRepository>(() => LibraryManager.ShowRepository));
|
||||
MovieRepository movies = new(_NewContext(), studio, people);
|
||||
ShowRepository show = new(_NewContext(), studio, people);
|
||||
SeasonRepository season = new(_NewContext(), show);
|
||||
LibraryItemRepository libraryItem = new(_NewContext());
|
||||
EpisodeRepository episode = new(_NewContext(), show);
|
||||
UserRepository user = new(_NewContext());
|
||||
new Lazy<IShowRepository>(() => LibraryManager.ShowRepository),
|
||||
thumbs.Object);
|
||||
MovieRepository movies = new(_NewContext(), studio, people, thumbs.Object);
|
||||
ShowRepository show = new(_NewContext(), studio, people, thumbs.Object);
|
||||
SeasonRepository season = new(_NewContext(), show, thumbs.Object);
|
||||
LibraryItemRepository libraryItem = new(_NewContext(), thumbs.Object);
|
||||
EpisodeRepository episode = new(_NewContext(), show, thumbs.Object);
|
||||
UserRepository user = new(_NewContext(), thumbs.Object);
|
||||
|
||||
LibraryManager = new LibraryManager(new IBaseRepository[] {
|
||||
libraryItem,
|
||||
|
@ -61,7 +61,7 @@ export const Icon = ({ icon: Icon, color, size = 24, ...props }: IconProps) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const IconButton = forwardRef(function _IconButton<AsProps = PressableProps>(
|
||||
export const IconButton = forwardRef(function IconButton<AsProps = PressableProps>(
|
||||
{
|
||||
icon,
|
||||
size,
|
||||
|
@ -31,7 +31,7 @@ export const Input = forwardRef<
|
||||
variant?: "small" | "big";
|
||||
right?: ReactNode;
|
||||
} & TextInputProps
|
||||
>(function _Input({ style, placeholderTextColor, variant = "small", right, ...props }, ref) {
|
||||
>(function Input({ style, placeholderTextColor, variant = "small", right, ...props }, ref) {
|
||||
const { css, theme } = useYoshiki();
|
||||
|
||||
return (
|
||||
|
@ -60,7 +60,7 @@ export const A = ({
|
||||
);
|
||||
};
|
||||
|
||||
export const PressableFeedback = forwardRef<View, PressableProps>(function _Feedback(
|
||||
export const PressableFeedback = forwardRef<View, PressableProps>(function Feedback(
|
||||
{ children, ...props },
|
||||
ref,
|
||||
) {
|
||||
|
@ -41,7 +41,7 @@ import { Layout, SortBy, SortOrd } from "./types";
|
||||
import { forwardRef } from "react";
|
||||
import { View, PressableProps } from "react-native";
|
||||
|
||||
const SortTrigger = forwardRef<View, PressableProps & { sortKey: SortBy }>(function _SortTrigger(
|
||||
const SortTrigger = forwardRef<View, PressableProps & { sortKey: SortBy }>(function SortTrigger(
|
||||
{ sortKey, ...props },
|
||||
ref,
|
||||
) {
|
||||
|
@ -70,7 +70,7 @@ const { useParam } = createParam<{ q?: string }>();
|
||||
const SearchBar = forwardRef<
|
||||
TextInput,
|
||||
{ onBlur?: (value: string | undefined) => void } & Stylable
|
||||
>(function _SearchBar({ onBlur, ...props }, ref) {
|
||||
>(function SearchBar({ onBlur, ...props }, ref) {
|
||||
const { css, theme } = useYoshiki();
|
||||
const { t } = useTranslation();
|
||||
const { push, replace, back } = useRouter();
|
||||
|
Loading…
x
Reference in New Issue
Block a user