diff --git a/CENTER.md b/CENTER.md index 7b2e2d8..f80f362 100644 --- a/CENTER.md +++ b/CENTER.md @@ -1,12 +1,6 @@ # 赋能中心一楼 -导航中的“赋能中心一楼”整合活动记录、独立值班、物品清点与借出登记、展厅使用登记和设备使用教程。原有活动、账号和招生就业服务队值班功能保留。 - -## 设备使用教程 - -“设备使用教程”标签页提供视频上传、按教室号或设备名搜索、在线播放和本人删除。登录成员均可上传或观看,上传时需填写教室号和设备名,支持 MP4、WebM、MOV、M4V,单个文件不超过 500MB。 - -视频保存在业务数据库同目录的 `uploads/tutorials/`,不会出现在静态 `/uploads` 公开目录中;上传、列表、播放均需要登录,仅上传者可删除。浏览器通过登录请求取得视频,关闭播放弹层后释放临时视频资源。新增教程记录由启动时的表结构检查自动创建,不修改已有业务数据。部署备份继续保留整个 data 目录,包括教程视频。 +导航中的“赋能中心一楼”整合活动记录、独立值班、物品清点与借出登记。原有活动、账号和招生就业服务队值班功能保留。 ## 赋能中心一楼值班 diff --git a/dist/assets/styles.css b/dist/assets/styles.css index 1584874..9873533 100644 --- a/dist/assets/styles.css +++ b/dist/assets/styles.css @@ -19,8 +19,7 @@ --shadow: 0 2px 5px rgba(35, 64, 48, .025); } -* { box-sizing: border-box; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } -.btn, button { font: inherit; } +* { box-sizing: border-box; } html, body { margin: 0; @@ -99,7 +98,6 @@ textarea { width: 100%; resize: vertical; } .topbar-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; } #topbar-name { font-weight: 600; font-size: 14px; } .menu-toggle { display: none; background: none; border: none; font-size: 20px; } -.new-activity-short { display: none; } /* ---------- 布局 ---------- */ .container { max-width: 1160px; margin: 0 auto; padding: 40px 28px 72px; } @@ -398,8 +396,6 @@ form input, form select, form textarea, .form-card input, .form-card select { wi /* ---------- 响应式 ---------- */ @media (max-width: 760px) { - :root { font-size: 14px; } - body { font-size: 14px; } #nav { display: none; position: absolute; @@ -517,12 +513,10 @@ button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px s .brand-mark { width: 26px; height: 28px; } .topbar-user { margin-left: auto; } .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin-left: 0; color: var(--ink); border-radius: 8px; } - #nav { padding: 4px 10px 8px; z-index: 1; } - #nav a { padding: 10px; font-size: 14px; } - #nav a:last-child { border-top: 1px solid var(--line); margin-top: 4px; } - #new-activity-btn { flex: none; font-size: 13px; padding: 9px 12px; white-space: nowrap; } - .new-activity-label { display: none; } - .new-activity-short { display: inline; } + #nav { padding: 12px 16px; box-shadow: 0 8px 12px #263c3508; } + #nav a { padding: 12px; } + #logout-btn { min-height: 42px; } + #new-activity-btn { font-size: 13px; padding: 9px 10px; } .container { padding: 28px 16px 56px; } .page-head { align-items: stretch; gap: 20px; } .page-head > div:first-child { width: 100%; } @@ -536,18 +530,9 @@ button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px s .stat:nth-child(even), .stat:last-child { border-right: 0; } .stat b { font-size: 25px; } .acard { padding: 20px; } - .acard-actions .btn { min-height: 40px; } - .photo-preview-summary { min-height: 40px; padding: 6px 10px; } - .photo-preview-summary [data-photo-preview] { min-height: 34px; padding-block: 2px; } .acard-meta { gap: 8px 10px; margin-top: 12px; } - .acard-meta .tag.cat { display: none; } .meta-item { max-width: 100%; } - .acard h3 { font-size: 17px; line-height: 1.4; } - .acard-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.6; } - .acard-actions .btn:not(.primary) { padding-inline: 10px; } .acard-actions .btn { min-height: 42px; } - .acard-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } - .acard-actions .btn { justify-content: center; padding-inline: 6px; white-space: nowrap; } .member-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); } #members-table { table-layout: fixed; } #members-table th, #members-table td { padding: 12px 8px; font-size: 13px; overflow-wrap: anywhere; } @@ -556,8 +541,6 @@ button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px s .form-card { padding: 22px; } .modal-mask { padding: 16px 10px; } .modal { padding: 22px 18px; } - .center-tabs { gap: 4px; } - .center-tabs .tab { flex: 0 0 auto; padding-inline: 10px; font-size: 13px; white-space: nowrap; } .p-list li { flex-wrap: wrap; } .add-member-row input { min-width: 0; } } @@ -628,7 +611,7 @@ button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px s .center-shortcuts p { margin:5px 0 0; color:var(--muted); font-size:13px; } .center-shortcut-actions { display:flex; flex-wrap:wrap; gap:10px; } .center-shortcut-actions a { text-decoration:none; display:inline-flex; align-items:center; } -.center-tabs { max-width:none; margin-bottom:24px; } +.center-tabs { max-width:500px; margin-bottom:24px; } .center-check-status { padding:18px 20px; background:var(--primary-soft); border:1px solid #d5e5da; border-radius:12px; margin-bottom:20px; } .center-subhead { margin-top:32px; } .center-duty-head { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:18px; } @@ -735,7 +718,4 @@ button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px s .center-history { margin-top:28px; } .center-history summary { cursor:pointer; padding:12px 0; } .center-history .acard { margin-top:12px; } -.tutorial-video { display:block; width:100%; max-height:70vh; margin-top:18px; background:#151b17; border-radius:10px; } -.tutorial-actions { display:flex; align-items:center; gap:10px; margin-top:14px; } -.tutorial-upload-status { min-height:24px; } @media (min-width:761px) and (max-width:1000px) { .topbar-inner { flex-wrap:wrap; } #nav { order:3; flex-basis:100%; } } diff --git a/dist/index.html b/dist/index.html index b4a33fc..3621d44 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@
程序读取:GET /api/center/data;字段说明:GET /api/center/schema。均需使用本人登录令牌。
- +按教室和设备查找视频,登录成员均可上传和观看。