Update app.py
Browse files
app.py
CHANGED
|
@@ -291,26 +291,7 @@ HTML_CONTENT = """<!DOCTYPE html>
|
|
| 291 |
<h1 style="font-size: 2.5rem; margin-bottom: 2rem; color: #0f172a;">📦 HF Bucket 文件管理器 (目录导航)</h1>
|
| 292 |
<div class="grid">
|
| 293 |
<!-- 左侧:文件上传与浏览 -->
|
| 294 |
-
|
| 295 |
-
<h2>📤 文件上传</h2>
|
| 296 |
-
<div class="upload-area">
|
| 297 |
-
<label for="fileInput" class="file-label" id="fileLabel">📎 选择文件</label>
|
| 298 |
-
<input type="file" id="fileInput">
|
| 299 |
-
<input type="text" id="uploadDir" class="dir-input" placeholder="目标目录 (可选,如 images/ 或 logs/2026/)" value="">
|
| 300 |
-
<button class="button" id="uploadBtn">⬆️ 上传到 Bucket</button>
|
| 301 |
-
</div>
|
| 302 |
-
<h2 style="margin-top: 2rem;">📁 浏览</h2>
|
| 303 |
-
<div class="nav-bar">
|
| 304 |
-
<input type="text" id="currentDir" class="dir-input" placeholder="当前目录 (留空为根目录)" value="">
|
| 305 |
-
<button class="button secondary small" id="listBtn">列出文件</button>
|
| 306 |
-
<button class="button secondary small" id="goUpBtn" title="返回上级">⬆️ 上级</button>
|
| 307 |
-
</div>
|
| 308 |
-
<div id="fileList" class="file-list">
|
| 309 |
-
<div class="empty-message">加载中...</div>
|
| 310 |
-
</div>
|
| 311 |
-
<div class="log" id="log">就绪</div>
|
| 312 |
-
</div>
|
| 313 |
-
|
| 314 |
<!-- 右侧:API 测试面板 + 使用说明 -->
|
| 315 |
<div class="card">
|
| 316 |
<h2>🧪 API 测试</h2>
|
|
|
|
| 291 |
<h1 style="font-size: 2.5rem; margin-bottom: 2rem; color: #0f172a;">📦 HF Bucket 文件管理器 (目录导航)</h1>
|
| 292 |
<div class="grid">
|
| 293 |
<!-- 左侧:文件上传与浏览 -->
|
| 294 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
<!-- 右侧:API 测试面板 + 使用说明 -->
|
| 296 |
<div class="card">
|
| 297 |
<h2>🧪 API 测试</h2>
|