-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interactions for the dioxus-desktop example
- Loading branch information
Showing
12 changed files
with
221 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#![allow(non_snake_case)] | ||
#![feature(let_chains)] | ||
|
||
mod controller; | ||
mod router; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
pub(crate) mod dataset; | ||
pub(crate) mod home; | ||
pub(crate) mod layout; | ||
pub(crate) mod overview; | ||
pub(crate) mod stargazer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
use dioxus::prelude::*; | ||
|
||
pub fn Overview(cx: Scope) -> Element { | ||
let data = [ | ||
("zino", "Application integrations."), | ||
("zino-core", "Core types and traits."), | ||
("zino-derive", "Derived traits."), | ||
("zino-model", "Domain models."), | ||
]; | ||
render! { | ||
div { | ||
class: "columns is-6", | ||
div { | ||
class: "column", | ||
div { | ||
class: "card", | ||
header { | ||
class: "card-header", | ||
div { | ||
class: "card-header-title", | ||
"GitHub issues" | ||
} | ||
} | ||
div { | ||
class: "card-content", | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/issues/photino/zino", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/issues/photino/zino/bug", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/issues/photino/zino/enhancement", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/issues/photino/zino/dependencies", | ||
} | ||
} | ||
} | ||
} | ||
div { | ||
class: "column", | ||
div { | ||
class: "card", | ||
header { | ||
class: "card-header", | ||
div { | ||
class: "card-header-title", | ||
"GitHub commits" | ||
} | ||
} | ||
div { | ||
class: "card-content", | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/commit-activity/t/photino/zino", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/commit-activity/y/photino/zino", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/commit-activity/m/photino/zino", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/github/commit-activity/w/photino/zino", | ||
} | ||
} | ||
} | ||
} | ||
} | ||
div { | ||
class: "columns is-6", | ||
for d in data { | ||
div { | ||
class: "column", | ||
div { | ||
class: "card", | ||
header { | ||
class: "card-header", | ||
div { | ||
class: "card-header-title", | ||
span { | ||
class: "tag is-warning is-light mr-1", | ||
"{d.0}" | ||
} | ||
span { "{d.1}" } | ||
} | ||
} | ||
div { | ||
class: "card-content", | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/crates/v/{d.0}", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://shields.io/docsrs/{d.0}", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/crates/l/{d.0}", | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/crates/d/{d.0}" | ||
} | ||
img { | ||
class: "mr-2", | ||
src: "https://img.shields.io/crates/dr/{d.0}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.