Merge branch 'main' into login

This commit is contained in:
yoon 2025-02-10 10:28:24 +09:00
commit 8427dce4cc
7 changed files with 1854 additions and 932 deletions

2137
package-lock.json generated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -48,7 +48,7 @@
<div ref="editor"></div>
<!-- Alert 메시지 표시 -->
<div class="invalid-feedback" :class="isAlert ? 'd-block' : ''">내용을 확인해주세요.</div>
<div class="invalid-feedback" :class="isAlert ? 'd-block' : ''">내용을 확인해주세요.</div>
</div>
</template>
@ -57,25 +57,32 @@ import Quill from 'quill';
import 'quill/dist/quill.snow.css';
import { onMounted, ref, watch, defineEmits, defineProps } from 'vue';
import $api from '@api';
const props = defineProps({
isAlert: {
type: Boolean,
default: false,
},
});
const editor = ref(null);
const font = ref('nanum-gothic');
const fontSize = ref('16px');
const editor = ref(null); // DOM
const font = ref('nanum-gothic'); //
const fontSize = ref('16px'); //
const emit = defineEmits(['update:data']);
onMounted(() => {
//
const Font = Quill.import('formats/font');
Font.whitelist = ['nanum-gothic', 'd2coding', 'consolas', 'serif', 'monospace'];
Quill.register(Font, true);
//
const Size = Quill.import('attributors/style/size');
Size.whitelist = ['12px', '14px', '16px', '18px', '24px', '32px', '48px'];
Quill.register(Size, true);
// Quill
const quillInstance = new Quill(editor.value, {
theme: 'snow',
placeholder: '내용을 입력해주세요...',
@ -86,74 +93,84 @@ onMounted(() => {
syntax: true,
},
});
//
quillInstance.format('font', font.value);
quillInstance.format('size', fontSize.value);
//
quillInstance.on('text-change', () => {
const delta = quillInstance.getContents(); // Get Delta format
const delta = quillInstance.getContents(); // Delta
emit('update:data', delta);
});
//
watch([font, fontSize], () => {
quillInstance.format('font', font.value);
quillInstance.format('size', fontSize.value);
});
// Handle image upload
let imageUrls = new Set();
//
let imageUrls = new Set(); // URL
quillInstance.getModule('toolbar').addHandler('image', () => {
selectLocalImage();
selectLocalImage(); //
});
//
quillInstance.on('text-change', (delta, oldDelta, source) => {
// Emit Delta when content changes
emit('update:data', quillInstance.getContents());
delta.ops.forEach(op => {
if (op.insert && typeof op.insert === 'object' && op.insert.image) {
const imageUrl = op.insert.image;
imageUrls.add(imageUrl);
const imageUrl = op.insert.image; // URL
imageUrls.add(imageUrl); // URL
} else if (op.delete) {
checkForDeletedImages();
checkForDeletedImages(); //
}
});
});
//
async function selectLocalImage() {
const input = document.createElement('input');
input.setAttribute('type', 'file');
input.setAttribute('accept', 'image/*');
input.click();
input.click(); //
input.onchange = () => {
const file = input.files[0];
if (file) {
const formData = new FormData();
formData.append('file', file);
// URL
uploadImageToServer(formData).then(serverImageUrl => {
const baseUrl = $api.defaults.baseURL.replace(/api\/$/, '');
const fullImageUrl = `${baseUrl}${serverImageUrl.replace(/\\/g, '/')}`;
const range = quillInstance.getSelection();
quillInstance.insertEmbed(range.index, 'image', fullImageUrl);
quillInstance.insertEmbed(range.index, 'image', fullImageUrl); //
imageUrls.add(fullImageUrl);
imageUrls.add(fullImageUrl); // URL
}).catch(e => {
toastStore.onToast('잠시후 다시 시도해주세요.', 'e');
});
}
};
}
//
async function uploadImageToServer(formData) {
try {
const response = await $api.post('quilleditor/upload', formData, { isFormData: true });
const imageUrl = response.data.data;
return imageUrl;
return imageUrl; // URL
} catch (error) {
toastStore.onToast('잠시후 다시 시도해주세요.', 'e');
throw error;
}
}
//
function checkForDeletedImages() {
const editorImages = document.querySelectorAll('#editor img');
const currentImages = new Set(Array.from(editorImages).map(img => img.src));
const currentImages = new Set(Array.from(editorImages).map(img => img.src)); //
imageUrls.forEach(url => {
if (!currentImages.has(url)) {

View File

@ -1,48 +1,53 @@
<template>
<!-- 컴포넌트 사용 ex)
<UserList @user-list-update="handleUserListUpdate" />
-->
<ul class="list-unstyled users-list d-flex align-items-center">
<li
v-for="(user, index) in userList"
:key="index"
class="avatar pull-up"
:class="{ disabled: user.disabled }"
@click="toggleDisable(index)"
data-bs-toggle="tooltip"
data-popup="tooltip-custom"
data-bs-placement="top"
:aria-label="user.MEMBERSEQ"
:data-bs-original-title="user.MEMBERSEQ"
>
<img
class="rounded-circle"
:src="`http://localhost:10325/upload/img/profile/${user.MEMBERPRF}`"
alt="profile"
/>
</li>
</ul>
<ul class="list-unstyled users-list d-flex align-items-center">
<li
v-for="(user, index) in userList"
:key="index"
class="avatar pull-up"
:class="{ disabled: user.disabled }"
@click="toggleDisable(index)"
data-bs-toggle="tooltip"
data-popup="tooltip-custom"
data-bs-placement="top"
:aria-label="user.MEMBERSEQ"
:data-bs-original-title="getTooltipTitle(user)"
>
<img
class="rounded-circle user-avatar"
:src="`${baseUrl}upload/img/profile/${user.MEMBERPRF}`"
alt="user"
:style="{ borderColor: user.usercolor}"
/>
</li>
</ul>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { onMounted, ref, nextTick } from 'vue';
import { useUserStore } from '@s/userList';
import $api from '@api';
const emit = defineEmits();
const userStore = useUserStore();
const userList = ref([]);
const baseUrl = $api.defaults.baseURL.replace(/api\/$/, '');
//
onMounted(async () => {
await userStore.fetchUserList();
userList.value = userStore.userList;
nextTick(() => {
const tooltips = document.querySelectorAll('[data-bs-toggle="tooltip"]');
tooltips.forEach((tooltip) => {
new bootstrap.Tooltip(tooltip);
});
});
});
// /
const toggleDisable = (index) => {
const user = userList.value[index];
const user = userList.value[index];
if (user) {
user.disabled = !user.disabled;
emitUserListUpdate();
@ -51,20 +56,30 @@ const user = userList.value[index];
// emit
const emitUserListUpdate = () => {
const activeUsers = userList.value.filter(user => !user.disabled);
const disabledUsers = userList.value.filter(user => user.disabled);
const activeUsers = userList.value.filter((user) => !user.disabled);
const disabledUsers = userList.value.filter((user) => user.disabled);
emit('user-list-update', { activeUsers, disabledUsers });
};
const getTooltipTitle = (user) => {
return user.MEMBERSEQ === userStore.userInfo.id ? '나' : user.MEMBERNAM;
};
</script>
<style scoped>
/* disabled 클래스를 적용할 때 사용자의 이미지를 흐리게 */
.avatar.disabled {
opacity: 0.5; /* 흐리게 만들기 */
opacity: 1.0; /* 흐리게 만들기 */
}
/* 비활성화된 상태에서 이미지를 회색으로 변환 */
.avatar.disabled img {
filter: grayscale(100%);
filter: grayscale(100%);
}
/* 동그란 테두리 설정 */
.user-avatar {
border: 3px solid; /* 테두리 */
padding: 0.1px; /* 테두리와 이미지 사이의 간격 */
}
</style>

View File

@ -11,7 +11,12 @@
<div class="d-flex justify-content-between flex-wrap gap-2 mb-2">
<div class="d-flex flex-wrap align-items-center mb-50">
<div class="avatar avatar-sm me-2">
<img :src="getProfileImage(item.author.profileImage)" alt="최초 작성자" class="rounded-circle">
<img
class="rounded-circle user-avatar"
:src="getProfileImage(item.author.profileImage)"
alt="최초 작성자"
:style="{ borderColor: item.author.color}"
/>
</div>
<div>
<p class="mb-0 small fw-medium">{{ formatDate(item.author.createdAt) }}</p>
@ -21,7 +26,12 @@
<div class="d-flex justify-content-between flex-wrap gap-2 mb-2">
<div class="d-flex flex-wrap align-items-center mb-50">
<div class="avatar avatar-sm me-2">
<img :src="getProfileImage(item.lastEditor.profileImage)" alt="최근 작성자" class="rounded-circle">
<img
class="rounded-circle user-avatar"
:src="getProfileImage(item.lastEditor.profileImage)"
alt="최근 작성자"
:style="{ borderColor: item.lastEditor.color}"
/>
</div>
<div>
<p class="mb-0 small fw-medium">{{ formatDate(item.lastEditor.updatedAt) }}</p>
@ -33,18 +43,27 @@
<script setup>
import EditBtn from '@/components/button/EditBtn.vue';
import $api from '@api';
// Props
defineProps({
// Props
const props = defineProps({
item: {
type: Object,
required: true,
},
});
const baseUrl = $api.defaults.baseURL.replace(/api\/$/, '');
//
const formatDate = (dateString) => new Date(dateString).toLocaleString();
//
const getProfileImage = (imagePath) =>
imagePath ? `/img/avatars/${imagePath}` : '/img/avatars/default-Profile.jpg';
</script>
imagePath ? `${baseUrl}upload/img/profile/${imagePath}` : '/img/avatars/default-Profile.jpg';
</script>
<style scoped>
/* 동그란 테두리 설정 */
.user-avatar {
border: 3px solid; /* 테두리 */
padding: 0.1px; /* 테두리와 이미지 사이의 간격 */
}
</style>

View File

@ -11,11 +11,23 @@ import axios from "@api";
export const useUserStore = defineStore("userStore", {
state: () => ({
userList: [],
userInfo: {}
}),
actions: {
async fetchUserList() {
const response = await axios.get('user/allUserList');
this.userList = response.data.data;
console.log('response',response)
this.userList = response.data.data.allUserList;
this.userInfo = response.data.data.user;
if (this.userInfo) {
const index = this.userList.findIndex(user => user.MEMBERSEQ === this.userInfo.id);
if (index !== -1) {
const [user] = this.userList.splice(index, 1);
this.userList.unshift(user);
}
}
},
},
});

View File

@ -1,14 +1,11 @@
<template>
<div class="vacation-management">
<div class="container-xxl flex-grow-1 container-p-y">
<div class="save-button-container">
<button class="btn btn-success" @click="addVacationRequests"> 저장</button>
</div>
<div class="container flex-grow-1">
<div class="card app-calendar-wrapper">
<div class="row g-0">
<div class="col app-calendar-content">
<div class="card shadow-none border-0">
<div class="card-body pb-0">
<div class="card-body">
<full-calendar
ref="fullCalendarRef"
:options="calendarOptions"
@ -17,13 +14,27 @@
</div>
</div>
<div class="half-day-buttons">
<button class="btn btn-info" :class="{ active: halfDayType === 'AM' }" @click="toggleHalfDay('AM')">
오전반차
<button
class="btn btn-info"
:class="{ active: halfDayType === 'AM' }"
@click="toggleHalfDay('AM')"
>
<i class="bi bi-sun"></i>
</button>
<button class="btn btn-warning" :class="{ active: halfDayType === 'PM' }" @click="toggleHalfDay('PM')">
오후반차
<button
class="btn btn-warning"
:class="{ active: halfDayType === 'PM' }"
@click="toggleHalfDay('PM')"
>
<i class="bi bi-moon"></i>
</button>
<div class="save-button-container">
<button class="btn btn-success" @click="addVacationRequests">
</button>
</div>
</div>
<br />
</div>
</div>
</div>
@ -31,207 +42,336 @@
</div>
</template>
<script setup>
import FullCalendar from "@fullcalendar/vue3";
import dayGridPlugin from "@fullcalendar/daygrid";
import interactionPlugin from "@fullcalendar/interaction";
import "flatpickr/dist/flatpickr.min.css";
import "@/assets/css/app-calendar.css";
import { reactive, ref, onMounted } from "vue";
import axios from "@api";
<script setup>
import FullCalendar from "@fullcalendar/vue3";
import dayGridPlugin from "@fullcalendar/daygrid";
import interactionPlugin from "@fullcalendar/interaction";
import "flatpickr/dist/flatpickr.min.css";
import "@/assets/css/app-calendar.css";
import { reactive, ref, onMounted, nextTick } from "vue";
import axios from "@api";
import "bootstrap-icons/font/bootstrap-icons.css";
const fullCalendarRef = ref(null);
const calendarEvents = ref([]); // FullCalendar
const selectedDates = ref(new Map());
const halfDayType = ref(null);
const employeeId = ref(1);
// FullCalendar
const fullCalendarRef = ref(null);
const calendarEvents = ref([]); // FullCalendar (API + )
const fetchedEvents = ref([]); // API (, )
const selectedDates = ref(new Map()); //
const halfDayType = ref(null);
const employeeId = ref(1);
const calendarOptions = reactive({
// (YYYY-MM-DD ) ( )
const holidayDates = ref(new Set());
// FullCalendar (events calendarEvents )
const calendarOptions = reactive({
plugins: [dayGridPlugin, interactionPlugin],
initialView: "dayGridMonth",
headerToolbar: {
left: "today",
center: "title",
right: "prev,next",
left: "today",
center: "title",
right: "prev,next",
},
locale: "ko",
selectable: true,
selectable: false,
dateClick: handleDateClick,
events: calendarEvents, //
});
datesSet: handleMonthChange,
events: calendarEvents,
});
/**
* 날짜 클릭 이벤트
*/
function handleDateClick(info) {
const date = info.dateStr;
if (!selectedDates.value.has(date)) {
const type = halfDayType.value ? (halfDayType.value === "AM" ? "D" : "N") : "F";
selectedDates.value.set(date, type);
/**
* API 이벤트(fetchedEvents) 사용자가 선택한 날짜(selectedDates) 병합하여
* calendarEvents를 업데이트하는 함수
* - 선택 이벤트는 display: "background" 옵션을 사용하여 배경으로 표시
* - 선택된 타입에 따라 클래스(selected-am, selected-pm, selected-full) 부여함
*/
function updateCalendarEvents() {
const selectedEvents = Array.from(selectedDates.value).map(([date, type]) => {
let className = "";
let title = "";
if (type === "D") {
className = "selected-am"; // :
title = "오전반차 (선택)";
} else if (type === "N") {
className = "selected-pm"; // :
title = "오후반차 (선택)";
} else {
className = "selected-full"; //
title = "연차 (선택)";
}
return {
title,
start: date,
backgroundColor: "rgba(0, 128, 0, 0.3)",
display: "background",
classNames: [className],
};
});
calendarEvents.value = [...fetchedEvents.value, ...selectedEvents];
}
/**
* 날짜 클릭 이벤트
* - 주말(, ) 공휴일은 클릭되지 않음
* - 클릭 해당 날짜를 selectedDates에 추가 또는 제거한 updateCalendarEvents() 호출
*/
function handleDateClick(info) {
const clickedDateStr = info.dateStr;
const clickedDate = info.date;
// (:6, :0)
if (clickedDate.getDay() === 0 || clickedDate.getDay() === 6) {
return;
}
//
if (holidayDates.value.has(clickedDateStr)) {
return;
}
if (!selectedDates.value.has(clickedDateStr)) {
const type = halfDayType.value
? halfDayType.value === "AM"
? "D"
: "N"
: "F";
selectedDates.value.set(clickedDateStr, type);
} else {
selectedDates.value.delete(date);
selectedDates.value.delete(clickedDateStr);
}
halfDayType.value = null;
}
updateCalendarEvents();
}
/**
* 오전/오후 반차 선택
*/
function toggleHalfDay(type) {
/**
* 오전/오후 반차 버튼 토글
*/
function toggleHalfDay(type) {
halfDayType.value = halfDayType.value === type ? null : type;
}
}
/**
* 백엔드에서 휴가 데이터를 가져와 FullCalendar에 반영
*/
async function fetchVacationData() {
/**
* 백엔드에서 휴가 데이터를 가져와 이벤트로 변환
*/
async function fetchVacationData(year, month) {
try {
const response = await axios.get("vacation/list");
if (response.data.status === "OK") {
const vacationList = response.data.data;
console.log("📌 백엔드 응답 데이터:", vacationList);
if (!Array.isArray(vacationList)) {
throw new Error("vacationList is not an array.");
console.log(`📌 휴가 데이터 요청: ${year}-${month}`);
const response = await axios.get(`vacation/list/${year}/${month}`);
if (response.status == 200) {
const vacationList = response.data;
console.log("📌 백엔드 응답 데이터:", vacationList);
const events = vacationList
.map((vac) => {
let dateStr = vac.LOCVACUDT.split("T")[0];
let className = "fc-daygrid-event";
let backgroundColor = getColorByEmployeeId(vac.MEMBERSEQ);
let title = "연차";
if (vac.LOCVACTYP === "D") {
title = "오전반차";
className += " half-day-am";
} else if (vac.LOCVACTYP === "N") {
title = "오후반차";
className += " half-day-pm";
} else if (vac.LOCVACTYP === "F") {
title = "연차";
className += " full-day";
}
//
const events = vacationList.map((vac) => {
let dateStr = vac.LOCVACUDT.split("T")[0];
let className = "fc-daygrid-event";
let title = "연차";
if (vac.LOCVACTYP === "D") {
title = "오전반차";
className += " half-day-am";
} else if (vac.LOCVACTYP === "N") {
title = "오후반차";
className += " half-day-pm";
} else if (vac.LOCVACTYP === "F") {
title = "연차";
className += " full-day";
}
return {
title,
start: dateStr,
backgroundColor: getColorByEmployeeId(vac.MEMBERSEQ),
classNames: [className],
};
}).filter((event) => event !== null);
console.log("📌 변환된 이벤트:", events);
calendarEvents.value = events; // FullCalendar
}
return {
title,
start: dateStr,
backgroundColor,
classNames: [className],
};
})
.filter((event) => event !== null);
return events;
} else {
console.warn("📌 휴가 데이터를 불러오지 못함");
return [];
}
} catch (error) {
console.error("Error fetching vacation data:", error);
console.error("Error fetching vacation data:", error);
return [];
}
}
}
/**
* 휴가 요청 추가
*/
async function addVacationRequests() {
if (selectedDates.value.size === 0) {
alert("휴가를 선택해주세요.");
return;
}
const vacationRequests = Array.from(selectedDates.value).map(([date, type]) => ({
date,
type,
employeeId: employeeId.value,
}));
try {
const response = await axios.post("vacation", vacationRequests);
if (response.data && response.data.status === "OK") {
alert("휴가가 저장되었습니다.");
fetchVacationData(); //
selectedDates.value.clear();
} else {
alert("휴가 저장 중 오류가 발생했습니다.");
}
} catch (error) {
console.error(error);
alert("휴가 저장에 실패했습니다.");
}
}
/**
* 사원 ID별 색상 반환
*/
function getColorByEmployeeId(employeeId) {
/**
* 사원 ID별 색상 반환
*/
function getColorByEmployeeId(employeeId) {
const colors = ["#ade3ff", "#ffade3", "#ade3ad", "#ffadad"];
return colors[employeeId % colors.length];
}
}
//
onMounted(() => {
fetchVacationData();
});
</script>
/**
* 휴가 요청 추가 (선택된 날짜를 백엔드로 전송)
*/
async function addVacationRequests() {
if (selectedDates.value.size === 0) {
alert("휴가를 선택해주세요.");
return;
}
const vacationRequests = Array.from(selectedDates.value).map(([date, type]) => ({
date,
type,
employeeId: employeeId.value,
}));
try {
const response = await axios.post("vacation", vacationRequests);
if (response.data && response.data.status === "OK") {
alert("휴가가 저장되었습니다.");
//
const currentDate = fullCalendarRef.value.getApi().getDate();
const year = currentDate.getFullYear();
const month = String(currentDate.getMonth() + 1).padStart(2, "0");
loadCalendarData(year, month);
selectedDates.value.clear();
updateCalendarEvents();
} else {
alert("휴가 저장 중 오류가 발생했습니다.");
}
} catch (error) {
console.error(error);
alert("휴가 저장에 실패했습니다.");
}
}
<style>
.vacation-management {
padding: 20px;
}
/**
* 공휴일 데이터 요청 이벤트 변환
*/
async function fetchHolidays(year, month) {
try {
console.log(`📌 공휴일 요청: ${year}-${month}`);
const response = await axios.get(`vacation/${year}/${month}`);
console.log("📌 공휴일 API 응답:", response.data);
const holidayEvents = response.data.map((holiday) => ({
title: holiday.name,
start: holiday.date, // "YYYY-MM-DD"
backgroundColor: "#ff6666",
classNames: ["holiday-event"],
}));
return holidayEvents;
} catch (error) {
console.error("공휴일 정보를 불러오지 못했습니다.", error);
return [];
}
}
/* 버튼 스타일 */
.half-day-buttons {
/**
* 달력 변경 호출 (FullCalendar의 datesSet 옵션)
*/
function handleMonthChange(viewInfo) {
const currentDate = viewInfo.view.currentStart;
const year = currentDate.getFullYear();
const month = String(currentDate.getMonth() + 1).padStart(2, "0");
console.log(`📌 월 변경 감지: ${year}-${month}`);
loadCalendarData(year, month);
}
/**
* 지정한 월의 데이터를 로드 (휴가, 공휴일 데이터를 병렬 요청)
*/
async function loadCalendarData(year, month) {
console.log(`📌 ${year}-${month} 데이터 로드 시작`);
fetchedEvents.value = [];
const [vacationEvents, holidayEvents] = await Promise.all([
fetchVacationData(year, month),
fetchHolidays(year, month),
]);
console.log("📌 변환된 휴가 이벤트:", vacationEvents);
console.log("📌 변환된 공휴일 이벤트:", holidayEvents);
// Set
holidayDates.value = new Set(holidayEvents.map((event) => event.start));
fetchedEvents.value = [...vacationEvents, ...holidayEvents];
updateCalendarEvents();
await nextTick();
fullCalendarRef.value.getApi().refetchEvents();
console.log("📌 FullCalendar 데이터 업데이트 완료");
}
//
onMounted(() => {
const today = new Date();
const year = today.getFullYear();
const month = String(today.getMonth() + 1).padStart(2, "0");
console.log(`📌 초기 로드: ${year}-${month}`);
loadCalendarData(year, month);
});
</script>
<style>
/* 버튼 스타일 */
.half-day-buttons {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 20px;
}
.half-day-buttons .btn.active {
}
.half-day-buttons .btn.active {
border: 2px solid black;
}
}
/* FullCalendar 이벤트 스타일 */
.fc-daygrid-event {
/* 날짜 칸 높이 고정 */
.fc-daygrid-day-frame {
min-height: 80px !important;
max-height: 120px !important;
overflow: hidden !important;
padding-top: 25px !important;
}
/* 날짜 칸 내부의 이벤트 목록 */
.fc-daygrid-day-events {
max-height: 100px !important;
overflow-y: auto !important;
}
.fc-daygrid-event {
position: absolute !important;
height: 20px !important; /* 실선 두께 */
width: 90% !important;
left: 5% !important;
height: 20px !important;
width: 100% !important;
left: 0 !important;
margin: 2px 0 !important;
padding: 0 !important;
border-radius: 2px !important;
background-color: inherit !important;
border: none !important; /* 기본 FullCalendar 테두리 제거 */
}
border: none !important;
}
/* 여러 이벤트가 같은 날짜에 있을 때 정렬 */
.fc-daygrid-event-harness {
/* 여러 이벤트가 같은 날짜에 있을 때 정렬 */
.fc-daygrid-event-harness {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
gap: 3px;
}
width: 100%;
gap: 22px;
}
/* 오전반차(왼쪽부터 중앙까지) */
.fc-daygrid-event.half-day-am {
/* 기본 휴가/반차 이벤트 (API에서 받은 이벤트) */
.fc-daygrid-event.half-day-am {
width: 45% !important;
left: 0% !important;
background-color: #ffdd57 !important; /* 노란색 */
}
/* 오후반차(오른쪽부터 중앙까지) */
.fc-daygrid-event.half-day-pm {
left: 0 !important;
}
.fc-daygrid-event.half-day-pm {
width: 45% !important;
left: auto !important;
right: 0% !important;
background-color: #57a5ff !important; /* 파란색 */
}
/* 연차 (전체 너비) */
.fc-daygrid-event.full-day {
right: 0 !important;
}
.fc-daygrid-event.full-day {
width: 100% !important;
left: 0 !important;
background-color: #ff85a2 !important; /* 연한 빨강 */
}
}
/* 요일별 날짜 칸 스타일 */
.fc-day-sun .fc-daygrid-day-number,
.fc-col-header-cell:first-child .fc-col-header-cell-cushion {
color: #ff4500 !important;
}
.fc-day-sat .fc-daygrid-day-number,
.fc-col-header-cell:last-child .fc-col-header-cell-cushion {
color: #324fde !important;
}
.fc-daygrid-day-number {
position: absolute !important;
top: 0px !important;
left: 5px !important;
text-align: left !important;
}
</style>