Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Jan 23, 2021
1 parent a7276da commit 5e952bb
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 17 deletions.
9 changes: 3 additions & 6 deletions docs/concepts/services/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,8 @@ An illustrated example of how to fetch data from an API giving information about
// requires the serde and anyhow crates

use serde::Deserialize;
use yew::{
format::{Json, Nothing},
prelude::*,
services::fetch::{FetchService, FetchTask, Request, Response},
};
use yew::{format::{Json, Nothing}, prelude::*};
use yew_services::fetch::{FetchService, FetchTask, Request, Response};

#[derive(Deserialize, Debug, Clone)]
pub struct ISSPosition {
Expand Down Expand Up @@ -241,7 +238,7 @@ The Rust Wasm Book also contains [useful debugging tips](https://rustwasm.github
for Wasm applications.

## Further reading
* [The API documentation](https://docs.rs/yew/0.14.3/yew/services/fetch/index.html)
* [The API documentation](https://docs.rs/yew-services/latest/yew_services/fetch/index.html)
* The [dashboard](https://github.com/yewstack/yew/tree/master/examples/dashboard) and
[npm_and_rest](https://github.com/yewstack/yew/tree/master/examples/web_sys/npm_and_rest) examples.
* [The Rust Wasm Book on debugging Wasm applications](https://rustwasm.github.io/book/reference/debugging.html)
5 changes: 2 additions & 3 deletions docs/more/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ fn main() {
log::info!("Update: {:?}", msg);
```

### [`ConsoleService`](https://docs.rs/yew/latest/yew/services/console/struct.ConsoleService.html)
### [`ConsoleService`](https://docs.rs/yew-services/latest/yew_services/struct.ConsoleService.html)

This service is included within Yew and is available when the "services" feature is enabled
(the "services" feature is enabled by default):
This service is included within the [`yew-services`](https://crates.io/crates/yew-services) crate:

```rust
// usage
Expand Down
2 changes: 1 addition & 1 deletion examples/boids/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ The example uses [`IntervalService`] to drive the game loop.
- Resize the boids when "Spacing" is changed.
The setting should then also be renamed to something like "Size".

[`intervalservice`]: https://docs.rs/yew/latest/yew/services/struct.IntervalService.html
[`intervalservice`]: https://docs.rs/yew-services/latest/yew_services/struct.IntervalService.html
2 changes: 1 addition & 1 deletion examples/crm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For a much more sophisticated approach check out [`yew-router`](https://yew.rs/d
One major flaw with the implementation used by this example is that the scenes aren't tied to the URL.
Reloading the page always brings the user back to the initial scene.

The example also uses the [`StorageService`](https://docs.rs/yew/latest/yew/services/struct.StorageService.html)
The example also uses the [`StorageService`](https://docs.rs/yew-services/latest/yew_services/struct.StorageService.html)
to persist the clients across sessions.

## Improvements
Expand Down
2 changes: 1 addition & 1 deletion examples/router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ Take a look at [`PublicUrlSwitch`](src/switch.rs) for the implementation.
- Home (`/`) should include links to the post list and the author introduction
- Detect sub-path from `--public-url` value passed to Trunk. See: thedodd/trunk#51

[`intervalservice`]: https://docs.rs/yew/latest/yew/services/struct.IntervalService.html
[`intervalservice`]: https://docs.rs/yew-services/latest/yew_services/struct.IntervalService.html
[`yew-router`]: https://docs.rs/yew-router/latest/yew_router/
6 changes: 3 additions & 3 deletions examples/timer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ but also makes use of some more advanced [`ConsoleService`] features.

- Apply the concept to something more fun than just a dry technical demonstration

[`timeoutservice`]: https://docs.rs/yew/latest/yew/services/struct.TimeoutService.html
[`intervalservice`]: https://docs.rs/yew/latest/yew/services/struct.IntervalService.html
[`consoleservice`]: https://docs.rs/yew/latest/yew/services/struct.ConsoleService.html
[`timeoutservice`]: https://docs.rs/yew-services/latest/yew_services/struct.TimeoutService.html
[`intervalservice`]: https://docs.rs/yew-services/latest/yew_services/struct.IntervalService.html
[`consoleservice`]: https://docs.rs/yew-services/latest/yew_services/struct.ConsoleService.html
2 changes: 1 addition & 1 deletion examples/todomvc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ including: all entries, entered text and chosen filter.
- Use `yew-router` for the hash based routing
- Clean up the code

[`storageservice`]: https://docs.rs/yew/latest/yew/services/struct.StorageService.html
[`storageservice`]: https://docs.rs/yew-services/latest/yew_services/struct.StorageService.html
[`refs`]: https://yew.rs/docs/en/concepts/components/refs/
2 changes: 1 addition & 1 deletion packages/yew/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ args = [
"test",
"--doc",
"--features",
"doc_test,wasm_test,yaml,msgpack,cbor,toml,std_web,agent,services",
"doc_test,wasm_test,yaml,msgpack,cbor,toml,std_web,agent",
"--no-default-features",
]

Expand Down

0 comments on commit 5e952bb

Please sign in to comment.