-
Notifications
You must be signed in to change notification settings - Fork 0
관리자 신고 검토 페이지 구현 ( Feat/#327 ) #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1dd2248
feat : 관리자 신고 검토 페이지 구현
layout-SY 028cb0a
refactor : 리뷰 사항 반영
layout-SY 3707476
feat : 프로필 사진이 없는 경우 기본 사진 추가
layout-SY e35773a
feat : 신고 검토에서 신고 카테고리 API 연결
layout-SY 26ca2a0
Merge branch 'develop' of https://github.com/devpalsPlus/frontend int…
layout-SY 4dcf410
refactor : model import에 type 추가
layout-SY bdf5e66
feat : 문의보기 preview 별도 훅으로 생성
layout-SY 76e991c
refactor : 리뷰 사항 적용
layout-SY da050aa
refactor : 리뷰 사항 적용
layout-SY 55a760c
Merge branch 'develop' of https://github.com/devpalsPlus/frontend int…
layout-SY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,45 @@ | ||
| import type { ApiReportDetail } from '../../models/admin/userDetail/reportDetail'; | ||
| import type { ApiAllReports } from '../../models/report'; | ||
| import type { SearchType } from '../../models/search'; | ||
| import { httpClient } from '../http.api'; | ||
|
|
||
| export const postDeleteReport = async (id: number) => { | ||
| try { | ||
| await httpClient.delete(`/report/${id}`); | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const getReportDetail = async (reportId: number) => { | ||
| try { | ||
| const response = await httpClient.get<ApiReportDetail>( | ||
| `/report/${reportId}` | ||
| ); | ||
| return response.data.data; | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const getAllReports = async (params: SearchType) => { | ||
| try { | ||
| const response = await httpClient.get<ApiAllReports>(`/report`, { params }); | ||
| return response.data; | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const getAllReportsPreview = async () => { | ||
| try { | ||
| const response = await httpClient.get<ApiAllReports>(`/report`); | ||
| return response.data.data; | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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
144 changes: 144 additions & 0 deletions
144
src/components/admin/adminUserReport/AdminReportDetail.styled.ts
This file contains hidden or 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,144 @@ | ||
| import styled from 'styled-components'; | ||
| import { ScrollArea } from '../../common/header/Notification/Notification.styled'; | ||
| import { SpinnerContainer } from '../../user/mypage/Spinner.styled'; | ||
| import { Link } from 'react-router-dom'; | ||
| import Button from '../../common/Button/Button'; | ||
|
|
||
| export const Container = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| margin: 8rem 0 auto; | ||
| `; | ||
|
|
||
| export const Spinner = styled(SpinnerContainer)``; | ||
|
|
||
| export const Wrapper = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const HeaderContainer = styled.div` | ||
| width: 80%; | ||
| height: 100px; | ||
| display: flex; | ||
| justify-content: space-around; | ||
| align-items: center; | ||
| border: 1px solid ${({ theme }) => theme.color.border}; | ||
| border-radius: ${({ theme }) => theme.borderRadius.primary}; | ||
| `; | ||
|
|
||
| export const UserContainer = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const NickName = styled.p` | ||
| font-size: 0.8rem; | ||
| opacity: 40%; | ||
| `; | ||
|
|
||
| export const Category = styled.p``; | ||
|
|
||
| export const Arrow = styled.div` | ||
| width: 50px; | ||
| height: 50px; | ||
| position: relative; | ||
| margin-bottom: 30px; | ||
|
|
||
| &::before, | ||
| &::after { | ||
| content: ''; | ||
| position: absolute; | ||
| } | ||
|
|
||
| &::before { | ||
| width: 45%; | ||
| height: 45%; | ||
| top: 59%; | ||
| right: -10rem; | ||
| border: 1.5px solid ${({ theme }) => theme.color.primary}; | ||
| border-right: 0; | ||
| border-bottom: 0; | ||
| transform: rotate(130deg); | ||
| } | ||
|
|
||
| &::after { | ||
| width: 24.3rem; | ||
| height: 1px; | ||
| top: 78%; | ||
| left: -11rem; | ||
| background-color: ${({ theme }) => theme.color.primary}; | ||
| transform-origin: 0 100%; | ||
| transform: rotate(0deg); | ||
|
|
||
| } | ||
| } | ||
| `; | ||
|
|
||
| export const Date = styled.p` | ||
| opacity: 60%; | ||
| `; | ||
|
|
||
| export const ContentContainer = styled.div` | ||
| width: 80%; | ||
| height: 550px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| border: 1px solid ${({ theme }) => theme.color.border}; | ||
| border-radius: ${({ theme }) => theme.borderRadius.primary}; | ||
| margin-top: 30px; | ||
| padding: 40px; | ||
| `; | ||
|
|
||
| export const ContentHeader = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const Divider = styled.hr` | ||
| width: 400px; | ||
| height: 1px; | ||
| margin: 20px 0 20px 0; | ||
| opacity: 40%; | ||
| `; | ||
|
|
||
| export const Scroll = styled(ScrollArea)` | ||
| padding: 20px; | ||
| `; | ||
|
|
||
| export const Content = styled.p` | ||
| white-space: pre-wrap; | ||
| `; | ||
|
|
||
| export const ConfirmContainer = styled.div` | ||
| width: 80%; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| margin-top: 30px; | ||
| `; | ||
|
|
||
| export const ConfirmArea = styled(Link)` | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const ButtonArea = styled.div` | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 10px; | ||
| margin-bottom: 10px; | ||
| `; | ||
|
|
||
| export const WarningButton = styled(Button)` | ||
| background-color: ${({ theme }) => theme.color.red}; | ||
| `; | ||
|
|
||
| export const BanButton = styled(Button)``; | ||
|
|
||
| export const ConfirmButton = styled(Button)``; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전역 Date 객체와 이름 충돌
Date라는 이름이 JavaScript의 전역 Date 객체와 충돌합니다. 다른 이름으로 변경해야 합니다.📝 Committable suggestion
🧰 Tools
🪛 Biome (1.9.4)
[error] 80-80: Do not shadow the global "Date" property.
Consider renaming this variable. It's easy to confuse the origin of variables when they're named after a known global.
(lint/suspicious/noShadowRestrictedNames)
🤖 Prompt for AI Agents