feat: ship the unique offline marqdo web Tool (WEB-02 candidate)
Implement the first Preview candidate in its unique owner repository: - marqdo web check/preview/handoff with explicit ENTRY/--unit/--root/--out/ --theme; independent executable packaged with tool.json (command web, api_revision/analysis requirements). - Consume only the public marqdo-web-design crate at a fixed git revision (Cargo.lock pinned; no ../design path dependency, no Markdown re-parsing). - preview renders one offline index.html: strict hashed CSP (default-src 'none', no network), visible prototype banner and build summary, escaped Design ContentBlocks (raw HTML stays inert), finite-state scenario panels with hashed inline script and reset, no server/timer/eval business logic. - Publication refuses existing outputs and symlink targets, builds in a private sibling staging dir and renames atomically; 0/1/2 exit codes with stderr diagnostics. - scripts/ci.sh installs the Tool through the real CLI, runs all three commands on a fixture project, asserts the offline/safety facts, verifies the CLI binary digest is unchanged and removes the Tool. - Evidence records we do NOT yet claim real-browser/responsive acceptance, image assets, the full negative matrix, budgets/timeouts or WEB-05 cold install. Refs cflmy/marqdo-web-preview#1, cflmy/marqdo#6
This commit was merged in pull request #2.
This commit is contained in:
1 parent
8b3281bac0
commit
e739f4504a
12 files changed
+928
-26
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# 导航组件
|
||||
|
||||
## @knowledge 导航
|
||||
|
||||
### 内容
|
||||
|
||||
- 首页
|
||||
- 任务
|
||||
|
||||
### 验收
|
||||
|
||||
- 导航在窄屏下重排。
|
||||
@@ -0,0 +1,16 @@
|
||||
# 任务组件
|
||||
|
||||
## @knowledge 任务
|
||||
|
||||
### 场景
|
||||
|
||||
| 状态 | 内容 | 初始 |
|
||||
| --- | --- | --- |
|
||||
| empty | [空状态](../states.mq.md#空状态) | true |
|
||||
| done | [完成](../states.mq.md#完成) | false |
|
||||
|
||||
### 交互
|
||||
|
||||
| 当前 | 事件 | 下一状态 |
|
||||
| --- | --- | --- |
|
||||
| empty | 模拟保存 | done |
|
||||
@@ -0,0 +1,16 @@
|
||||
# 科研原型
|
||||
|
||||
## @knowledge 工作台
|
||||
|
||||
面向研究人员的原型页面。访问 [项目说明](https://example.test/docs) 或 [危险](javascript:alert(1))。
|
||||
|
||||
### 内容
|
||||
|
||||
<div onerror="alert(1)">raw html 应显示为文本</div>
|
||||
|
||||
### 组件
|
||||
|
||||
| 行 | 槽 | 组件 | 宽度 |
|
||||
| --- | --- | --- | --- |
|
||||
| 1 | nav | [导航](components/nav.mq.md#导航) | 220px |
|
||||
| 1 | main | [任务](components/tasks.mq.md#任务) | 1fr |
|
||||
@@ -0,0 +1,9 @@
|
||||
# 状态
|
||||
|
||||
## @knowledge 空状态
|
||||
|
||||
暂无任务。
|
||||
|
||||
## @knowledge 完成
|
||||
|
||||
任务已完成(模拟)。
|
||||
Reference in new issue
Block a user