aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 22:07:29 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 22:07:29 +0900
commit00e50b2dcfed209669c46da54dc07905d65887b8 (patch)
treee330b62109b7d0f539ffafee1c9a77203bed002b /frontend
parentae750a66feb478b06ae62bf8947782c11606de2d (diff)
downloadiosdc-japan-2024-albatross-00e50b2dcfed209669c46da54dc07905d65887b8.tar.gz
iosdc-japan-2024-albatross-00e50b2dcfed209669c46da54dc07905d65887b8.tar.zst
iosdc-japan-2024-albatross-00e50b2dcfed209669c46da54dc07905d65887b8.zip
chore(frontend): [biome] organize imports
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/.server/api/client.ts2
-rw-r--r--frontend/app/.server/auth.ts6
-rw-r--r--frontend/app/components/GolfPlayApp.client.tsx10
-rw-r--r--frontend/app/components/GolfWatchApp.client.tsx10
-rw-r--r--frontend/app/entry.client.tsx2
-rw-r--r--frontend/app/routes/admin.games.tsx4
-rw-r--r--frontend/app/routes/admin.games_.$gameId.tsx6
-rw-r--r--frontend/app/routes/admin.tsx4
-rw-r--r--frontend/app/routes/admin.users.tsx2
-rw-r--r--frontend/app/routes/dashboard.tsx4
-rw-r--r--frontend/app/routes/golf.$gameId.play.tsx2
-rw-r--r--frontend/app/routes/golf.$gameId.watch.tsx2
12 files changed, 27 insertions, 27 deletions
diff --git a/frontend/app/.server/api/client.ts b/frontend/app/.server/api/client.ts
index 8f53b5b..b3c7e9c 100644
--- a/frontend/app/.server/api/client.ts
+++ b/frontend/app/.server/api/client.ts
@@ -1,5 +1,5 @@
import createClient from "openapi-fetch";
-import type { paths, operations } from "./schema";
+import type { operations, paths } from "./schema";
const apiClient = createClient<paths>({
baseUrl:
diff --git a/frontend/app/.server/auth.ts b/frontend/app/.server/auth.ts
index b7e1820..3d9a492 100644
--- a/frontend/app/.server/auth.ts
+++ b/frontend/app/.server/auth.ts
@@ -1,10 +1,10 @@
+import type { Session } from "@remix-run/server-runtime";
+import { jwtDecode } from "jwt-decode";
import { Authenticator } from "remix-auth";
import { FormStrategy } from "remix-auth-form";
-import { jwtDecode } from "jwt-decode";
-import type { Session } from "@remix-run/server-runtime";
-import { sessionStorage } from "./session";
import { apiPostLogin } from "./api/client";
import { components } from "./api/schema";
+import { sessionStorage } from "./session";
export const authenticator = new Authenticator<string>(sessionStorage);
diff --git a/frontend/app/components/GolfPlayApp.client.tsx b/frontend/app/components/GolfPlayApp.client.tsx
index 2179b42..0ab8fff 100644
--- a/frontend/app/components/GolfPlayApp.client.tsx
+++ b/frontend/app/components/GolfPlayApp.client.tsx
@@ -1,12 +1,12 @@
-import type { components } from "../.server/api/schema";
-import { useState, useEffect } from "react";
+import { useEffect, useState } from "react";
import useWebSocket, { ReadyState } from "react-use-websocket";
import { useDebouncedCallback } from "use-debounce";
+import type { components } from "../.server/api/schema";
import GolfPlayAppConnecting from "./GolfPlayApps/GolfPlayAppConnecting";
-import GolfPlayAppWaiting from "./GolfPlayApps/GolfPlayAppWaiting";
-import GolfPlayAppStarting from "./GolfPlayApps/GolfPlayAppStarting";
-import GolfPlayAppGaming from "./GolfPlayApps/GolfPlayAppGaming";
import GolfPlayAppFinished from "./GolfPlayApps/GolfPlayAppFinished";
+import GolfPlayAppGaming from "./GolfPlayApps/GolfPlayAppGaming";
+import GolfPlayAppStarting from "./GolfPlayApps/GolfPlayAppStarting";
+import GolfPlayAppWaiting from "./GolfPlayApps/GolfPlayAppWaiting";
type WebSocketMessage = components["schemas"]["GamePlayerMessageS2C"];
diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx
index 5990fd4..0373944 100644
--- a/frontend/app/components/GolfWatchApp.client.tsx
+++ b/frontend/app/components/GolfWatchApp.client.tsx
@@ -1,11 +1,11 @@
-import type { components } from "../.server/api/schema";
-import { useState, useEffect } from "react";
+import { useEffect, useState } from "react";
import useWebSocket, { ReadyState } from "react-use-websocket";
+import type { components } from "../.server/api/schema";
import GolfWatchAppConnecting from "./GolfWatchApps/GolfWatchAppConnecting";
-import GolfWatchAppWaiting from "./GolfWatchApps/GolfWatchAppWaiting";
-import GolfWatchAppStarting from "./GolfWatchApps/GolfWatchAppStarting";
-import GolfWatchAppGaming from "./GolfWatchApps/GolfWatchAppGaming";
import GolfWatchAppFinished from "./GolfWatchApps/GolfWatchAppFinished";
+import GolfWatchAppGaming from "./GolfWatchApps/GolfWatchAppGaming";
+import GolfWatchAppStarting from "./GolfWatchApps/GolfWatchAppStarting";
+import GolfWatchAppWaiting from "./GolfWatchApps/GolfWatchAppWaiting";
type WebSocketMessage = components["schemas"]["GameWatcherMessageS2C"];
diff --git a/frontend/app/entry.client.tsx b/frontend/app/entry.client.tsx
index 442da4f..7860ee3 100644
--- a/frontend/app/entry.client.tsx
+++ b/frontend/app/entry.client.tsx
@@ -1,5 +1,5 @@
import { RemixBrowser } from "@remix-run/react";
-import { startTransition, StrictMode } from "react";
+import { StrictMode, startTransition } from "react";
import { hydrateRoot } from "react-dom/client";
startTransition(() => {
diff --git a/frontend/app/routes/admin.games.tsx b/frontend/app/routes/admin.games.tsx
index 00a56d6..adba7f5 100644
--- a/frontend/app/routes/admin.games.tsx
+++ b/frontend/app/routes/admin.games.tsx
@@ -1,7 +1,7 @@
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
-import { useLoaderData, Link } from "@remix-run/react";
-import { isAuthenticated } from "../.server/auth";
+import { Link, useLoaderData } from "@remix-run/react";
import { adminApiGetGames } from "../.server/api/client";
+import { isAuthenticated } from "../.server/auth";
export const meta: MetaFunction = () => {
return [{ title: "[Admin] Games | iOSDC Japan 2024 Albatross.swift" }];
diff --git a/frontend/app/routes/admin.games_.$gameId.tsx b/frontend/app/routes/admin.games_.$gameId.tsx
index 1ad8a2a..a7bd651 100644
--- a/frontend/app/routes/admin.games_.$gameId.tsx
+++ b/frontend/app/routes/admin.games_.$gameId.tsx
@@ -1,11 +1,11 @@
import type {
+ ActionFunctionArgs,
LoaderFunctionArgs,
MetaFunction,
- ActionFunctionArgs,
} from "@remix-run/node";
-import { useLoaderData, Form } from "@remix-run/react";
+import { Form, useLoaderData } from "@remix-run/react";
+import { adminApiGetGame, adminApiPutGame } from "../.server/api/client";
import { isAuthenticated } from "../.server/auth";
-import { adminApiPutGame, adminApiGetGame } from "../.server/api/client";
export const meta: MetaFunction<typeof loader> = ({ data }) => {
return [
diff --git a/frontend/app/routes/admin.tsx b/frontend/app/routes/admin.tsx
index 4bd96b1..2b05356 100644
--- a/frontend/app/routes/admin.tsx
+++ b/frontend/app/routes/admin.tsx
@@ -1,2 +1,2 @@
-import 'sakura.css/css/normalize.css';
-import 'sakura.css/css/sakura.css';
+import "sakura.css/css/normalize.css";
+import "sakura.css/css/sakura.css";
diff --git a/frontend/app/routes/admin.users.tsx b/frontend/app/routes/admin.users.tsx
index c2e4cc7..8d9a8f2 100644
--- a/frontend/app/routes/admin.users.tsx
+++ b/frontend/app/routes/admin.users.tsx
@@ -1,7 +1,7 @@
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
-import { isAuthenticated } from "../.server/auth";
import { adminApiGetUsers } from "../.server/api/client";
+import { isAuthenticated } from "../.server/auth";
export const meta: MetaFunction = () => {
return [{ title: "[Admin] Users | iOSDC Japan 2024 Albatross.swift" }];
diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx
index b93e5d1..1f80634 100644
--- a/frontend/app/routes/dashboard.tsx
+++ b/frontend/app/routes/dashboard.tsx
@@ -1,8 +1,8 @@
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { redirect } from "@remix-run/node";
-import { Link, useLoaderData, Form } from "@remix-run/react";
-import { isAuthenticated } from "../.server/auth";
+import { Form, Link, useLoaderData } from "@remix-run/react";
import { apiGetGames } from "../.server/api/client";
+import { isAuthenticated } from "../.server/auth";
export const meta: MetaFunction = () => {
return [{ title: "Dashboard | iOSDC Japan 2024 Albatross.swift" }];
diff --git a/frontend/app/routes/golf.$gameId.play.tsx b/frontend/app/routes/golf.$gameId.play.tsx
index 248c4e4..0ce3353 100644
--- a/frontend/app/routes/golf.$gameId.play.tsx
+++ b/frontend/app/routes/golf.$gameId.play.tsx
@@ -1,8 +1,8 @@
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { ClientOnly } from "remix-utils/client-only";
-import { isAuthenticated } from "../.server/auth";
import { apiGetGame, apiGetToken } from "../.server/api/client";
+import { isAuthenticated } from "../.server/auth";
import GolfPlayApp from "../components/GolfPlayApp.client";
import GolfPlayAppConnecting from "../components/GolfPlayApps/GolfPlayAppConnecting";
diff --git a/frontend/app/routes/golf.$gameId.watch.tsx b/frontend/app/routes/golf.$gameId.watch.tsx
index 1a14e78..0f0e085 100644
--- a/frontend/app/routes/golf.$gameId.watch.tsx
+++ b/frontend/app/routes/golf.$gameId.watch.tsx
@@ -1,8 +1,8 @@
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { ClientOnly } from "remix-utils/client-only";
-import { isAuthenticated } from "../.server/auth";
import { apiGetGame, apiGetToken } from "../.server/api/client";
+import { isAuthenticated } from "../.server/auth";
import GolfWatchApp from "../components/GolfWatchApp.client";
import GolfWatchAppConnecting from "../components/GolfWatchApps/GolfWatchAppConnecting";