From 7f5a524d4bd89273a446c0dc6bb5bc2258cca52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Thu, 2 Jan 2025 09:43:01 +0100 Subject: [PATCH] refactor: remove the deprecated web resource configuration and use the script component --- Dioxus.toml | 15 --------------- src/components/app.rs | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Dioxus.toml b/Dioxus.toml index 60a1ce0..1749ea6 100644 --- a/Dioxus.toml +++ b/Dioxus.toml @@ -25,18 +25,3 @@ reload_html = true # which files or dirs will be watcher monitoring watch_path = ["src", "assets"] - -# include `assets` in web platform -[web.resource] - -# CSS style file -style = [] - -# Javascript code file -script = ["https://kit.fontawesome.com/3c1b409f8f.js"] - -[web.resource.dev] - -# Javascript code file -# serve: [dev-server] only -script = [] diff --git a/src/components/app.rs b/src/components/app.rs index 1323667..82c2fe7 100644 --- a/src/components/app.rs +++ b/src/components/app.rs @@ -39,6 +39,7 @@ pub(crate) fn App() -> Element { document::Link { rel: "stylesheet", href: FONTS_CSS } document::Link { rel: "stylesheet", href: INPUT_NUMBER_ARROWS_CSS } document::Link { rel: "stylesheet", href: INPUT_RANGE_CSS } + document::Script { src: "https://kit.fontawesome.com/3c1b409f8f.js" } div { class: "min-h-screen text-zinc-200 bg-zinc-800 pt-4 pb-36", -- 2.47.1