Justin Starry
f5ae8afb19
Add pull request template and udpate contributor guide
2020-05-27 00:19:27 +08:00
yossarian
4b0d3d2cc2
Handle [type] attribute on the Button element ( #1033 )
...
* initial
* handle button
* handle button
* remove std_web
* merge
* revert
* Fix unresolved import error. (#5 )
* fix yew-stdweb
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Co-authored-by: Justin Starry <justin.starry@icloud.com>
2020-05-27 00:05:11 +08:00
Justin Starry
01fd132ffd
Add questionnaire to feature issue template
2020-05-26 22:59:49 +08:00
Justin Starry
b5a96c1b2e
Rename yew router issue templates
2020-05-26 22:56:59 +08:00
Justin Starry
d6bae0f003
Update issue templates
2020-05-26 22:55:14 +08:00
Simon
bd67b92535
Add support for use_context hook ( #1249 )
...
* Replace mounted with rendered lifecycle method
* fix checks
* fix doc test
* use_context test
* made test yet more sensitive to errors
* fix some merge oddities
* just some style adjustments
* proof of concept use_context hook using scope
* store scope in hook state
* add a test with multiple context types
* subscribe to context changes
* make clippy happy
* reuse dead slots for subscriptions
* clean up and improve test
Co-authored-by: Justin Starry <justin.starry@icloud.com>
Co-authored-by: Mathis <mk@thepeaklab.com>
2020-05-25 20:42:00 +08:00
Justin Starry
84927422c7
Fix default event stop propagation behaviour
2020-05-22 10:51:44 +00:00
Michal Kawalec
9130f814af
A stateful agent ( #1247 )
...
* 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
2020-05-21 22:21:41 +08:00
Teymour Aldridge
6583b38c17
Fix a typo in build.sh ( #1253 )
2020-05-21 21:41:26 +08:00
Simon
56979ca95a
change drag event interface back to DragEvent ( #1254 )
2020-05-21 21:41:12 +08:00
Simon
02b22d1737
Allow all global event handlers to be used as listeners ( #1244 )
...
* 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
2020-05-19 20:27:28 +08:00
Luke Frisken
5b0ecc0bad
Implement PartialEq for VChild ( #1242 )
...
* #1216 implement PartialEq for VChild
* reformat vcomp.rs
2020-05-18 02:00:15 +08:00
dvermd
41d48781f0
Fix Pure Components link in README.md ( #1241 )
2020-05-17 13:43:57 +08:00
Teymour Aldridge
006873dbe1
Document move of yew-dsl. ( #1230 )
...
* Document move of yew-dsl.
* Update README.md
* Update README.md
* Make `yew-dsl` move clearer.
2020-05-17 11:47:11 +08:00
Maximilian Goisser
a2b88b55d4
Fix cargo metadata repository links ( #1237 )
2020-05-17 11:44:22 +08:00
Connor Skees
5f8b049bec
update link to roadmap ( #1239 )
...
Old link 302'd to `https://yew.rs/docs/docs/more/roadmap `, which does not exist
2020-05-17 11:00:01 +08:00
Michal Kawalec
6e418ae9ae
added a simple send_message in Agent example ( #1234 )
...
* added a simple send_message in Agent example
* missing comma
2020-05-16 14:13:49 +08:00
Teymour Aldridge
5f7e03be31
Make fetch service methods static. ( #1235 )
...
* Make fetch methods static.
* Update `FetchService.fetch_binary`
* Updated documentation.
* Update examples.
* Added explicit lifetimes.
* Reformat code.
* Update a reference from `fetch_service` to `FetchService`.
* Reformat yew-stdweb example.
* Update a doc comment.
2020-05-16 14:08:25 +08:00
Justin Starry
244ac3bdc8
Prep v0.16.2 release
2020-05-14 10:25:57 +00:00
Justin Starry
bc116a42d9
Prep v0.16.1 release
2020-05-14 06:31:01 +00:00
Justin Starry
207208ee4b
Fix rendering bugs ( #1225 )
2020-05-14 12:49:43 +08:00
Justin Starry
cb3861fbbd
Add test foundation for component scope ( #1224 )
2020-05-14 11:32:08 +08:00
Thomas Lacroix
6ef7cecbfe
Enable Agents to send messages to themselves. ( #1215 )
...
* Agents can now send messages to themselves
* Agents callbacks now accept Into<Message>
* Clean old comment
* Remove AgentLink's send_message_batch
2020-05-14 11:22:58 +08:00
Justin Starry
657c9177a8
Simplify component state ( #1186 )
...
* Simplify component state
* Add another test
2020-05-13 19:04:28 +08:00
stoically
a90885cedb
Update examples ( #1196 )
2020-05-13 10:52:33 +08:00
Kaoet
e417cea25a
[yew-macro] Improve error message ( #1219 )
...
* [X] missing property value as in `<input autofocus />`
* [X] missing identifier after `with` as in `<Button with>`
2020-05-13 10:51:45 +08:00
Kaoet
d4276ce04d
[yew-macro] Do not allow void elements to have children ( #1217 )
...
* [yew-macro] Do not allow void elements to have children
Ensure HTML void element like <br> to be self-closed.
* point out the opening tag
2020-05-13 10:49:05 +08:00
Michal Kawalec
eb841bb7cf
Conditially require serialize ( #1195 )
...
* 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
2020-05-12 16:43:21 +08:00
realSuffix
c9cac6ff95
Removed method destroy, replaced it with a drop implementation ( #1211 )
2020-05-12 16:08:33 +08:00
Dirli
8d2cfec03e
use origin as base of worker location ( #1175 ) ( #1208 )
2020-05-12 09:51:41 +08:00
Marcel Müller
b13605eb45
Add a mounted example ( #1185 )
...
* Add a `mounted` example
* Update mod.rs
* Fix documentation typos
2020-05-11 23:05:43 +08:00
Justin Starry
31135f1113
Stop inlining re-export documentation
2020-05-11 14:47:06 +00:00
Teymour Aldridge
6512695b7d
Improved documentation. ( #1205 )
2020-05-11 22:37:03 +08:00
Teymour Aldridge
3474b54bca
Don't store FetchService as a struct field. ( #1204 )
2020-05-11 22:35:23 +08:00
Stig Johan Berggren
7d75c1a12b
Move documentation from the module to the struct ( #1197 )
...
* Move documentation from the module to the struct
* implement Display instead of ToString
2020-05-11 20:59:28 +08:00
Teymour Aldridge
f8c6615a77
Separate out yewtil::dsl into yew-dsl ( #1199 )
...
* Separated out `yewtil::dsl` into `yew-dsl`
* Reformat code.
* Remove an unused import.
* Added some rudimentary documentation.
* Reformat code.
* Added default impl for vlist.
* Reformat code.
2020-05-11 20:57:41 +08:00
Justin Starry
7a3f6dbc7c
Reorganize agents module ( #1202 )
2020-05-10 23:34:12 +08:00
Teymour Aldridge
d55765a9b1
Improve html! error messages. ( #1192 )
...
* Improve `html!` error messages.
* Improved some additional error messages.
* Improved error messages for iterables.
* Improved list error messages.
* Made a comment clearer.
* Updated an `html_tag` error message.
* Improved duplicate attribute error message.
* Updated tests to reflect updated error messages.
* Reformat code.
* Updated tests to reflect new error messages.
* Updated macro tests.
* Fix macro tests.
* Reformat code.
2020-05-10 23:26:45 +08:00
Teymour Aldridge
860460b318
Make examples/README.md clearer ( #1200 )
2020-05-10 23:23:23 +08:00
Justin Starry
d95b196b50
Release Yew v0.16 ( #1194 )
0.16.0
2020-05-09 23:22:39 +08:00
Stig Johan Berggren
41643b6ff4
Add class, id and placeholder properties to Select ( #1187 )
...
* Add class, id and placeholder properties to Select
* Inline attributes
* Rename classes to class
2020-05-06 19:55:18 +08:00
Justin Starry
d5bb263b84
Update props properly in nested list example ( #1189 )
2020-05-06 15:53:05 +08:00
Franck Royer
377a3377f3
Re-export web-sys ( #1176 )
...
This would allow user to use web-sys functions such
as console.log without having to add the web-sys
dependency to their Cargo.toml.
2020-05-05 08:46:08 +08:00
Nikita
1025000feb
Remove Bulk from counter examples ( #1184 )
2020-05-04 10:13:35 +08:00
Justin Starry
e4a609f6a0
Update CODE_OF_CONDUCT.md
2020-05-03 22:16:38 +08:00
Justin Starry
e3e21ca2d0
Update README.md
2020-05-03 22:06:05 +08:00
Stig Johan Berggren
d7156eee99
Replace web_logger with wasm-logger in examples ( #1181 )
...
* Replace web_logger with wasm-logger in examples
Examples in yew-stdweb should still use web_logger
* Use hyphen in package name
2020-05-03 17:17:44 +08:00
Teymour Aldridge
43c73fc93b
Change link from Gitter to Discord. ( #1180 )
2020-05-03 16:20:13 +08:00
Stig Johan Berggren
a878fdd56f
Test Select component ( #1177 )
...
* Fix imports in doctest
* Add a basic test case
* Enable test in CI
2020-05-03 12:41:54 +08:00
Stig Johan Berggren
41a661fc12
Add README for Custom components example ( #1170 )
...
* Add readme for custom_components
* Markdown link and consistent header style
* Remove trailing space, consistent file name
2020-05-03 12:19:38 +08:00