2024-10-21 17:25:49 +09:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
|
|
|
<th:block th:fragment="includes">
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
<meta name="Referrer" content="origin"/>
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
|
|
|
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"/>
|
2025-09-12 16:55:21 +09:00
|
|
|
|
2025-03-11 17:44:21 +09:00
|
|
|
<title>BUM'sPace</title>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
2024-10-23 10:07:45 +09:00
|
|
|
<script async th:src="@{https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9504446465764716}" crossorigin="anonymous"></script>
|
2025-09-12 16:55:21 +09:00
|
|
|
|
2025-09-05 18:02:27 +09:00
|
|
|
<link th:href="@{/css/common.css}" rel="stylesheet" />
|
|
|
|
|
<link th:href="@{/css/main.css}" rel="stylesheet" />
|
2025-08-04 16:35:49 +09:00
|
|
|
<meta name="_csrf" th:content="${_csrf.token}"/>
|
|
|
|
|
<meta name="_csrf_parameter" th:content="${_csrf.parameterName}"/>
|
2025-08-08 17:11:34 +09:00
|
|
|
<script th:inline="javascript">
|
2025-09-08 16:35:09 +09:00
|
|
|
/*
|
|
|
|
|
* [수정됨] 이 객체는 Post.kt 모델의 모든 필드를 포함해야 합니다.
|
|
|
|
|
* 여기서 누락된 필드는 편집 후 저장 시 서버에서 null 또는 0으로 초기화됩니다.
|
2025-09-12 16:55:21 +09:00
|
|
|
* (이 블록은 <head>에 남아있어도 괜찮습니다. 전역 변수를 정의하는 역할입니다.)
|
2025-09-08 16:35:09 +09:00
|
|
|
*/
|
2025-08-08 17:11:34 +09:00
|
|
|
var serverData = {
|
2025-09-08 16:35:09 +09:00
|
|
|
// --- Key IDs ---
|
|
|
|
|
id: [[${srcPost?.id}]], // (Thymeleaf 3.x의 안전 탐색 연산자 '?' 사용)
|
|
|
|
|
originId: [[${srcPost?.originId}]],
|
|
|
|
|
|
|
|
|
|
// --- Core Content (컨트롤러에서 이미 디코딩됨) ---
|
|
|
|
|
title: /*[[${srcPost?.title ?: ''}]]*/,
|
|
|
|
|
content: /*[[${srcPost?.content ?: ''}]]*/,
|
|
|
|
|
|
|
|
|
|
// === (수정) 치명적으로 누락되었던 필드들 ===
|
|
|
|
|
category: /*[[${srcPost?.category ?: 'none'}]]*/,
|
|
|
|
|
tags: /*[[${srcPost?.tags ?: ''}]]*/,
|
|
|
|
|
|
|
|
|
|
// --- Timestamps (데이터 보존을 위해 필수) ---
|
|
|
|
|
writeTime: [[${srcPost?.writeTime ?: 0}]],
|
|
|
|
|
modifyTime: [[${srcPost?.modifyTime ?: 0}]],
|
|
|
|
|
|
|
|
|
|
// --- Location Data (데이터 보존을 위해 필수) ---
|
|
|
|
|
firstPostLat: [[${srcPost?.firstPostLat ?: 0.0}]],
|
|
|
|
|
firstPostLon: [[${srcPost?.firstPostLon ?: 0.0}]],
|
|
|
|
|
firstAddress: /*[[${srcPost?.firstAddress ?: ''}]]*/,
|
|
|
|
|
modifyLat: [[${srcPost?.modifyLat ?: 0.0}]],
|
|
|
|
|
modifyLon: [[${srcPost?.modifyLon ?: 0.0}]],
|
|
|
|
|
modifyAddress: /*[[${srcPost?.modifyAddress ?: ''}]]*/,
|
|
|
|
|
|
|
|
|
|
// --- Metadata (데이터 보존을 위해 필수) ---
|
|
|
|
|
writer: /*[[${srcPost?.writer ?: ''}]]*/,
|
|
|
|
|
posting: [[${srcPost?.posting ?: false}]],
|
|
|
|
|
readCount: [[${srcPost?.readCount ?: 0}]],
|
|
|
|
|
voteCount: [[${srcPost?.voteCount ?: 0}]],
|
|
|
|
|
unlikeCount: [[${srcPost?.unlikeCount ?: 0}]],
|
|
|
|
|
// --- Page-specific (모델 데이터 아님) ---
|
|
|
|
|
enc: /*[[${enc ?: ''}]]*/,
|
|
|
|
|
keyword: /*[[${keyword ?: ''}]]*/
|
2025-08-08 17:11:34 +09:00
|
|
|
};
|
|
|
|
|
</script>
|
2024-10-21 17:25:49 +09:00
|
|
|
</th:block>
|
|
|
|
|
</html>
|