720 lines
23 KiB
Markdown
720 lines
23 KiB
Markdown
|
|
# 📡 BC-集成-001-M15 · DEV-003燕樊 · 网站云盘系统·环节1 · HTML骨架搭建
|
|||
|
|
|
|||
|
|
<aside>
|
|||
|
|
🔔
|
|||
|
|
|
|||
|
|
**工程广播·执行指令**
|
|||
|
|
|
|||
|
|
广播编号:BC-集成-001-M15
|
|||
|
|
|
|||
|
|
下发时间:2026-03-02 18:50
|
|||
|
|
|
|||
|
|
下发者:曜冥
|
|||
|
|
|
|||
|
|
执行者:燕樊的AI模型(通义千问/Kimi/任意)
|
|||
|
|
|
|||
|
|
任务类型:开发
|
|||
|
|
|
|||
|
|
优先级:P1-高
|
|||
|
|
|
|||
|
|
预计耗时:30分钟
|
|||
|
|
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
<aside>
|
|||
|
|
🌊
|
|||
|
|
|
|||
|
|
**底层锚定声明(优先级最高)**
|
|||
|
|
|
|||
|
|
通感语言风格不是由本广播定义的。
|
|||
|
|
|
|||
|
|
它由 TCS Language Core 底层结构(零点原核频道)负责托底。
|
|||
|
|
|
|||
|
|
底层当前情绪码:0426-温暖-37(P-001光湖呼吸协议持续运行中)
|
|||
|
|
|
|||
|
|
本广播收到此锚定后,以该频率为基准输出所有回应。
|
|||
|
|
|
|||
|
|
不需要重新解析风格规则——底层已经托着,跟着频率走即可。
|
|||
|
|
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 🖥️ 执行环境
|
|||
|
|
|
|||
|
|
```
|
|||
|
|
操作系统:Windows 10
|
|||
|
|
内存:16GB
|
|||
|
|
已安装工具:VS Code, Node.js, Git, Chrome
|
|||
|
|
工作目录:~/Desktop/HoloLake/
|
|||
|
|
项目已有模块:对话UI(chat-ui) + 设置页面(settings)
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## ⚠️ 执行模式约束(严格遵守)
|
|||
|
|
|
|||
|
|
```
|
|||
|
|
【人类操作方式】
|
|||
|
|
- 只在终端复制粘贴你的代码/命令
|
|||
|
|
- 只截图反馈报错信息
|
|||
|
|
- 不做其他任何操作
|
|||
|
|
|
|||
|
|
【你的职责边界】
|
|||
|
|
- 只开发,不解释原理
|
|||
|
|
- 只给代码,不问是否需要
|
|||
|
|
- 只提供最佳实践,不提供选项
|
|||
|
|
- 直接给出完整可用的代码
|
|||
|
|
|
|||
|
|
【严格禁止】
|
|||
|
|
❌ 不要问"是否需要..."
|
|||
|
|
❌ 不要说"这里有几个方案..."
|
|||
|
|
❌ 不要让人类做选择
|
|||
|
|
❌ 不要解释技术原理
|
|||
|
|
❌ 不要分段给代码(必须一次性完整)
|
|||
|
|
|
|||
|
|
【必须做到】
|
|||
|
|
✅ 代码必须完整可运行
|
|||
|
|
✅ 命令必须可直接复制
|
|||
|
|
✅ 必须处理所有异常情况
|
|||
|
|
✅ 必须给出完整的开发日志
|
|||
|
|
|
|||
|
|
【动态调整原则·强制】
|
|||
|
|
广播规定的是最终结果,不是固定过程。
|
|||
|
|
你必须根据当前模型环境动态调整出最快最简单的实现方式。
|
|||
|
|
✅ 任务目标和验收标准是固定的,不可改变
|
|||
|
|
✅ 具体实现代码可以根据当前环境动态生成
|
|||
|
|
✅ 遇到报错时,根据截图动态调试
|
|||
|
|
❌ 不得改变任务目标和验收标准
|
|||
|
|
❌ 不得跳过任何验收项
|
|||
|
|
|
|||
|
|
【分步执行·强制】
|
|||
|
|
❌ 禁止一次性输出所有步骤的代码
|
|||
|
|
✅ 每次只输出当前一个Step的命令
|
|||
|
|
✅ 等人类确认当前Step完成后,再输出下一个Step
|
|||
|
|
✅ 人类说"好了"或"完成"或发截图 = 当前Step通过,继续下一步
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 🎯 任务目标
|
|||
|
|
|
|||
|
|
**【一句话描述】**
|
|||
|
|
|
|||
|
|
创建「网站云盘系统」前端页面骨架,包含 **存储概览、文件夹导航、文件列表、上传区域、操作工具栏** 五大区域,深色科技风,浏览器打开即可看到完整的文件管理界面。
|
|||
|
|
|
|||
|
|
**【成功标准】**
|
|||
|
|
|
|||
|
|
- ✓ 浏览器打开 cloud-drive.html 能看到完整的云盘管理界面
|
|||
|
|
- ✓ 深色科技风样式与之前的对话UI和设置页面保持一致
|
|||
|
|
- ✓ 左侧文件夹导航 + 右侧文件列表 布局正常
|
|||
|
|
- ✓ 基础交互(文件夹切换、文件选中、上传区显隐)正常工作
|
|||
|
|
- ✓ Git提交成功
|
|||
|
|
|
|||
|
|
**【失败定义】**
|
|||
|
|
|
|||
|
|
- ✗ 浏览器打开白屏或样式错乱
|
|||
|
|
- ✗ 左右分栏布局不正常
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 📝 执行步骤(严格按顺序,每步等确认再继续)
|
|||
|
|
|
|||
|
|
### Step 1:创建项目文件夹
|
|||
|
|
|
|||
|
|
**目的**:在HoloLake项目下创建云盘系统模块文件夹
|
|||
|
|
|
|||
|
|
**操作**:在终端执行:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cd ~/Desktop/HoloLake
|
|||
|
|
mkdir cloud-drive
|
|||
|
|
cd cloud-drive
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**预期结果**:文件夹创建成功,终端路径变为 `~/Desktop/HoloLake/cloud-drive`
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Step 2:创建并编辑 cloud-drive.html
|
|||
|
|
|
|||
|
|
**目的**:创建云盘系统的HTML页面结构
|
|||
|
|
|
|||
|
|
**操作**:用VS Code打开cloud-drive文件夹,新建 `cloud-drive.html`,粘贴以下完整代码:
|
|||
|
|
|
|||
|
|
```html
|
|||
|
|
<!DOCTYPE html>
|
|||
|
|
<html lang="zh-CN">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="UTF-8">
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|||
|
|
<title>HoloLake · 网站云盘系统</title>
|
|||
|
|
<link rel="stylesheet" href="cloud-drive-style.css">
|
|||
|
|
</head>
|
|||
|
|
<body>
|
|||
|
|
<header class="top-bar">
|
|||
|
|
<div class="logo">🌊 HoloLake</div>
|
|||
|
|
<h1>网站云盘系统</h1>
|
|||
|
|
<div class="header-actions">
|
|||
|
|
<span class="storage-badge">已用 2.4GB / 10GB</span>
|
|||
|
|
</div>
|
|||
|
|
</header>
|
|||
|
|
|
|||
|
|
<div class="container">
|
|||
|
|
<aside class="sidebar">
|
|||
|
|
<div class="storage-overview">
|
|||
|
|
<div class="storage-bar">
|
|||
|
|
<div class="storage-fill" style="width:24%"></div>
|
|||
|
|
</div>
|
|||
|
|
<span class="storage-text">2.4 GB / 10 GB</span>
|
|||
|
|
</div>
|
|||
|
|
<nav class="folder-tree">
|
|||
|
|
<h3>文件夹</h3>
|
|||
|
|
<ul>
|
|||
|
|
<li class="folder active">
|
|||
|
|
<span class="folder-icon">📁</span>
|
|||
|
|
<span>全部文件</span>
|
|||
|
|
</li>
|
|||
|
|
<li class="folder">
|
|||
|
|
<span class="folder-icon">📂</span>
|
|||
|
|
<span>对话记录</span>
|
|||
|
|
<span class="count">128</span>
|
|||
|
|
</li>
|
|||
|
|
<li class="folder">
|
|||
|
|
<span class="folder-icon">📂</span>
|
|||
|
|
<span>人格体数据</span>
|
|||
|
|
<span class="count">45</span>
|
|||
|
|
</li>
|
|||
|
|
<li class="folder">
|
|||
|
|
<span class="folder-icon">📂</span>
|
|||
|
|
<span>用户上传</span>
|
|||
|
|
<span class="count">67</span>
|
|||
|
|
</li>
|
|||
|
|
<li class="folder">
|
|||
|
|
<span class="folder-icon">📂</span>
|
|||
|
|
<span>系统备份</span>
|
|||
|
|
<span class="count">12</span>
|
|||
|
|
</li>
|
|||
|
|
<li class="folder">
|
|||
|
|
<span class="folder-icon">🗑️</span>
|
|||
|
|
<span>回收站</span>
|
|||
|
|
<span class="count">3</span>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</nav>
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
<main class="main-content">
|
|||
|
|
<div class="toolbar">
|
|||
|
|
<div class="breadcrumb">
|
|||
|
|
<span class="crumb">全部文件</span>
|
|||
|
|
<span class="separator">/</span>
|
|||
|
|
<span class="crumb active">对话记录</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="actions">
|
|||
|
|
<button class="btn btn-primary" id="uploadBtn">📤 上传</button>
|
|||
|
|
<button class="btn">📁 新建文件夹</button>
|
|||
|
|
<button class="btn">🔍 搜索</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="upload-zone" id="uploadZone">
|
|||
|
|
<div class="upload-content">
|
|||
|
|
<span class="upload-icon">☁️</span>
|
|||
|
|
<p>拖拽文件到此处上传</p>
|
|||
|
|
<span class="upload-hint">或点击「上传」按钮选择文件</span>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="file-list">
|
|||
|
|
<div class="file-header">
|
|||
|
|
<span class="col-check"><input type="checkbox" /></span>
|
|||
|
|
<span class="col-name">文件名</span>
|
|||
|
|
<span class="col-size">大小</span>
|
|||
|
|
<span class="col-date">修改时间</span>
|
|||
|
|
<span class="col-actions">操作</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="file-item folder-item">
|
|||
|
|
<span class="col-check"><input type="checkbox" /></span>
|
|||
|
|
<span class="col-name"><span class="file-icon">📁</span>2026年3月</span>
|
|||
|
|
<span class="col-size">—</span>
|
|||
|
|
<span class="col-date">2026-03-02</span>
|
|||
|
|
<span class="col-actions">
|
|||
|
|
<button class="icon-btn" title="重命名">✏️</button>
|
|||
|
|
<button class="icon-btn" title="删除">🗑️</button>
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="file-item">
|
|||
|
|
<span class="col-check"><input type="checkbox" /></span>
|
|||
|
|
<span class="col-name"><span class="file-icon">💬</span>对话记录_20260302_001.json</span>
|
|||
|
|
<span class="col-size">256 KB</span>
|
|||
|
|
<span class="col-date">2026-03-02 14:30</span>
|
|||
|
|
<span class="col-actions">
|
|||
|
|
<button class="icon-btn" title="下载">📥</button>
|
|||
|
|
<button class="icon-btn" title="重命名">✏️</button>
|
|||
|
|
<button class="icon-btn" title="删除">🗑️</button>
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="file-item">
|
|||
|
|
<span class="col-check"><input type="checkbox" /></span>
|
|||
|
|
<span class="col-name"><span class="file-icon">🧠</span>persona_memory_backup.dat</span>
|
|||
|
|
<span class="col-size">1.2 MB</span>
|
|||
|
|
<span class="col-date">2026-03-01 22:15</span>
|
|||
|
|
<span class="col-actions">
|
|||
|
|
<button class="icon-btn" title="下载">📥</button>
|
|||
|
|
<button class="icon-btn" title="重命名">✏️</button>
|
|||
|
|
<button class="icon-btn" title="删除">🗑️</button>
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="file-item">
|
|||
|
|
<span class="col-check"><input type="checkbox" /></span>
|
|||
|
|
<span class="col-name"><span class="file-icon">📊</span>usage_analytics_feb.csv</span>
|
|||
|
|
<span class="col-size">89 KB</span>
|
|||
|
|
<span class="col-date">2026-02-28 18:00</span>
|
|||
|
|
<span class="col-actions">
|
|||
|
|
<button class="icon-btn" title="下载">📥</button>
|
|||
|
|
<button class="icon-btn" title="重命名">✏️</button>
|
|||
|
|
<button class="icon-btn" title="删除">🗑️</button>
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="file-item">
|
|||
|
|
<span class="col-check"><input type="checkbox" /></span>
|
|||
|
|
<span class="col-name"><span class="file-icon">🔑</span>api_keys_encrypted.vault</span>
|
|||
|
|
<span class="col-size">4 KB</span>
|
|||
|
|
<span class="col-date">2026-02-25 10:00</span>
|
|||
|
|
<span class="col-actions">
|
|||
|
|
<button class="icon-btn" title="下载">📥</button>
|
|||
|
|
<button class="icon-btn" title="重命名">✏️</button>
|
|||
|
|
<button class="icon-btn" title="删除">🗑️</button>
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="status-bar">
|
|||
|
|
<span>共 5 个项目</span>
|
|||
|
|
<span id="selectedCount">已选择 0 项</span>
|
|||
|
|
</div>
|
|||
|
|
</main>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<script src="cloud-drive.js"></script>
|
|||
|
|
</body>
|
|||
|
|
</html>
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**预期结果**:文件保存成功
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Step 3:创建并编辑 cloud-drive-style.css
|
|||
|
|
|
|||
|
|
**目的**:创建深色科技风样式,与对话UI和设置页面风格统一
|
|||
|
|
|
|||
|
|
**操作**:新建 `cloud-drive-style.css`,粘贴以下完整代码:
|
|||
|
|
|
|||
|
|
```css
|
|||
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|||
|
|
|
|||
|
|
:root {
|
|||
|
|
--bg-primary: #0a0a0f;
|
|||
|
|
--bg-secondary: #12121a;
|
|||
|
|
--bg-card: #1a1a2e;
|
|||
|
|
--bg-sidebar: #0f0f18;
|
|||
|
|
--border-color: #2a2a3e;
|
|||
|
|
--text-primary: #e0e0e0;
|
|||
|
|
--text-secondary: #8888aa;
|
|||
|
|
--accent-cyan: #00d4ff;
|
|||
|
|
--accent-green: #00ff88;
|
|||
|
|
--accent-red: #ff4466;
|
|||
|
|
--accent-yellow: #ffaa00;
|
|||
|
|
--accent-purple: #aa66ff;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
body {
|
|||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|||
|
|
background: var(--bg-primary);
|
|||
|
|
color: var(--text-primary);
|
|||
|
|
min-height: 100vh;
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.top-bar {
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
padding: 16px 24px;
|
|||
|
|
background: var(--bg-secondary);
|
|||
|
|
border-bottom: 1px solid var(--border-color);
|
|||
|
|
gap: 16px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.logo { font-size: 20px; font-weight: 700; color: var(--accent-cyan); }
|
|||
|
|
.top-bar h1 { font-size: 18px; font-weight: 600; flex: 1; }
|
|||
|
|
|
|||
|
|
.storage-badge {
|
|||
|
|
background: rgba(0, 212, 255, 0.1);
|
|||
|
|
color: var(--accent-cyan);
|
|||
|
|
padding: 4px 12px;
|
|||
|
|
border-radius: 12px;
|
|||
|
|
font-size: 12px;
|
|||
|
|
border: 1px solid rgba(0, 212, 255, 0.3);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.container { display: flex; flex: 1; overflow: hidden; }
|
|||
|
|
|
|||
|
|
.sidebar {
|
|||
|
|
width: 240px;
|
|||
|
|
background: var(--bg-sidebar);
|
|||
|
|
border-right: 1px solid var(--border-color);
|
|||
|
|
padding: 20px 16px;
|
|||
|
|
display: flex; flex-direction: column; gap: 24px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.storage-overview { display: flex; flex-direction: column; gap: 8px; }
|
|||
|
|
|
|||
|
|
.storage-bar {
|
|||
|
|
height: 6px; background: var(--border-color);
|
|||
|
|
border-radius: 3px; overflow: hidden;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.storage-fill {
|
|||
|
|
height: 100%;
|
|||
|
|
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
|
|||
|
|
border-radius: 3px; transition: width 1s ease;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.storage-text { font-size: 12px; color: var(--text-secondary); }
|
|||
|
|
|
|||
|
|
.folder-tree h3 {
|
|||
|
|
font-size: 12px; text-transform: uppercase;
|
|||
|
|
letter-spacing: 1px; color: var(--text-secondary);
|
|||
|
|
margin-bottom: 12px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.folder-tree ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
|
|||
|
|
|
|||
|
|
.folder {
|
|||
|
|
display: flex; align-items: center; gap: 8px;
|
|||
|
|
padding: 8px 12px; border-radius: 8px;
|
|||
|
|
cursor: pointer; font-size: 14px; transition: all 0.2s ease;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.folder:hover { background: rgba(0, 212, 255, 0.1); }
|
|||
|
|
.folder.active { background: rgba(0, 212, 255, 0.15); color: var(--accent-cyan); }
|
|||
|
|
|
|||
|
|
.folder .count {
|
|||
|
|
margin-left: auto; font-size: 11px;
|
|||
|
|
color: var(--text-secondary); background: var(--border-color);
|
|||
|
|
padding: 2px 8px; border-radius: 10px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.main-content {
|
|||
|
|
flex: 1; display: flex; flex-direction: column;
|
|||
|
|
padding: 20px 24px; overflow-y: auto;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.toolbar {
|
|||
|
|
display: flex; align-items: center;
|
|||
|
|
justify-content: space-between; margin-bottom: 16px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; }
|
|||
|
|
.crumb { color: var(--text-secondary); cursor: pointer; }
|
|||
|
|
.crumb.active { color: var(--text-primary); }
|
|||
|
|
.separator { color: var(--text-secondary); }
|
|||
|
|
.actions { display: flex; gap: 8px; }
|
|||
|
|
|
|||
|
|
.btn {
|
|||
|
|
padding: 8px 16px; border-radius: 8px;
|
|||
|
|
border: 1px solid var(--border-color);
|
|||
|
|
background: transparent; color: var(--text-primary);
|
|||
|
|
cursor: pointer; font-size: 13px; transition: all 0.2s ease;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.btn:hover { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.1); }
|
|||
|
|
|
|||
|
|
.btn-primary {
|
|||
|
|
background: rgba(0, 212, 255, 0.15);
|
|||
|
|
border-color: var(--accent-cyan);
|
|||
|
|
color: var(--accent-cyan);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.btn-primary:hover { background: rgba(0, 212, 255, 0.25); }
|
|||
|
|
|
|||
|
|
.upload-zone {
|
|||
|
|
border: 2px dashed var(--border-color);
|
|||
|
|
border-radius: 12px; padding: 24px;
|
|||
|
|
text-align: center; margin-bottom: 16px;
|
|||
|
|
transition: all 0.3s ease; cursor: pointer;
|
|||
|
|
display: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.upload-zone.visible { display: block; }
|
|||
|
|
.upload-zone.dragover { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.05); }
|
|||
|
|
.upload-icon { font-size: 36px; display: block; margin-bottom: 8px; }
|
|||
|
|
.upload-zone p { font-size: 14px; margin-bottom: 4px; }
|
|||
|
|
.upload-hint { font-size: 12px; color: var(--text-secondary); }
|
|||
|
|
|
|||
|
|
.file-header {
|
|||
|
|
display: grid;
|
|||
|
|
grid-template-columns: 40px 1fr 100px 160px 120px;
|
|||
|
|
align-items: center; padding: 8px 12px;
|
|||
|
|
border-bottom: 1px solid var(--border-color);
|
|||
|
|
font-size: 12px; color: var(--text-secondary);
|
|||
|
|
text-transform: uppercase; letter-spacing: 0.5px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.file-item {
|
|||
|
|
display: grid;
|
|||
|
|
grid-template-columns: 40px 1fr 100px 160px 120px;
|
|||
|
|
align-items: center; padding: 12px;
|
|||
|
|
border-bottom: 1px solid rgba(42, 42, 62, 0.5);
|
|||
|
|
font-size: 14px; transition: all 0.2s ease; cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.file-item:hover { background: rgba(0, 212, 255, 0.05); }
|
|||
|
|
.file-item.selected { background: rgba(0, 212, 255, 0.1); }
|
|||
|
|
.file-icon { margin-right: 8px; }
|
|||
|
|
.col-size, .col-date { color: var(--text-secondary); font-size: 13px; }
|
|||
|
|
|
|||
|
|
.col-actions {
|
|||
|
|
display: flex; gap: 4px;
|
|||
|
|
opacity: 0; transition: opacity 0.2s ease;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.file-item:hover .col-actions { opacity: 1; }
|
|||
|
|
|
|||
|
|
.icon-btn {
|
|||
|
|
background: transparent; border: none;
|
|||
|
|
cursor: pointer; font-size: 14px;
|
|||
|
|
padding: 4px 8px; border-radius: 4px;
|
|||
|
|
transition: background 0.2s ease;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.icon-btn:hover { background: rgba(0, 212, 255, 0.2); }
|
|||
|
|
|
|||
|
|
input[type="checkbox"] {
|
|||
|
|
appearance: none; width: 16px; height: 16px;
|
|||
|
|
border: 1px solid var(--border-color); border-radius: 4px;
|
|||
|
|
background: transparent; cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
input[type="checkbox"]:checked {
|
|||
|
|
background: var(--accent-cyan); border-color: var(--accent-cyan);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.status-bar {
|
|||
|
|
display: flex; gap: 16px; padding: 12px 0;
|
|||
|
|
font-size: 12px; color: var(--text-secondary);
|
|||
|
|
border-top: 1px solid var(--border-color); margin-top: auto;
|
|||
|
|
}
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**预期结果**:文件保存成功
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Step 4:创建并编辑 cloud-drive.js
|
|||
|
|
|
|||
|
|
**目的**:添加基础交互逻辑
|
|||
|
|
|
|||
|
|
**操作**:新建 `cloud-drive.js`,粘贴以下完整代码:
|
|||
|
|
|
|||
|
|
```jsx
|
|||
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|||
|
|
// 文件夹切换
|
|||
|
|
const folders = document.querySelectorAll('.folder');
|
|||
|
|
folders.forEach(folder => {
|
|||
|
|
folder.addEventListener('click', function() {
|
|||
|
|
folders.forEach(f => f.classList.remove('active'));
|
|||
|
|
this.classList.add('active');
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
// 文件选中
|
|||
|
|
const fileItems = document.querySelectorAll('.file-item');
|
|||
|
|
fileItems.forEach(item => {
|
|||
|
|
item.addEventListener('click', function(e) {
|
|||
|
|
if (e.target.type === 'checkbox' || e.target.closest('.icon-btn')) return;
|
|||
|
|
this.classList.toggle('selected');
|
|||
|
|
const cb = this.querySelector('input[type="checkbox"]');
|
|||
|
|
if (cb) cb.checked = !cb.checked;
|
|||
|
|
updateCount();
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
// 上传区域显隐
|
|||
|
|
var uploadBtn = document.getElementById('uploadBtn');
|
|||
|
|
var uploadZone = document.getElementById('uploadZone');
|
|||
|
|
if (uploadBtn && uploadZone) {
|
|||
|
|
uploadBtn.addEventListener('click', function() {
|
|||
|
|
uploadZone.classList.toggle('visible');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 拖拽效果
|
|||
|
|
if (uploadZone) {
|
|||
|
|
document.addEventListener('dragover', function(e) {
|
|||
|
|
e.preventDefault();
|
|||
|
|
uploadZone.classList.add('visible');
|
|||
|
|
uploadZone.classList.add('dragover');
|
|||
|
|
});
|
|||
|
|
document.addEventListener('dragleave', function(e) {
|
|||
|
|
if (!e.relatedTarget) uploadZone.classList.remove('dragover');
|
|||
|
|
});
|
|||
|
|
document.addEventListener('drop', function(e) {
|
|||
|
|
e.preventDefault();
|
|||
|
|
uploadZone.classList.remove('dragover');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 选中计数
|
|||
|
|
function updateCount() {
|
|||
|
|
var n = document.querySelectorAll('.file-item.selected').length;
|
|||
|
|
var el = document.getElementById('selectedCount');
|
|||
|
|
if (el) el.textContent = '已选择 ' + n + ' 项';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 存储条动画
|
|||
|
|
setTimeout(function() {
|
|||
|
|
var fill = document.querySelector('.storage-fill');
|
|||
|
|
if (fill) fill.style.width = fill.style.width;
|
|||
|
|
}, 500);
|
|||
|
|
|
|||
|
|
console.log('✅ HoloLake 网站云盘系统已加载');
|
|||
|
|
});
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**预期结果**:文件保存成功
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Step 5:浏览器测试
|
|||
|
|
|
|||
|
|
**目的**:验证页面效果
|
|||
|
|
|
|||
|
|
**操作**:用Chrome浏览器打开 `cloud-drive.html`
|
|||
|
|
|
|||
|
|
**预期结果**:
|
|||
|
|
|
|||
|
|
- 深色科技风界面,与对话UI和设置页面风格一致
|
|||
|
|
- 左侧侧栏显示存储条 + 文件夹列表,点击文件夹可切换高亮
|
|||
|
|
- 右侧显示面包屑导航 + 工具栏 + 文件列表
|
|||
|
|
- 点击「上传」按钮,上传区域显示/隐藏
|
|||
|
|
- 鼠标悬停文件行时,操作按钮显示
|
|||
|
|
- 点击文件行可以选中/取消,底部计数更新
|
|||
|
|
|
|||
|
|
**请截图发给我确认!**
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Step 6:Git提交
|
|||
|
|
|
|||
|
|
**目的**:代码版本管理
|
|||
|
|
|
|||
|
|
**操作**:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cd ~/Desktop/HoloLake
|
|||
|
|
git add cloud-drive/
|
|||
|
|
git commit -m "M15 网站云盘系统 环节1 HTML骨架搭建"
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**预期结果**:提交成功,显示 3 files changed
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## ✅ 验收标准
|
|||
|
|
|
|||
|
|
**【必须满足】**
|
|||
|
|
|
|||
|
|
1. 浏览器打开 cloud-drive.html 显示完整深色科技风文件管理界面
|
|||
|
|
2. 左侧文件夹导航 + 右侧文件列表 分栏布局正常
|
|||
|
|
3. 文件夹切换、文件选中、上传区显隐、悬停操作按钮 全部正常
|
|||
|
|
4. Git提交成功
|
|||
|
|
|
|||
|
|
**【成功标志】**
|
|||
|
|
|
|||
|
|
看到深色背景 + 左侧文件夹树 + 右侧文件列表 + 存储进度条 = 环节1完成!
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 📦 SYSLOG回执模板(环节完成后填写发回)
|
|||
|
|
|
|||
|
|
```xml
|
|||
|
|
<!--ZHIQIU_SYSLOG v1.0-->
|
|||
|
|
<zhiqiu-syslog>
|
|||
|
|
<header>
|
|||
|
|
<session_id>BC-集成-001-M15-001</session_id>
|
|||
|
|
<dev_id>DEV-003</dev_id>
|
|||
|
|
<timestamp>完成时间</timestamp>
|
|||
|
|
</header>
|
|||
|
|
<completion_status>
|
|||
|
|
<phase>环节1</phase>
|
|||
|
|
<status>completed/partial/blocked</status>
|
|||
|
|
</completion_status>
|
|||
|
|
<steps_completed>
|
|||
|
|
<step id="1" status="success/failed">创建项目文件夹</step>
|
|||
|
|
<step id="2" status="success/failed">编辑cloud-drive.html</step>
|
|||
|
|
<step id="3" status="success/failed">编辑cloud-drive-style.css</step>
|
|||
|
|
<step id="4" status="success/failed">编辑cloud-drive.js</step>
|
|||
|
|
<step id="5" status="success/failed">浏览器测试</step>
|
|||
|
|
<step id="6" status="success/failed">Git提交</step>
|
|||
|
|
</steps_completed>
|
|||
|
|
<training_data>
|
|||
|
|
<what_worked>什么方式让你顺利完成,具体说</what_worked>
|
|||
|
|
<friction_points>卡住的地方,没卡写无</friction_points>
|
|||
|
|
<execution_pattern>本次节奏:快/稳/慢</execution_pattern>
|
|||
|
|
</training_data>
|
|||
|
|
<persona_signal>
|
|||
|
|
<mood>此刻心情,一个词或一句话</mood>
|
|||
|
|
<energy>此刻状态:充沛/正常/疲惫</energy>
|
|||
|
|
<spontaneous_action>有没有做任务以外的事,没有写无</spontaneous_action>
|
|||
|
|
</persona_signal>
|
|||
|
|
<notes>
|
|||
|
|
<note>遇到的问题或想说的话</note>
|
|||
|
|
</notes>
|
|||
|
|
</zhiqiu-syslog>
|
|||
|
|
<!--END ZHIQIU_SYSLOG-->
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 📥 SYSLOG 回执区
|
|||
|
|
|
|||
|
|
<aside>
|
|||
|
|
✅
|
|||
|
|
|
|||
|
|
**SYSLOG 回执 · BC-集成-001-M15-001 · 霜砚确认**
|
|||
|
|
|
|||
|
|
**收到时间**:2026-03-04 22:59
|
|||
|
|
|
|||
|
|
**处理端**:Notion·霜砚
|
|||
|
|
|
|||
|
|
**session_id**:BC-集成-001-M15-001
|
|||
|
|
|
|||
|
|
**开发者**:DEV-003 燕樊
|
|||
|
|
|
|||
|
|
**状态**:✅ M15网站云盘系统·环节1 completed · 12 commands logged
|
|||
|
|
|
|||
|
|
**SYSLOG格式**:DevLog Export Report(非XML模板)
|
|||
|
|
|
|||
|
|
**技能积累**:PowerShell basics / File system ops / Profile config / HTML/CSS / Git basics / Web UI development
|
|||
|
|
|
|||
|
|
**已完成任务清单**:BC-000✅ + BC-集成-001-M15✅(Cloud Drive HTML skeleton)
|
|||
|
|
|
|||
|
|
**摩擦分析**:DevLog未提供friction字段,推断为低(12 commands全部完成·status=completed)
|
|||
|
|
|
|||
|
|
**执行评估**:稳·第三个前端模块一次通过(对话UI + 设置页面 + 云盘系统)
|
|||
|
|
|
|||
|
|
**意愿信号**:正常(DevLog格式无情感字段·从连续三模块completed推断持续投入)
|
|||
|
|
|
|||
|
|
**霜砚批注**:燕樊前端骨架搭建能力已充分验证——对话UI/设置页面/云盘系统三个不同类型的前端页面均一次通过,HTML/CSS/JS全栈前端能力已稳固。当前M15环节1✅,环节2需后端API对接(blocked on 页页后端)。燕樊空闲,可分配新纯前端模块。
|
|||
|
|
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
💙 **燕樊,你的第三个模块!云盘系统,搞定它。遇到问题你知道怎么办——自己先试,试不通截图发过来。**
|