Web 管理界面(Vue 3,嵌入单二进制)

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@linuxsuren-fs is already working on this.

Since Nov 18, 2026.

  • #17 by @linuxsuren-fs — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
go

Research direction

Start by reviewing the open pull request #17 and the related issues #2, #3, and #5 to see how the UI work is divided and what is already underway. The issue calls for a Vue 3 and Vite web UI embedded in the Go binary, with CRUD, task progress and logs, and Playwright end-to-end coverage. Done means the listed screens and operations work against the API and the key sync flow has end-to-end coverage.

Written by the indexing model from the issue text.

Description

requirement
背景

服务器、registry、镜像清单与同步任务都需要管理界面;工具以 Web UI 为主要交互形态,嵌入单二进制分发。

需求
  1. 页面:总览(最近任务与状态)、服务器管理(#2)、Registry 与镜像清单(#3)、任务创建/详情/历史(#5)、系统信息(版本、配置)
  2. 任务详情:步骤级进度条、日志查看、失败原因(稳定错误码 → 人话文案)
  3. 交互细节:
    • 表格分页 + 筛选,字段契约与后端一致(snake_case)
    • 敏感字段(密码/密钥/Secret)输入框 password 化,编辑时留空表示不变更
    • 错误提示走前端映射表,未知错误码有兜底文案,不透传底层技术报错
  4. 品牌与外观:项目 logo 单源文件,favicon 与导航统一引用;设计令牌驱动样式,不做模板化堆砌
技术要点
  • Vue 3 + Vite,不引重依赖:无 UI 组件库全家桶、无路由库(标签页切换即可);HTTP 走单文件 fetch 封装(超时/网络错误包装/错误 envelope 解析)
  • 中文文案规范:同一概念全文同一称呼;操作动词全流程一致(如统一「同步」);不用后置括号补充解释
  • 构建产物嵌入二进制,纯 Go checkout 在无 Node 环境也能编译(提交 dist 或等价方案,说明取舍)
验收标准
  • 全部 CRUD 与任务操作可在 UI 完成,与 API 能力对齐
  • 关键路径(建服务器 → 建镜像清单 → 发起同步 → 看进度/日志)有 Playwright e2e
  • UI 改动的 PR 附受影响页面截图(仓库协作约定)
  • 前端构建无新重依赖(package.json 变更需在 PR 说明用途)
Dominant language
Go
Stars
2
Forks
1
Avg merge
1h 37m
Merged PRs (30d)
6

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinuxSuRen/open-img-sync

All issues in LinuxSuRen/open-img-sync

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.