Add client apply flow and asset uploads
This commit is contained in:
@@ -49,6 +49,23 @@
|
||||
<span>권장 JDK 버전</span>
|
||||
<input type="number" name="recommendedJdkVersion" value="<%= pack.recommendedJdkVersion ?? 17 %>" min="8" required />
|
||||
</label>
|
||||
<label>
|
||||
<span>클라이언트 로더 종류</span>
|
||||
<select name="loaderType">
|
||||
<option value="vanilla" <%= (pack.loaderType ?? 'vanilla') === 'vanilla' ? 'selected' : '' %>>vanilla</option>
|
||||
<option value="forge" <%= pack.loaderType === 'forge' ? 'selected' : '' %>>forge</option>
|
||||
<option value="fabric" <%= pack.loaderType === 'fabric' ? 'selected' : '' %>>fabric</option>
|
||||
<option value="neoforge" <%= pack.loaderType === 'neoforge' ? 'selected' : '' %>>neoforge</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<span>로더 버전</span>
|
||||
<input name="loaderVersion" value="<%= pack.loaderVersion ?? '' %>" placeholder="예: 0.16.14 / 47.3.0 / 21.4.111-beta" />
|
||||
</label>
|
||||
<label class="fullSpan">
|
||||
<span>로더 설치파일 경로</span>
|
||||
<input name="loaderInstallerPath" value="<%= pack.loaderInstallerPath ?? '' %>" placeholder="예: uploads/sample-pack/loaders/..." />
|
||||
</label>
|
||||
<label>
|
||||
<span>packPath</span>
|
||||
<input name="packPath" value="<%= pack.packPath %>" required />
|
||||
@@ -73,6 +90,63 @@
|
||||
|
||||
<button class="primaryButton" type="submit">적용</button>
|
||||
</form>
|
||||
|
||||
<section class="assetSection">
|
||||
<div class="assetCard">
|
||||
<h2>로더 설치파일 업로드</h2>
|
||||
<form method="post" action="/op/dashboard/<%= packKey %>/assets/loader" enctype="multipart/form-data" class="assetForm">
|
||||
<input type="file" name="asset" required />
|
||||
<button class="primaryButton" type="submit">로더 업로드</button>
|
||||
</form>
|
||||
<% if (pack.loaderInstallerPath) { %>
|
||||
<div class="assetItem">
|
||||
<code><%= pack.loaderInstallerPath %></code>
|
||||
<form method="post" action="/op/dashboard/<%= packKey %>/assets/loader/remove">
|
||||
<input type="hidden" name="assetPath" value="<%= pack.loaderInstallerPath %>" />
|
||||
<button class="dangerButton" type="submit">삭제</button>
|
||||
</form>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<div class="assetCard">
|
||||
<h2>리소스팩 업로드</h2>
|
||||
<form method="post" action="/op/dashboard/<%= packKey %>/assets/resource-pack" enctype="multipart/form-data" class="assetForm">
|
||||
<input type="file" name="asset" required />
|
||||
<button class="primaryButton" type="submit">리소스팩 추가</button>
|
||||
</form>
|
||||
<div class="assetList">
|
||||
<% (pack.resourcePackFiles ?? []).forEach((resourcePack) => { %>
|
||||
<div class="assetItem">
|
||||
<code><%= resourcePack %></code>
|
||||
<form method="post" action="/op/dashboard/<%= packKey %>/assets/resource-pack/remove">
|
||||
<input type="hidden" name="assetPath" value="<%= resourcePack %>" />
|
||||
<button class="dangerButton" type="submit">삭제</button>
|
||||
</form>
|
||||
</div>
|
||||
<% }) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="assetCard">
|
||||
<h2>쉐이더 업로드</h2>
|
||||
<form method="post" action="/op/dashboard/<%= packKey %>/assets/shader-pack" enctype="multipart/form-data" class="assetForm">
|
||||
<input type="file" name="asset" required />
|
||||
<button class="primaryButton" type="submit">쉐이더 추가</button>
|
||||
</form>
|
||||
<div class="assetList">
|
||||
<% (pack.shaderPackFiles ?? []).forEach((shaderPack) => { %>
|
||||
<div class="assetItem">
|
||||
<code><%= shaderPack %></code>
|
||||
<form method="post" action="/op/dashboard/<%= packKey %>/assets/shader-pack/remove">
|
||||
<input type="hidden" name="assetPath" value="<%= shaderPack %>" />
|
||||
<button class="dangerButton" type="submit">삭제</button>
|
||||
</form>
|
||||
</div>
|
||||
<% }) %>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user