diff --git a/Cargo.toml b/Cargo.toml index ec517d0..b9710df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ chrono = { version = "0.4", features = ["unstable-locales"] } yew = { version = "0.21" } yew-router = { version = "0.18" } -yew-alt-html = { version = "0.4" } yew-hooks = { version = "0.3", optional = true } wasm-bindgen-futures = { version = "0.4", optional = true } diff --git a/src/components/author_card.rs b/src/components/author_card.rs index eed4dad..5fe5c19 100644 --- a/src/components/author_card.rs +++ b/src/components/author_card.rs @@ -160,16 +160,15 @@ pub fn author_card(props: &AuthorCardProps) -> Html {

- { "Email: " } if let Some(author) = author.as_ref() { { if author.blocked == 1 { - "(скрыт)".to_owned() + "(Email скрыт)".to_owned() } else { author.email .clone() .none_if_empty() - .unwrap_or("(не указан)".to_owned()) + .unwrap_or("(Email не указан)".to_owned()) } } } else { @@ -202,6 +201,7 @@ pub fn author_card(props: &AuthorCardProps) -> Html { }; + html! {

if let (Some(author), true) = (author.as_ref(), link_to) { diff --git a/src/pages/settings.rs b/src/pages/settings.rs index 22b4101..c1481f9 100644 --- a/src/pages/settings.rs +++ b/src/pages/settings.rs @@ -13,7 +13,6 @@ use web_sys::HtmlElement; #[cfg(feature = "client")] use web_sys::HtmlInputElement; use yew::prelude::*; -use yew_alt_html::*; use crate::components::meta::*; use crate::components::svg_image::*; @@ -252,11 +251,11 @@ pub fn settings() -> Html { let main_onclick = Callback::from(|_| {}); #[cfg(feature = "telegram")] - let telegram_button = ah! { + let telegram_button = html! { }; #[cfg(not(feature = "telegram"))] - let telegram_button = ah! { + let telegram_button = html! { "Кнопка еще разрабатывается..." }; @@ -453,150 +452,243 @@ pub fn settings() -> Html { // MARK: Html - ah! { - -
- if !logged_user_context.is_not_inited() && !logged_user_context.state().action_available() { -
-
-
- "Настройки" -
-
-
- "Основные данные профиля" - " " - - - -
- if let Some(message) = main_section_error.as_ref() { - match message { - Ok(ok_message) => { - - }, - Err(err_message) => { - + html! { + <> + +
+ if !logged_user_context.is_not_inited() && !logged_user_context.state().action_available() { +
+
+
+ { "Настройки" } +
+
+
+ { "Основные данные профиля" } + { " " } + + + +
+ if let Some(message) = main_section_error.as_ref() { + { + match message { + Ok(ok_message) => html! { + + }, + Err(err_message) => html! { + + } + } } } - } -
-
- - -
-
- { telegram_button } +
+
+ + +
+
+ { telegram_button } +
+
+ { "Также используйте кнопку для синхронизации данныx." } +
-
"Также используйте кнопку для синхронизации данныx."
-
-
-
- - -
+
+
- + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ { "Второстепенные данные профиля" } + { " " } + + + +
+ if let Some(message) = secondary_section_error.as_ref() { + { + match message { + Ok(ok_message) => html! { + + }, + Err(err_message) => html! { + + } + } + } + } +
- - +
- +
- +
-
- "Второстепенные данные профиля" - " " - - - -
- if let Some(message) = secondary_section_error.as_ref() { - match message { - Ok(ok_message) => { - - }, - Err(err_message) => { - - } - } - } -
-
-