diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/root.tsx | 6 | ||||
| -rw-r--r-- | frontend/app/routes/_index.tsx | 6 | ||||
| -rw-r--r-- | frontend/app/routes/admin.dashboard.tsx | 6 | ||||
| -rw-r--r-- | frontend/app/routes/admin.games.tsx | 6 | ||||
| -rw-r--r-- | frontend/app/routes/admin.games_.$gameId.tsx | 16 | ||||
| -rw-r--r-- | frontend/app/routes/admin.users.tsx | 6 | ||||
| -rw-r--r-- | frontend/app/routes/dashboard.tsx | 6 | ||||
| -rw-r--r-- | frontend/app/routes/golf.$gameId.play.tsx | 16 | ||||
| -rw-r--r-- | frontend/app/routes/golf.$gameId.watch.tsx | 16 | ||||
| -rw-r--r-- | frontend/app/routes/login.tsx | 6 |
10 files changed, 42 insertions, 48 deletions
diff --git a/frontend/app/root.tsx b/frontend/app/root.tsx index 58a06dd..57f1a10 100644 --- a/frontend/app/root.tsx +++ b/frontend/app/root.tsx @@ -8,9 +8,9 @@ import { } from "@remix-run/react"; import "./tailwind.css"; -export const links: LinksFunction = () => { - return [{ rel: "icon", href: "/favicon.svg" }]; -}; +export const links: LinksFunction = () => [ + { rel: "icon", href: "/favicon.svg" }, +]; export function Layout({ children }: { children: React.ReactNode }) { return ( diff --git a/frontend/app/routes/_index.tsx b/frontend/app/routes/_index.tsx index c56d4b2..b82efc4 100644 --- a/frontend/app/routes/_index.tsx +++ b/frontend/app/routes/_index.tsx @@ -1,9 +1,9 @@ import type { MetaFunction } from "@remix-run/node"; import { Link } from "@remix-run/react"; -export const meta: MetaFunction = () => { - return [{ title: "iOSDC Japan 2024 Albatross.swift" }]; -}; +export const meta: MetaFunction = () => [ + { title: "iOSDC Japan 2024 Albatross.swift" }, +]; export default function Index() { return ( diff --git a/frontend/app/routes/admin.dashboard.tsx b/frontend/app/routes/admin.dashboard.tsx index f91406f..8a0c9a8 100644 --- a/frontend/app/routes/admin.dashboard.tsx +++ b/frontend/app/routes/admin.dashboard.tsx @@ -2,9 +2,9 @@ import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node"; import { Form, Link } from "@remix-run/react"; import { ensureAdminUserLoggedIn } from "../.server/auth"; -export const meta: MetaFunction = () => { - return [{ title: "[Admin] Dashboard | iOSDC Japan 2024 Albatross.swift" }]; -}; +export const meta: MetaFunction = () => [ + { title: "[Admin] Dashboard | iOSDC Japan 2024 Albatross.swift" }, +]; export async function loader({ request }: LoaderFunctionArgs) { await ensureAdminUserLoggedIn(request); diff --git a/frontend/app/routes/admin.games.tsx b/frontend/app/routes/admin.games.tsx index 23e45c5..f9d15f7 100644 --- a/frontend/app/routes/admin.games.tsx +++ b/frontend/app/routes/admin.games.tsx @@ -3,9 +3,9 @@ import { Link, useLoaderData } from "@remix-run/react"; import { adminApiGetGames } from "../.server/api/client"; import { ensureAdminUserLoggedIn } from "../.server/auth"; -export const meta: MetaFunction = () => { - return [{ title: "[Admin] Games | iOSDC Japan 2024 Albatross.swift" }]; -}; +export const meta: MetaFunction = () => [ + { title: "[Admin] Games | iOSDC Japan 2024 Albatross.swift" }, +]; export async function loader({ request }: LoaderFunctionArgs) { const { token } = await ensureAdminUserLoggedIn(request); diff --git a/frontend/app/routes/admin.games_.$gameId.tsx b/frontend/app/routes/admin.games_.$gameId.tsx index 0d2cac6..c4d75c1 100644 --- a/frontend/app/routes/admin.games_.$gameId.tsx +++ b/frontend/app/routes/admin.games_.$gameId.tsx @@ -7,15 +7,13 @@ import { Form, useLoaderData } from "@remix-run/react"; import { adminApiGetGame, adminApiPutGame } from "../.server/api/client"; import { ensureAdminUserLoggedIn } from "../.server/auth"; -export const meta: MetaFunction<typeof loader> = ({ data }) => { - return [ - { - title: data - ? `[Admin] Game Edit ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift` - : "[Admin] Game Edit | iOSDC Japan 2024 Albatross.swift", - }, - ]; -}; +export const meta: MetaFunction<typeof loader> = ({ data }) => [ + { + title: data + ? `[Admin] Game Edit ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift` + : "[Admin] Game Edit | iOSDC Japan 2024 Albatross.swift", + }, +]; export async function loader({ request, params }: LoaderFunctionArgs) { const { token } = await ensureAdminUserLoggedIn(request); diff --git a/frontend/app/routes/admin.users.tsx b/frontend/app/routes/admin.users.tsx index 219175e..c403285 100644 --- a/frontend/app/routes/admin.users.tsx +++ b/frontend/app/routes/admin.users.tsx @@ -3,9 +3,9 @@ import { useLoaderData } from "@remix-run/react"; import { adminApiGetUsers } from "../.server/api/client"; import { ensureAdminUserLoggedIn } from "../.server/auth"; -export const meta: MetaFunction = () => { - return [{ title: "[Admin] Users | iOSDC Japan 2024 Albatross.swift" }]; -}; +export const meta: MetaFunction = () => [ + { title: "[Admin] Users | iOSDC Japan 2024 Albatross.swift" }, +]; export async function loader({ request }: LoaderFunctionArgs) { const { token } = await ensureAdminUserLoggedIn(request); diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index 45381e1..229375c 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -4,9 +4,9 @@ import { Form, Link, useLoaderData } from "@remix-run/react"; import { apiGetGames } from "../.server/api/client"; import { ensureUserLoggedIn } from "../.server/auth"; -export const meta: MetaFunction = () => { - return [{ title: "Dashboard | iOSDC Japan 2024 Albatross.swift" }]; -}; +export const meta: MetaFunction = () => [ + { title: "Dashboard | iOSDC Japan 2024 Albatross.swift" }, +]; export async function loader({ request }: LoaderFunctionArgs) { const { user, token } = await ensureUserLoggedIn(request); diff --git a/frontend/app/routes/golf.$gameId.play.tsx b/frontend/app/routes/golf.$gameId.play.tsx index 72f66bc..3712df2 100644 --- a/frontend/app/routes/golf.$gameId.play.tsx +++ b/frontend/app/routes/golf.$gameId.play.tsx @@ -6,15 +6,13 @@ import { ensureUserLoggedIn } from "../.server/auth"; import GolfPlayApp from "../components/GolfPlayApp.client"; import GolfPlayAppConnecting from "../components/GolfPlayApps/GolfPlayAppConnecting"; -export const meta: MetaFunction<typeof loader> = ({ data }) => { - return [ - { - title: data - ? `Golf Playing ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift` - : "Golf Playing | iOSDC Japan 2024 Albatross.swift", - }, - ]; -}; +export const meta: MetaFunction<typeof loader> = ({ data }) => [ + { + title: data + ? `Golf Playing ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift` + : "Golf Playing | iOSDC Japan 2024 Albatross.swift", + }, +]; export async function loader({ params, request }: LoaderFunctionArgs) { const { token } = await ensureUserLoggedIn(request); diff --git a/frontend/app/routes/golf.$gameId.watch.tsx b/frontend/app/routes/golf.$gameId.watch.tsx index 7c623e1..83b7a1a 100644 --- a/frontend/app/routes/golf.$gameId.watch.tsx +++ b/frontend/app/routes/golf.$gameId.watch.tsx @@ -6,15 +6,13 @@ import { ensureUserLoggedIn } from "../.server/auth"; import GolfWatchApp from "../components/GolfWatchApp.client"; import GolfWatchAppConnecting from "../components/GolfWatchApps/GolfWatchAppConnecting"; -export const meta: MetaFunction<typeof loader> = ({ data }) => { - return [ - { - title: data - ? `Golf Watching ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift` - : "Golf Watching | iOSDC Japan 2024 Albatross.swift", - }, - ]; -}; +export const meta: MetaFunction<typeof loader> = ({ data }) => [ + { + title: data + ? `Golf Watching ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift` + : "Golf Watching | iOSDC Japan 2024 Albatross.swift", + }, +]; export async function loader({ params, request }: LoaderFunctionArgs) { const { token } = await ensureUserLoggedIn(request); diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx index 1c861fc..dc87d47 100644 --- a/frontend/app/routes/login.tsx +++ b/frontend/app/routes/login.tsx @@ -6,9 +6,9 @@ import type { import { Form } from "@remix-run/react"; import { ensureUserNotLoggedIn, login } from "../.server/auth"; -export const meta: MetaFunction = () => { - return [{ title: "Login | iOSDC Japan 2024 Albatross.swift" }]; -}; +export const meta: MetaFunction = () => [ + { title: "Login | iOSDC Japan 2024 Albatross.swift" }, +]; export async function loader({ request }: LoaderFunctionArgs) { return await ensureUserNotLoggedIn(request); |
