Skip to content

Commit db55d7f

Browse files
committed
sed
1 parent 649716b commit db55d7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+188
-188
lines changed

web/api/chat/chat.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import type {
99
SharedRoom,
1010
UpdateRoom,
1111
UserID,
12-
} from "../../../common/types";
13-
import { ErrUnauthorized, credFetch } from "../../firebase/auth/lib";
14-
import endpoints from "../internal/endpoints";
12+
} from "~/common/types";
13+
import { ErrUnauthorized, credFetch } from "~/firebase/auth/lib";
14+
import endpoints from "~/internal/endpoints";
1515

1616
/* TODO
17-
import { UserID } from "../common/types";
18-
import type { User } from "../common/types";
17+
import { UserID } from "~/common/types";
18+
import type { User } from "~/common/types";
1919
*/
2020

2121
//// DM グループチャット 共通////

web/api/chat/hooks.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import { useCallback } from "react";
44
import { z } from "zod";
55
// import { useCallback, useEffect, useState } from "react";
6-
import type { Message, RoomOverview } from "../../../common/types";
7-
import { MessageSchema, RoomOverviewSchema } from "../../../common/zod/schemas";
8-
import { type Hook, useCustomizedSWR } from "../../hooks/useCustomizedSWR";
9-
import type { UserID } from "../internal/endpoints";
10-
// import type { Hook } from "../share/types";
6+
import type { Message, RoomOverview } from "~/common/types";
7+
import { MessageSchema, RoomOverviewSchema } from "~/common/zod/schemas";
8+
import { type Hook, useCustomizedSWR } from "~/hooks/useCustomizedSWR";
9+
import type { UserID } from "~/internal/endpoints";
10+
// import type { Hook } from "~/share/types";
1111
import * as chat from "./chat";
1212

1313
const OverviewListSchema = z.array(RoomOverviewSchema);

web/api/course.hook.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { z } from "zod";
2-
import type { Course } from "../../common/types";
3-
import { CourseSchema } from "../../common/zod/schemas";
4-
import { type Hook, useCustomizedSWR } from "../hooks/useCustomizedSWR";
2+
import type { Course } from "~/common/types";
3+
import { CourseSchema } from "~/common/zod/schemas";
4+
import { type Hook, useCustomizedSWR } from "~/hooks/useCustomizedSWR";
55
import { getMyCourses } from "./course";
66

77
const CourseListSchema = z.array(CourseSchema);

web/api/course.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Course, CourseID, Day } from "../../common/types";
2-
import { credFetch } from "../firebase/auth/lib";
1+
import type { Course, CourseID, Day } from "~/common/types";
2+
import { credFetch } from "~/firebase/auth/lib";
33
import endpoints from "./internal/endpoints";
44

55
// TODO: migrate to safe functions

web/api/internal/endpoints.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { CourseID, Day, GUID } from "../../../common/types";
2-
import type { MessageID, ShareRoomID } from "../../../common/types";
1+
import type { CourseID, Day, GUID } from "~/common/types";
2+
import type { MessageID, ShareRoomID } from "~/common/types";
33

44
export const origin: string | null = process.env.NEXT_PUBLIC_API_ENDPOINT ?? "";
55
if (!origin) throw new Error("process.env.NEXT_PUBLIC_API_ENDPOINT not found!");

web/api/internal/fetch-func.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Err, Ok, type Result } from "../../../common/lib/result";
1+
import { Err, Ok, type Result } from "~/common/lib/result";
22

33
export async function safeFetch(
44
path: string,
@@ -15,7 +15,7 @@ export async function safeFetch(
1515
}
1616
}
1717

18-
import { getIdToken } from "../../firebase/auth/lib";
18+
import { getIdToken } from "~/firebase/auth/lib";
1919
import endpoints from "./endpoints";
2020

2121
type URL = string;

web/api/match.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { credFetch } from "../firebase/auth/lib";
1+
import { credFetch } from "~/firebase/auth/lib";
22
import endpoints from "./internal/endpoints";
33
import type { UserID } from "./internal/endpoints";
44

web/api/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { credFetch } from "../firebase/auth/lib";
1+
import { credFetch } from "~/firebase/auth/lib";
22
import endpoints, { type UserID } from "./internal/endpoints";
33

44
//指定したユーザにリクエストを送る

web/api/user.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { z } from "zod";
2-
import type { GUID, UpdateUser, User, UserID } from "../../common/types.ts";
3-
import { parseUser } from "../../common/zod/methods.ts";
4-
import { UserIDSchema, UserSchema } from "../../common/zod/schemas.ts";
5-
import { credFetch } from "../firebase/auth/lib.ts";
6-
import { type Hook, useCustomizedSWR } from "../hooks/useCustomizedSWR.ts";
7-
import { useAuthorizedData } from "../hooks/useData.ts";
2+
import type { GUID, UpdateUser, User, UserID } from "~/common/types.ts";
3+
import { parseUser } from "~/common/zod/methods.ts";
4+
import { UserIDSchema, UserSchema } from "~/common/zod/schemas.ts";
5+
import { credFetch } from "~/firebase/auth/lib.ts";
6+
import { type Hook, useCustomizedSWR } from "~/hooks/useCustomizedSWR.ts";
7+
import { useAuthorizedData } from "~/hooks/useData.ts";
88
import endpoints from "./internal/endpoints.ts";
99
import type { Hook as UseHook } from "./share/types.ts";
1010

web/app/chat/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Box } from "@mui/material";
2-
import BottomBar from "../../components/BottomBar";
3-
import Header from "../../components/Header";
2+
import BottomBar from "~/components/BottomBar";
3+
import Header from "~/components/Header";
44

55
export default function ChatPageLayout({
66
children,

0 commit comments

Comments
 (0)