-
Notifications
You must be signed in to change notification settings - Fork 0
(계정분리 관련) 게시물 작성자 고정 / CUD 구역 생성 #70
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
Merged
Changes from 10 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
a1b281c
fix: 2차 비밀번호 삭제
Gwak-Seungju 379c474
feat: 히스토리 카테고리 추가
Gwak-Seungju 12a226f
feat: 로그아웃 구현
Gwak-Seungju 4939b2b
fix: 로그아웃 시 refreshToken 삭제
Gwak-Seungju e3d56ca
feat: 비밀번호 변경, 로그아웃 버튼 추가
Gwak-Seungju d85c1b8
feat: 비밀번호 변경 api 연결
Gwak-Seungju 6f4f08c
feat: 비밀번호 변경 모달 생성
Gwak-Seungju 3b01170
feat: 모달 내 취소하기 버튼 추가
Gwak-Seungju 658b5f9
refactor: 파일명, 컴포넌트명 일치
Gwak-Seungju 81e2de8
refactor: Form.Item에 dependencies 추가
Gwak-Seungju 67d92b1
fix: dependencies 속성 추가
Gwak-Seungju 74127bb
refactor: 로그아웃 함수 직접 정의
Gwak-Seungju dc6868d
refactor: 변수명 수정
Gwak-Seungju df357a0
refactor: 불필요 로직 삭제
Gwak-Seungju 043a764
fix: store state 변경 훅 사용
Gwak-Seungju 8e2eede
refactor: form 태그 대신 CustomForm 사용
Gwak-Seungju d5732cc
refactor: useValidate 유틸함수로 변경
Gwak-Seungju 53ce547
refactor: 나머지 매개변수와 중복 선언 제거
Gwak-Seungju 812de1b
Merge branch 'develop' into feat/separate-account
Gwak-Seungju bd5d880
feat: admin 정보 api 연결
Gwak-Seungju d3b088c
fix: icon 모달 사용 시 아이콘을 사용하지 않는 경우 추가
Gwak-Seungju bea2294
fix: hasIcon 속성 default값 추가
Gwak-Seungju 30ce1fe
fix: antd Button 컴포넌트 사용
Gwak-Seungju b68aa23
refactor: auth 관련 로직 rtk acitons으로
Gwak-Seungju 0c822bf
fix: ab테스트 작성자 변경불가하게
Gwak-Seungju 54bed6f
feat: historys api 연결
Gwak-Seungju bb46a3b
chore: antd 버전 업데이트
Gwak-Seungju 40041e8
fix: history api url 수정
Gwak-Seungju 577499e
feat: 세부사항 내 히스토리 구역 컴포넌트
Gwak-Seungju e459579
feat: AB테스트 게시물 내 cud 구역 추가
Gwak-Seungju 4b238e1
feat: 공지사항 게시물 내 cud 구역 추가
Gwak-Seungju bb47717
refetch안되는 현상 수정
Gwak-Seungju ef8c3be
refactor: 조건문 간소화
Gwak-Seungju 7691566
Merge pull request #63 from BCSDLab/feat/separate-account
Gwak-Seungju 3bdb16a
feat: admin 정보 api 연결
Gwak-Seungju dad6dcd
fix: ab테스트 작성자 변경불가하게
Gwak-Seungju e3665d2
feat: historys api 연결
Gwak-Seungju 4b29106
chore: antd 버전 업데이트
Gwak-Seungju 765f31a
fix: history api url 수정
Gwak-Seungju b913faf
feat: 세부사항 내 히스토리 구역 컴포넌트
Gwak-Seungju 23cb194
feat: AB테스트 게시물 내 cud 구역 추가
Gwak-Seungju 77e1ab1
feat: 공지사항 게시물 내 cud 구역 추가
Gwak-Seungju 93a557c
refetch안되는 현상 수정
Gwak-Seungju 84fe8e1
refactor: 조건문 간소화
Gwak-Seungju 2aa11b5
Merge branch 'feat/#65/fix-admin-info' of https://github.com/BCSDLab/…
Gwak-Seungju 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file removed
BIN
-115 KB
.yarn/cache/@ant-design-cssinjs-npm-1.18.4-24085a3978-c602809792.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+45 KB
.yarn/cache/@ant-design-cssinjs-utils-npm-1.1.1-e30bdb3b19-00cfaf1e5f.zip
Binary file not shown.
Binary file added
BIN
+15.7 KB
.yarn/cache/@ant-design-fast-color-npm-2.0.6-c76709cbac-01f81ff590.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-197 KB
.yarn/cache/@ant-design-react-slick-npm-1.0.2-7af1d8d832-c2a2d14270.zip
Binary file not shown.
Binary file added
BIN
+198 KB
.yarn/cache/@ant-design-react-slick-npm-1.1.2-4d15ec3292-e3f310ceb0.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+69.4 KB
.yarn/cache/@rc-component-async-validator-npm-5.0.4-f3a060f9a3-30de0a62cd.zip
Binary file not shown.
Binary file removed
BIN
-38.1 KB
.yarn/cache/@rc-component-color-picker-npm-1.5.1-c1fcf8802d-b8997f4844.zip
Binary file not shown.
Binary file added
BIN
+43.4 KB
.yarn/cache/@rc-component-color-picker-npm-2.0.1-93fb276f32-0c1f45362f.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-27.1 KB
.yarn/cache/@rc-component-tour-npm-1.12.3-627b55a812-1a137d235e.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-63.5 KB
.yarn/cache/@rc-component-trigger-npm-1.18.3-02693bd849-272098e67b.zip
Binary file not shown.
Binary file added
BIN
+63.5 KB
.yarn/cache/@rc-component-trigger-npm-2.2.5-7412384fc9-5ce0e012cf.zip
Binary file not shown.
Binary file renamed
BIN
+10.3 MB
...antd-npm-5.14.0-b5521dc402-81a2163b54.zip → ...antd-npm-5.22.2-91974648c4-59e02a4c47.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+337 KB
...yjs-npm-1.11.10-2b4382efc1-a6b5a3813b.zip → ...yjs-npm-1.11.13-d478bb9479-f388db88a6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+120 KB
...ation-npm-4.0.4-ed07c5fc62-2ff6f2dd6a.zip → ...ation-npm-4.3.0-9bb3dfebff-7f75327557.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+17.6 KB
...oltip-npm-6.1.3-58034e9c58-f67cf4e409.zip → ...oltip-npm-6.2.1-9a99ec3d6b-adf0cf0b63.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Card } from 'antd'; | ||
import styled from 'styled-components'; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export const HistoryArea = styled(Card)` | ||
position: absolute; | ||
bottom: 0; | ||
right: 0; | ||
z-index: 5; | ||
width: 300px; | ||
height: 110px; | ||
overflow: auto; | ||
border: none; | ||
|
||
.ant-card-body { | ||
padding: 0; | ||
} | ||
`; | ||
Gwak-Seungju marked this conversation as resolved.
Show resolved
Hide resolved
|
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,25 @@ | ||
import { List } from 'antd'; | ||
import { CardProps } from 'antd/lib'; | ||
import { HistoryInfo } from 'model/history.model'; | ||
import * as S from './HistoryArea.style'; | ||
|
||
interface HistoryAreaProps { | ||
historys: HistoryInfo[], | ||
creator?: string, | ||
created_at?: string, | ||
} | ||
|
||
export default function HistoryArea({ | ||
historys, creator, created_at, ...args | ||
}: HistoryAreaProps & CardProps) { | ||
return ( | ||
<S.HistoryArea {...args}> | ||
<List | ||
dataSource={historys} | ||
renderItem={(item) => <List.Item style={{ padding: '0', border: 'none' }}>{`${item.created_at} ${item.request_method} (${item.name})`}</List.Item>} | ||
locale={{ emptyText: ' ' }} | ||
/> | ||
<div>{`${created_at} 생성 (${creator})`}</div> | ||
</S.HistoryArea> | ||
); | ||
} | ||
Gwak-Seungju marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export interface HistoryInfo { | ||
id: number; | ||
domain_id: number; | ||
name: string; | ||
domain_name: string; | ||
request_method: string; | ||
request_message: string; | ||
created_at: string; | ||
} | ||
|
||
export interface HistorysRequest { | ||
page: number; | ||
limit?: number; | ||
requestMethod?: string; | ||
domainName?: string; | ||
domainId?: number; | ||
} | ||
|
||
export interface HistorysResponse { | ||
total_count: number; | ||
current_count: number; | ||
total_page: number; | ||
current_page: number; | ||
historys: HistoryInfo[]; | ||
} | ||
Gwak-Seungju marked this conversation as resolved.
Show resolved
Hide resolved
|
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,9 @@ | ||
import styled from 'styled-components'; | ||
|
||
export * from './DeleteWarning.style'; | ||
|
||
export * from 'components/common/HistoryArea/HistoryArea.style'; | ||
|
||
export const Container = styled.div` | ||
position: relative; | ||
`; | ||
Gwak-Seungju marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { createApi } from '@reduxjs/toolkit/query/react'; | ||
import { HistorysRequest, HistorysResponse } from 'model/history.model'; | ||
import baseQueryReauth from 'store/api/baseQueryReauth'; | ||
|
||
export const historyApi = createApi({ | ||
reducerPath: 'historyApi', | ||
tagTypes: ['historys'], | ||
|
||
baseQuery: baseQueryReauth, | ||
|
||
endpoints: (builder) => ({ | ||
getHistorys: builder.query<HistorysResponse, HistorysRequest>({ | ||
query: ({ page, domainId = null, limit = 30 }) => ({ | ||
url: `admin/historys?page=${page}&limit=${limit}${domainId ? `&domainId=${domainId}` : ''}`, | ||
}), | ||
providesTags: [{ type: 'historys', id: 'HISTORYS' }], | ||
}), | ||
}), | ||
refetchOnMountOrArgChange: true, | ||
}); | ||
|
||
export const { | ||
useGetHistorysQuery, | ||
} = historyApi; | ||
Gwak-Seungju marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.