2534 Commits

Author SHA1 Message Date
Elia Perantoni
f89fb7878b
Added Spaceman to awesome.md (#3207) 2023-04-03 19:55:02 +03:00
Jedd Dryden
ce3eeec92b
Communication Examples Style and Code Clean-up (#3180)
* Button Styles

- Rounded
- Cursor change
- Hover colour

* Centred and Outlined Components

* Realigned Everything

* Amended Margins

* Re-organised File Structure

* Tailwind Conversion

* cargo fmt

* Reduced Button Rounding

* Nightly fmt

* Reorganised rs structure

* New Styling for Grandchild with Grandparent

* Rearranged rs

* Styles for grandparent to grandchild

* Centered

* Arranged rs

* Styles for Parent to Child

* Refactored Child to Parent

* Refactored Parent to Child

* Refactored Grandchild with Grandparent

* Refactored Grandparent to Grandchild

* Grammar fix
2023-04-03 19:50:59 +03:00
dependabot[bot]
0f7c2bb276
Bump siku2/action-hosting-deploy from 0 to 1 (#3136)
Bumps [siku2/action-hosting-deploy](https://github.com/siku2/action-hosting-deploy) from 0 to 1.
- [Release notes](https://github.com/siku2/action-hosting-deploy/releases)
- [Commits](https://github.com/siku2/action-hosting-deploy/compare/v0...v1)

---
updated-dependencies:
- dependency-name: siku2/action-hosting-deploy
  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>
2023-04-03 19:47:28 +03:00
Arniu Tseng
6f4cdf2802
Pass hook dependencies as the first function argument (#2861)
* Add use_effect_with

* Fix doc

* Add NeverEq

* Save as deps-and-runner

* remove with_deps

* fix other use_effect_with_deps

* add migration guide

* fix website

* fix doc test

* return use_effect_base

* fix docs

* fmt

* fix doc tests

* noeq

* use_callback

* finsihing touches

* fmt

* nighly fmt

* fix mistake

---------

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2023-04-03 19:15:11 +03:00
Greg Johnston
bdf5712d96
Incremental performance improvements to element creation (#3169)
* enable interning

* intern tag names

* intern attribute keys and event listener types

* intern attribute values

* cache and clone elements

* clean up the node cloning version a bit

* use HashMap instead of Vec for element cache

* Revert "intern attribute values"

This reverts commit 28653c4660dcf1942fab3b0ad7d4c840b96e0f2a.

* add `enable-interning` feature to Yew that activates the same in wasm-bindgen

* remove interning feature
2023-04-02 22:29:21 +03:00
Kai Salmon
8086a73a21
Remove outdated benchmarking information in CONTRIBUTING.md (#3059) 2023-04-02 22:27:39 +03:00
Kaede Hoshikawa
36aaecc430
Update Dependencies with Breaking Changes (#3204)
* Update axum.

* Update base64.

* Update NPM Dependencies.

* Update Translations.

* Make sure all docusaurus dependencies are with the same version.
2023-04-03 00:16:33 +09:00
Kaede Hoshikawa
9d7fafa3ff
Make VList's children Rc'ed (#3050)
* Make VList's children Rc'ed.

* Slightly optimise for bundle size.

* Revert manual cloning.

* Add a benchmark.

* Revert "Revert manual cloning."

This reverts commit 1f737f26f85a13e49186df71eb41425387f3aa02.

* Revert "Slightly optimise for bundle size."

This reverts commit 71cf2a1d36f1a99463c68aae3d128aa3be93dc03.

* Add size marker.

* Revert "Add size marker."

This reverts commit 3ca55be4ea309f516d91ecd8e2aa8256dd810d11.

* Update benchmark.

* Fix children_mut visibility.

* Try to exclude add_child behaviour.

* Fix typo.

* Adjust visibility and docs.

* Fix hydration with empty children.
2023-04-02 23:51:59 +09:00
Martin Vilcans
86b6cb4949
todomvc example: Disallow entering empty items (#3193)
It was possible to add an empty entry by typing whitespace into the
text field. This fixes that by trimming the string *before* we check
whether it's empty.
2023-04-02 15:57:31 +09:00
dependabot[bot]
b82021c455
Bump syn from 2.0.10 to 2.0.13 (#3203)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.10 to 2.0.13.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.10...2.0.13)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  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>
2023-04-02 15:57:06 +09:00
dependabot[bot]
a85fcde100
Bump lipsum from 0.8.2 to 0.9.0 (#3191)
Bumps [lipsum](https://github.com/mgeisler/lipsum) from 0.8.2 to 0.9.0.
- [Release notes](https://github.com/mgeisler/lipsum/releases)
- [Commits](https://github.com/mgeisler/lipsum/compare/0.8.2...0.9.0)

---
updated-dependencies:
- dependency-name: lipsum
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 01:19:32 +03:00
Jedd Dryden
a53a045970
Simplified and Uniform Example Instructions (#3113)
* Add `--open` to `boids`

* Added running instructions to `contexts`

* Amended `counter` instructions

- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile

* Amended `counter_functional` instructions

- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile

* Amended `dyn_create_destroy_apps` instructions

- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile

* Added running instructions to `file_upload`

* Added running instructions to `function_memory_game``

* Amended `function_router` instructions

- Amended `release` profile instructions
- Added `--open` flag

* Added running instructions to `function_todomvc`

* Added running instructions to `futures`

* Added running instructions to `game_of_life`

* Added running instructions to `immutable`

* Added running instructions to `inner_html`

* Added running instructions to `js_callback`

* Amended `keyed_list` instructions

- Added `--open` flag
- Amended `release` profile notice

* Added running instructions to `mount_point`

* Added running instructions to `nested_list`

* Added running instructions to `node_refs`

* Amended `password_strength` instructions

- Added `--open` flag
- Amended `release` profile notice

* Added running instructions to `portals`

* Amended `router` instructions

- Added `--open` flag
- Amended `release` profile notice

* Amended `simple_ssr` instructions

- Simplified wording
- Removed unnecessary notes
- Changed commands so that they should be executed from the `examples/simple_ssr` directory like every other example

* Amended `ssr_router` instructions

- Removed unnecessary notes
- Changed commands so that they should be executed from the `examples/ssr_router` directory like every other example

* Added running instructions to `suspense`

* Added running instructions to `timer`

* Added running instructions to `todo_mvc`

* Added running instructions to `two_apps`

* Added running instructions to `web_worker_fib`

* Added running instructions to `webgl`

* Amended various examples

- Simplified running instructions
- Moved running instructions to the bottom of each `README.md`

* Amended `examples/README.md` instructions

- Added `release` profile notice
- Added `--open` flag
- Removed `--release` flag

* Apply grammar suggestions from code review

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>

* Update examples/function_router/README.md Grammar

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>

* Add Grammar Suggestions from Review

* Apply Spelling Suggestion

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>

---------

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
2023-04-02 03:19:08 +05:00
dependabot[bot]
138a74ffc7
Bump serde from 1.0.158 to 1.0.159 (#3192)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.158 to 1.0.159.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  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>
2023-04-02 01:17:49 +03:00
dependabot[bot]
0898c24016
Bump baptiste0928/cargo-install from 1 to 2 (#3198)
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 1 to 2.
- [Release notes](https://github.com/baptiste0928/cargo-install/releases)
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md)
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2)

---
updated-dependencies:
- dependency-name: baptiste0928/cargo-install
  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>
2023-04-02 03:02:27 +05:00
Julius Lungys
48dd69cdc6
Fix js-benchmark action (#3202)
* temp

* test2

* test3

* no ts

* more

* manifest

* fix warning
2023-04-02 00:23:53 +03:00
dependabot[bot]
ecd80d981e
Bump @docusaurus/plugin-client-redirects from 2.3.1 to 2.4.0 in /website (#3196)
Bumps [@docusaurus/plugin-client-redirects](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-client-redirects) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.0/packages/docusaurus-plugin-client-redirects)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-client-redirects"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-01 18:19:21 +03:00
dependabot[bot]
616d7978f7
Bump @docusaurus/plugin-content-docs from 2.3.1 to 2.4.0 in /website (#3197)
Bumps [@docusaurus/plugin-content-docs](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-content-docs) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.0/packages/docusaurus-plugin-content-docs)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-content-docs"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-01 18:05:32 +03:00
dependabot[bot]
2c695f258c
Bump @typescript-eslint/eslint-plugin from 5.50.0 to 5.57.0 in /website (#3199)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.50.0 to 5.57.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-01 11:09:18 +03:00
dependabot[bot]
a6fdff7717
Bump @docusaurus/plugin-content-pages from 2.3.1 to 2.4.0 in /website (#3200)
Bumps [@docusaurus/plugin-content-pages](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-content-pages) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.0/packages/docusaurus-plugin-content-pages)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-content-pages"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-01 10:57:32 +03:00
dependabot[bot]
e6a8e53d4b
Bump @tsconfig/docusaurus from 1.0.6 to 1.0.7 in /website (#3201)
Bumps [@tsconfig/docusaurus](https://github.com/tsconfig/bases/tree/HEAD/bases) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/tsconfig/bases/releases)
- [Commits](https://github.com/tsconfig/bases/commits/HEAD/bases)

---
updated-dependencies:
- dependency-name: "@tsconfig/docusaurus"
  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>
2023-04-01 10:46:59 +03:00
dependabot[bot]
a32442a3de
Bump reqwest from 0.11.15 to 0.11.16 (#3188)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.15 to 0.11.16.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.15...v0.11.16)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  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>
2023-03-28 20:08:39 +09:00
Muhammad Hamza
cc9dd0271e
Update dependencies (#3171)
* Update to syn 2

* bless macro outputs

* update prettyplease

* fix review + update lockfile
2023-03-28 19:41:55 +09:00
Pavlo Myroniuk
c5324aff62
Fix div prop name in css.mdx (#3185)
* Fix div prop name in css.mdx
* Fix div prop name in yew/website/docs/concepts/basic-web-technologies/css.mdx

`styles` is a not existing property in the `div` component. Changed it to `style`
2023-03-28 19:41:14 +09:00
Jedd Dryden
8c9d942dbf
Index of Examples Fixes and Changes (#3186)
* Fixed `README.md` list of examples

- Added all communication examples
- Reordered into alphabetical order to match the examples directory
- Added `ssr_router` to the list
- Added `function_router` to the list
- Unified full stop usage

* Added file extension

* Improved List Legend

* Small Changes to Section Headings

* Apply suggestions from code review

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>

* Table Alignment Fixes

* Incorporate Suggestion

Co-Authored-By: WorldSEnder <WorldSEnder@users.noreply.github.com>

* Removed Old Legend

Co-Authored-By: WorldSEnder <WorldSEnder@users.noreply.github.com>

---------

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
2023-03-28 19:40:49 +09:00
dependabot[bot]
46343bbd86
Bump openssl from 0.10.45 to 0.10.48 (#3181)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.45 to 0.10.48.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.45...openssl-v0.10.48)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-25 03:51:02 +00:00
Jonas Scholz
b85313b2a2
Add MathML support + test. (#3121)
Co-authored-by: Jonas Scholz <jonas.scholz123@gmail.com>
2023-03-18 13:59:17 +05:00
dependabot[bot]
8387af4fe2
Bump env_logger from 0.9.3 to 0.10.0 (#3155)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.3 to 0.10.0.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.9.3...v0.10.0)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-17 21:01:21 +09:00
dependabot[bot]
ba7463cd19
Bump webpack from 5.75.0 to 5.76.1 in /website (#3164)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-17 21:00:30 +09:00
Ruslan S
ad630a987c
Updated tutorial to indicate wasm32 dependencies compatibility (#3150)
That might be obvious for some, but it took me a few hours to figure out that `sqlx` is actually not `wasm32` compatible.
Funny enough, `cargo build` was working just fine, but `trunk serve` was failing with a very misleading error about `openssl`.
Maybe one day that small note will save a few hours to someone else
2023-03-17 21:00:00 +09:00
Pratul Kalia
68bf1b7a8f
Add macige to awesome.md (#3156)
Macige is a CI workflow generator specifically for mobile app development.
2023-03-17 16:24:36 +05:00
Kaede Hoshikawa
69045611dd
Fix clippy for Rust 1.68. (#3163) 2023-03-17 16:23:58 +05:00
Muhammad Hamza
7fa512d24b
Set CORS headers for tutorial/data.json (#3162)
Fixes #3138
2023-03-14 22:21:49 +09:00
Kaede Hoshikawa
7982cc555e
Fix benchmark workflow (#3112)
* Try to fix benchmark workflow.

* Fix benchmark workflow.

* Fix benchmark workflow.

* Fix workflow.

* Fix benchmark workflow.

* Fix workflow.

* Disable headless mode.

* Install xvfb

* Remove unneeded install.
2023-03-14 14:32:00 +05:00
dependabot[bot]
d63a91c08a
Bump tokio from 1.25.0 to 1.26.0 (#3146) 2023-03-05 10:11:47 +09:00
dependabot[bot]
532b0c7a7d
Bump base64ct from 1.5.3 to 1.6.0 (#3144) 2023-03-05 10:11:18 +09:00
dependabot[bot]
9861c722ab
Bump once_cell from 1.17.0 to 1.17.1 (#3143) 2023-03-05 10:10:21 +09:00
dependabot[bot]
1cf05638d7
Bump git2 from 0.15.0 to 0.16.1 (#3142) 2023-03-05 10:10:04 +09:00
dependabot[bot]
62dbfdf250
Bump prettier from 2.8.3 to 2.8.4 in /website (#3135) 2023-03-05 10:08:22 +09:00
dependabot[bot]
9cd869198f
Bump @docusaurus/theme-classic from 2.1.0 to 2.3.1 in /website (#3134) 2023-03-05 10:08:01 +09:00
dependabot[bot]
51a26cffc1
Bump @typescript-eslint/parser from 5.50.0 to 5.54.0 in /website (#3131) 2023-03-05 10:07:32 +09:00
dependabot[bot]
016fb7378b
Bump @docusaurus/plugin-client-redirects from 2.2.0 to 2.3.1 in /website (#3132) 2023-03-05 09:03:47 +09:00
dependabot[bot]
2deb2332c7
Bump @docusaurus/plugin-content-docs from 2.2.0 to 2.3.1 in /website (#3133) 2023-03-05 07:08:23 +09:00
dependabot[bot]
07ea3f483f
Bump actions/checkout from 2 to 3 (#3141) 2023-03-05 07:04:59 +09:00
Kaede Hoshikawa
08f4fd3032
Fix Dependabot and GitHub Actions (#3111) 2023-03-05 07:03:10 +09:00
Colin Woodbury
48daf52986
Fix spelling in guides (#3109)
These are a few minor mistakes I noticed while going through the tutorial.
2023-03-04 22:34:42 +05:00
Kaede Hoshikawa
ffc2db0b5a
Fix website workflow (#3110)
* Fix fmt.

* Update dependencies.

* Add translation.

* Update dependencies.
2023-03-04 22:32:30 +05:00
dependabot[bot]
16c043ac80
Bump actions/checkout from 2 to 3 (#3137)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2023-03-04 22:24:54 +05:00
TechTheAwesome
47b60ec7a2
Add link to the rust-yew vscode plugin to the yew docs (#3116)
* ADD rust-yew to devel docs

* ADD rust-yew to` v0.20 `docs

* FIX run prettier format

* Add community maintained notice and re-formatting
2023-02-22 18:19:11 +01:00
Vlad Beskrovny
c7b7e45e4c
Implement component name completion in html! for IntelliJ Rust plugin (#2972) 2023-02-02 22:36:51 +09:00
Ruslan S
7558cd2637
Update examples/README with correct starter templates link (#3098)
I've noticed that https://yew.rs/docs/getting-started/starter-templates doesn't exist anymore
Assuming that it should now point to https://yew.rs/docs/getting-started/build-a-sample-app#using-a-starter-template
2023-02-02 20:04:18 +09:00