Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sass #8

Merged
merged 27 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0c799d9
Use async blocks instead of closures
therustmonk Aug 11, 2019
205edee
Add build script to ui
therustmonk Aug 11, 2019
07efd96
Replace less with sass embedded compiler
therustmonk Aug 11, 2019
41b2e97
Use Compact format for SASS
therustmonk Aug 11, 2019
86f0a4c
Add block rule
therustmonk Aug 12, 2019
cbbd51a
Remove current widgets system
therustmonk Aug 12, 2019
7ff30d6
Add Grid layout to the protocol
therustmonk Aug 12, 2019
e3a886c
Implement Scene widget
therustmonk Aug 12, 2019
7dfd51e
Add Layout widget implementation with classes
therustmonk Aug 12, 2019
6524f58
Add DSL for containers
therustmonk Aug 12, 2019
3e01ec0
Add view_flex method to layout
therustmonk Aug 12, 2019
c082e53
Add a minimal grid
therustmonk Aug 14, 2019
1add4fb
Add baseline example
therustmonk Aug 14, 2019
8bce60f
Add app widget (empty)
therustmonk Aug 15, 2019
df49273
Add List and Icon
therustmonk Aug 15, 2019
c2221a1
Render ListItem
therustmonk Aug 15, 2019
d1a4d48
Add application layout
therustmonk Aug 17, 2019
660ef66
Add navigation bar to App layout
therustmonk Aug 17, 2019
4401c45
Move NavigationDrawer to a separate module
therustmonk Aug 17, 2019
3543464
Add styles for AppBar
therustmonk Aug 17, 2019
5752d1f
Add Vuetify as a submodule
therustmonk Aug 17, 2019
daecfc7
Use vuetify styles for navigation drawer
therustmonk Aug 18, 2019
eb5c6f7
Add Material Icon font
therustmonk Aug 18, 2019
c4dec49
Move AppBar to a separate module
therustmonk Aug 18, 2019
8619680
Add footer block to App
therustmonk Aug 18, 2019
4a2912f
Move Footer to a separate widget module
therustmonk Aug 18, 2019
6c37203
Activate styles for Footer
therustmonk Aug 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target
**/*.rs.bk
Cargo.lock
*.css
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ui/styles/vuetify"]
path = ui/styles/vuetify
url = [email protected]:vuetifyjs/vuetify.git
15 changes: 10 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name = "facade"
version = "0.1.0"
authors = ["Denis Kolodin <[email protected]>"]
edition = "2018"
repository = "https://github.com/DenisKolodin/facade"
homepage = "https://github.com/DenisKolodin/facade"
repository = "https://github.com/yewstack/facade"
homepage = "https://github.com/yewstack/facade"
documentation = "https://docs.rs/facade/"
license = "MIT/Apache-2.0"
readme = "README.md"
Expand All @@ -17,6 +17,7 @@ config = "0.9.3"
headers = "0.2.1"
failure = "0.1.5"
flate2 = "1.0.9"
futures-timer = "0.2.1"
log = "0.4.6"
mime_guess = "2.0.0-alpha.6"
serde = { version = "1.0.94", features = ["derive"] }
Expand All @@ -25,15 +26,13 @@ tar = "0.4.26"
tokio = "0.1.22"
warp = "0.1.16"

futures-timer = "0.2.1"

[dependencies.futures-legacy]
package = "futures"
version = "0.1.28"

[dependencies.futures]
package = "futures-preview"
version = "0.3.0-alpha.17"
version = "=0.3.0-alpha.17"
features = ["async-await", "nightly", "compat"]

[dependencies.protocol]
Expand All @@ -44,6 +43,12 @@ path = "protocol"
[build-dependencies]
failure = "0.1.5"

[dev-dependencies]
env_logger = "0.6.2"
runtime = "0.3.0-alpha.6"
runtime-tokio = "0.3.0-alpha.5"
tokio-signal = "0.2.7"

[features]
default = []
refresh = []
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

To achieve that effect **Facade** uses [Yew](https://github.com/DenisKolodin/yew) framework to build a universal UI and use WebSocket connection to interact with your app that supply live updates to UI that renders them reactively.

## Vuetify relations

We reuse CSS components' styles from Vuetify project: https://github.com/vuetifyjs/vuetify

You can read the license of Vuetify here: https://github.com/vuetifyjs/vuetify/blob/master/LICENSE.md

## Use-cases

Uses-cases of this framework are unlimited and include but are not limited to the following cases
Expand Down
40 changes: 40 additions & 0 deletions examples/baseline/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#![feature(async_await)]

use failure::Error;
use futures::compat::Future01CompatExt;
use futures::future::select;
use futures::{FutureExt, StreamExt};
use futures_legacy::{Future as _, Stream as _};

#[runtime::main(runtime_tokio::Tokio)]
pub async fn main() -> Result<(), Error> {
env_logger::try_init()?;
let ctrl_c = tokio_signal::ctrl_c()
.flatten_stream()
.into_future()
.compat();

let mut control = facade::main()?;
let scene = {
use facade::dsl::*;
Scene(App(
NavigationDrawer(
List(vec![
ListItem(Icon::Home, "Home".into()),
ListItem(Icon::ContactMail, "Contact".into()),
])
),
Container(
Layout(vec![
Flex(),
Flex(),
Flex(),
])
)
))
};
control.scene(scene);

ctrl_c.await;
Ok(())
}
2 changes: 2 additions & 0 deletions protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ bigdecimal = { version = "0.1.0", features = ["serde"] }
failure = "0.1.5"
serde = { version = "1.0.94", features = ["derive"] }
serde_json = "1.0.40"
strum = "0.15.0"
strum_macros = "0.15.0"
15 changes: 0 additions & 15 deletions protocol/src/dashboard.rs

This file was deleted.

Loading