-
Notifications
You must be signed in to change notification settings - Fork 0
포지션, 스킬 태그 관리 ( #issue 336 ) #345
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 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
17eb535
feat: 스킬태그관리 등록, 삭제 연결
YouD0313 f5474a9
feat: 스킬태그관리 선택시 css 적용
YouD0313 283201f
feat: 스킬 및 포지션 태그 수정 기능 추가
YouD0313 902ce49
refactor: 불필요한 console.log 제거
YouD0313 086edcc
refactor: 리뷰반영 - 스킬 및 포지션 태그 검색 필터링 훅 추가 및 관련 코드 수정
YouD0313 7d3d928
refactor: 태그 모델에서 createdAt을 updatedAt으로 변경 및 관련 컴포넌트 수정
YouD0313 8d2477a
refactor: 스킬 타입에서 createdAt을 updatedAt으로 변경
YouD0313 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
File renamed without changes.
File renamed without changes.
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,69 @@ | ||
| import type { ApiCommonBasicType } from '../../models/apiCommon'; | ||
| import type { TagFormType } from '../../models/tags'; | ||
| import { httpClient } from '../http.api'; | ||
|
|
||
| export const postSkillTag = async (formData: FormData) => { | ||
| try { | ||
| await httpClient.post<ApiCommonBasicType>(`/skill-tag`, formData); | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const putSkillTag = async ({ | ||
| formData, | ||
| id, | ||
| }: { | ||
| formData: FormData; | ||
| id: number; | ||
| }) => { | ||
| try { | ||
| await httpClient.put<ApiCommonBasicType>(`/skill-tag/${id}`, formData); | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const deleteSkillTag = async (id: number) => { | ||
| try { | ||
| await httpClient.delete<ApiCommonBasicType>(`/skill-tag/${id}`); | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const postPositionTag = async ({ name }: Pick<TagFormType, 'name'>) => { | ||
| try { | ||
| await httpClient.post<ApiCommonBasicType>(`/position-tag`, { name }); | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const putPositionTag = async ({ | ||
| name, | ||
| id, | ||
| }: { | ||
| name: Pick<TagFormType, 'name'>; | ||
| id: number; | ||
| }) => { | ||
| try { | ||
| await httpClient.put<ApiCommonBasicType>(`/position-tag/${id}`, { name }); | ||
| } catch (e) { | ||
| console.error(e); | ||
| throw e; | ||
| } | ||
| }; | ||
|
|
||
| export const deletePositionTag = async (id: number) => { | ||
| try { | ||
| await httpClient.delete<ApiCommonBasicType>(`/position-tag/${id}`); | ||
| } 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| import styled from 'styled-components'; | ||
| import { SendButton } from '../../user/customerService/inquiry/Inquiry.styled'; | ||
|
|
||
| export const CRUDContainer = styled.form` | ||
| width: 100%; | ||
| height: 100%; | ||
| `; | ||
|
|
||
| export const CRUDWrapper = styled.div` | ||
| width: 70%; | ||
| height: 100%; | ||
| display: flex; | ||
| gap: 1rem; | ||
| font-size: 1.2rem; | ||
| justify-content: space-between; | ||
| `; | ||
|
|
||
| export const InfoContainer = styled.div` | ||
| display: flex; | ||
| height: 100%; | ||
| flex-direction: column; | ||
| gap: 1.5rem; | ||
| justify-content: center; | ||
| /* align-items: center; */ | ||
| `; | ||
|
|
||
| export const CRUDButtonWrapper = styled.div` | ||
| display: grid; | ||
| gap: 1rem; | ||
| `; | ||
|
|
||
| export const CRUDButton = styled(SendButton)` | ||
| height: 2.3rem; | ||
| `; | ||
|
|
||
| export const CRUDTitleWrapper = styled.div` | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 1rem; | ||
| `; | ||
|
|
||
| export const CRUDTitleHead = styled.span``; | ||
|
|
||
| export const CRUDTitle = styled.input` | ||
| border-bottom: 1px solid ${({ theme }) => theme.color.placeholder}; | ||
| padding-left: 0.3rem; | ||
| font-size: 1rem; | ||
| `; | ||
|
|
||
| export const CRUDDefaultButton = styled.button` | ||
| svg { | ||
| width: 1rem; | ||
| height: 1rem; | ||
| } | ||
| `; | ||
|
|
||
| export const CRUDImgWrapper = styled.div` | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 1rem; | ||
| `; | ||
|
|
||
| export const CRUDImgHead = styled.span``; | ||
|
|
||
| export const CRUDImg = styled.img` | ||
| width: 3rem; | ||
| border: 1px solid ${({ theme }) => theme.color.grey}; | ||
| `; | ||
|
|
||
| export const CRUDImgExplore = styled(SendButton)` | ||
| cursor: pointer; | ||
| border-radius: ${({ theme }) => theme.borderRadius.primary}; | ||
| padding: 0.4rem 1rem; | ||
| `; | ||
|
|
||
| export const CRUDImgExplain = styled.span` | ||
| max-width: 10rem; | ||
| `; | ||
|
|
||
| export const CRUDImgInput = styled.input` | ||
| visibility: hidden; | ||
| width: 0; | ||
| height: 0; | ||
| `; |
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.