This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #22 from tempfiles-Team/feature/19-add-detail-page
feat: add detail page
- Loading branch information
Showing
60 changed files
with
1,275 additions
and
106 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
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,15 @@ | ||
import { API_SUFFIX, instance } from './api'; | ||
|
||
export interface CheckPwValues { | ||
id: string; | ||
password: string; | ||
} | ||
|
||
export interface CheckPwResponse { | ||
token: string; | ||
} | ||
|
||
export const checkPw = async ({ id, password }: CheckPwValues) => { | ||
const { data } = await instance.post(`${API_SUFFIX.CHECK_PW}/${id}?pw=${password}`); | ||
return data; | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './api'; | ||
export * from './file'; | ||
export * from './text'; | ||
export * from './checkPw'; |
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 @@ | ||
export { default as LockSVG } from './lockIcon.svg'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 @@ | ||
import { atom } from 'recoil'; | ||
|
||
export const checkPwState = atom({ | ||
key: 'checkPwState', | ||
default: { | ||
isEncrypt: false, | ||
token: '', | ||
}, | ||
}); |
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 @@ | ||
export * from './checkPw'; |
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 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { ApiItem } from '@/constant'; | ||
import { DataBox } from '@/components'; | ||
|
||
export interface ApiBoxProps { | ||
apiList: ApiItem[]; | ||
} | ||
|
||
export const ApiBox: React.FC<ApiBoxProps> = ({ apiList }) => { | ||
return ( | ||
<> | ||
{apiList.map((api) => ( | ||
<DataBox key={api.apiId}> | ||
<Link to={`/api${api.apiId}`}>{api.url}</Link> | ||
</DataBox> | ||
))} | ||
</> | ||
); | ||
}; |
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 @@ | ||
export * from './ApiBox'; |
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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
import styled from '@emotion/styled'; | ||
import { Button } from '@mui/material'; | ||
|
||
import { colors } from '@/styles'; | ||
|
||
export const ButtonElement = styled.div<{ isTertiary?: boolean }>` | ||
padding: 0 1rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
font-size: 1.1rem; | ||
font-weight: 600; | ||
background-color: ${({ isTertiary }) => (isTertiary ? colors.tertiary : colors.primary)}; | ||
export const ButtonElement = styled(Button)<{ isPrimary: boolean }>` | ||
background-color: ${({ isPrimary }) => (isPrimary ? colors.primary : colors.tertiary)}; | ||
border-radius: 0.6rem; | ||
cursor: pointer; | ||
@media screen and (max-width: 630px) { | ||
padding: 0 0.6rem; | ||
font-size: 0.8rem; | ||
font-weight: 600; | ||
font-size: 1.3rem; | ||
font-weight: 600; | ||
height: 3.4rem; | ||
border: 0; | ||
color: ${colors.white}; | ||
&:hover { | ||
background-color: ${({ isPrimary }) => (isPrimary ? colors.primary : colors.tertiary)}; | ||
} | ||
& > a { | ||
color: ${colors.white}; | ||
text-decoration: none; | ||
} | ||
@media screen and (max-width: 500px) { | ||
font-size: 1.1rem; | ||
} | ||
`; |
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 @@ | ||
import React from 'react'; | ||
|
||
import * as S from './styled'; | ||
export interface DataBoxProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
export const DataBox: React.FC<DataBoxProps> = ({ children }) => { | ||
return <S.DataBoxElement>{children}</S.DataBoxElement>; | ||
}; |
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,41 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
import { colors } from '@/styles'; | ||
|
||
export const DataBoxElement = styled.div` | ||
background-color: ${colors.file}; | ||
color: ${colors.text}; | ||
border-radius: 0.8rem; | ||
padding: 0.6rem; | ||
text-align: center; | ||
flex-wrap: wrap; | ||
word-break: break-all; | ||
font-size: 1.3rem; | ||
max-width: 100%; | ||
max-height: 10rem; | ||
line-height: 1.8rem; | ||
overflow: auto; | ||
cursor: default; | ||
display: flex; | ||
align-items: center; | ||
&::-webkit-scrollbar { | ||
z-index: 999; | ||
width: 0.4rem; | ||
} | ||
&::-webkit-scrollbar-track { | ||
background-color: transparent; | ||
border-radius: 1rem; | ||
} | ||
&::-webkit-scrollbar-thumb { | ||
background-color: #4f4f4f; | ||
border-radius: 1rem; | ||
} | ||
@media screen and (min-width: 700px) and (max-width: 1000px) { | ||
max-height: 8rem; | ||
} | ||
@media screen and (max-width: 500px) { | ||
max-height: 8rem; | ||
font-size: 1.1rem; | ||
font-weight: 600; | ||
} | ||
`; |
Oops, something went wrong.