aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app')
-rw-r--r--frontend/app/routes/_index.tsx2
-rw-r--r--frontend/app/routes/dashboard.tsx6
-rw-r--r--frontend/app/routes/golf.$gameId.play.tsx12
-rw-r--r--frontend/app/routes/golf.$gameId.watch.tsx12
-rw-r--r--frontend/app/routes/login.tsx10
5 files changed, 37 insertions, 5 deletions
diff --git a/frontend/app/routes/_index.tsx b/frontend/app/routes/_index.tsx
index f5a46ca..1699079 100644
--- a/frontend/app/routes/_index.tsx
+++ b/frontend/app/routes/_index.tsx
@@ -2,7 +2,7 @@ import type { MetaFunction } from "@remix-run/node";
import { Link } from "@remix-run/react";
export const meta: MetaFunction = () => {
- return [{ title: "Albatross.swift" }];
+ return [{ title: "iOSDC 2024 Albatross.swift" }];
};
export default function Index() {
diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx
index 0b6bfb1..d7cad6c 100644
--- a/frontend/app/routes/dashboard.tsx
+++ b/frontend/app/routes/dashboard.tsx
@@ -1,8 +1,12 @@
-import type { LoaderFunctionArgs } from "@remix-run/node";
+import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { Link, useLoaderData } from "@remix-run/react";
import { isAuthenticated } from "../.server/auth";
import { apiClient } from "../.server/api/client";
+export const meta: MetaFunction = () => {
+ return [{ title: "Dashboard | iOSDC 2024 Albatross.swift" }];
+};
+
export async function loader({ request }: LoaderFunctionArgs) {
const { user, token } = await isAuthenticated(request, {
failureRedirect: "/login",
diff --git a/frontend/app/routes/golf.$gameId.play.tsx b/frontend/app/routes/golf.$gameId.play.tsx
index 78ce585..5868640 100644
--- a/frontend/app/routes/golf.$gameId.play.tsx
+++ b/frontend/app/routes/golf.$gameId.play.tsx
@@ -1,9 +1,19 @@
-import type { LoaderFunctionArgs } from "@remix-run/node";
+import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { isAuthenticated } from "../.server/auth";
import { apiClient } from "../.server/api/client";
import { useLoaderData } from "@remix-run/react";
import GolfPlayApp from "../components/GolfPlayApp";
+export const meta: MetaFunction<typeof loader> = ({ data }) => {
+ return [
+ {
+ title: data
+ ? `Golf Playing ${data.game.display_name} | iOSDC 2024 Albatross.swift`
+ : "Golf Playing | iOSDC 2024 Albatross.swift",
+ },
+ ];
+};
+
export async function loader({ params, request }: LoaderFunctionArgs) {
const { token } = await isAuthenticated(request, {
failureRedirect: "/login",
diff --git a/frontend/app/routes/golf.$gameId.watch.tsx b/frontend/app/routes/golf.$gameId.watch.tsx
index 28c17cc..4093295 100644
--- a/frontend/app/routes/golf.$gameId.watch.tsx
+++ b/frontend/app/routes/golf.$gameId.watch.tsx
@@ -1,9 +1,19 @@
-import type { LoaderFunctionArgs } from "@remix-run/node";
+import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { isAuthenticated } from "../.server/auth";
import { apiClient } from "../.server/api/client";
import { useLoaderData } from "@remix-run/react";
import GolfWatchApp from "../components/GolfWatchApp";
+export const meta: MetaFunction<typeof loader> = ({ data }) => {
+ return [
+ {
+ title: data
+ ? `Golf Watching ${data.game.display_name} | iOSDC 2024 Albatross.swift`
+ : "Golf Watching | iOSDC 2024 Albatross.swift",
+ },
+ ];
+};
+
export async function loader({ params, request }: LoaderFunctionArgs) {
const { token } = await isAuthenticated(request, {
failureRedirect: "/login",
diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx
index 40ad66f..0db0bc5 100644
--- a/frontend/app/routes/login.tsx
+++ b/frontend/app/routes/login.tsx
@@ -1,7 +1,15 @@
-import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";
+import type {
+ ActionFunctionArgs,
+ LoaderFunctionArgs,
+ MetaFunction,
+} from "@remix-run/node";
import { Form } from "@remix-run/react";
import { authenticator } from "../.server/auth";
+export const meta: MetaFunction = () => {
+ return [{ title: "Login | iOSDC 2024 Albatross.swift" }];
+};
+
export async function loader({ request }: LoaderFunctionArgs) {
return await authenticator.isAuthenticated(request, {
successRedirect: "/dashboard",