From 66ae32925897d9290b7bef520b9a1aea6d488c78 Mon Sep 17 00:00:00 2001 From: JRJR519 <102293576+Jeong-Rae@users.noreply.github.com> Date: Sun, 5 May 2024 02:34:29 +0900 Subject: [PATCH] Feat/admin (#139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: textarea 추가 Signed-off-by: Jeong-Rae * feat: stage, question 컨테이너 추가 삭제 구현 Signed-off-by: Jeong-Rae * feat: 미들웨어 코드 수정 Signed-off-by: Jeong-Rae * feat: 관리자 페이지 방어기능 추가 Signed-off-by: Jeong-Rae --------- Signed-off-by: Jeong-Rae --- src/components/uploadStage/Button.tsx | 2 +- src/components/uploadStage/Textarea.tsx | 2 +- src/middleware.ts | 112 ++++++++++++++------- src/types/basicResponseDto.ts | 5 + src/utils/protection/protectAdminAccess.ts | 23 +++++ 5 files changed, 106 insertions(+), 38 deletions(-) create mode 100644 src/types/basicResponseDto.ts create mode 100644 src/utils/protection/protectAdminAccess.ts diff --git a/src/components/uploadStage/Button.tsx b/src/components/uploadStage/Button.tsx index cb7e427..0e55257 100644 --- a/src/components/uploadStage/Button.tsx +++ b/src/components/uploadStage/Button.tsx @@ -22,7 +22,7 @@ const Button: React.FC = ({id, labelText, onClick, className = "",