Bootstrap login page

This commit is contained in:
Zoe Roux 2023-01-26 22:45:54 +09:00 committed by Zoe Roux
parent 91289c8588
commit 341d799207
6 changed files with 79 additions and 2 deletions

View File

@ -0,0 +1,23 @@
/*
* Kyoo - A portable and vast media library solution.
* Copyright (c) Kyoo.
*
* See AUTHORS.md and LICENSE file in the project root for full license information.
*
* Kyoo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Kyoo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/
import { LoginPage } from "@kyoo/ui";
export default LoginPage;

View File

@ -0,0 +1,24 @@
/*
* Kyoo - A portable and vast media library solution.
* Copyright (c) Kyoo.
*
* See AUTHORS.md and LICENSE file in the project root for full license information.
*
* Kyoo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Kyoo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/
import { LoginPage } from "@kyoo/ui";
import { withRoute } from "~/router";
export default withRoute(LoginPage);

View File

@ -95,7 +95,7 @@ export const ShowDetails: QueryPage<{ slug: string; season: string }> = ({ slug,
); );
}; };
ShowDetails.getFetchUrls = ({ slug, season = 1 }) => [ ShowDetails.getFetchUrls = ({ slug, season }) => [
query(slug), query(slug),
// ShowStaff.query(slug), // ShowStaff.query(slug),
EpisodeList.query(slug, season), EpisodeList.query(slug, season),

View File

@ -23,3 +23,4 @@ export { BrowsePage } from "./browse";
export { MovieDetails, ShowDetails } from "./details"; export { MovieDetails, ShowDetails } from "./details";
export { Player } from "./player"; export { Player } from "./player";
export { SearchPage } from "./search"; export { SearchPage } from "./search";
export { LoginPage } from "./login";

View File

@ -0,0 +1,29 @@
/*
* Kyoo - A portable and vast media library solution.
* Copyright (c) Kyoo.
*
* See AUTHORS.md and LICENSE file in the project root for full license information.
*
* Kyoo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Kyoo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/
import { QueryPage } from "@kyoo/models";
import { View } from "react-native";
import { DefaultLayout } from "../layout";
export const LoginPage: QueryPage = () => {
return <View />;
};
LoginPage.getLayout = DefaultLayout;

View File

@ -88,7 +88,7 @@ export const NavbarProfile = () => {
return ( return (
<Link <Link
href="/auth/login" href="/login"
{...tooltip(t("navbar.login"))} {...tooltip(t("navbar.login"))}
{...css({ marginLeft: ts(1), justifyContent: "center" })} {...css({ marginLeft: ts(1), justifyContent: "center" })}
> >