Skip to content

Commit

Permalink
trivial DOM ffi syntax update; tag 0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Nov 11, 2024
1 parent 8d9243c commit 6aceff9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions moon.mod.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "tiye/respo",
"version": "0.0.13",
"version": "0.0.14",
"deps": {
"tiye/dom-ffi": "0.0.4",
"tiye/dom-ffi": "0.0.5",
"tiye/cirru-parser": "0.0.7"
},
"readme": "README.md",
Expand Down
2 changes: 0 additions & 2 deletions src/lib/dialog/moon.pkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"alias": "respo",
"value": [
"ui_button",
"ui_input",
"ui_global",
"ui_row",
"ui_column",
"ui_center",
"ui_fullscreen",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/node/effect.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct RespoEffectBox {
}

/// implement this on data which creates effect
pub trait RespoEffect: ToJson {
pub(open) trait RespoEffect: ToJson {
build_effect(Self) -> RespoEffectBox
make_handler(Self) -> (RespoEffectType, @dom_ffi.Node) -> Unit

Expand Down
2 changes: 1 addition & 1 deletion src/lib/node/node.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub fn DispatchFn::to_string[T](self : DispatchFn[T]) -> String {
"(DispatchFn \{self})"
}

pub trait RespoAction {
pub(open) trait RespoAction {
/// a function for building action to update states is required
build_states_action(Array[String], ToJson?) -> Self
// detect_intent(Self) -> ActonOp? // TODO
Expand Down
6 changes: 3 additions & 3 deletions src/main/main.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn main {
app.store.val.update(op)
},
)
let dev_mode = @dom_ffi.get_url_search_params(
window.get_location().get_search(),
).get("mode")
let dev_mode = @dom_ffi.new_url_search_params(window.location().search()).get(
"mode",
)
@dom_ffi.log("dev mode: " + dev_mode.to_string())
}

0 comments on commit 6aceff9

Please sign in to comment.