Commit Graph

62 Commits

Author SHA1 Message Date
d4497e1935 AsyncSignal now keeps track if the it's loading. 2024-12-22 18:52:52 +00:00
fc1f5b101c Fixed AsyncSignal not being Send when sync feature was active. 2024-12-22 16:45:34 +00:00
4d193c5465 Moved dynatos-reactive's sync type alises to separate crate. 2024-12-22 16:21:32 +00:00
ac4dde9a66 Updated zutil to latest version. 2024-12-21 00:54:08 +00:00
963809a554 Removed all wasm dependencies from dynatos-util. 2024-12-20 01:39:25 +00:00
04abab3007 Moved all wasm things from dynatos-util to dynatos-html. 2024-12-20 01:37:36 +00:00
21c7d6038e Moved cloned macro to zutil. 2024-12-20 01:18:00 +00:00
d84e2c29c7 Updated all dependencies. 2024-12-20 01:07:47 +00:00
a6caa9729e dynatos_html::{html, html_file} now allow @event=event_handler attributes.
Added `counter-no-macros` example.
2024-12-06 09:53:57 +00:00
9939564b37 dynatos_html::{html, html_file} now allow expressions inside of text using %{expr}%. 2024-12-06 09:24:01 +00:00
f3d792f544 Improved formatting in counter example. 2024-12-06 08:40:55 +00:00
2e7e29c5eb Removed useless dynamic attribute in counter example. 2024-12-06 08:38:47 +00:00
dfceb11dbf Replaced tl with a custom html parser. 2024-12-06 08:21:55 +00:00
73e57a15a1 Added dynatos_html::{html, html_file} macros. 2024-12-03 06:37:23 +00:00
f2fd544f6f Updated to rustc 1.81.0-nightly (9c3bc805d 2024-06-27). 2024-07-03 20:24:36 +01:00
f6de2142fe Added cloned proc macro to dynatos-util. 2024-03-21 19:47:43 +00:00
10e2d228a0 Fixed Trigger triggering multiple times in debug mode.
This was due to `Subscriber` taking it's defined location into it's hash, which made it possible for the same effect to be registered twice, so long as it had a different defined location.
2024-03-18 21:00:46 +00:00
1727e0bb9b Triggers and Effectss now store their definition location in debug mode. 2024-03-18 21:00:41 +00:00
873b5f9325 Replaced remaining miscellaneous usages of thread_local! with #[thread_local]. 2024-03-11 01:51:29 +00:00
805e5fd445 Added warning for lint clippy::std_instead_of_core. 2024-03-11 01:41:56 +00:00
c72337760a Added SignalBorrowMut.
Fixed `AsyncSignal::update` not triggering subscribers.
2024-03-10 01:17:16 +00:00
c529a150b9 Updated tests' Cargo.lock. 2024-03-09 19:05:52 +00:00
e775a5bf7a Replaced .with(Clone::clone) with .get_cloned(). 2024-02-20 14:19:55 +00:00
1766db806a Location no longer implements SignalGet. 2024-02-20 13:53:39 +00:00
95d86209a2 Removed ElementDynAttr::set_dyn_attr.
Renamed `Element[With]DynAttr::{set, with}_dyn_attr_value` to `{set, with}_dyn_attr`.
2024-02-20 03:18:29 +00:00
5240c097a8 ObjectDynProp now receives anything that implements ToDynProp. 2024-02-19 08:30:18 +00:00
c4d52a8023 Extracted NodeDynText::with_dyn_text to a new trait. 2024-02-19 04:31:59 +00:00
eeecefa35d Extracted NodeDynChild::with_dyn_child to a new trait. 2024-02-19 04:30:49 +00:00
a89ef03182 Extracted ElementDynAttr::with_* to a new trait. 2024-02-19 04:29:35 +00:00
6fc5984344 Extracted ObjectAttachEffect::with_effect to a new trait. 2024-02-19 04:26:39 +00:00
9ca824015f Added dynatos::ObjectAttachContext. 2024-02-19 04:22:39 +00:00
2740552a53 Removed dynatos-logger. 2024-02-18 01:32:55 +00:00
5e82c61b3a Updated to rustc 1.78.0-nightly (bccb9bbb4 2024-02-16). 2024-02-18 01:28:16 +00:00
8fd25d7d0f dyn_text now receives anything that implements AsDynText. 2024-02-16 19:19:45 +00:00
2596868670 Removed function argument from with_event_listener.
Separated `with_event_listener` to it's own trait.
2024-02-16 17:15:44 +00:00
0cac908b61 Renamed with_text_content to with_text. 2024-02-16 17:11:10 +00:00
eab0e669c3 Added dynatos-title to manage the document title. 2024-02-16 16:44:48 +00:00
62b391d318 Renamed ObjectSet to `ObjectSetProp 2024-02-16 15:12:19 +00:00
38bbd90ac2 dyn_child now receives anything that implements AsDynNode. 2024-02-16 15:04:16 +00:00
8b504329a4 Added dynatos_reactive::Derived. 2024-02-16 12:31:48 +00:00
9ab1115f78 Replaced ObjectDefineProperty with ObjectSet. 2024-02-06 09:15:50 +00:00
c563754171 Fixed that .dyn_child would lose the position if the closure returned None. 2024-02-06 07:44:24 +00:00
0083e62fa7 NodeDynChild now accepts a missing child. 2024-02-04 15:03:17 +00:00
d9d9366080 Added dynatos_html::ElementWithClass. 2024-02-04 14:01:12 +00:00
e972ae461f Added dynatos::ElementDynAttr. 2024-02-04 13:33:58 +00:00
90e12df0cf Renamed ElementWithTextContent to NodeWithTextContent.
Renamed `ElementWithChildren` to `NodeWithChildren`.
Made the previous and `ElementWithAttr` all generic on their implemented type.
2024-02-04 13:19:18 +00:00
94a4fe3f65 Renamed ElementDynChild to NodeDynChild.
Also made it generic over the types.
2024-02-04 13:15:27 +00:00
bc8f562a42 Renamed ElementDynText to NodeDynText.
Also made it generic over the type.
2024-02-04 13:13:17 +00:00
e3dc70b725 Most web_sys fallible calls now panic on failure. 2024-02-04 12:37:36 +00:00
7c7db72348 ElementWithChildren::with_children now panics on errors by default. 2024-02-04 12:33:26 +00:00