Feature: Form designer
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- frontend
调研方向
未指定任何文件、测试或入口点。首先将提议的表单区域、dragula 行为、contenteditable 标签和描述,以及 formArea.innerHTML 导出转化为明确的范围;完成内容应包括一份达成共识的设计和已定义的持久化格式。
由索引模型根据 Issue 内容生成。
描述
Using this issue to jot down ideas about the form designer. We could try to reuse dobt's form designer ... but if we didn't....
We could use dragula and HTML5's contenteditable, and simply serialize the DOM.
So there'd be a form area, and a way to add fields to it. Adding an <input type="text"> would actually add a <div class="draggable"><label><input><p class="description"></div>. The <div> would have dragula enabled on it. Dragging it around simply rearranges it in the DOM. The <label> and description <p> would have contenteditable="true", letting the user directly edit their contents (which also just updates the DOM).
"Saving" the form would be a matter of exporting formArea.innerHTML. Sure, we could serialize it into JSON if we want to, but there may be an advantage to simply storing the HTML. For instance, you could very easily customize it to infinity. We'd just need a way to associate the fields with the data, but that shouldn't be too hard; just require that each field has a <label> and use an underscorified_version_of_the_label as the field name.
Sounds like fun!
- 主要语言
- Python
- 星标
- 22
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeForPhilly/stately 的其他 Issue
-
难度 5/5 一周以上 新手友好度 15/100
CodeForPhilly/stately#60 ·
-
难度 5/5 一周以上 新手友好度 20/100
CodeForPhilly/stately#59 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 28/100
CodeForPhilly/stately#58 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
CodeForPhilly/stately#57 ·
-
Search case list 未关闭api ui
难度 3/5 1-2 天 新手友好度 35/100
CodeForPhilly/stately#55 ·
查看 CodeForPhilly/stately 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100