태그 관리 자동 저장 정리

This commit is contained in:
2026-05-15 11:21:57 +09:00
parent b4e4e37f5a
commit 59a50a0c97
9 changed files with 67 additions and 35 deletions

View File

@@ -35,9 +35,13 @@ const clampNumber = (value, minimum, maximum) => {
* 시스템 로고 파일명에 사용할 짧은 고유 접미사를 만든다.
* @returns {string} 파일명 접미사
*/
const createSystemAssetSuffix = () => `${new Date().toISOString()
.replace(/[-:]/g, '')
.replace(/\.\d{3}Z$/g, '')}-${Math.random().toString(36).slice(2, 8)}`
const createSystemAssetSuffix = () => {
const now = new Date()
const year = now.getFullYear()
const month = String(now.getMonth() + 1).padStart(2, '0')
return `${year}${month}-${Math.random().toString(36).slice(2, 8)}`
}
/**
* 사이트 로고 업로드 API