1527 Commits

Author SHA1 Message Date
Jonas Platte
105422b987
Make more service's methods static (#1382) 2020-07-09 13:40:12 +08:00
Teymour Aldridge
679805439a
Add missing derives to yew_router's README (#1386) 2020-07-08 23:29:03 +08:00
Jonas Platte
2ca2085804
Fix warnings (#1383)
* Remove pointless uses of mem::replace

* Silence a clippy warning

* router: Make switch testing code more idiomatic
2020-07-08 23:24:51 +08:00
Justin Starry
35baf86ab2
Delete CODEOWNERS 2020-07-08 23:01:22 +08:00
Teymour Aldridge
151b5b7db9
Add prompt function to the dialogue service. (#1350)
* Add `prompt` function to the dialogue service.
* Improve the clarity of some doc comments
* Fix a typo in a `map_err`

* Fix `cfg_match!` usage.

* Add `stdweb` support.

* Fix the `prompt` method.

* Add different docs for `stdweb` and `web_sys`.
2020-07-04 23:08:10 +08:00
Justin Starry
142c6b58b6
Prep v0.17.2 release (#1375) 2020-07-04 22:58:43 +08:00
Faule Socke
34b4f6c0c3
Implement Deref<Target=str> for Key (#1370)
Co-authored-by: Urs Schulz <github@ursschulz.de>
2020-07-04 22:03:54 +08:00
Justin Starry
6327fe6680
Don't refresh uncontrolled input value (#1374) 0.17.2 2020-07-04 21:28:01 +08:00
Justin Starry
25b42f26b5
Render after each component update (#1373) 2020-07-04 21:07:57 +08:00
Justin Starry
35e9e86863 Update CHANGELOG.md 2020-07-04 18:09:07 +08:00
Justin Starry
563d66ba47 Prep release for v0.17.1 0.17.1 2020-07-01 22:05:52 +08:00
Justin Starry
bb6ca01e96 Don't notify consumers when context hasn't changed 2020-07-01 21:01:27 +08:00
Justin Starry
018f04898f Split render and rendered into separate task queues 2020-07-01 21:01:27 +08:00
Justin Starry
f50539bda3
Add breaking change to onsubmit listener to changelog (#1361) 2020-07-01 20:46:48 +08:00
Henry Zimmerman
5ab94c7192
Yewtil 3.0 (#1283)
* first attempt to upgrade

* respond to feedback

* update to newest yew

* Update yewtil/examples/function_component/Cargo.toml

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

* update changelog

* alter changelog to include deprecation of Lrc

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
2020-07-01 11:59:10 +08:00
Henry Zimmerman
cab176dd1b
Release v0.14 for yew router (#1357) 2020-06-30 22:55:45 +08:00
Justin Starry
9c84106601 Bump yew-components version to 0.2.0 2020-06-30 00:04:44 +08:00
Justin Starry
844aa4bf15
Prep 0.17 release (#1355) 0.17.0 2020-06-29 23:57:04 +08:00
dependabot[bot]
dcdcfe7036
Use wildcard requirement for bincode dependency (#1349)
* Update bincode requirement from ~1.2.1 to ~1.3.1

Updates the requirements on [bincode](https://github.com/servo/bincode) to permit the latest version.
- [Release notes](https://github.com/servo/bincode/releases)
- [Commits](https://github.com/servo/bincode/commits)

Signed-off-by: dependabot[bot] <support@github.com>

* Use wildcard requirement for bincode dependency

* Update Cargo.toml

* Update Cargo.toml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin.starry@icloud.com>
2020-06-29 23:56:08 +08:00
Justin Starry
0c3c289afe
Bring back destroy lifecycle method (#1354)
This reverts commit c9cac6ff952892b17fb121e1aa52301f79a448ad.
2020-06-29 14:39:03 +00:00
Thomas Lacroix
429d9674af
Fix keyed list ordering issue (#1231)
* New example to showcase keyed elems reordering issue

* Allow building examples in release mode

* Fix ordering issue with keyed virtual nodes

* review comments for build.sh

* review comments for examples/keyed_list

* fix style.css to keyed_list example

* remove ahash

* Add GitHub issue to TODO in key.rs

* Address some review comments in virtual_dom

* New diffing algorithm for keyed vlists

* Add forgotten dependency for yew-stdweb

* Add tests for vlist diffing

* Removed VDiffNodePosition

* Fix usage of next_sibling for vlist

* Fix tests for stdweb

* Mitigate issue with moving VLists when children are all VLists

Note: The new UT is failing, I now. I want to discuss that before
maybe fixing it (moving all VList children?).

* Fix issue with inserting into vlist that is not last child

* Refactor VDiff trait to make way for keyed list fixes

* Fix quote_spanned macro invocations

* Revert some minor changes (style, Debug)

* Revert some minor changes (style, Debug)

* Fix self-referencing NodeRef issue

* All VList tests pass

* Fix algorithm choice in degenerated case

* Remove stdweb and non keyed tests

* Key from finite list of types

* WIP moving VList tests to diff_layouts

* Removed unnecessary Vec

* Fix VComp NodeRef self linking issue

* Add logs to diff_layouts tests

* WIP moving VList tests to diff_layouts

* WIP Failing test moving VComp

* Add VComp move_before

* Fix list component change method

* Fix bad merge

* Add more protection against node ref cycles

* Remove commented tests

* Feedback and clippy

* Failing test

* tests pass

Co-authored-by: Justin Starry <justin.starry@icloud.com>
2020-06-29 00:52:59 +08:00
Martin Matusiak
7ce0bd8d3a
Fix broken examples (#1289) - batch #1 (#1340)
* Update run instructions

`python3 -m http.server --directory` flag was added in Python 3.7.
Change instructions to cd into static and skip the flag instead -
makes it work with earlier Pythons too.

* Add visual feedback for button click

The minimal example has a button, but clicking it does nothing. This
makes it hard to tell whether the example works or not.

This adds a label that is update when the button is clicked.

* Small improvements to crm example

* Add a heading to each scene to make it more obvious what the page is
for.

* Improve layout of input form by stack the inputs vertically.

* Add a little space between entries when displaying the list.

* Add a hint to the Description input that Markdown can be used.

* Add an explanation to the file_upload example

* Clarify purpose of var in fragments example

* Improve futures_wp example

* Add a second button that demonstrates an unsuccessful fetch.

* Render the markdown document (since we're fetching markdown after
all).

* Remove vague comment that's not really helping.

* Improve inner_html example

* Include a textual explanation of what the example is doing.

* Run cargo fmt

* Remove 'static lifetime for constant

* Improve suggestion in inner_html example

* move markdown.rs to a common crate

* add description to common Cargo.toml

* PR feedback

* PR feedback

* remove static lifetime annotation
2020-06-26 20:29:58 +08:00
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