1305 Commits

Author SHA1 Message Date
Teymour Aldridge
09ffbb9e91
Add contact method to code of conduct. (#1343) 2020-06-22 15:34:45 +08:00
Shiney
1586dc8cf5
Simple typo fix: Change "intarval" to "interval" (#1342)
Co-authored-by: Justin Starry <justin.starry@icloud.com>
2020-06-22 15:33:47 +08:00
Jens Getreu
996574437a
Fix game of life (#1339)
* follow changes in rand crate

`wasm-bindgen` feature is not forwarded any more. See:
0aa461715b

* update index.html to new template

See:
https://yew.rs/docs/getting-started/build-a-sample-app

* correct dimensions of playground

tested with Firefox 77.0.1

* Update examples/game_of_life/src/lib.rs

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

Co-authored-by: Jens Getreu <getreu@saar1.lan>
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
2020-06-22 15:32:41 +08:00
Teymour Aldridge
e0aec40fe0
Make methods static. (#1313)
* Make methods static.

* Fix a call.

* Fix examples.

* Fix examples.

* Fix rest of examples.

* Fix yew-functional.

* Fix interval service example.

* Fix webgl example.

* Fix dialogue service example.

* Use `Default` trait instead of `new()` in `npm_and_rest` example.

* Use `Default` trait instead of `new()` in `npm_and_rest` example.

* Remove use of the `Option` algebraic data type.

* Fix clippy warnings.
2020-06-22 15:32:04 +08:00
Justin Starry
7e828d5ade
Add more protection against node ref cycles (#1341) 2020-06-21 11:03:34 +00:00
Justin Starry
b4c4fe0c92 Update PULL_REQUEST_TEMPMLATE.md 2020-06-21 17:17:27 +08:00
Justin Starry
f56020fff4
Fix key parse bug for components (#1338) 2020-06-21 17:15:07 +08:00
Luke Frisken
125812da4f
Callback constructor for FutureLink (#1272)
* initial implementation of #1271 callback constructor for FutureLink

* #1271 fix implementations to match function signature of trait

* #1271 fix failing build
2020-06-21 17:03:29 +08:00
Dirk Puge
a49291a5b1
Added period for Note (#1335) 2020-06-21 17:02:03 +08:00
Justin Starry
8aeee8dd94
Fix scope root vnode method (#1337) 2020-06-21 08:09:41 +00:00
Teymour Aldridge
50019b758d
Add a security policy (#1320) 2020-06-20 23:06:55 +08:00
Teymour Aldridge
3e69ccc0d0
Add API development guidelines. (#1312) 2020-06-20 23:05:51 +08:00
Teymour Aldridge
21a8228d55
Complete some TODOs (#1304)
* Complete some `TODO`s

* Fix error handling.

* Simplify things.

* Update changelogs.
2020-06-20 23:03:58 +08:00
Michal Kawalec
8d78620f4f
Send an input to self (#1278)
* send an input to self

* formatter fix
2020-06-20 23:01:53 +08:00
Justin Starry
64cabdda18
Refactor VComp to allow access to root vnode (#1333) 2020-06-20 22:32:23 +08:00
Teymour Aldridge
2011ad439c
Enable dependabot. (#1314)
* Enable dependabot.

* Add missing new line.
2020-06-20 15:41:33 +08:00
Justin Starry
5e091bebe5
Fix VComp NodeRef self linking issue (#1329)
* Fix VComp NodeRef self linking issue

* Add test
2020-06-20 14:40:31 +08:00
Justin Starry
d1a1fd05a0
Fix unreliable CI fetch tests (#1330) 2020-06-20 14:20:56 +08:00
Justin Starry
64505184fa
Split update and render operations into seprate tasks (#1309)
* Split update and render operations into seprate tasks

* Fix functional components

* Rename internal functional component terms
2020-06-18 17:17:33 +00:00
Simon
6c30068626
Fix benchmark action for pull requests from forks (#1315)
* remove GITHUB_TOKEN

* no more need to escape the message
2020-06-18 21:33:09 +08:00
Katherine Philip
5c3cb72f89
Update version numbers in yew-router's README to latest (#1319)
**Description**

Just a small change, since that got me confused for a bit there
2020-06-17 23:05:16 +08:00
Justin Starry
bb6e46d383 Update benchmark action 2020-06-15 11:19:30 +08:00
Teymour Aldridge
a6295bf8fd
Update README.md (#1308) 2020-06-14 11:38:41 +08:00
Teymour Aldridge
2da27a09f5
Tidy up comments. (#1302)
* Tidy up comments.

* Fix some further comments.
2020-06-14 11:37:22 +08:00
Simon
ab9bb1b08b
Run benchmark automatically for performance pull requests (#1297)
* add benchmark workflow

* fix path to head repo url

* fix writing entire cargo.toml on a single line
2020-06-14 11:17:10 +08:00
Teymour Aldridge
9b07a77f0b
Update CODE_OF_CONDUCT.md (#1303) 2020-06-12 09:47:38 +08:00
Teymour Aldridge
7558d7e1ff
Update PULL_REQUEST_TEMPLATE.md (#1299) 2020-06-11 21:37:34 +08:00
Justin Starry
79db78e694
Speed up vtag diffing (#1296) 2020-06-09 14:53:01 +00:00
Justin Starry
f4be0fcb0b
Fix master (#1295) 2020-06-09 02:46:35 +00:00
Justin Starry
7183300f33
Refactor VDiff trait to make way for keyed list fixes (#1279)
* Refactor VDiff trait to make way for keyed list fixes

* Apply suggestions from code review

Co-authored-by: Thomas Lacroix <toto.rigolo@free.fr>

* Feedback

* Add tests and fix bugs

* Remove unwraps

* Fix stdweb

* fix stdweb

* Change next_sibling to NodeRef

* Return NodeRef from apply

* fix clippy

* Remove scheduler lock

* Fix bugs and add comments

* Addresss feedback

Co-authored-by: Thomas Lacroix <toto.rigolo@free.fr>
2020-06-09 01:40:05 +00:00
Simon
d792e37bff
Unify and change children logic in the html macro (#1275)
* 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!
2020-06-09 09:34:23 +08:00
Arif Driessen
92c38b07ea
accept trailing / from argument (#1293) 2020-06-09 00:53:06 +08:00
Justin Starry
59fca9d9cb
Use squash when auto merging (#1292) 2020-06-08 18:29:59 +08:00
Justin Starry
ecc2d3b950 Remove path 2020-06-08 10:20:59 +00:00
Justin Starry
b820927977 Fix mutable warning 2020-06-08 10:20:59 +00:00
Justin Starry
b6ccd25607 Update rustc stable to 1.44 2020-06-08 10:20:59 +00:00
silvioprog
8629f25e48
Added wasm-bindgen-cli to documentation (examples) as suggested by @Christopher-St (Fix #1288) (#1290) 2020-06-06 17:44:25 +08:00
Ghislain PUTOIS
ec08c6f621
Add enable_prevent_default option. (#1286)
Co-authored-by: Ghislain PUTOIS <ghislain.putois@gmail.com>
2020-06-04 10:14:38 +08:00
Henry Zimmerman
5bcf36d282
Release v0.13 of the router (#1218)
* Release v0.13 of the router

* bump versions in router macro Cargo.toml
2020-06-01 22:21:48 -04:00
Luke Frisken
f3c845332e
code comments for Scheduler and ComponentLink (#1274)
* code comments for Scheduler and ComponentLink

* Fix typos, reformat code, address pr comments

* resolve pull request comments
2020-05-31 21:05:16 +08:00
Justin Starry
69cfd6a80e Rename vcomp element to parent 2020-05-31 06:49:54 +00:00
Maciek Talaśka
1c3d67f45c
wasm-bindgen-cli is required now for examples to compile (#1273) 2020-05-31 10:22:29 +08:00
ShadoySV
f65bd26ba3
Input current value sync (#1268)
* Input current value sync

* check_input_current_value_sync

* Update yew/src/virtual_dom/vtag.rs

Co-authored-by: Justin Starry <justin.starry@icloud.com>
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2020-05-29 00:48:33 +08:00
Simon
1c2dff18b1
Implement dynamic tags (#1266)
* implement dynamic tags

* very minor code cleanup

* Add hint to 'closing tag with body' error

* correcting a few ill-formed quote_spanned usages

* improve html prop error message

* use 'fragment' instead of 'tag'

* add runtime checks for dynamic tags

* fix tests for stdweb

By only running it for web-sys. I know, I know.
But seriously, stdweb doesn't seem to have a way to get Element.tagName...

* allow entire ascii range for dynamic tag names

* handle weird lettercasing for tag names
2020-05-28 21:39:26 +08:00
Justin Starry
1b7831ae54 Add testing instructions to PR template 2020-05-28 15:17:42 +08:00
Justin Starry
97037b7e8a Clean up pull request template 2020-05-27 11:40:55 +08:00
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