* add test to assert iterators work
* update test
* a few minor adjustments
* remove redundant wrappers around htmltree
* we're going down the rabbit hole
* components are broken but everything else works
* we're getting there
* working prototype
* test vector as children method for all containers
* more appropriate names and some comments
* ChildrenRenderer handling
* update tests to include ChildrenRenderer
* trigger tests to re-run
* improve error messages for invaid iterables
* improve html_nested!
* first sketch of a stateful agent
* share the data with listeners only immutably
* rename the stateful agent to Store
* moved stuff around, fixed missing parts
* removed a useless directory
* fmt fixes
* added missing comments
* list all listener attributes
* add handlers for web_sys
* implement for stdweb
* update list of event handlers
* rename doubleclick to dblclick
* add error for unsupported listeners (stdweb)
* remove cfg-if dependency
* conditially require serialize
* we're using a trait alias and a clearer implementation of the constraints
* after merging with separated agent
* no trait aliases :(
* specialized the types for Drop a bit
* added an additional constraint on an agent
* emitted with fmt fixes
* dropped the useless debug constraint on the input
* fix stdweb examples
* dropped unneeded debug constraints
* linter
* Prevent setting empty class string in DOM
* Use the className property for setting classes in DOM
* Update documentation of VTag::diff_classes
* Add test cases for checking if the class_name is not set for empty class attributes
* Add class to SVG g element in the supports_svg test
* Revert "Use the className property for setting classes in DOM"
This reverts commit 41bfbc3218ce17310d7b9fa6ac99cb0049a34911.
* Use patches for the class attribute and remove classes with remove_attribute
* Set classes directly as class attribute
* Fix markdown example
* Remove set_classes and classes from VTag
Add possibility to use different types in the class tuple
Add convertion to Classes from Option<T> where T: AsRef<str>
* Remove mut from variable that does not need to be
Add `::` to create an absolute path to std
* Use helper methods for classes in tests
* Add test case for Option<&'static str> variable
* Remove unnecessary map in test
* Update to version 0.7.0
* Use new Options struct
* Fix rule support
* Fix link tag
* Remove code tag
* Fix code block tag
* Fix image tag
* Fix heading tag
* Add strikethrough tag
* Run cargo fmt
* Use the `Msg::SetOpposite` in `two_apps` example
b4d5227e625640ee2aca548ee06499dfe90c8acf changed the name of
`Msg::SetScope` to `Msg::SetOpposite` but the usages in the `main`
functions of the `two_apps` examples were not updated.
* Use new `TwoModels` struct as the `TwoApps` scene
`TwoModels` is a `Component` that does not respond to changes but which
creates two instances of the `Model` and mounts them as separate
`yew::App<Model>` instances in the body. This is done to mimic the
behavior of `two_apps/src/main.rs` which uses a static `index.html` file
containing the `div.first-app` and `div.second-app` elements.
`TwoModels::mounted` is responsible for replacing the `<div>` nodes it
creates during the initial render with the `Model` components.
* Add example to reproduce
* Fix behavior by setting value of <select> tag
* Remove misc for debug
* Support web_sys
* Use in showcase example
* Remove reproducing example
* Fix for clippy
* Use unwrap_or_default()
* Properties 2.0
* Fix problem when passing a closure to prop_or_else
* Update test names
* Add support for building with web-sys (#961)
* Enable travis
* `web-sys` general conversion (#826)
* Moved patches from different PRs.
* Add bits & pieces and some services.
* Rename `stdweb` feature to `std_web`.
* Move tests and examples to different PR.
* Revert some `cargo_web` handling removal.
* Missed something.
* Implement `console_error_panic_hook`.
* Update Cargo.toml
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
* Move document creation to util convenience method (#855)
* `web-sys` listener conversion (#813)
* `web-sys` listener initial try.
* Improve macros?
* Remove generic from `EventListenerHandle`.
* Fix build.
* A cleaner solution?
* Even cleaner.
* Fix `build.rs`.
* Minor improvements.
* Following the yew toml style.
* Fixing visibility.
* Fix `rustfmt`.
* Add `web-sys` re-exports.
* Move general changes to different PR.
* Remove compat.
* Actually remove `compat.rs`.
* Rename `stdweb` feature to `std_web`.
* Move to gloo's `EventListener` and some polish.
* Remove outdated comment.
* Change `EventHandler` to be cancelled on drop.
* `web-sys` html conversion (#817)
* Converting all `html` parts.
* Format.
* Move general changes to different PR.
* Removed compat.
* Rename `stdweb` feature to `std_web`.
* Remove redudant function copy.
* Some polish.
* Move to gloo's `EventListener`.
* Replace `unwrap`s with `expect`s.
* `web-sys` agent conversion (#818)
* Converting `agent`.
* Remove wrong `cfg` in imports.
* Move general changes to different PR.
* Some optimisations.
* Rename `stdweb` feature to `std_web`.
* Fix `ArrayBuffer` to `Uint8Array` conversions.
* Add js module worker.
* Use `cfg-if`` and `cfg-match` to make things clearer.
* Fix `std_web` build.
* Add some polish.
* Add build guards for invalid build configs (#866)
* `web_sys` cfg conversion (#862)
* Use `cfg-if` and `cfg-match` and some polish.
* Mistakes were made.
* Missed line during rebasing.
* Mistakes were undone.
* Remove global.
* Remove part of `global!`.
* `web-sys` services conversion (#827)
* Convert `console`.
* Finish services.
* Some polish.
* Fix `ArrayBuffer` to `Uint8Array` conversions.
* Fix aborting fetch leading to error and some polish.
* Replaced some `unwrap`s with `expect`s.
* Use `cfg_if` and `cfg_match` and do some polish.
* Proper scoping.
* Some fixes.
* Move fetch and reader services to different PR.
* Revert split.
* Fix CI builds (#877)
* Fix derive_props_test
* Move tests (#897) (#898)
* `web-sys` fetch service conversion (#867)
* Split implementation.
* Import global.
* Import global.
* Revert split.
* Make fetch available again.
* Revert "Revert split."
This reverts commit 6e3f101dbedde2142f041467a8ae40ef5e3920c5.
* Re-revert split.
* Some polish.
* Move to `wasm_bindgen_futures`.
* Switch to `thiserror`.
* wip
* Update src/services/fetch/web_sys.rs
Co-Authored-By: daxpedda <daxpedda@gmail.com>
* Some more polish.
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
* `web-sys` reader service conversion (#868)
* Split reader implementation.
* Revert split.
* Remove leftover files.
* Make reader available again.
* Revert "Revert split."
This reverts commit 8abdc9cf2b014ab61fef2c48d1af8927d9a5a330.
* Revert "Remove leftover files."
This reverts commit 188c6eb9693881c9987061de8deb29c6f4c613a4.
* Re-revert split.
* Polish.
* Forgot some part.
* Some polish.
* Some polish.
* `web-sys` examples/tests conversion (#841)
* Fix examples/tests to work with `web_sys`.
* Update `StorageService` usage.
* Split `stdweb` and `web-sys` examples.
* Fixing the shell script.
* Trying to reset file permissions.
* Update to new reader API.
* Update to new fetch API.
* Update to new fetch API.
* Re-enable examples CI.
* Deleted duplicate example.
* Some fixes.
* Fix rand build.
* Fix spawning workers in combination with `wasm-bindgen`. (#901)
* Fix component rendering process (#913)
* wip
* Fix component rendering process
* Simplify yew-macro a bit (#902)
* yew-macro: Simplify Properties validation
* Fix most clippy warnings
* Fix clippy warnings (#912)
* Import Task trait in dashboard example
* Remove duplicate vtag tests
* Fix prevent_default() by non-passive (#958)
* Fix prevent_default() by non-passive
* Fix cargo fmt
* Remove `Option` from most services.
* Remove `Option` from resize service.
* Apply fetch changes.
* Apply reader service changes.
* Fix `node_refs` example.
* Remove web-sys travis branch
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>
* Fix vtag test warning (#978)
* Clean up exported apis and doc visibility (#977)
* Clean up exported apis and doc visibility
* Remove unused ScopeHolder
* Change ComponentLink to alias of Scope
* cargo fmt
* update new examples to Properties 2.0
* Fix a mistake when resolving conflicts
* Remove an outdated hack.
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>