chore(dioxus): Upgraded to dioxus 0.6.0
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_sdk::{i18n::use_i18, translate};
|
||||
use dioxus_i18n::t;
|
||||
|
||||
use crate::components::{Bolding, UnderConstruction, H1, HR};
|
||||
|
||||
#[component]
|
||||
pub fn PublicationsProjects() -> Element {
|
||||
let i18 = use_i18();
|
||||
|
||||
rsx! {
|
||||
div {
|
||||
class: "flex flex-col ",
|
||||
UnderConstruction { },
|
||||
div {
|
||||
H1 { { translate!(i18, "publications_projects.publications.title") } }
|
||||
H1 { { t!("publications_projects_publications_title") } }
|
||||
Publications { },
|
||||
},
|
||||
HR {},
|
||||
div {
|
||||
H1 { { translate!(i18, "publications_projects.projects.title") } }
|
||||
H1 { { t!("publications_projects_projects_title") } }
|
||||
Projects { },
|
||||
}
|
||||
}
|
||||
@@ -36,25 +34,23 @@ struct PublicationProp {
|
||||
}
|
||||
|
||||
fn Publications() -> Element {
|
||||
let i18 = use_i18();
|
||||
|
||||
rsx! {
|
||||
div {
|
||||
class: "flex gap-4 items-center flex-wrap",
|
||||
Publication {
|
||||
title: translate!(i18, "publications_projects.publications.rpm.title"),
|
||||
authors: translate!(i18, "publications_projects.publications.rpm.authors"),
|
||||
conference: translate!(i18, "publications_projects.publications.rpm.conference"),
|
||||
doi: translate!(i18, "publications_projects.publications.rpm.url"),
|
||||
description: translate!(i18, "publications_projects.publications.rpm.description")
|
||||
title: t!("publications_projects_publications_rpm_title"),
|
||||
authors: t!("publications_projects_publications_rpm_authors"),
|
||||
conference: t!("publications_projects_publications_rpm_conference"),
|
||||
doi: t!("publications_projects_publications_rpm_url"),
|
||||
description: t!("publications_projects_publications_rpm_description")
|
||||
},
|
||||
|
||||
Publication {
|
||||
title: translate!(i18, "publications_projects.publications.iot_fuzzers.title"),
|
||||
authors: translate!(i18, "publications_projects.publications.iot_fuzzers.authors"),
|
||||
conference: translate!(i18, "publications_projects.publications.iot_fuzzers.conference"),
|
||||
doi: translate!(i18, "publications_projects.publications.iot_fuzzers.url"),
|
||||
description: translate!(i18, "publications_projects.publications.iot_fuzzers.description")
|
||||
title: t!("publications_projects_publications_iot_fuzzers_title"),
|
||||
authors: t!("publications_projects_publications_iot_fuzzers_authors"),
|
||||
conference: t!("publications_projects_publications_iot_fuzzers_conference"),
|
||||
doi: t!("publications_projects_publications_iot_fuzzers_url"),
|
||||
description: t!("publications_projects_publications_iot_fuzzers_description")
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -87,31 +83,29 @@ fn Publication(prop: PublicationProp) -> Element {
|
||||
}
|
||||
|
||||
fn Projects() -> Element {
|
||||
let i18 = use_i18();
|
||||
|
||||
rsx! {
|
||||
div {
|
||||
class: "flex gap-4 items-center flex-wrap",
|
||||
Project {
|
||||
title: translate!(i18, "publications_projects.projects.bachelorproject.title"),
|
||||
authors: translate!(i18, "publications_projects.projects.bachelorproject.authors"),
|
||||
kind: translate!(i18, "publications_projects.projects.bachelorproject.kind"),
|
||||
url: translate!(i18, "publications_projects.projects.bachelorproject.url"),
|
||||
description: translate!(i18, "publications_projects.projects.bachelorproject.description")
|
||||
title: t!("publications_projects_projects_bachelorproject_title"),
|
||||
authors: t!("publications_projects_projects_bachelorproject_authors"),
|
||||
kind: t!("publications_projects_projects_bachelorproject_kind"),
|
||||
url: t!("publications_projects_projects_bachelorproject_url"),
|
||||
description: t!("publications_projects_projects_bachelorproject_description")
|
||||
},
|
||||
Project {
|
||||
title: translate!(i18, "publications_projects.projects.dotfiles.title"),
|
||||
authors: translate!(i18, "publications_projects.projects.dotfiles.authors"),
|
||||
kind: translate!(i18, "publications_projects.projects.dotfiles.kind"),
|
||||
url: translate!(i18, "publications_projects.projects.dotfiles.url"),
|
||||
description: translate!(i18, "publications_projects.projects.dotfiles.description")
|
||||
title: t!("publications_projects_projects_dotfiles_title"),
|
||||
authors: t!("publications_projects_projects_dotfiles_authors"),
|
||||
kind: t!("publications_projects_projects_dotfiles_kind"),
|
||||
url: t!("publications_projects_projects_dotfiles_url"),
|
||||
description: t!("publications_projects_projects_dotfiles_description")
|
||||
},
|
||||
Project {
|
||||
title: translate!(i18, "publications_projects.projects.homelab.title"),
|
||||
authors: translate!(i18, "publications_projects.projects.homelab.authors"),
|
||||
kind: translate!(i18, "publications_projects.projects.homelab.kind"),
|
||||
url: translate!(i18, "publications_projects.projects.homelab.url"),
|
||||
description: translate!(i18, "publications_projects.projects.homelab.description")
|
||||
title: t!("publications_projects_projects_homelab_title"),
|
||||
authors: t!("publications_projects_projects_homelab_authors"),
|
||||
kind: t!("publications_projects_projects_homelab_kind"),
|
||||
url: t!("publications_projects_projects_homelab_url"),
|
||||
description: t!("publications_projects_projects_homelab_description")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user