Skip to content

Commit 4fe1425

Browse files
authored
Merge branch 'main' into delete-package-lock
2 parents 3703f31 + 021ea3e commit 4fe1425

Some content is hidden

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

63 files changed

+169
-168
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- uses: actions/setup-node@v3
8787
- uses: oven-sh/setup-bun@v2
8888
- run: make prepare-deploy-web
89-
- run: test `ls web/dist | wc -l` != 0
89+
- run: test `ls web/out | wc -l` != 0
9090

9191
deploy-test-server:
9292
name: Deploy Test (server)

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ setup:
66
if [ ! `command -v bun` ]; then echo 'ERR: Bun is required!'; exit 1; fi
77
make sync
88
bunx husky
9-
cd web; if [ ! -f .env ]; then cp ./.env.sample ./.env ; fi
10-
cd server; if [ ! -f .env.dev ]; then cp ./.env.sample ./.env.dev ; fi
119
@echo "auto setup is done. now do:"
1210
@echo "- edit server/.env.dev"
1311
@echo "- edit web/.env"

web/api/chat/chat.ts

Lines changed: 4 additions & 4 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";
12+
} from "~/common/types";
13+
import { ErrUnauthorized, credFetch } from "~/firebase/auth/lib";
1414
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: 4 additions & 4 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";
6+
import type { Message, RoomOverview } from "~/common/types";
7+
import { MessageSchema, RoomOverviewSchema } from "~/common/zod/schemas";
8+
import { type Hook, useCustomizedSWR } from "~/hooks/useCustomizedSWR";
99
import type { UserID } from "../internal/endpoints";
10-
// import type { Hook } from "../share/types";
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
//指定したユーザにリクエストを送る

0 commit comments

Comments
 (0)