+
{
+ handleSearch("");
+ }}
onChange={(e) => {
handleSearch(e.target.value);
}}
@@ -79,7 +111,8 @@ export default function Search(props: any) {
+
+
+
);
}
diff --git a/package-lock.json b/package-lock.json
index 622da11..dab83bd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -28,7 +28,7 @@
"@nextui-org/system": "2.2.6",
"@nextui-org/tabs": "^2.0.37",
"@nextui-org/theme": "2.2.11",
- "@prisma/client": "^5.21.1",
+ "@prisma/client": "^5.22.0",
"@react-aria/ssr": "3.9.6",
"@react-aria/visually-hidden": "3.8.17",
"@types/node": "22.8.1",
@@ -62,8 +62,7 @@
"tailwindcss": "3.4.14",
"typescript": "5.6.3",
"use-debounce": "^10.0.4"
- },
- "devDependencies": {}
+ }
},
"node_modules/@alloc/quick-lru": {
"version": "5.2.0",
@@ -3151,9 +3150,9 @@
}
},
"node_modules/@prisma/client": {
- "version": "5.21.1",
- "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.21.1.tgz",
- "integrity": "sha512-3n+GgbAZYjaS/k0M03yQsQfR1APbr411r74foknnsGpmhNKBG49VuUkxIU6jORgvJPChoD4WC4PqoHImN1FP0w==",
+ "version": "5.22.0",
+ "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.22.0.tgz",
+ "integrity": "sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA==",
"hasInstallScript": true,
"license": "Apache-2.0",
"engines": {
diff --git a/package.json b/package.json
index b2f3ad8..0b8d7dd 100644
--- a/package.json
+++ b/package.json
@@ -29,26 +29,15 @@
"@nextui-org/system": "2.2.6",
"@nextui-org/tabs": "^2.0.37",
"@nextui-org/theme": "2.2.11",
- "@prisma/client": "^5.21.1",
+ "@prisma/client": "^5.22.0",
"@react-aria/ssr": "3.9.6",
"@react-aria/visually-hidden": "3.8.17",
- "axios": "^1.7.7",
- "clsx": "2.1.1",
- "framer-motion": "~11.11.10",
- "intl-messageformat": "^10.7.3",
- "moment": "^2.30.1",
- "next": "^15.0.1",
- "next-auth": "^4.24.10",
- "next-client-cookies": "^2.0.0",
- "next-themes": "^0.3.0",
- "react": "18.3.1",
- "react-dom": "18.3.1",
- "swr": "^2.2.5",
- "use-debounce": "^10.0.4",
"@types/node": "22.8.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"autoprefixer": "10.4.20",
+ "axios": "^1.7.7",
+ "clsx": "2.1.1",
"eslint": "^9.13.0",
"eslint-config-next": "15.0.1",
"eslint-config-prettier": "^9.1.0",
@@ -59,12 +48,20 @@
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
+ "framer-motion": "~11.11.10",
+ "intl-messageformat": "^10.7.3",
+ "moment": "^2.30.1",
+ "next": "^15.0.1",
+ "next-auth": "^4.24.10",
+ "next-client-cookies": "^2.0.0",
+ "next-themes": "^0.3.0",
"postcss": "8.4.47",
+ "react": "18.3.1",
+ "react-dom": "18.3.1",
+ "swr": "^2.2.5",
"tailwind-variants": "^0.2.1",
"tailwindcss": "3.4.14",
- "typescript": "5.6.3"
-
- },
- "devDependencies": {
+ "typescript": "5.6.3",
+ "use-debounce": "^10.0.4"
}
}
diff --git a/prisma/migrations/20241106191528_reset/migration.sql b/prisma/migrations/20241106191528_reset/migration.sql
new file mode 100644
index 0000000..cc0e067
--- /dev/null
+++ b/prisma/migrations/20241106191528_reset/migration.sql
@@ -0,0 +1,12 @@
+/*
+ Warnings:
+
+ - The `beginTime` column on the `MeetingTime` table would be dropped and recreated. This will lead to data loss if there is data in the column.
+ - The `endTime` column on the `MeetingTime` table would be dropped and recreated. This will lead to data loss if there is data in the column.
+
+*/
+-- AlterTable
+ALTER TABLE "MeetingTime" DROP COLUMN "beginTime",
+ADD COLUMN "beginTime" TIME(2),
+DROP COLUMN "endTime",
+ADD COLUMN "endTime" TIME(2);
diff --git a/prisma/migrations/20241106191607_reset_strings/migration.sql b/prisma/migrations/20241106191607_reset_strings/migration.sql
new file mode 100644
index 0000000..8d6116b
--- /dev/null
+++ b/prisma/migrations/20241106191607_reset_strings/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "MeetingTime" ALTER COLUMN "beginTime" SET DATA TYPE TEXT,
+ALTER COLUMN "endTime" SET DATA TYPE TEXT;
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index df3b374..77dc829 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -1,6 +1,6 @@
generator client {
provider = "prisma-client-js"
- previewFeatures = ["fullTextSearch", "relationJoins"]
+ previewFeatures = ["fullTextSearch", "relationJoins", "strictUndefinedChecks"]
}
datasource db {
@@ -70,14 +70,14 @@ model MeetingsFaculty {
model MeetingTime {
id Int @id @default(autoincrement())
- beginTime String
+ beginTime String?
building String
buildingDescription String
room String
category String
courseReferenceNumber String @unique
endDate String
- endTime String
+ endTime String?
startDate String
hoursWeek Float
meetingType String