휴가,게시판에디터 수정

This commit is contained in:
dyhj625 2025-03-14 10:23:50 +09:00
parent 84f5cf4412
commit 89b5a330d7
3 changed files with 53 additions and 17 deletions

View File

@ -1,17 +1,7 @@
<template> <template>
<footer class="content-footer footer bg-footer-theme"> <footer class="content-footer footer bg-footer-theme">
<div class="container-xxl"> <div class="container-xxl">
<div class="footer-container d-flex align-items-center justify-content-between py-4 flex-md-row flex-column">
<div class="text-body">
©2024
<!-- <script>
document.write(new Date().getFullYear())
</script> -->
, made with by
<a href="https://themeselection.com/" target="_blank" class="footer-link">ThemeSelection</a>
</div>
<div class="d-none d-lg-inline-block"></div>
</div>
</div> </div>
</footer> </footer>
</template> </template>

View File

@ -717,10 +717,10 @@
if (targetComment) { if (targetComment) {
// console.log('',targetComment) // console.log('',targetComment)
// " ." , // " ." ,
targetComment.content = '댓글이 삭제되었습니다.'; targetComment.content = '댓글이 삭제되었습니다.';
targetComment.author = '알 수 없음'; // targetComment.author = '알 수 없음'; //
targetComment.isDeleted = true; // targetComment.isDeleted = true; //
} }
} else { } else {
toastStore.onToast('댓글 삭제에 실패했습니다.', 'e'); toastStore.onToast('댓글 삭제에 실패했습니다.', 'e');
@ -820,8 +820,23 @@
}); });
</script> </script>
<style> <style>
.board-content img { .board-content {
max-width: 100%; max-width: 100%;
height: auto; overflow: hidden;
word-wrap: break-word;
}
.board-content img {
max-width: 100% !important;
width: 100% !important;
height: auto !important;
display: block;
object-fit: contain;
}
.board-content table {
max-width: 100%;
overflow-x: auto;
display: block;
} }
</style> </style>

View File

@ -456,11 +456,12 @@ function updateCalendarEvents() {
.filter(([date, type]) => type !== "delete") .filter(([date, type]) => type !== "delete")
.map(([date, type]) => ({ .map(([date, type]) => ({
start: date, start: date,
backgroundColor: "rgb(113 212 243 / 76%)", backgroundColor: "rgb(113 212 243 / 76%)", //
textColor: "#fff", textColor: "#fff",
display: "background", display: "background",
classNames: [getVacationTypeClass(type), "selected-event"] classNames: [getVacationTypeClass(type), "selected-event"] //
})); }));
const filteredFetchedEvents = fetchedEvents.value.filter(event => { const filteredFetchedEvents = fetchedEvents.value.filter(event => {
if (event.saved && selectedDates.value.get(event.start) === "delete") { if (event.saved && selectedDates.value.get(event.start) === "delete") {
if (event.memberSeq === userStore.user.id) { if (event.memberSeq === userStore.user.id) {
@ -469,7 +470,37 @@ function updateCalendarEvents() {
} }
return true; return true;
}); });
calendarEvents.value = [...filteredFetchedEvents, ...selectedEvents]; calendarEvents.value = [...filteredFetchedEvents, ...selectedEvents];
nextTick(() => {
const todayStr = new Date().toISOString().split("T")[0];
const todayElement = document.querySelector(`.fc-daygrid-day[data-date="${todayStr}"]`);
if (todayElement) {
//
if (selectedDates.value.has(todayStr)) {
todayElement.classList.remove("fc-day-today"); //
todayElement.classList.add("selected-event"); //
// 🔹 'half-day-am'
if (selectedDates.value.get(todayStr) === "700101") {
todayElement.classList.add("half-day-am");
todayElement.classList.remove("half-day-pm");
}
// 🔹 'half-day-pm'
else if (selectedDates.value.get(todayStr) === "700102") {
todayElement.classList.add("half-day-pm");
todayElement.classList.remove("half-day-am");
} else {
todayElement.classList.remove("half-day-am", "half-day-pm");
}
} else {
todayElement.classList.add("fc-day-today"); //
todayElement.classList.remove("selected-event", "half-day-am", "half-day-pm"); //
}
}
});
} }
// //
const getVacationTypeClass = (type) => { const getVacationTypeClass = (type) => {