Skip to content

Commit 5c32cf1

Browse files
committed
🔀 [fix] : conflict resolved
2 parents 5e59700 + 1ba65bf commit 5c32cf1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+623
-268
lines changed

src/api/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const postLogin = async (nickName: string, password: string) => {
3333
}
3434

3535
export const patchPassword = async (password: string) => {
36-
const request = { password: password }
36+
const request = { password }
3737
const response = await axiosInstance.patch('/api/members/password', request)
3838
return response.data
3939
}

src/assets/styles.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,22 @@ body {
5151
}
5252

5353
.button-medium {
54-
@apply flex items-center justify-center rounded px-4 py-2 font-bold gap-1 text-xs cursor-pointer shrink-0;
54+
@apply flex items-center justify-center rounded px-4 py-2 font-bold gap-1 text-xs cursor-pointer shrink-0 h-full;
5555
}
5656
.button-medium-primary {
5757
@apply button-medium bg-primary1 text-white hover:bg-[#6869DE];
5858
}
5959
.button-medium-secondary {
60-
@apply button-medium bg-white border border-primary1 text-primary1 hover:bg-background-2;
60+
@apply button-medium bg-white border border-primary1 text-primary1 hover:bg-primary2;
6161
}
6262
.button-medium-default {
6363
@apply button-medium bg-white border border-border-1 text-disabled hover:bg-background-2;
6464
}
6565
.button-medium-red {
66-
@apply button-medium bg-white border border-red-1 text-red-1 hover:bg-background-2;
66+
@apply button-medium bg-white border border-red-1 text-red-1 hover:bg-red-2;
67+
}
68+
.button-medium-disabled {
69+
@apply button-medium text-disabled bg-background-1;
6770
}
6871

6972
.button-small {
@@ -96,7 +99,7 @@ body {
9699
@apply flex justify-center items-center w-full h-8 px-2 border-b border-border-1 relative text-xs cursor-pointer;
97100
}
98101
.filter-dropdown-option-list {
99-
@apply w-full max-h-[120px] overflow-y-scroll absolute left-0 top-[calc(100%+8px)] shadow-custom p-2 flex flex-col gap-2 rounded bg-white cursor-auto;
102+
@apply w-full max-h-[160px] overflow-y-scroll absolute left-0 top-[calc(100%+8px)] shadow-custom p-2 flex flex-col gap-2 rounded bg-white cursor-auto;
100103
}
101104
.filter-dropdown-option {
102105
@apply text-xs p-2 rounded text-center cursor-pointer;

src/components/common/EditInformation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const handlePwChange = () => {
206206
}
207207
208208
const changePw = () => {
209-
router.replace('/pw-check')
209+
router.replace('/pw-change')
210210
}
211211
212212
const warningModalToggle = () => {

src/components/common/ModalView.vue

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<div
33
v-if="isOpen"
4-
class="fixed inset-0 bg-black bg-opacity-15 flex justify-center items-center z-50"
4+
class="fixed inset-0 bg-black bg-opacity-15 flex justify-center items-center z-[99]"
55
@click.self="closeModal" />
66
<Transition name="modal">
77
<div
88
v-if="isOpen"
9-
class="bg-white rounded-lg shadow-lg px-8 py-8 fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50">
9+
class="bg-white rounded-lg shadow-lg px-8 py-8 fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-[99]">
1010
<div class="flex flex-col gap-8 w-[300px]">
1111
<div class="flex flex-col gap-6">
1212
<div class="flex flex-col items-center gap-2">
@@ -20,13 +20,15 @@
2020
v-if="type == 'warningType'"
2121
:name="warningIcon" />
2222

23-
<div class="flex text-2xl font-bold justify-center">
23+
<div
24+
v-if="$slots.header"
25+
class="flex text-2xl font-bold justify-center whitespace-pre-wrap text-center">
2426
<slot name="header"></slot>
2527
</div>
2628

2729
<div
28-
v-if="type != 'inputType'"
29-
class="flex text-sm font-bold text-body justify-center whitespace-pre-line text-center">
30+
v-if="type != 'inputType' && $slots.header"
31+
class="flex text-sm font-bold text-body justify-center whitespace-pre-wrap text-center">
3032
<slot name="body"></slot>
3133
</div>
3234
</div>
@@ -79,10 +81,11 @@
7981

8082
<script setup lang="ts">
8183
import { failIcon, successIcon, warningIcon } from '@/constants/iconPath'
82-
import { ref, watch } from 'vue'
84+
import { onUnmounted, ref, watch } from 'vue'
8385
import CommonIcons from './CommonIcons.vue'
86+
import { preventEnter } from '@/utils/preventEnter'
8487
85-
const props = defineProps<{
88+
const { isOpen, type, modelValue } = defineProps<{
8689
isOpen: boolean
8790
type?: string
8891
modelValue?: string
@@ -94,7 +97,7 @@ const emit = defineEmits<{
9497
(e: 'update:modelValue', value: string): void
9598
}>()
9699
97-
const textValue = ref(props.modelValue || '')
100+
const textValue = ref(modelValue || '')
98101
99102
watch(textValue, newValue => {
100103
emit('update:modelValue', newValue)
@@ -108,4 +111,22 @@ const closeModal = () => {
108111
const confirmModal = () => {
109112
emit('click')
110113
}
114+
115+
watch(
116+
() => isOpen,
117+
() => {
118+
if (isOpen) {
119+
document.body.style.overflow = 'hidden'
120+
window.addEventListener('keydown', preventEnter)
121+
} else {
122+
document.body.style.overflow = ''
123+
window.removeEventListener('keydown', preventEnter)
124+
}
125+
}
126+
)
127+
128+
onUnmounted(() => {
129+
document.body.style.overflow = ''
130+
window.removeEventListener('keydown', preventEnter)
131+
})
111132
</script>

src/components/common/TaskCard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ const borderLeft = computed(() => {
6464
})
6565
6666
const handleModal = (id: number | null) => {
67-
if (id) document.body.style.overflow = 'hidden'
68-
else {
67+
if (!id) {
6968
queryClient.invalidateQueries({
7069
queryKey: ['taskBoard']
7170
})

src/components/filters/FilterCategory.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<li
1818
class="filter-dropdown-option"
1919
v-for="category in categoryList"
20-
:key="category.id"
20+
:key="category.mainCategoryId"
2121
:class="
22-
(main as number[]).includes(category.id)
22+
(main as number[]).includes(category.mainCategoryId)
2323
? 'bg-primary1 text-white font-bold'
2424
: 'hover:bg-background-2'
2525
"
@@ -58,13 +58,13 @@
5858
<li
5959
class="filter-dropdown-option"
6060
v-for="subCategory in category.subCategory"
61-
:key="subCategory.id"
61+
:key="subCategory.subCategoryId"
6262
:class="
63-
(sub as number[]).includes(subCategory.id)
63+
(sub as number[]).includes(subCategory.subCategoryId)
6464
? 'bg-primary1 text-white font-bold'
6565
: 'hover:bg-background-2'
6666
"
67-
@click="() => onSubClick(subCategory.id)">
67+
@click="() => onSubClick(subCategory.subCategoryId)">
6868
{{ subCategory.name }}
6969
</li>
7070
</ul>
@@ -76,7 +76,7 @@
7676

7777
<script setup lang="ts">
7878
import { dropdownIcon } from '@/constants/iconPath'
79-
import type { Category, FilterCategoryProps } from '@/types/common'
79+
import type { Category, FilterCategoryProps, SubCategory } from '@/types/common'
8080
import { computed, ref, watchEffect } from 'vue'
8181
import CommonIcons from '../common/CommonIcons.vue'
8282
import { useOutsideClick } from '@/hooks/useOutsideClick'
@@ -91,7 +91,7 @@ const toggleDropdown = (type: 'main' | 'sub') =>
9191
? (isMainOpened.value = !isMainOpened.value)
9292
: (isSubOpened.value = !isSubOpened.value)
9393
94-
const selectedCategoryList = ref<{ name: string; subCategory: Category[] }[]>([])
94+
const selectedCategoryList = ref<{ name: string; subCategory: SubCategory[] }[]>([])
9595
const isDisabled = computed(() => {
9696
return selectedCategoryList.value.length === 0
9797
})
@@ -106,8 +106,8 @@ const onMainClick = (category: Category) => {
106106
)
107107
if (category.subCategory) {
108108
category.subCategory.forEach(el => {
109-
if ((sub as number[]).includes(el.id)) {
110-
emit('update:sub', el.id)
109+
if ((sub as number[]).includes(el.subCategoryId)) {
110+
emit('update:sub', el.subCategoryId)
111111
}
112112
})
113113
}
@@ -119,7 +119,7 @@ const onMainClick = (category: Category) => {
119119
})
120120
}
121121
}
122-
emit('update:main', category.id)
122+
emit('update:main', category.mainCategoryId)
123123
}
124124
const onSubClick = (value: number) => {
125125
emit('update:sub', value)

src/components/member-management/MemberManagementListCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
</button>
2424
<button
2525
type="button"
26-
class="button-medium-secondary"
27-
@click="onMemberInvite(info.memberId)">
26+
:class="
27+
info.memberStatus !== 'ACTIVE' ? 'button-medium-secondary' : 'button-medium-disabled'
28+
"
29+
@click="info.memberStatus !== 'ACTIVE' && onMemberInvite(info.memberId)">
2830
초대
2931
</button>
3032
</div>

src/components/my-request/MyRequestListCard.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ const { params } = useRequestParamsStore()
3434
const queryClient = useQueryClient()
3535
3636
const handleModal = (id: number | null) => {
37-
if (id) document.body.style.overflow = 'hidden'
38-
else {
37+
if (!id) {
3938
queryClient.invalidateQueries({
4039
queryKey: ['myRequest', params]
4140
})
42-
document.body.style.overflow = ''
4341
}
44-
4542
selectedID.value = id
4643
}
4744

src/components/my-task/MyTaskListCard.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ const queryClient = useQueryClient()
3434
const { params } = useRequestParamsStore()
3535
3636
const handleModal = (id: number | null) => {
37-
if (id) document.body.style.overflow = 'hidden'
38-
else {
37+
if (!id) {
3938
queryClient.invalidateQueries({
4039
queryKey: ['myTask', params]
4140
})
42-
document.body.style.overflow = ''
4341
}
4442
selectedID.value = id
4543
}

src/components/request-approve/RequestApprove.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ import ManagerDropdown from './ManagerDropdown.vue'
7474
7575
const isModalVisible = ref(false)
7676
const category1 = ref<Category | null>(null)
77-
const category2 = ref<Category | null>(null)
77+
const category2 = ref<SubCategory | null>(null)
7878
const mainCategoryArr = ref<Category[]>([])
7979
const subCategoryArr = ref<SubCategory[]>([])
8080
const afterSubCategoryArr = ref<SubCategory[]>([])
@@ -116,15 +116,15 @@ onMounted(async () => {
116116
category1.value = selected
117117
category2.value = subCategoryArr.value.find(ct => ct.name === data.categoryName) || null
118118
afterSubCategoryArr.value = subCategoryArr.value.filter(
119-
subCategory => subCategory.mainCategoryId === selected?.id
119+
subCategory => subCategory.mainCategoryId === selected?.mainCategoryId
120120
)
121121
})
122122
123123
watch(category1, async newValue => {
124124
if (isFirst.value) isFirst.value = false
125125
else category2.value = null
126126
afterSubCategoryArr.value = subCategoryArr.value.filter(
127-
subCategory => subCategory.mainCategoryId === newValue?.id
127+
subCategory => subCategory.mainCategoryId === newValue?.mainCategoryId
128128
)
129129
})
130130
@@ -151,7 +151,7 @@ const handleSubmit = async () => {
151151
return
152152
}
153153
const requestData = {
154-
categoryId: category2.value.id,
154+
categoryId: category2.value.subCategoryId,
155155
processorId: approveData.value.processor.memberId,
156156
dueDate: isTimeFilled.value
157157
? convertToISO(approveData.value.dueDate, approveData.value.dueTime)

0 commit comments

Comments
 (0)