-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from khs0727/part3-김현서-week14
[김현서] Week14
- Loading branch information
Showing
106 changed files
with
1,606 additions
and
1,089 deletions.
There are no files selected for viewing
102 changes: 0 additions & 102 deletions
102
weekly-mission/next-project/components/ActionButton/ActionButton.jsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
weekly-mission/next-project/components/Context/ModalContext.jsx
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
weekly-mission/next-project/components/FolderContent/FolderContent.jsx
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
weekly-mission/next-project/components/FolderContent/LinksContent.jsx
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
weekly-mission/next-project/components/Footer/FooterIcon.jsx
This file was deleted.
Oops, something went wrong.
71 changes: 0 additions & 71 deletions
71
weekly-mission/next-project/components/Input/InputField.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { MongoClient } from "mongodb"; | ||
|
||
const url = | ||
"mongodb+srv://hs0727:hsjh1004!@cluster0.aeptwaq.mongodb.net/check-email?retryWrites=true&w=majority&appName=Cluster0"; | ||
const options: any = { useNewUrlParser: true }; | ||
|
||
let cachedClient: MongoClient | null = null; | ||
|
||
export async function connectDB(): Promise<MongoClient> { | ||
if (cachedClient) { | ||
return cachedClient; | ||
} | ||
|
||
const client = new MongoClient(url, options); | ||
await client.connect(); | ||
|
||
cachedClient = client; | ||
return client; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
declare module "*.module.css" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
// global.d.ts | ||
|
||
import type { MongoClient } from "mongodb"; | ||
|
||
declare global { | ||
namespace globalThis { | ||
var _mongo: Promise<MongoClient>; | ||
} | ||
} | ||
|
||
declare module "*.png"; | ||
declare module "*.jpg"; | ||
declare module "*.svg"; |
Oops, something went wrong.