fde6503bdf
Memind CI / Test, build, and release guards (push) Has been cancelled
Enable optional SEO/GEO injection and discovery routes for confirmed public pages while keeping private pages noindex. Add premium page template skills, portal catalog API, template shop UI, and Baidu push gated by memind_adm config. Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
1.3 KiB
Markdown
39 lines
1.3 KiB
Markdown
---
|
||
name: page-template-survey
|
||
description: 问卷 Page Data 模板:前台提交壳 + 后台只读壳,必须配合 page-data-collect
|
||
---
|
||
|
||
# 问卷 Page Data 模板
|
||
|
||
## 何时使用
|
||
|
||
- 用户选择了「问卷模板」或需要问卷/报名/台账且希望用固定视觉壳
|
||
- **必须**同时走 `page-data-collect`:建表 → register → bind
|
||
|
||
## 工作流
|
||
|
||
1. `load_skill` → `page-data-collect`(先匹配能力分支)
|
||
2. `load_skill` → `page-template-survey`
|
||
3. 建表 / register dataset(MCP `private_data_*`)
|
||
4. `read_file` 前台模板 → 填 `FORM_FIELDS_HTML`、`DATASET_ID` 等 → `write_file` `public/<name>-survey.html`
|
||
5. `read_file` 后台模板 → `write_file` `public/<name>-admin.html`
|
||
6. `private_data_bind_workspace_page` + 写 policy
|
||
7. 只返回 workspaceUrl(`/MindSpace/<用户ID>/public/...`)
|
||
|
||
## 占位符(前台 survey-basic.html)
|
||
|
||
| 占位符 | 说明 |
|
||
|--------|------|
|
||
| `PAGE_TITLE` / `PAGE_DESCRIPTION` | 标题与摘要 |
|
||
| `MINDSPACE_COVER_JSON` | cover |
|
||
| `SURVEY_HEADLINE` | 问卷标题 |
|
||
| `SURVEY_INTRO_HTML` | 说明文案 |
|
||
| `FORM_FIELDS_HTML` | 表单字段 HTML |
|
||
| `DATASET_ID` | 已注册 dataset id |
|
||
| `SUBMIT_BUTTON_LABEL` | 提交按钮文案 |
|
||
|
||
## 禁止
|
||
|
||
- 跳过 bind / policy
|
||
- 使用 localStorage 或 SQLite
|