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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Preview http://diary.topix.im
https://github.com/Cumulo/calcium-workflow/

项目配对使用正式 Calcit / @calcit/procs `0.44.0`,默认入口为 browser JS,server 为 native。升级后请按锁文件重装依赖并重新编译;部署前需备份存档,并确认服务端使用配套工具链和 native 模块。
正式依赖图同时对齐 Cumulo Reel 0.3.8、WS-EDN 0.2.6 与 Recollect 0.3.10;前后端需配套更新。
正式依赖图同时对齐 Cumulo Reel 0.3.9、WS-EDN 0.2.7 与 Recollect 0.3.10;前后端需配套更新。

标准库 0.2.58 与 Calcit 0.44.0 配对,服务端须为目标架构构建 native 库。
Calcit 模块版本以 `deps.cirru` 为准,npm runtime 以 `package.json` 和 `yarn.lock` 为准。
Expand Down
30 changes: 15 additions & 15 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@
'connect! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn connect! () (reset! *awaiting-snapshot? true)
let
host $ unsafe-coerce js/location.hostname String
location $ browser/location-host
host $ location :hostname
port $ config/site :port
ws-connect!
opened $ fn (event) (simulate-login!) &unit
closed $ fn (event) (reset! *awaiting-snapshot? true)
reset! *store $ StorePayload :offline $ store-snapshot @*store
js/console.error "|Lost connection!"
, &unit
failed $ fn (error) (reject-server-data! :wire) &unit
ws-edn.client/ws-connect-typed!
if config/dev? (str |ws:// host |: port) |wss://diary.chenyong.life/ws
{}
:on-open $ fn (event) (simulate-login!)
:on-close $ fn (event) (reset! *awaiting-snapshot? true)
reset! *store $ StorePayload :offline $ store-snapshot @*store
js/console.error "|Lost connection!"
:on-data on-server-data
:on-error $ fn (_error)
hint-fn $ Fn Dynamic $ -> Unit
reject-server-data! :wire
ws-edn.client/ClientConfig :retry-base-ms None :retry-max-ms None :retry-jitter None :heartbeat-timeout-ms None :class-mapper $ {}
ws-edn.client/ClientCallbacks :on-open (Some opened) :on-close (Some closed) :on-error (Some failed) :on-data $ Some on-server-data
, &unit
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :io :js-ffi :state)
Expand Down Expand Up @@ -1458,17 +1458,17 @@
a
{} (:class-name css-month-switch)
:on-click $ fn (e d!)
hint-fn $ Fn (Map Tag Dynamic)
Fn Dynamic & Dynamic $ -> Unit
hint-fn $ Fn respo.schema/RespoEvent
Fn app.schema/ClientOp $ -> Unit
-> Unit
on-change-month! cursor -1 d!
comp-i :chevron-left 16 $ hsl 200 80 70
<> (cursor-date .to-format |yyyy-MM) (str-spaced css/font-fancy style-month-header)
a
{} (:class-name css-month-switch)
:on-click $ fn (e d!)
hint-fn $ Fn (Map Tag Dynamic)
Fn Dynamic & Dynamic $ -> Unit
hint-fn $ Fn respo.schema/RespoEvent
Fn app.schema/ClientOp $ -> Unit
-> Unit
on-change-month! cursor 1 d!
comp-i :chevron-right 16 $ hsl 200 80 70
Expand Down
6 changes: 3 additions & 3 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

{} (:calcit-version |0.44.0)
:dependencies $ {} (|Cumulo/cumulo-reel.calcit |0.3.8)
:dependencies $ {} (|Cumulo/cumulo-reel.calcit |0.3.9)
|Cumulo/cumulo-util.calcit |0.0.46
|Respo/alerts.calcit |0.14.8
|Respo/alerts.calcit |0.14.9
|Respo/reel.calcit |0.11.5
|Respo/respo-feather.calcit |0.6.9
|Respo/respo-message.calcit |0.4.5
Expand All @@ -12,4 +12,4 @@
|calcit-lang/calcit.std |0.2.58
|calcit-lang/js-ffi |0.2.19
|calcit-lang/recollect |0.3.10
|mvc-works/ws-edn.calcit |0.2.6
|mvc-works/ws-edn.calcit |0.2.7