v1.7.1: 멤버 권한·추천 사이트·네비게이션 UI 개선

관리자는 VIP·멤버만 수정 가능하도록 서버·UI 권한을 정리하고 소유자 권한 이전 API와 확인 모달을 추가했다. 추천 사이트 파비콘 캐시·URL 접두사·카드 편집 UI를 보강하고 확인 얼럿을 AdminConfirmModal로 통일했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-17 14:32:11 +09:00
parent f206499f99
commit 5b2ed97748
30 changed files with 1837 additions and 211 deletions

View File

@@ -3,6 +3,7 @@ import { spawn } from 'node:child_process'
const host = '127.0.0.1'
const port = '43117'
let printedLinks = false
let nitroReady = false
let collectedLines = []
const maxCollectedLines = 400
@@ -24,6 +25,11 @@ const nuxtProcess = spawn('nuxt', [
* @returns {void}
*/
const printDevLinks = () => {
if (printedLinks) {
return
}
printedLinks = true
const origin = `http://${host}:${port}`
console.log('')
console.log('sori.studio 개발 서버')
@@ -33,6 +39,27 @@ const printDevLinks = () => {
console.log('')
}
/**
* 로그 줄을 터미널에 출력할지 판별한다.
* @param {string} line - 로그 한 줄
* @returns {boolean} 출력 여부
*/
const shouldPrintLine = (line) => {
if (/(^|\s)(error:|warn:|warning:|failed|fatal|eaddrinuse|cannot|emfile|epipe|eacces|eperm)\b/i.test(line)) {
return true
}
if (/\b(ERROR|RollupError)\b/.test(line)) {
return true
}
if (/\bat\s.+\(.+\)/.test(line) || /Object\.\$resolve/.test(line)) {
return true
}
return false
}
/**
* Nuxt 로그 처리
* @param {Buffer} chunk - 로그 버퍼
@@ -49,15 +76,12 @@ const handleNuxtLog = (chunk) => {
}
}
const localMatch = line.match(/Local:\s+(https?:\/\/[^\s]+)/)
if (localMatch && !printedLinks) {
printedLinks = true
if (/Nuxt Nitro server built/i.test(line)) {
nitroReady = true
printDevLinks()
continue
}
if (/(^|\s)(error:|warn:|warning:|failed|fatal|eaddrinuse|cannot|emfile|epipe|eacces|eperm)\b/i.test(line) || /\bat\s.+\(.+\)/.test(line) || /Object\.\$resolve/.test(line)) {
if (shouldPrintLine(line)) {
console.log(line)
}
}