Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Demo http://repo.respo-mvc.org/markup/ .

### Usages

本次候选 **0.0.5** 配对正式 Calcit / `@calcit/procs` **0.35.1**。
本次候选 **0.0.5** 配对正式 Calcit / `@calcit/procs` **0.37.0**。
消费者需重新安装完整依赖图、生成 JS 并完整刷新页面。Content 输入、Run、Reel 调试工具、
存档 key 和格式保持;Demo 不新增 Markdown 解析功能。UI/Reel 跨 minor 升级可能有样式差异。
0.0.5 尚未发布,正式 tag 出现前不要将本分支当作已发布依赖。

依赖使用已发布的 Respo **0.19.4**、UI **0.15.1**、Reel **0.9.2**、JS-FFI **0.2.13**,
传递 Router **0.12.1**;不再使用 Reel / Router 的旧 alpha 图。
依赖使用已发布的 Respo **0.19.5**、UI **0.15.2**、Reel **0.10.0**、JS-FFI **0.2.13**,
传递 Router **0.12.2**;不再使用 Reel / Router 的旧 alpha 图。
两个 DOM 回调使用真实 RespoEvent 和单 Enum dispatch,输入值由公开 `event-value` 检查为 String。
原 Reel 的 `read-field` 已删除;此处直接读取数据,保留 Map/Struct 字段读取及缺失值语义。
两个间隔分别保持 8 / 8px,开发态子节点显式使用 Option。
Expand Down
24 changes: 13 additions & 11 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{} (:description |) (:init-fn 'app.main/main!) (:mode :js) (:reload-fn 'app.main/reload!) (:target :browser)
:feature-policy $ {}
:modules $ [] |respo.calcit/ |respo-ui.calcit/ |reel.calcit/ |js-ffi/
:type-slots $ {} $ :dispatch-op |app.schema/DispatchOp
:type-slots $ {} $ :dispatch-op 'app.schema/DispatchOp
:files $ {}
'app.comp.container $ %{} 'FileEntry
:defs $ {} $ 'comp-container
Expand All @@ -22,22 +22,24 @@
try-decode-map-as value $ List respo.schema/CoordKey
(:ok checked) checked
(:err _) (raise "|Expected List cursor")
state $ or
.unwrap-or (get states :data) nil
{} $ :content |
content $ .unwrap-or
get
state $ match (get states :data)
(:some value)
or value $ {} $ :content |
(:none)
{} $ :content |
content $ .unwrap $ get
&merge
{} $ :content nil
if (struct? state) (&struct:to-map state) (decode-map-as state 'Map)
, :content
, nil
, :content
div
{} $ :class-name $ str-spaced css/global css/row
textarea $ {} (:value content) (:placeholder |Content)
:class-name $ str-spaced css/expand css/textarea
:style $ {} $ :height |320px
:on-input $ fn (e d!)
hint-fn $ Fn respo.schema/RespoEvent
Fn AnyEnum $ -> Unit
Fn app.schema/Op $ -> Unit
-> Unit
d! $ schema/Op :states cursor $ assoc state :content (event-value e)
space-x 8
Expand All @@ -48,7 +50,7 @@
button $ {} (:class-name css/button) (:inner-text |Run)
:on-click $ fn (e d!)
hint-fn $ Fn respo.schema/RespoEvent
Fn AnyEnum $ -> Unit
Fn app.schema/Op $ -> Unit
-> Unit
println content
if dev?
Expand Down Expand Up @@ -160,7 +162,7 @@
:code $ quote $ defn render-app! ()
with-memo-frame $ fn () $ render! mount-target (comp-container @*reel)
fn (op)
hint-fn $ Fn Dynamic $ -> Unit
hint-fn $ Fn AnyEnum $ -> Unit
if (enum? op) (dispatch! op) (raise "|Expected Markup operation Enum")
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :js-ffi)
Expand Down
8 changes: 4 additions & 4 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{} (:calcit-version |0.35.1)
{} (:calcit-version |0.37.0)
Comment thread
tiye marked this conversation as resolved.
Resolved
:version |0.0.5
:dependencies $ {} (|Respo/reel.calcit |0.9.2)
|Respo/respo-ui.calcit |0.15.1
|Respo/respo.calcit |0.19.4
:dependencies $ {} (|Respo/reel.calcit |0.10.0)
|Respo/respo-ui.calcit |0.15.2
|Respo/respo.calcit |0.19.5
|calcit-lang/js-ffi |0.2.13
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packageManager": "yarn@4.18.0",
"dependencies": {
"@calcit/procs": "0.35.1"
"@calcit/procs": "0.37.0"
},
"devDependencies": {
"bottom-tip": "^0.1.5",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.