Merge branch 'dev' into deploy-dev-front
This commit is contained in:
@@ -86,7 +86,7 @@ public class DailyStatusUIController {
|
||||
dailyPowerPortIn.monthList(new DailyPowerUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case FORESTRY -> {
|
||||
processStep(model, DailySort.EXPENSE,
|
||||
processStep(model, DailySort.FORESTRY,
|
||||
dailyForestryPortIn.monthList(new DailyForestryUIReqVO(searchMonth, "")));
|
||||
}
|
||||
case FARMING -> {
|
||||
|
||||
@@ -10,6 +10,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.util.HtmlUtils;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@@ -29,6 +30,11 @@ class GetNoticeDao implements GetNoticePortOut {
|
||||
@Transactional
|
||||
public Optional<GetNotice> operate(GetNoticeCmd command) {
|
||||
GetNotice secArticle = mapper.getNotice(command);
|
||||
if (secArticle.getContent() != null) {
|
||||
String cleanedContent = HtmlUtils.htmlUnescape(secArticle.getContent());
|
||||
cleanedContent = cleanedContent.replaceAll("<p>\\s*</p>", "</br>");
|
||||
secArticle.setContent(cleanedContent);
|
||||
}
|
||||
|
||||
List<GetNoticeUploadFile> setArticleUploadFile =
|
||||
mapper.getUploadFiles(command.getId());
|
||||
|
||||
@@ -1,25 +1,17 @@
|
||||
# ==============================================
|
||||
# 로깅 설정
|
||||
# ==============================================
|
||||
logging:
|
||||
file:
|
||||
path: ${user.home}/logs # 로그 파일 저장 경로 (사용자 홈 디렉토리 하위 logs 폴더)
|
||||
level:
|
||||
app:
|
||||
module: DEBUG # 애플리케이션 기본 패키지 로깅 레벨 (패키지 경로 변경 필요시 수정)
|
||||
|
||||
# ==============================================
|
||||
# 메시지 및 국제화(i18n) 설정
|
||||
# ==============================================
|
||||
spring:
|
||||
# ==============================================
|
||||
# 메시지 및 국제화(i18n) 설정
|
||||
# ==============================================
|
||||
messages:
|
||||
# 메시지 소스 캐시 지속 시간(초)
|
||||
# 4초마다 메시지 파일을 다시 읽어옵니다
|
||||
# 개발 시에는 짧은 간격으로, 운영 시에는 길게 설정하는 것이 일반적
|
||||
cache-duration: 10s
|
||||
thymeleaf:
|
||||
# 타임리프 템플릿 캐시 비활성화 (개발 환경에서는 false 로 설정 권장)
|
||||
cache: false
|
||||
# ==============================================
|
||||
# 타임리프 설정
|
||||
# ==============================================
|
||||
thymeleaf:
|
||||
cache: false # 타임리프 템플릿 캐시 비활성화 (개발 환경에서는 false 로 설정 권장)
|
||||
# ==============================================
|
||||
# 데이터베이스 설정
|
||||
# ==============================================
|
||||
@@ -30,6 +22,14 @@ spring:
|
||||
username: ENC(37ccHxlpbsEz8vVcZUZA/j6azKYhP3eHwhOYVjYGf+zKC3u/qc+khKcKuBuE8+Ck)
|
||||
password: ENC(uBHyXdI39UzPNvYNHDGfjmMMuhN83xoP8F3wDq/S9DxizhFwbMeEqa36oZ205CBg)
|
||||
|
||||
# ==============================================
|
||||
# 로깅 설정
|
||||
# ==============================================
|
||||
logging:
|
||||
level:
|
||||
app:
|
||||
module: DEBUG # 애플리케이션 기본 패키지 로깅 레벨 (패키지 경로 변경 필요시 수정)
|
||||
|
||||
# ==============================================
|
||||
# 암호화 설정
|
||||
# ==============================================
|
||||
|
||||
@@ -1,22 +1,37 @@
|
||||
# ==============================================
|
||||
# 로깅 설정
|
||||
# ==============================================
|
||||
logging:
|
||||
file:
|
||||
path: ${user.home}/logs # 로그 파일 저장 경로 (사용자 홈 디렉토리 하위 logs 폴더)
|
||||
level:
|
||||
app:
|
||||
module: DEBUG # 애플리케이션 기본 패키지 로깅 레벨 (패키지 경로 변경 필요시 수정)
|
||||
# ==============================================
|
||||
# 메시지 및 다국어 처리 설정
|
||||
# ==============================================
|
||||
spring:
|
||||
# ==============================================
|
||||
# 메시지 및 다국어 처리 설정
|
||||
# ==============================================
|
||||
messages:
|
||||
# 메시지 캐시 지속 시간(초)
|
||||
cache-duration: 10s
|
||||
# ==============================================
|
||||
# 타임리프 설정
|
||||
# ==============================================
|
||||
thymeleaf:
|
||||
cache: false # 타임리프 템플릿 캐시 비활성화 (개발 환경에서는 false 로 설정 권장)
|
||||
# ==============================================
|
||||
# 데이터베이스 설정
|
||||
# ==============================================
|
||||
datasource:
|
||||
kri:
|
||||
driver-class-name: org.postgresql.Driver
|
||||
jdbc-url: ENC(SH5G+4mdOrW3PpVEmVyNXIFyV7eFC6uLTa0e18qa+7ueQeWrduIeGVJLrQP3mUw86dzqLK7AUHjTRuex4ud+rTt026L7csDLFYzLWGkGCTEqfFBOwHng3uQ7n+qmkKiW)
|
||||
username: ENC(37ccHxlpbsEz8vVcZUZA/j6azKYhP3eHwhOYVjYGf+zKC3u/qc+khKcKuBuE8+Ck)
|
||||
password: ENC(uBHyXdI39UzPNvYNHDGfjmMMuhN83xoP8F3wDq/S9DxizhFwbMeEqa36oZ205CBg)
|
||||
|
||||
# ==============================================
|
||||
# 로깅 설정
|
||||
# ==============================================
|
||||
logging:
|
||||
level:
|
||||
app:
|
||||
module: DEBUG # 애플리케이션 기본 패키지 로깅 레벨 (패키지 경로 변경 필요시 수정)
|
||||
# Spring Bean 등록 과정도 확인
|
||||
org.springframework.beans.factory.support.DefaultListableBeanFactory: DEBUG
|
||||
org.apache.ibatis: TRACE
|
||||
org.mybatis.spring: TRACE
|
||||
|
||||
# ==============================================
|
||||
# 암호화 설정
|
||||
# ==============================================
|
||||
|
||||
@@ -1,24 +1,11 @@
|
||||
# ==============================================
|
||||
# 로깅 설정
|
||||
# ==============================================
|
||||
logging:
|
||||
file:
|
||||
path: ${user.home}/logs # 로그 파일 저장 경로 (사용자 홈 디렉토리 하위 logs 폴더)
|
||||
level:
|
||||
app:
|
||||
module: INFO # 애플리케이션 기본 패키지 로깅 레벨 (패키지 경로 변경 필요시 수정)
|
||||
|
||||
# ==============================================
|
||||
# 메시지 및 국제화(i18n) 설정
|
||||
# ==============================================
|
||||
spring:
|
||||
# ==============================================
|
||||
# 메시지 및 국제화(i18n) 설정
|
||||
# ==============================================
|
||||
messages:
|
||||
# 메시지 소스 캐시 지속 시간 (단위: 초)
|
||||
# 개발 환경에서는 짧은 간격(10-60초), 운영 환경에서는 긴 간격(3600초 이상) 권장
|
||||
cache-duration: 5m
|
||||
thymeleaf:
|
||||
# 타임리프 템플릿 캐시 비활성화 (개발 환경에서는 false 로 설정 권장)
|
||||
cache: false
|
||||
# ==============================================
|
||||
# 데이터베이스 설정
|
||||
# ==============================================
|
||||
@@ -30,7 +17,7 @@ spring:
|
||||
password: ENC(kUIzqWTu0+bqjYH4Jq9TFOOh3UwY+XVvA2OlT4VXJvxWCas66UNdGRmWDQKri5fI)
|
||||
|
||||
# ==============================================
|
||||
# 서버 압축 설정
|
||||
# 세션 설정
|
||||
# ==============================================
|
||||
server:
|
||||
servlet:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# ==============================================
|
||||
# 메세지 및 다국어 처리를 위한 설정
|
||||
# ==============================================
|
||||
spring:
|
||||
# ==============================================
|
||||
# 메세지 및 다국어 처리를 위한 설정
|
||||
# ==============================================
|
||||
messages:
|
||||
basename: messages/exception,messages/validation,messages/uri,messages/operation
|
||||
encoding: UTF-8
|
||||
@@ -21,56 +21,25 @@ spring:
|
||||
max-lifetime: 900000
|
||||
connection-timeout: 5000
|
||||
leak-detection-threshold: 30000
|
||||
|
||||
# 정적 자원 캐싱 설정
|
||||
# ==============================================
|
||||
# 정적 리소스 설정
|
||||
# ==============================================
|
||||
web:
|
||||
resources:
|
||||
# 정적 리소스 캐싱 기간(초) - 1년 (31536000초)
|
||||
cache:
|
||||
period: 31536000 # 캐싱 기간 1년(초)
|
||||
period: 31536000
|
||||
# 리소스 버저닝 설정
|
||||
chain:
|
||||
strategy:
|
||||
content:
|
||||
enabled: true # 리소스 버저닝 활성화
|
||||
paths: /** # 버저닝 적용 경로
|
||||
|
||||
# 타임리프 설정
|
||||
thymeleaf:
|
||||
cache: false # 타임리프 캐시 비활성화
|
||||
|
||||
# OAuth2 설정
|
||||
security:
|
||||
oauth2:
|
||||
client:
|
||||
registration:
|
||||
naver:
|
||||
client-id: vxAbBgwMTU0gXiMSCSGT # 네이버 개발자센터에서 발급받은 클라이언트 ID
|
||||
client-secret: fBVwFSOcGd # 네이버 개발자센터에서 발급받은 클라이언트 시크릿 (보안 주의!)
|
||||
redirect-uri: http://localhost:9001/login/oauth2/code/naver # 인증 후 리다이렉트될 URI
|
||||
authorization-grant-type: authorization_code # OAuth2 인증 유형 (authorization_code 고정)
|
||||
client-name: Naver # 로그인 화면에 표시될 프로바이더 이름
|
||||
scope: name,email,birthday,phone # 요청할 사용자 정보 범위 (프로필, 이메일, 생일, 전화번호)
|
||||
kakao:
|
||||
client-id: 75ab31248046bef7b5077a07b9bee808 # 카카오 개발자센터에서 발급받은 클라이언트 ID
|
||||
client-secret: 2YEhGfQ8fFTf3A5IexrrII8qvMzFw998 # 카카오 개발자센터에서 발급받은 클라이언트 시크릿
|
||||
redirect-uri: http://localhost:9001/login/oauth2/code/kakao # 인증 후 리다이렉트 URI
|
||||
authorization-grant-type: authorization_code
|
||||
client-name: Kakao # 로그인 버튼에 표시될 이름
|
||||
client-authentication-method: client_secret_post
|
||||
scope: profile_nickname, profile_image # 카카오에서 지원하는 스코프 (필요한 정보 선택)
|
||||
provider:
|
||||
naver:
|
||||
authorization-uri: https://nid.naver.com/oauth2.0/authorize # 인증 요청 URI
|
||||
token-uri: https://nid.naver.com/oauth2.0/token # 토큰 발급 URI
|
||||
user-info-uri: https://openapi.naver.com/v1/nid/me # 사용자 정보 조회 URI
|
||||
user-name-attribute: response # 사용자 정보 응답에서 이름을 추출할 JSON 필드 경로
|
||||
kakao:
|
||||
authorization-uri: https://kauth.kakao.com/oauth/authorize # 카카오 인증 URI
|
||||
token-uri: https://kauth.kakao.com/oauth/token # 토큰 발급 URI
|
||||
user-info-uri: https://kapi.kakao.com/v2/user/me # 사용자 정보 조회 URI
|
||||
user-name-attribute: id # 사용자 정보 응답에서 이름 추출할 필드 (기본값은 'id')
|
||||
# 콘텐츠 기반 버저닝 활성화
|
||||
enabled: true
|
||||
# 버저닝 적용 경로
|
||||
paths: /**
|
||||
|
||||
# ==============================================
|
||||
# 프론트엔드 설정
|
||||
# 사용자 관련 설정
|
||||
# ==============================================
|
||||
app:
|
||||
front:
|
||||
@@ -96,12 +65,20 @@ app:
|
||||
# 로깅 설정
|
||||
# ==============================================
|
||||
logging:
|
||||
file:
|
||||
path: ${user.home}/logs # 로그 파일 저장 경로 (사용자 홈 디렉토리 하위 logs 폴더)
|
||||
level:
|
||||
org:
|
||||
hibernate:
|
||||
orm:
|
||||
jdbc:
|
||||
bind: trace # Hibernate SQL 파라미터 바인딩 로깅
|
||||
# Hibernate SQL 파라미터 바인딩 값 로깅 레벨
|
||||
bind: trace
|
||||
# Spring Framework 코어 모듈 로깅 레벨 (INFO 레벨로 설정)
|
||||
springframework: INFO
|
||||
app:
|
||||
module: INFO # 애플리케이션 기본 패키지 로깅 레벨 (패키지 경로 변경 필요시 수정)
|
||||
|
||||
# ==============================================
|
||||
# MyBatis 설정
|
||||
# ==============================================
|
||||
@@ -110,11 +87,20 @@ mybatis:
|
||||
kri: classpath*:mappers/**/*Mapper.xml # 매퍼 파일 위치
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # SQL 로깅 구현체
|
||||
|
||||
# ==============================================
|
||||
# 서버 압축 설정
|
||||
# 세션 설정
|
||||
# ==============================================
|
||||
server:
|
||||
servlet:
|
||||
session:
|
||||
cookie:
|
||||
name: FRONT_SESSION
|
||||
name: FRONT_SESSION
|
||||
|
||||
# ==============================================
|
||||
# 암호화 설정
|
||||
# ==============================================
|
||||
jasypt:
|
||||
encryptor:
|
||||
password: #별도관리
|
||||
algorithm: #별도관리
|
||||
|
||||
@@ -39,8 +39,7 @@
|
||||
resultType="app.module.front.usecase.info.notice.getNotice.ports.application.domain.GetNoticeUploadFile">
|
||||
/* getUploadFiles 상세 게시글 조회 시, 첨부파일 조회 */
|
||||
SELECT
|
||||
awuf.notice_id AS noticeId,
|
||||
awuf.upload_files_id AS uploadfileId,
|
||||
uf.mapping_id AS noticeId,
|
||||
uf.id AS id,
|
||||
uf.created_at AS createdAt,
|
||||
uf.created_by AS createdBy,
|
||||
@@ -51,9 +50,7 @@
|
||||
uf.origin_name AS originName,
|
||||
uf.path AS path,
|
||||
uf.type AS type
|
||||
FROM notice_has_upload_file awuf
|
||||
INNER JOIN upload_file uf
|
||||
ON awuf.upload_files_id = uf.id
|
||||
WHERE awuf.notice_id = #{id}
|
||||
FROM upload_file uf
|
||||
WHERE uf.mapping_id = #{id} and uf.is_deleted = false and uf.type='NOTICE'
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -38,7 +38,6 @@ etUI.utils.ready(function () {
|
||||
// [공통] container 클래스 업데이트
|
||||
etUI.pages.updateContainerClassByLayout = function () {
|
||||
const container = document.getElementById('container');
|
||||
const modalcontainer = document.querySelector('.modal-container');
|
||||
if (!container) return;
|
||||
|
||||
const hasFixedBtns = document.querySelector('.component-btns.fixed');
|
||||
@@ -56,15 +55,6 @@ etUI.utils.ready(function () {
|
||||
} else {
|
||||
container.classList.remove('btm-footer');
|
||||
}
|
||||
|
||||
// modalcontainer 클래스 처리 (fixed 버튼만 체크)
|
||||
if (modalcontainer) {
|
||||
if (hasFixedBtns) {
|
||||
modalcontainer.classList.add('btm-fixbtn');
|
||||
} else {
|
||||
modalcontainer.classList.remove('btm-fixbtn');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// [공통] 탭 버튼 활성화 토글
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -13,15 +13,21 @@
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="detail-content">
|
||||
<p th:utext="${notice.content}"></p>
|
||||
<p th:utext="${ notice.content }"></p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="download-file" th:if="${!#lists.isEmpty(notice.uploadFiles)}">
|
||||
<p class="tit">첨부파일</p>
|
||||
<ul>
|
||||
<li th:each="item : ${notice.uploadFiles}"><a th:href="${item.attachmentURL}" download
|
||||
th:text="${item.originName}"></a></li>
|
||||
<li th:each="item : ${notice.uploadFiles}">
|
||||
<a href="javascript:void(0);"
|
||||
th:text="${item.originName}"
|
||||
th:data-url="${item.attachmentURL}"
|
||||
th:data-filename="${item.originName}"
|
||||
onclick="formControl.fileDownload(this)">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -57,13 +63,71 @@ root: /*[[|#{uri.front.info.user.path}/password|]]*/'rootUrl',
|
||||
*/
|
||||
const previousUrl = document.referrer;
|
||||
|
||||
if (previousUrl.includes('/info/notice')) {
|
||||
/* if (previousUrl.includes('/info/notice')) {
|
||||
history.back();
|
||||
} else {
|
||||
} else {*/
|
||||
location.href = '/info/notice';
|
||||
// }
|
||||
},
|
||||
fileDownload(element) {
|
||||
const url = element.dataset.url;
|
||||
const fileName = element.dataset.filename;
|
||||
if (!url || !fileName) {
|
||||
console.error('Invalid URL or fileName:', url, fileName);
|
||||
ajaxUtil._alert('파일 다운로드를 시작할 수 없습니다: 유효하지 않은 URL 또는 파일명입니다.', null);
|
||||
return;
|
||||
}
|
||||
fetch(url, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Accept': 'application/octet-stream'
|
||||
}
|
||||
}).then(response => {
|
||||
console.log('Response status:', response.status);
|
||||
if (!response.ok) {
|
||||
// 응답 본문 읽기
|
||||
return response.text().then(errorMessage => {
|
||||
let message = errorMessage || '파일 다운로드에 실패했습니다. 상태 코드: ' + response.status;
|
||||
if (response.status === 404) {
|
||||
message = errorMessage || '파일을 찾을 수 없습니다.';
|
||||
} else if (response.status === 500) {
|
||||
message = errorMessage || '서버 오류로 인해 파일 다운로드에 실패했습니다.';
|
||||
}
|
||||
throw new Error(message);
|
||||
});
|
||||
}
|
||||
// Content-Disposition 헤더에서 파일명 추출
|
||||
const disposition = response.headers.get('Content-Disposition');
|
||||
console.log('Content-Disposition:', disposition);
|
||||
let serverFileName = fileName;
|
||||
if (disposition && disposition.includes('filename*=')) {
|
||||
const matches = disposition.match(/filename\*=UTF-8''(.+)/);
|
||||
if (matches && matches[1]) {
|
||||
try {
|
||||
serverFileName = decodeURIComponent(matches[1]);
|
||||
} catch (e) {
|
||||
console.error('Failed to decode filename:', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return response.blob().then(blob => ({ blob, fileName: serverFileName }));
|
||||
})
|
||||
.then(({ blob, fileName }) => {
|
||||
console.log('Blob received, size:', blob.size);
|
||||
const link = document.createElement('a');
|
||||
link.href = window.URL.createObjectURL(blob);
|
||||
link.download = fileName;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
window.URL.revokeObjectURL(link.href);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Download error:', error);
|
||||
ajaxUtil._alert('파일 다운로드에 실패했습니다: ', null);
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
<div class="component-modal term-wrap confirmPopup" data-props-dimm-click="true">
|
||||
<div class="modal-dimm"></div>
|
||||
<div class="modal-frame">
|
||||
<div class="modal-container">
|
||||
<div class="modal-container btm-fixbtn">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-tit">개인정보 변경 약관</h3>
|
||||
</div>
|
||||
|
||||
@@ -341,6 +341,16 @@
|
||||
_initializeMonthMode() {
|
||||
const allCells = this._getAllCells()
|
||||
allCells.forEach(cell => cell.classList.remove(DatepickerComponent.CONSTANTS.CLASSES.HIDE))
|
||||
|
||||
// 요일 헤더와 셀 상태 초기화
|
||||
if (this.instances.datepicker?.refresh) {
|
||||
this.instances.datepicker.refresh()
|
||||
}
|
||||
|
||||
this.instances.datepicker.setOptions({
|
||||
...this.instances.datepickerComp.core.props,
|
||||
weekStart: DatepickerComponent.CONSTANTS.WEEK_START_SUNDAY
|
||||
})
|
||||
}
|
||||
|
||||
// // Week navigation
|
||||
|
||||
Reference in New Issue
Block a user