♻️ Move fonts and images directories in a common public on

This commit is contained in:
2024-04-12 12:49:07 +02:00
parent 77fa0c5fd5
commit 78cb65e054
49 changed files with 24 additions and 24 deletions

View File

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 698 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 221 B

After

Width:  |  Height:  |  Size: 221 B

View File

Before

Width:  |  Height:  |  Size: 223 B

After

Width:  |  Height:  |  Size: 223 B

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 755 B

After

Width:  |  Height:  |  Size: 755 B

View File

Before

Width:  |  Height:  |  Size: 864 B

After

Width:  |  Height:  |  Size: 864 B

View File

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 306 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

Before

Width:  |  Height:  |  Size: 853 B

After

Width:  |  Height:  |  Size: 853 B

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 430 B

View File

Before

Width:  |  Height:  |  Size: 639 B

After

Width:  |  Height:  |  Size: 639 B

View File

Before

Width:  |  Height:  |  Size: 388 B

After

Width:  |  Height:  |  Size: 388 B

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

Before

Width:  |  Height:  |  Size: 323 B

After

Width:  |  Height:  |  Size: 323 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 562 B

View File

Before

Width:  |  Height:  |  Size: 719 B

After

Width:  |  Height:  |  Size: 719 B

View File

@@ -147,7 +147,7 @@ async fn fetch_dicebear_svg(
#[cfg(feature = "desktop")] #[cfg(feature = "desktop")]
fn gen_placeholder_fetcher<'a>(path: &'static str) -> Box<impl Future<Output = Option<String>>> { fn gen_placeholder_fetcher<'a>(path: &'static str) -> Box<impl Future<Output = Option<String>>> {
let path = format!(".{}", &path); let path = format!("./public/{}", &path);
Box::new(async move { Box::new(async move {
match read_to_string(&path).await { match read_to_string(&path).await {
Ok(content) => Some(content), Ok(content) => Some(content),

View File

@@ -230,10 +230,10 @@ body {
margin-right: 1%; margin-right: 1%;
} }
.aeroButton:hover { .aeroButton:hover {
border-image: url(./images/aerobutton_border.png) 2 round; border-image: url(/public/images/aerobutton_border.png) 2 round;
} }
.aeroButton:active { .aeroButton:active {
border-image: url(./images/aerobutton_border_down.png) 2 round; border-image: url(/public/images/aerobutton_border_down.png) 2 round;
} }
.button { .button {
@@ -246,8 +246,8 @@ body {
margin-right: 1%; margin-right: 1%;
} }
.button:hover { .button:hover {
border-image: url(./images/button_border.png) 2 round; border-image: url(/public/images/button_border.png) 2 round;
} }
.button:active { .button:active {
border-image: url(./images/button_border_down.png) 2 round; border-image: url(/public/images/button_border_down.png) 2 round;
} }

View File

@@ -47,7 +47,7 @@ pub fn AvatarSelector() -> Element {
}, },
img { img {
class: ClassName::AVATAR_SELECTOR_PICTURE, class: ClassName::AVATAR_SELECTOR_PICTURE,
src: "./images/default-avatar.png", src: "/public/images/default-avatar.png",
}, },
}, },
} }

View File

@@ -48,7 +48,7 @@ fn render_rooms_tabs(
class: ClassName::TAB, class: ClassName::TAB,
button { button {
img { img {
src: "./images/status_online.png", src: "/public/images/status_online.png",
}, },
"{room_name}", "{room_name}",
}, },

View File

@@ -13,37 +13,37 @@ pub fn Navbar() -> Element {
class: ClassName::NAVBAR, class: ClassName::NAVBAR,
button { button {
style: "background: url(./images/add_user2.png) center no-repeat", style: "background: url(/public/images/add_user2.png) center no-repeat",
}, },
button { button {
style: "background: url(./images/directory.png) center no-repeat", style: "background: url(/public/images/directory.png) center no-repeat",
}, },
button { button {
style: "background: url(./images/phone.png) center no-repeat", style: "background: url(/public/images/phone.png) center no-repeat",
}, },
button { button {
style: "background: url(./images/medias.png) center no-repeat", style: "background: url(/public/images/medias.png) center no-repeat",
}, },
button { button {
style: "background: url(./images/games.png) center no-repeat", style: "background: url(/public/images/games.png) center no-repeat",
}, },
button { button {
style: "background: url(./images/ban_user.png) center no-repeat", style: "background: url(/public/images/ban_user.png) center no-repeat",
}, },
button { button {
class: ClassName::FLEX_RIGHT_AERO_BUTTON, class: ClassName::FLEX_RIGHT_AERO_BUTTON,
style: "background: url(./images/brush.png) center no-repeat", style: "background: url(/public/images/brush.png) center no-repeat",
}, },
button { button {
class: ClassName::FLEX_LAST_BUTTON, class: ClassName::FLEX_LAST_BUTTON,
style: "background: url(./images/settings.png) center no-repeat", style: "background: url(/public/images/settings.png) center no-repeat",
}, },
}, },
} }

View File

@@ -110,7 +110,7 @@ pub fn ContactsSection(props: ContactsSectionProps) -> Element {
li { li {
onclick: move |_| on_clicked_room(&id, &CHATS_WIN_INTERFACE), onclick: move |_| on_clicked_room(&id, &CHATS_WIN_INTERFACE),
img { img {
src: "./images/status_online.png", src: "/public/images/status_online.png",
}, },
p { p {
{formatted}, {formatted},

View File

@@ -40,24 +40,24 @@ pub fn ContactsWindow() -> Element {
button { button {
class: ClassName::AERO_BUTTON, class: ClassName::AERO_BUTTON,
style: "background: url(./images/letter.png) center no-repeat", style: "background: url(/public/images/letter.png) center no-repeat",
}, },
button { button {
class: ClassName::AERO_BUTTON, class: ClassName::AERO_BUTTON,
style: "background: url(./images/directory.png) no-repeat center", style: "background: url(/public/images/directory.png) no-repeat center",
}, },
button { button {
class: ClassName::AERO_BUTTON, class: ClassName::AERO_BUTTON,
style: "background: url(./images/news.png) no-repeat center", style: "background: url(/public/images/news.png) no-repeat center",
}, },
button { button {
class: ClassName::FLEX_RIGHT_AERO_BUTTON, class: ClassName::FLEX_RIGHT_AERO_BUTTON,
style: "background: url(./images/brush.png) no-repeat center", style: "background: url(/public/images/brush.png) no-repeat center",
}, },
button { button {
class: ClassName::AERO_BUTTON, class: ClassName::AERO_BUTTON,
style: "background: url(./images/settings.png) no-repeat center", style: "background: url(/public/images/settings.png) no-repeat center",
}, },
}, },
@@ -78,12 +78,12 @@ pub fn ContactsWindow() -> Element {
button { button {
class: ClassName::BUTTON, class: ClassName::BUTTON,
style: "background: url(./images/add_user.png) no-repeat center", style: "background: url(/public/images/add_user.png) no-repeat center",
}, },
button { button {
class: ClassName::BUTTON, class: ClassName::BUTTON,
style: "background: url(./images/tbc_transfert.png) no-repeat center", style: "background: url(/public/images/tbc_transfert.png) no-repeat center",
}, },
}, },
}, },

View File

@@ -9,7 +9,7 @@ pub fn Header() -> Element {
div { div {
class: ClassName::ROOT, class: ClassName::ROOT,
img { img {
src: "./images/logo-msn.png" src: "/public/images/logo-msn.png"
} }
svg { svg {
view_box: "0 0 100 10", view_box: "0 0 100 10",