Skip to content

Commit

Permalink
Merge pull request #45 from spielrs/fix-doc-remove-log
Browse files Browse the repository at this point in the history
fix docs and remove logs
  • Loading branch information
dancespiele authored Jun 21, 2020
2 parents c6ddde9 + 8d52859 commit 3ef9d6c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ however, it is not necessary to worry about the sass module only it needs to be
1. Install the sass module: `npm install yew-styles`
2. Add the yew_style crate with the features needed for your project in Cargo.toml file:
```toml
yew_styles = { version="0.6.0", features=["button", "navbar", "layouts"] }
yew_styles = { version="0.6.1", features=["button", "navbar", "layouts"] }
```
3. Import the main.css file in you main javascript/typescript file project:
```typescript
Expand Down
6 changes: 3 additions & 3 deletions crate/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT/Apache-2.0"
name = "yew_style_page"
readme = "./README.md"
repository = "https://github.com/spielrs/yew-styles-page.git"
version = "0.6.0"
version = "0.6.1"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion crate/yew_styles/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crate/yew_styles/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yew_styles"
version = "0.6.0"
version = "0.6.1"
description = "Framework styles for yew"
documentation = "https://docs.rs/crate/yew_styles"
authors = ["Francisco Jesus Navarro Cortes <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion crate/yew_styles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ however, it is not necessary to worry about the sass module only it needs to be
1. Install the sass module: `npm install yew-styles`
2. Add the yew_style crate with the features needed for your project in Cargo.toml file:
```toml
yew_styles = { version="0.6.0", features=["button", "navbar", "layouts"] }
yew_styles = { version="0.6.1", features=["button", "navbar", "layouts"] }
```
3. Import the main.css file in you main javascript/typescript file project:
```typescript
Expand Down
7 changes: 2 additions & 5 deletions crate/yew_styles/src/components/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use wasm_bindgen::JsCast;
use wasm_bindgen_test::*;
use web_sys::{Element, HtmlElement};
use yew::prelude::*;
use yew::services::ConsoleService;
use yew::{utils, App};

/// # Modal component
Expand Down Expand Up @@ -59,13 +58,13 @@ use yew::{utils, App};
/// body_style.set_property("overflow", "auto").unwrap();
/// self.show_modal = false;
/// }
/// Msg::CloseModalByKb(keyboard_event, index) => {
/// Msg::CloseModalByKb(keyboard_event) => {
/// if keyboard_event.key_code() == 27 {
/// body_style.set_property("overflow", "auto").unwrap();
/// self.show_modal = false;
/// }
/// }
/// Msg::OpenModal(index) => {
/// Msg::OpenModal => {
/// body_style.set_property("overflow", "hidden").unwrap();
///
/// self.show_modal = true;
Expand Down Expand Up @@ -189,8 +188,6 @@ impl Component for Modal {
}
}
Msg::Pressed(keyboard_event) => {
let mut console = ConsoleService::new();
console.log("Pressed");
self.props.onkeydown_signal.emit(keyboard_event);
}
};
Expand Down
2 changes: 1 addition & 1 deletion crate/yew_styles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! 1. Install the sass module: `npm install yew-styles`
//! 2. Add the yew_style crate with the features needed for your project in Cargo.toml file:
//! ```toml
//! yew_styles = { version="0.6.0", features=["button", "navbar", "layouts"]}
//! yew_styles = { version="0.6.1", features=["button", "navbar", "layouts"]}
//! ```
//! 3. Import the main.css file in you main javascript/typescript file project:
//! ```typescript
Expand Down

0 comments on commit 3ef9d6c

Please sign in to comment.