feat: 增加下载任务中心与断点续传

This commit is contained in:
lofyer
2026-08-05 15:25:26 +08:00
parent f72c26642f
commit cb7b020dc8
20 changed files with 1094 additions and 70 deletions
+20
View File
@@ -25,6 +25,25 @@
</nav>
<div class="titlebar-spacer"></div>
<div class="titlebar-controls">
<div class="task-center-wrap">
<button id="taskCenterBtn" class="win-btn task-center-btn" title="任务中心" aria-label="任务中心" aria-expanded="false" aria-controls="taskCenterPanel">
<svg class="titlebar-icon" viewBox="0 0 24 24" aria-hidden="true">
<path d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z"></path>
<path d="M8 9h8M8 13h5M8 17h3"></path>
</svg>
<span id="taskCenterBadge" class="task-center-badge hidden">0</span>
</button>
<section id="taskCenterPanel" class="task-center-panel hidden" aria-label="下载任务">
<div class="task-center-head">
<div>
<div class="task-center-title">任务中心</div>
<div id="taskCenterSummary" class="task-center-summary">下载任务会显示在这里</div>
</div>
<button id="taskCenterClear" class="task-center-clear hidden">清除已结束</button>
</div>
<div id="taskCenterList" class="task-center-list"></div>
</section>
</div>
<button id="uiThemeBtn" class="win-btn ui-theme-btn" title="切换到明亮主题" aria-label="切换到明亮主题">
<svg class="titlebar-icon ui-theme-sun" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="12" r="4"></circle><path d="M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41"></path>
@@ -342,6 +361,7 @@
</div>
<script src="util.js"></script>
<script src="download-center.js"></script>
<script src="views/browse.js"></script>
<script src="views/library.js"></script>
<script src="vendor/quill/quill.js"></script>