From a234ba78d1a2fb8dcff1e0cc5cbb11752c7c047c Mon Sep 17 00:00:00 2001 From: Takagineer <75421119+Takagineer@users.noreply.github.com> Date: Tue, 7 Dec 2021 15:51:05 +0900 Subject: [PATCH 1/7] =?UTF-8?q?tsconfig=E3=81=AE=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e69de29 From f446eaccf46355c9085dcf918509f24a3ee5090e Mon Sep 17 00:00:00 2001 From: Takagineer <75421119+Takagineer@users.noreply.github.com> Date: Tue, 7 Dec 2021 15:51:19 +0900 Subject: [PATCH 2/7] =?UTF-8?q?typescript=E3=81=AE=E5=B0=8E=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 ++++- yarn.lock | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e9756e9..b8aa7bb 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,12 @@ "swiper": "^6.8.2" }, "devDependencies": { + "@types/node": "^16.11.12", + "@types/react": "^17.0.37", "babel-plugin-styled-components": "^1.13.3", "firebase-functions-test": "^0.2.3", - "firebase-tools": "^9.3.0" + "firebase-tools": "^9.3.0", + "typescript": "^4.5.2" }, "license": "MIT", "volta": { diff --git a/yarn.lock b/yarn.lock index 060bf77..dd97288 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1144,6 +1144,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42" integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw== +"@types/node@^16.11.12": + version "16.11.12" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.12.tgz#ac7fb693ac587ee182c3780c26eb65546a1a3c10" + integrity sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw== + "@types/prop-types@*", "@types/prop-types@^15.7.4": version "15.7.4" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11" @@ -1182,6 +1187,15 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/react@^17.0.37": + version "17.0.37" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.37.tgz#6884d0aa402605935c397ae689deed115caad959" + integrity sha512-2FS1oTqBGcH/s0E+CjrCCR9+JMpsu9b69RTFO+40ua43ZqP5MmQ4iUde/dMjWR909KxZwmOQIFq6AV6NjEG5xg== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + "@types/scheduler@*": version "0.16.2" resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" @@ -6881,6 +6895,11 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" +typescript@^4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" + integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== + unbox-primitive@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471" From 4cae2c341e30ff70cc3f16e633a695d8bb7e4039 Mon Sep 17 00:00:00 2001 From: Takagineer <75421119+Takagineer@users.noreply.github.com> Date: Wed, 8 Dec 2021 14:29:03 +0900 Subject: [PATCH 3/7] =?UTF-8?q?typescript=E3=81=AE=E5=B0=8E=E5=85=A52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + yarn.lock | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/package.json b/package.json index b8aa7bb..e77be77 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", "@mui/styles": "^5.0.1", + "@types/react-dom": "^17.0.11", "firebase": "^8.9.1", "firebase-admin": "^9.4.2", "firebase-functions": "^3.13.1", diff --git a/yarn.lock b/yarn.lock index dd97288..13bbea6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1164,6 +1164,13 @@ resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc" integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== +"@types/react-dom@^17.0.11": + version "17.0.11" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.11.tgz#e1eadc3c5e86bdb5f7684e00274ae228e7bcc466" + integrity sha512-f96K3k+24RaLGVu/Y2Ng3e1EbZ8/cVJvypZWd7cy0ofCBaf2lcM46xNhycMZ2xGwbBjRql7hOlZ+e2WlJ5MH3Q== + dependencies: + "@types/react" "*" + "@types/react-is@^16.7.1 || ^17.0.0": version "17.0.3" resolved "https://registry.yarnpkg.com/@types/react-is/-/react-is-17.0.3.tgz#2d855ba575f2fc8d17ef9861f084acc4b90a137a" From 912d5658b9fdb0ccf02189e9d3561be45fcdeb52 Mon Sep 17 00:00:00 2001 From: Takagineer <75421119+Takagineer@users.noreply.github.com> Date: Sat, 11 Dec 2021 14:52:25 +0900 Subject: [PATCH 4/7] =?UTF-8?q?typescript=E3=81=AE=E8=A8=98=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e77be77..5fc1baa 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "babel-plugin-styled-components": "^1.13.3", "firebase-functions-test": "^0.2.3", "firebase-tools": "^9.3.0", - "typescript": "^4.5.2" + "typescript": "^4.5.3" }, "license": "MIT", "volta": { diff --git a/yarn.lock b/yarn.lock index 13bbea6..bb6a59b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6902,10 +6902,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.5.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" - integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== +typescript@^4.5.3: + version "4.5.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.3.tgz#afaa858e68c7103317d89eb90c5d8906268d353c" + integrity sha512-eVYaEHALSt+s9LbvgEv4Ef+Tdq7hBiIZgii12xXJnukryt3pMgJf6aKhoCZ3FWQsu6sydEnkg11fYXLzhLBjeQ== unbox-primitive@^1.0.1: version "1.0.1" From b59fee15624f7d4e81b23f7989f38e4081e8aafa Mon Sep 17 00:00:00 2001 From: Takagineer <75421119+Takagineer@users.noreply.github.com> Date: Thu, 16 Dec 2021 17:41:17 +0900 Subject: [PATCH 5/7] =?UTF-8?q?=E5=90=84=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E3=81=AEtypescript=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/Auth.jsx | 0 src/Auth.tsx | 11 +++++++ src/{_app.js => _app.ts} | 0 src/{_document.js => _document.ts} | 0 src/components/{App.jsx => App.tsx} | 0 .../{ApplyBusiness.jsx => ApplyBusiness.tsx} | 0 .../{BusinessCard.jsx => BusinessCard.tsx} | 0 .../{BusinessData.jsx => BusinessData.tsx} | 0 ...nformation.jsx => BusinessInformation.tsx} | 0 .../{ChildModal.jsx => ChildModal.tsx} | 0 src/components/{Content.jsx => Content.tsx} | 0 .../{FavoBusiness.jsx => FavoBusiness.tsx} | 0 src/components/{Filetr.jsx => Filetr.tsx} | 0 src/components/{Footer.jsx => Footer.tsx} | 2 +- src/components/{Header.jsx => Header.tsx} | 2 +- .../{NewBusiness.jsx => NewBusiness.tsx} | 0 ...arBusinesses.jsx => PopularBusinesses.tsx} | 0 ...{RewardBusiness.jsx => RewardBusiness.tsx} | 0 ...tion.jsx => SwiperBusinessInformation.tsx} | 0 src/{firebase.js => firebase.ts} | 0 src/next-env.d.ts | 6 ++++ src/{next.config.js => next.config.ts} | 0 src/pages/{Loading.jsx => Loading.tsx} | 0 .../{CompanySignIn.jsx => CompanySignIn.tsx} | 0 .../{CompanySignUp.jsx => CompanySignUp.tsx} | 0 .../{StudentSignIn.jsx => StudentSignIn.tsx} | 0 .../{StudentSignUp.jsx => StudentSignUp.tsx} | 0 ...ation.jsx => UpdateCompanyInformation.tsx} | 0 ...ation.jsx => UpdateStudentInformation.tsx} | 0 src/pages/{index.jsx => index.tsx} | 0 ...nyBusinesses.jsx => CompanyBusinesses.tsx} | 12 ++++--- .../individual-pages/{Guide.jsx => Guide.tsx} | 0 .../{[business].jsx => [business].tsx} | 30 +++++++++++------- .../company/{[company].jsx => [company].tsx} | 24 +++++++++----- .../student/{[student].jsx => [student].tsx} | 10 +++--- src/store/{userState.js => userState.ts} | 2 +- src/{theme.js => theme.ts} | 0 src/tsconfig.json | 31 +++++++++++++++++++ tsconfig.json | 29 +++++++++++++++++ yarn.lock | 5 +++ 41 files changed, 134 insertions(+), 33 deletions(-) delete mode 100644 src/Auth.jsx create mode 100644 src/Auth.tsx rename src/{_app.js => _app.ts} (100%) rename src/{_document.js => _document.ts} (100%) rename src/components/{App.jsx => App.tsx} (100%) rename src/components/{ApplyBusiness.jsx => ApplyBusiness.tsx} (100%) rename src/components/{BusinessCard.jsx => BusinessCard.tsx} (100%) rename src/components/{BusinessData.jsx => BusinessData.tsx} (100%) rename src/components/{BusinessInformation.jsx => BusinessInformation.tsx} (100%) rename src/components/{ChildModal.jsx => ChildModal.tsx} (100%) rename src/components/{Content.jsx => Content.tsx} (100%) rename src/components/{FavoBusiness.jsx => FavoBusiness.tsx} (100%) rename src/components/{Filetr.jsx => Filetr.tsx} (100%) rename src/components/{Footer.jsx => Footer.tsx} (91%) rename src/components/{Header.jsx => Header.tsx} (98%) rename src/components/{NewBusiness.jsx => NewBusiness.tsx} (100%) rename src/components/{PopularBusinesses.jsx => PopularBusinesses.tsx} (100%) rename src/components/{RewardBusiness.jsx => RewardBusiness.tsx} (100%) rename src/components/{SwiperBusinessInformation.jsx => SwiperBusinessInformation.tsx} (100%) rename src/{firebase.js => firebase.ts} (100%) create mode 100644 src/next-env.d.ts rename src/{next.config.js => next.config.ts} (100%) rename src/pages/{Loading.jsx => Loading.tsx} (100%) rename src/pages/auth/{CompanySignIn.jsx => CompanySignIn.tsx} (100%) rename src/pages/auth/{CompanySignUp.jsx => CompanySignUp.tsx} (100%) rename src/pages/auth/{StudentSignIn.jsx => StudentSignIn.tsx} (100%) rename src/pages/auth/{StudentSignUp.jsx => StudentSignUp.tsx} (100%) rename src/pages/auth/{UpdateCompanyInformation.jsx => UpdateCompanyInformation.tsx} (100%) rename src/pages/auth/{UpdateStudentInformation.jsx => UpdateStudentInformation.tsx} (100%) rename src/pages/{index.jsx => index.tsx} (100%) rename src/pages/individual-pages/{CompanyBusinesses.jsx => CompanyBusinesses.tsx} (96%) rename src/pages/individual-pages/{Guide.jsx => Guide.tsx} (100%) rename src/pages/individual-pages/business/{[business].jsx => [business].tsx} (93%) rename src/pages/individual-pages/company/{[company].jsx => [company].tsx} (93%) rename src/pages/individual-pages/student/{[student].jsx => [student].tsx} (96%) rename src/store/{userState.js => userState.ts} (68%) rename src/{theme.js => theme.ts} (100%) create mode 100644 src/tsconfig.json diff --git a/package.json b/package.json index 5fc1baa..7d2002e 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "react-select": "^4.3.1", "recoil": "^0.4.1", "styled-components": "^5.3.0", - "swiper": "^6.8.2" + "swiper": "^6.8.2", + "yarn": "^1.22.17" }, "devDependencies": { "@types/node": "^16.11.12", diff --git a/src/Auth.jsx b/src/Auth.jsx deleted file mode 100644 index e69de29..0000000 diff --git a/src/Auth.tsx b/src/Auth.tsx new file mode 100644 index 0000000..af788e8 --- /dev/null +++ b/src/Auth.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +function Auth() { + return ( +
+ +
+ ) +} + +export default Auth diff --git a/src/_app.js b/src/_app.ts similarity index 100% rename from src/_app.js rename to src/_app.ts diff --git a/src/_document.js b/src/_document.ts similarity index 100% rename from src/_document.js rename to src/_document.ts diff --git a/src/components/App.jsx b/src/components/App.tsx similarity index 100% rename from src/components/App.jsx rename to src/components/App.tsx diff --git a/src/components/ApplyBusiness.jsx b/src/components/ApplyBusiness.tsx similarity index 100% rename from src/components/ApplyBusiness.jsx rename to src/components/ApplyBusiness.tsx diff --git a/src/components/BusinessCard.jsx b/src/components/BusinessCard.tsx similarity index 100% rename from src/components/BusinessCard.jsx rename to src/components/BusinessCard.tsx diff --git a/src/components/BusinessData.jsx b/src/components/BusinessData.tsx similarity index 100% rename from src/components/BusinessData.jsx rename to src/components/BusinessData.tsx diff --git a/src/components/BusinessInformation.jsx b/src/components/BusinessInformation.tsx similarity index 100% rename from src/components/BusinessInformation.jsx rename to src/components/BusinessInformation.tsx diff --git a/src/components/ChildModal.jsx b/src/components/ChildModal.tsx similarity index 100% rename from src/components/ChildModal.jsx rename to src/components/ChildModal.tsx diff --git a/src/components/Content.jsx b/src/components/Content.tsx similarity index 100% rename from src/components/Content.jsx rename to src/components/Content.tsx diff --git a/src/components/FavoBusiness.jsx b/src/components/FavoBusiness.tsx similarity index 100% rename from src/components/FavoBusiness.jsx rename to src/components/FavoBusiness.tsx diff --git a/src/components/Filetr.jsx b/src/components/Filetr.tsx similarity index 100% rename from src/components/Filetr.jsx rename to src/components/Filetr.tsx diff --git a/src/components/Footer.jsx b/src/components/Footer.tsx similarity index 91% rename from src/components/Footer.jsx rename to src/components/Footer.tsx index 2c8d8ef..bef7288 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.tsx @@ -9,7 +9,7 @@ import { Typography, } from "@material-ui/core"; -const Header = ({ pathname }) => ( +const Header = ({ pathname }:{pathname?:any}) => (