Skip to content

Commit

Permalink
Merge branch 'development' of github.com:spielrs/yew-styles-page into…
Browse files Browse the repository at this point in the history
… development
  • Loading branch information
dancespiele committed Apr 28, 2020
2 parents db61d50 + 1842cdf commit 87d2230
Show file tree
Hide file tree
Showing 26 changed files with 190 additions and 169 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Yew Styles

on:
pull_request:
branches: [ master, development ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'
- name: install rustfmt
run: rustup component add rustfmt
- name: install clippy
run: rustup component add clippy
- name: install stable
run: rustup install stable
- name: add wasm32-unknown-unknown
run: rustup target add wasm32-unknown-unknown
- name: download geckodriver
run: curl --retry 5 -LO https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
- name: uncompress geckodriver
run: tar -xzf geckodriver-v0.26.0-linux64.tar.gz
- name: execute CI
run: GECKODRIVER=$(pwd)/geckodriver ./ci/run_checks.sh
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ however, it is not necessary to worry about the sass module only it needs to be
import 'node_modules/yew-styles/main.css';
```
4. Ready to import and use in your project 🚀
In the left side there is a list of links where each one access to a correspondent component documentation,
there, shows how to use it.

## Run the documentation page
Inside of the project run:
1. `git clone https://github.com/spielrs/yew_styles.git`
2. `cd yew_styles`
3. `npm start`

`npm start`
In the left side there is a list of links where each one access to a correspondent component documentation,
there, shows how to use it.

## Run the tests
Inside of the project run:
Expand All @@ -34,4 +35,8 @@ Inside of the project run:

## Development phase
Yew style is in early phase, currently doesn't have enough components to cover all the requirements that could need a website/web application.
All contributions are appreciated.
All contributions are appreciated.

## License

Yew Style is MIT licensed. See [license](LICENSE)
5 changes: 4 additions & 1 deletion app/page-styles/_app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
&:hover
background-color: rgb(230, 236, 241)


.container
.item
code
font-size: 1vw
23 changes: 0 additions & 23 deletions ci/clear_cache.sh

This file was deleted.

2 changes: 1 addition & 1 deletion ci/run_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -euxo pipefail

cargo fmt --manifest-path=crate/yew_styles/Cargo.toml --all -- --check
cargo clippy --manifest-path=crate/yew_styles/Cargo.toml --all -- --deny=warnings
cargo test --target wasm32-unknown-unknown --manifest-path=crate/yew_styles/Cargo.toml
wasm-pack test --headless --firefox crate/yew_styles
2 changes: 1 addition & 1 deletion crate/.cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[build]
target="wasm32-unknown-unknown"
target="wasm32-unknown-unknown"
57 changes: 29 additions & 28 deletions crate/Cargo.lock

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

8 changes: 4 additions & 4 deletions crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["The RustWasm Developers"]
categories = ["wasm"]
description = "My awesome Yew with Yew-Router and Parcel application!"
license = "Apache-2.0/MIT"
license = "MIT"
name = "yew_style_page"
readme = "./README.md"
repository = "https://github.com/spielrs/yew-styles-page.git"
Expand All @@ -20,8 +20,8 @@ serde = "1.0"
serde_derive = "1.0"
dotenv = "0.15"
failure = "0.1"
yew = { version="0.14", features = ["toml", "yaml", "msgpack", "cbor", "web_sys"]}
yew-router = {version = "0.11", features = ["web_sys"] }
yew = { version="0.15", features = ["toml", "yaml", "msgpack", "cbor", "web_sys"]}
yew-router = {version="0.12", features = ["web_sys"] }
web-sys = "0.3"
yew_prism = "0.1"
yew_prism = {version="0.2"}
yew_styles= {path= "./yew_styles"}
6 changes: 5 additions & 1 deletion crate/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ impl Component for App {
}

fn update(&mut self, _: Self::Message) -> ShouldRender {
true
false
}

fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}

fn view(&self) -> Html {
Expand Down
4 changes: 4 additions & 0 deletions crate/src/page/button_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ impl Component for ButtonPage {
true
}

fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}

fn view(&self) -> Html {
html! {
<>
Expand Down
4 changes: 4 additions & 0 deletions crate/src/page/home_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ impl Component for HomePage {
false
}

fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}

fn view(&self) -> Html {
html! {
<Container wrap=Wrap::Wrap
Expand Down
6 changes: 5 additions & 1 deletion crate/src/page/layouts_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ impl Component for LayoutsPage {
}

fn update(&mut self, _: Self::Message) -> ShouldRender {
true
false
}

fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}

fn view(&self) -> Html {
Expand Down
4 changes: 4 additions & 0 deletions crate/src/page/navbar_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ impl Component for NavbarPage {
}
}

fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}

fn update(&mut self, msg: Self::Message) -> ShouldRender {
match msg {
Msg::ChangeType(index, navbar_menu) => {
Expand Down
Loading

0 comments on commit 87d2230

Please sign in to comment.