Add client apply flow and asset uploads

This commit is contained in:
2026-05-08 20:03:07 +09:00
parent 427b708277
commit 4453dbd8f3
13 changed files with 730 additions and 73 deletions

View File

@@ -19,6 +19,8 @@ const eulaBlock = document.getElementById('eulaBlock')
const eulaText = document.getElementById('eulaText')
const eulaLink = document.getElementById('eulaLink')
const startInstallButton = document.getElementById('startInstallButton')
const applyClientButton = document.getElementById('applyClientButton')
const clientApplyStatus = document.getElementById('clientApplyStatus')
function setActiveStep(step) {
for (const [key, panel] of panelMap.entries()) {
@@ -275,6 +277,18 @@ document.getElementById('toStep7').addEventListener('click', async () => {
await goToStep(7)
})
applyClientButton.addEventListener('click', async () => {
applyClientButton.disabled = true
clientApplyStatus.textContent = '클라이언트 적용 중입니다.'
try {
const result = await window.installerApi.applyClient()
clientApplyStatus.textContent = result.message
await goToStep(result.nextStep)
} finally {
applyClientButton.disabled = false
}
})
document.getElementById('openFolderButton').addEventListener('click', async () => {
await window.installerApi.openFolder()
})