Skip to content

Commit

Permalink
fix(doc): architecture: duplicated images and list style;
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestTvarynka committed Jun 2, 2023
1 parent a789910 commit c578f8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ You won't find any raw Strings. Bytes for hashing/encryption are `Vec<u8>` (not

This app has a simple and typical logging system: [`wasm-logger`](https://crates.io/crates/wasm-logger) + [`log`](https://crates.io/crates/log) crates. If you want to log something, then just use any suitable for you macros from the `log` crate. All logs will be written into the browser's console. This is how it looks:

![](/public/img/architecture/logs_exmaple.png) ![](/public/img/architecture/logs_exmaple.png)
![](/public/img/architecture/logs_exmaple.png)

3. Inform user about everything.

You have two main ways how to tell the user that something went wrong:

# Spawn notifications using the [`use_notifications`](https://yn-docs.qkation.com/yew_notifications/fn.use_notification.html) hook from the [`yew_notifications`](https://github.com/TheBestTvarynka/yew-notifications) crate.
# Different UI tricks like painting the input component in red, on-page messages, etc. Example:
* Spawn notifications using the [`use_notifications`](https://yn-docs.qkation.com/yew_notifications/fn.use_notification.html) hook from the [`yew_notifications`](https://github.com/TheBestTvarynka/yew-notifications) crate.
* Different UI tricks like painting the input component in red, on-page messages, etc. Example:

![](/public/img/architecture/invalid_input.png) ![](/public/img/architecture/invalid_input.png)
![](/public/img/architecture/invalid_input.png)

0 comments on commit c578f8b

Please sign in to comment.