-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat : 채팅방 Open, Private 분기 pr
- Loading branch information
Showing
37 changed files
with
419 additions
and
96 deletions.
There are no files selected for viewing
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,21 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import { asyncLoadingAtom } from '@/atoms/asyncLoadingAtom'; | ||
import { useRecoilValue } from 'recoil'; | ||
import AsyncSpinner from './AsyncSpinner'; | ||
|
||
const AsyncLoadingProvider = () => { | ||
const asyncLoading = useRecoilValue(asyncLoadingAtom); | ||
return ( | ||
<> | ||
{asyncLoading && ( | ||
<div className="absolute top-0 left-0 bottom-0 right-0 z-[999] bg-opacity-70 w-full h-screen flex justify-center items-center bg-gray-700"> | ||
<AsyncSpinner /> | ||
</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default AsyncLoadingProvider; |
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,14 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import { Spinner } from '@material-tailwind/react'; | ||
|
||
const AsyncSpinner = () => { | ||
return ( | ||
<> | ||
<Spinner className="h-10 w-10" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default AsyncSpinner; |
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
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,10 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import { Spinner } from '@material-tailwind/react'; | ||
|
||
const PageSpinner = () => { | ||
return <Spinner color="pink" className="w-8 h-8" />; | ||
}; | ||
|
||
export default PageSpinner; |
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,30 @@ | ||
'use client'; | ||
|
||
import React, { useEffect, useState } from 'react'; | ||
import { Progress } from '@material-tailwind/react'; | ||
|
||
const ProgressBar = () => { | ||
const [value, setValue] = useState<number>(0); | ||
|
||
useEffect(() => { | ||
const interval = setInterval(() => { | ||
setValue((oldValue) => { | ||
const newValue = oldValue + 10; | ||
|
||
if (newValue >= 100) { | ||
clearInterval(interval); | ||
} | ||
|
||
return newValue; | ||
}); | ||
}, 600); | ||
}, []); | ||
|
||
return ( | ||
<> | ||
<Progress value={value} size="sm" color="pink" className="h-1" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default ProgressBar; |
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,13 @@ | ||
export type RequestBody = { | ||
id: string; // 사용자 아이디 (필수!, 영어와 숫자만) | ||
password: string; // 사용자 비밀번호, 5자 이상 (필수!) | ||
name: string; // 사용자 이름, 20자 이하 (필수!) | ||
picture: string; // 사용자 이미지(url or base64, under 1MB) | ||
}; | ||
|
||
export type FetchImageProps = { | ||
file: string; | ||
id: string; | ||
password: string; | ||
name: string; | ||
}; |
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
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,4 @@ | ||
export type IFormInput = { | ||
id: string; // 사용자 아이디 (필수!, 영어와 숫자만) | ||
password: string; // 사용자 비밀번호, 5자 이상 (필수!) | ||
}; |
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
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
Oops, something went wrong.