Skip to content

Commit

Permalink
v0.28.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Salceanu committed Aug 30, 2024
1 parent d82113d commit d95b568
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Stipple"
uuid = "4acbeb90-81a0-11ea-1966-bdaff8155998"
authors = ["Adrian <[email protected]>"]
version = "0.28.13"
authors = ["Adrian <[email protected]> and the Stipple contributors"]
version = "0.28.14"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 1 addition & 1 deletion src/ModelStorage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function init_from_storage( t::Type{M};
Stipple.isprivate(f, model) || ! hasproperty(stored_model, f) || ! hasproperty(model, f)
else
# restore field value from stored model
(field[!] = getfield(stored_model, f)[])
field[!] = getfield(stored_model, f)[]
end

# register reactive handlers to automatically save model on session when model changes
Expand Down
6 changes: 6 additions & 0 deletions src/Stipple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,12 @@ function Base.push!(app::M, vals::Pair{Symbol,T};
channel::String = getchannel(app),
except::Union{Nothing,UInt,Vector{UInt}} = nothing,
restrict::Union{Nothing,UInt,Vector{UInt}} = nothing)::Bool where {T,M<:ReactiveModel}
try
use_model_storage() && Stipple.ModelStorage.Sessions.store(app)
catch ex
@error ex
end

try
_push!(vals, channel; except, restrict)
catch ex
Expand Down
4 changes: 3 additions & 1 deletion src/stipple/rendering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function Stipple.render(app::M)::Dict{Symbol,Any} where {M<:ReactiveModel}
js = join_js(f(app), ",\n "; pre = strip)
isempty(js) || push!(vue, field => JSONText("{\n $js\n}"))
end

for (f, field) in (
(js_before_create, :beforeCreate), (js_created, :created), (js_before_mount, :beforeMount), (js_mounted, :mounted),
(js_before_update, :beforeUpdate), (js_updated, :updated), (js_activated, :activated), (js_deactivated, :deactivated),
Expand Down Expand Up @@ -207,3 +207,5 @@ quasar(
function js_attr(x)
Symbol(replace(replace(json(render(x)), "'" => raw"\'"), '"' => '''))
end

Stipple.render(X::Matrix) = [X[:, i] for i in 1:size(X, 2)]

2 comments on commit d95b568

@essenciary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/114187

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.28.14 -m "<description of version>" d95b5689995ae852867f5c23ab12d6168cf02b89
git push origin v0.28.14

Please sign in to comment.