Add client apply flow and asset uploads
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
<li data-step="4">다운로드 및 설치</li>
|
||||
<li data-step="5">서버 설정</li>
|
||||
<li data-step="6">포트포워딩 설정</li>
|
||||
<li data-step="7">완료</li>
|
||||
<li data-step="7">클라이언트 적용</li>
|
||||
<li data-step="8">완료</li>
|
||||
</ol>
|
||||
</aside>
|
||||
|
||||
@@ -115,6 +116,19 @@
|
||||
|
||||
<section class="panel" data-panel="7">
|
||||
<p class="eyebrow">STEP 7</p>
|
||||
<h2>클라이언트 적용</h2>
|
||||
<p class="infoHint">런처 프로필, 로더 설치, 리소스팩, 쉐이더를 한 번에 적용합니다.</p>
|
||||
<div class="buttonRow">
|
||||
<button id="applyClientButton" class="primary">클라이언트 적용</button>
|
||||
</div>
|
||||
<div id="clientApplyStatus" class="infoBox"></div>
|
||||
<div class="buttonRow between">
|
||||
<button data-back="6">이전</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel" data-panel="8">
|
||||
<p class="eyebrow">STEP 8</p>
|
||||
<h2>완료</h2>
|
||||
<label class="toggleRow">
|
||||
<input type="checkbox" id="createShortcutToggle" checked />
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user