파트너십 신청 요약 DTO 추가 - 로그아웃 확인 팝업 로직 구현:
- PartnershipApplicationSummaryDTO 생성 및 필드 정의 - 로그아웃 클릭 시 확인 팝업 노출 로직 추가(js-logout)
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
package com.eactive.apim.portal.apps.community.partnership.dto;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 작성폼 상단 "내가 작성한 최근 글" 아코디언에 노출하기 위한 조회 전용 DTO.
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PartnershipApplicationSummaryDTO {
|
||||
|
||||
private String id;
|
||||
|
||||
private String bizSubject;
|
||||
|
||||
private String bizDetail;
|
||||
|
||||
private LocalDateTime createdDate;
|
||||
}
|
||||
@@ -59,7 +59,7 @@
|
||||
<span class="user-name">[[${#authentication.principal.userName}]]님</span>
|
||||
</div>
|
||||
<span class="divider">•</span>
|
||||
<a th:href="@{/actionLogout.do}" class="header-link">로그아웃</a>
|
||||
<a th:href="@{/actionLogout.do}" class="header-link js-logout">로그아웃</a>
|
||||
<span class="divider">•</span>
|
||||
<div class="mypage-dropdown">
|
||||
<button class="header-link mypage-toggle" type="button">마이페이지</button>
|
||||
@@ -231,7 +231,7 @@
|
||||
|
||||
<!-- Logout Button (Authenticated Only) -->
|
||||
<div class="drawer-footer" sec:authorize="isAuthenticated()">
|
||||
<a th:href="@{/actionLogout.do}" class="drawer-logout-btn">
|
||||
<a th:href="@{/actionLogout.do}" class="drawer-logout-btn js-logout">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4 4.75433C4 4.13588 3.99897 3.62438 4.0382 3.2144C4.0782 2.79654 4.16562 2.40693 4.39063 2.05815C4.64262 1.66756 5.00048 1.35658 5.42275 1.16231C5.79995 0.988831 6.19862 0.957902 6.61806 0.977418C7.02945 0.996566 7.53539 1.06965 8.14757 1.15711L9.51563 1.35242C10.5897 1.50586 11.4574 1.62862 12.1346 1.81422C12.8299 2.00484 13.4063 2.28181 13.8516 2.79513C14.2968 3.30854 14.4895 3.91826 14.5799 4.63367C14.6679 5.33044 14.6667 6.20721 14.6667 7.29252V8.70745C14.6667 9.79276 14.6679 10.6695 14.5799 11.3663C14.4895 12.0817 14.2968 12.6914 13.8516 13.2048C13.4063 13.7182 12.8299 13.9951 12.1346 14.1858C11.4574 14.3714 10.5897 14.4941 9.51563 14.6476L8.01736 14.8611C7.46477 14.94 7.00792 15.0062 6.63542 15.0269C6.25627 15.0479 5.89478 15.0279 5.54688 14.8906C5.02891 14.6861 4.59601 14.3111 4.32032 13.8272C4.1352 13.5023 4.06405 13.1473 4.03125 12.7691C3.99905 12.3974 4 11.9358 4 11.3776C4 11.0094 4.29848 10.7109 4.66667 10.7109C5.03486 10.7109 5.33334 11.0094 5.33334 11.3776C5.33334 11.9594 5.33419 12.353 5.36025 12.6536C5.38572 12.9476 5.43124 13.0825 5.47917 13.1667C5.60447 13.3866 5.80103 13.5572 6.03646 13.6502C6.12656 13.6857 6.26687 13.7117 6.56164 13.6953C6.86298 13.6785 7.25306 13.6239 7.829 13.5417L9.32639 13.3272C10.4351 13.1689 11.2048 13.0575 11.7821 12.8993C12.3413 12.746 12.6378 12.5692 12.8446 12.3307C13.0513 12.0923 13.1843 11.7744 13.2569 11.1996C13.332 10.6057 13.3333 9.82752 13.3333 8.70745V7.29252C13.3333 6.17245 13.332 5.39423 13.2569 4.80033C13.1843 4.22557 13.0513 3.90766 12.8446 3.66926C12.6378 3.43077 12.3413 3.25397 11.7821 3.10068C11.2048 2.94244 10.4351 2.83112 9.32639 2.67273L7.9592 2.47742C7.32081 2.38622 6.88842 2.3245 6.55556 2.30902C6.23101 2.29395 6.0786 2.32793 5.98004 2.37325C5.78808 2.46154 5.62498 2.60284 5.51042 2.78037C5.45158 2.87157 5.39644 3.01823 5.36545 3.342C5.33375 3.67362 5.33334 4.1098 5.33334 4.75433C5.33334 5.12252 5.03486 5.42099 4.66667 5.42099C4.29848 5.42099 4 5.12252 4 4.75433Z" fill="#0049B4"/>
|
||||
<path d="M8.52074 4.25001C8.29074 3.96251 7.87075 3.91584 7.58324 4.14585C7.29573 4.37585 7.24907 4.79584 7.47908 5.08335L9.27942 7.33335H2.66658C2.29839 7.33335 1.99991 7.63182 1.99991 8.00001C1.99991 8.3682 2.29839 8.66668 2.66658 8.66668H9.27942L7.47908 10.9167C7.24907 11.2042 7.29573 11.6242 7.58324 11.8542C7.87075 12.0842 8.29074 12.0375 8.52074 11.75L11.1874 8.41668C11.3822 8.1732 11.3822 7.82683 11.1874 7.58335L8.52074 4.25001Z" fill="#0049B4"/>
|
||||
@@ -245,6 +245,24 @@
|
||||
|
||||
<!-- Mobile Menu & Dropdown JavaScript -->
|
||||
<th:block th:fragment="headerScript">
|
||||
<!-- 로그아웃 링크 클릭 시 확인 팝업 -->
|
||||
<script>
|
||||
document.addEventListener('click', function (e) {
|
||||
var link = e.target.closest ? e.target.closest('.js-logout') : null;
|
||||
if (!link) return;
|
||||
e.preventDefault();
|
||||
var url = link.getAttribute('href');
|
||||
var hasModal = document.getElementById('customConfirm');
|
||||
if (window.customPopups && typeof customPopups.showConfirm === 'function' && hasModal) {
|
||||
customPopups.showConfirm('로그아웃 하시겠습니까?', function (ok) {
|
||||
if (ok) { window.location.href = url; }
|
||||
});
|
||||
} else if (window.confirm('로그아웃 하시겠습니까?')) {
|
||||
window.location.href = url;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- 세션 타이머 / 유휴 자동 로그아웃 / 연장 확인 (인증 사용자만) -->
|
||||
<script sec:authorize="isAuthenticated()" th:inline="javascript">
|
||||
(function () {
|
||||
|
||||
Reference in New Issue
Block a user