2071 Commits

Author SHA1 Message Date
Shivam
01a259431d
resolve some dead links as mentioned in issue #2379 (#2380)
* resolve some dead links as mentioned in issue #2379

* done the required changes
2022-01-19 18:20:24 +02:00
dependabot[bot]
7285419cd4
Bump @types/react-router-dom from 5.3.2 to 5.3.3 in /website (#2382)
Bumps [@types/react-router-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-router-dom) from 5.3.2 to 5.3.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-router-dom)

---
updated-dependencies:
- dependency-name: "@types/react-router-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-19 16:57:43 +05:00
Julius Lungys
e1b51218ec
Add implementation types to examples table (#2361)
* Add implemntation types to examples table

* duplicate word
2022-01-19 13:59:58 +05:00
Matt
6669d1873e
Optimize CI caching and path filtering (#2340)
* fix docs.rs logo url

* fix formatting

* bump docusaurus to beta14

* bring back the semicolon

* cache npm for build-website workflow

* Add prebuilt cargo-sweep binary

* Optimize website CI

* per-job caching, stale cache invalidation

* extract fmt job as workflow
move website test as a prerequisite for publish

* fix typo in cargo-sweep executable path

* chmod +x

* rename to main-checks.yml

* --exclude has to be used with --workspace

* revert accidental revert

* Switch from cargo-sweep to rust-cache

* link to this related issue of extra brackets

* remove blanks

* exclude website-test in main tests

* rename suffixes from .mdx to .md

* replace actions-rs/install with wasm-pack-action

fixes #2351

* shouldn't ignore .md because website snippet tests depends on .md files and there can be
#[doc(include("../some.md"))] in the code

* restore accidentally deleted mdx files

* include tools/website-test (for real this time)
2022-01-18 10:49:11 +01:00
Muhammad Hamza
62e3194d5f
Improve hosted API docs (#2373)
* build up redirects for API docs hosting

* build with all features and documenting config

* fix warnings

* can rustdoc please provide a way to modify the base url?

I want to host the docs at /next/:crate_name, not at /:crate_name ffs

* Don't clean URLs... what is rustdoc doing?

* now it wants to work???

* build a next index page

* unreleased docs banner

* show coverage

* remove ./ ???

* try 2?

* api-docs/ not api-docs-public/

* please
2022-01-15 19:57:35 +01:00
Muhammad Hamza
44e3880c83
Setup hosting for API docs (#2371)
* setup hosting for API docs

* maybe this is the name of the component??

* dependencies make the final bundle too big

* please clippy
2022-01-15 13:21:24 +01:00
Muhammad Hamza
f05ba4152c
Update to edition 2021 (#2354)
* cargo fix --edition

* change edition="2018" to edition="2021" in Cargo.toml
2022-01-12 16:22:00 +02:00
dependabot[bot]
600f508db2
Bump @svgr/webpack from 5.5.0 to 6.2.0 in /website (#2367)
Bumps [@svgr/webpack](https://github.com/gregberge/svgr) from 5.5.0 to 6.2.0.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gregberge/svgr/compare/v5.5.0...v6.2.0)

---
updated-dependencies:
- dependency-name: "@svgr/webpack"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-12 15:59:38 +02:00
Julius Lungys
c38c984c15
Remove issue hunt link in footer (#2368) 2022-01-12 18:43:30 +05:00
Kaede Hoshikawa
d8c2550fc7
Server-side Rendering (without hydration) (#2335)
* Basic render to html implementation.

* Remove HtmlWriter.

* Escape html content.

* Add non-suspense tests.

* Add Suspense tests.

* Gated "ssr" feature.

* Add example.

* Fix tests.

* Fix docs.

* Fix heading size.

* Remove the unused YewRenderer.

* Remove extra comment.

* unify naming.

* Update docs.

* Update docs.

* Update docs.

* Isolate spawn_local.

* Add doc flags.

* Add ssr feature to docs.

* Move ServerRenderer into their own file.

* Fix docs.

* Update features and docs.

* Fix example.

* Adjust comment position.

* Fix effects being wrongly called when a component is suspended.

* Fix clippy.

* Uuid & no double boxing.

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-01-12 18:43:09 +05:00
Howard.Zuo
fff1ffaab8
Example of function memory game (#2255)
* example of function memory game

* refactor: remove unnecessary manual PartialEq implementation

* refactor: remove unnecessary license note

* refactor: update implementation and doc with suggestions

* refactor: fix format and lint issues
2022-01-12 18:40:38 +05:00
Julius Lungys
99f949da9a
Remove important note from API docs (#2363) 2022-01-12 18:30:11 +05:00
Jonathan Bailey
923f6434df
Support named wildcards when deriving Routable. (#2345) 2022-01-12 18:27:14 +05:00
Matt
b165037381
Incorporate in-code translation in the workflow (#2349)
* implements #2276

* add localization and website contributing guides

* fix typo

* Update build-website.yml

* add note for write-translations

* attempt 2 at making CI build the stubs

* experiment: delete part of the stubs...
expecting ci to rebuild it

* write-translations for dev and check- for ci

* catch promise errors

* commit the missing mdx instruction

* fix English grammar in check report
2022-01-12 18:23:30 +05:00
Julius Lungys
42343b792d
stop spamming bench comments (#2362) 2022-01-12 11:25:31 +01:00
Kaede Hoshikawa
5dd8b7635c
Make BaseComponent Sealed. (#2359) 2022-01-11 17:00:41 +02:00
Julius Lungys
e1a9619fba
up alert treshold for benchmarks (#2357) 2022-01-11 03:25:08 +05:00
dependabot[bot]
3677930fc4
Update gloo requirement from 0.4 to 0.6 (#2337)
* Update gloo requirement from 0.4 to 0.6

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

---
updated-dependencies:
- dependency-name: gloo
  dependency-type: direct:production
...

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

* fix ci

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: voidpumpkin <32368314+voidpumpkin@users.noreply.github.com>
2022-01-10 23:17:13 +02:00
Julius Lungys
7d04f09b4a
fix benchmarks on pr's (#2356) 2022-01-10 21:41:56 +01:00
Julius Lungys
8ea42e6c02
fix (#2355) 2022-01-10 20:48:00 +01:00
Julius Lungys
4be9308b84
Benchmarks completely redone (#2352) 2022-01-10 22:24:53 +05:00
Kaede Hoshikawa
1c367a7b6f
Remove start_app_as_body. (#2346)
* Remove start_app_as_body.

* Add migration guide.

* Update website/docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2022-01-10 22:12:22 +05:00
Andrey Paskal
0ed6cb7617
Fixed broken link to getting-started/introduction (#2347) 2022-01-09 15:44:36 +05:00
Allan
b3f8ca1920
Replace Model with App or MyComponent (#2336)
`Model` is ambiguous and not a user-friendly name.
Some of the newer docs are already referring to the root component as
`App`.

This PR follows this naming scheme:
 - `App` for a root component
 - `MyComponent` for an arbitrary component

This naming is inspired by the React docs.

i18n references were not changed. They need a larger rewrite which will
go in a separate PR.
2022-01-07 20:50:21 +05:00
Tony Johnson
76010d1705
Fixed pub_sub link to point to correct example (#2332) 2022-01-06 22:40:34 +05:00
Muhammad Hamza
b456636111
Bump minimal supported rust version (MSRV) to 1.56 (#2334)
* Bump MSRV to 1.54

* add rust version to Cargo.toml

* update macro test stderr

* 1.56 go brrrr

* 1.56 go brrrr: part 2 electric boogaloo
2022-01-06 19:32:48 +02:00
Muhammad Hamza
f6f0e34d0f
Overhaul Documentation (#2321)
* Reorganize docs

* delete wasm-build-tools.mdx

* more small updates

* i hate versioned docs

* seems like I've got the traits of the certain owl who guards over the civilization when it comes to `;`

* just work please

* Update website/docs/concepts/components/lifecycle.mdx

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>

* little things

* post merge fixes

* npm update

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2022-01-05 17:49:26 +02:00
Muhammad Hamza
3ca7c0f90a
Move yew-agent to gloo (#2326)
* move agent to gloo

* rename: agent -> worker

* make it compile

* use gloo-worker from crates.io & fmt
2022-01-05 19:40:27 +05:00
Kaede Hoshikawa
ac3af0a9bc
Suspense Support (#2212)
* Make Html a Result.

* Fix tests.

* Implement Suspense.

* Schedule render when suspension is resumed.

* Shift children into a detached node.

* styled example.

* Update wording a little bit.

* Move hint to hint.

* Add some tests.

* Fix clippy.

* Add docs.

* Add to sidebar.

* Fix syntax highlight.

* Component -> BaseComponent.

* Html -> VNode, HtmlResult = RenderResult<Html>.

* Suspendible Function Component.

* Add a method to create suspension from futures.

* Revert extra changes.

* Fix tests.

* Update documentation.

* Switch to custom trait to make test reliable.

* Fix file permission.

* Fix docs.

* Remove log.

* Fix file permission.

* Fix component name error.

* Make Suspension a future.
2022-01-05 18:16:34 +05:00
Shrey Sudhir
eb23b327d9
Fix examples README.md (#2324)
* Fix examples README.md

* fix formatting

* Update examples/README.md

Co-authored-by: Simon <simon@siku2.io>

Co-authored-by: Simon <simon@siku2.io>
2022-01-03 02:28:32 +01:00
Kaede Hoshikawa
6f6519dab4
Implement PrivateAgent (#2318)
* Implement PrivateAgent, Separate Threaded into PublicAgent & PrivateAgent.

* Add migration docs.

* Update docs.
2022-01-01 19:45:11 +01:00
WorldSEnder
c46cda1e6f
remove some unsafes by using atomics (#2186) 2021-12-31 20:36:26 +01:00
Kaede Hoshikawa
a36ccfc843
Remove unused yew-router dependencies. (#2320) 2021-12-31 15:50:52 +02:00
Alex Sears
b8d946150a
Fix yew-agent crate name in migration docs (#2317) 2021-12-29 17:29:15 +01:00
Muhammad Hamza
18fd2d1f0d
fix CI (#2316) 2021-12-29 14:01:26 +01:00
Kaede Hoshikawa
7d52858d01
Remove context & job agent (#2295)
* Remove context and job agent.

* Revert "Remove context and job agent."

This reverts commit 408f6fcdf062800c9e9852e6662a55ff3eef4533.

* Revert "Revert "Remove context and job agent.""

This reverts commit 44a42dfb313c111ceaa654163c8aa610a88e6a95.

* Update example.

* Fix docs.

* Fix test.

* Rename examples.

* Fix examples & docs.

* Update website/docs/concepts/function-components/custom-hooks.mdx

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>

* Examples in alphabetical order.

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2021-12-29 17:15:26 +05:00
Tiziano Santoro
b761487bac
Fix typo (#2315) 2021-12-29 17:09:05 +05:00
Petechen
f856cbc7d5
update example futures pulldown_cmark to v0.9 (#2306)
* Update Cargo.toml

update pulldown_cmark to v0.9

* update pulldown_cmark to v0.9

* cargo fmt markdown.rs

cargo fmt markdown.rs
2021-12-29 17:08:26 +05:00
Julius Lungys
b8864125c2
fix benchmark action (#2314) 2021-12-29 02:04:05 +01:00
Muhammad Hamza
c91364b5c6
make layout testing code public (#2310) 2021-12-28 22:38:56 +02:00
Julius Lungys
0268c7df7d
Add auth to changelog generation (#2307)
* Add auth to changelog generation

* fix tests
2021-12-29 00:37:34 +05:00
Muhammad Hamza
3758e6d077
Refactor and simplify Callback (#2301)
* yeet Callback::once

* yeet Callback::reform

* remove passive overrides

Event's passive state will be determined by sane defaults set by Yew

* clippy

* docs

* make CI happy

* Revert "yeet Callback::reform"

This reverts commit 33e7770d

* why?

I literally tick-marked reformat before commit. Does it not use rustfmt???

* Update packages/yew/src/callback.rs

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2021-12-28 21:27:31 +02:00
Yew-Temp-Bot
eab88575f7
Update auto_approve_maintainer_pr.yml 2021-12-28 20:44:14 +02:00
Yew-Temp-Bot
d7b3f84a0c
use GITHUB_TOKEN 2021-12-28 20:36:55 +02:00
Yew-Temp-Bot
fbfec0a935
Update auto_approve_maintainer_pr.yml 2021-12-28 20:31:01 +02:00
Yew-Temp-Bot
1e5fe19fe6
Update auto_approve_maintainer_pr.yml 2021-12-28 20:17:58 +02:00
Yew-Temp-Bot
787b5144ca
Update auto_approve_maintainer_pr.yml 2021-12-28 20:14:28 +02:00
Yew-Temp-Bot
adab0ac8f3
Stringify org in auto approve 2021-12-28 20:09:34 +02:00
Yew-Temp-Bot
c574955c5e
Update auto_approve_maintainer_pr.yml 2021-12-28 20:02:17 +02:00
Yew-Temp-Bot
d9024a37d6
Update auto_approve_maintainer_pr.yml 2021-12-28 19:58:04 +02:00