Updates to have things running on the latest Dioxus build, and with the correct parameters for each toml file (because they changed, again).

This commit is contained in:
Ada Werefox 2024-05-01 00:32:26 -05:00
parent c8348a4f21
commit feafe5a94f
4 changed files with 26 additions and 26 deletions

View File

@ -7,20 +7,20 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
dioxus-autofmt = "0.5.0-alpha.0" dioxus-autofmt = "0.5.1"
console_error_panic_hook = "0.1.7" console_error_panic_hook = "0.1.7"
log = "0.4.17" log = "0.4.17"
manganis = "0.2.2" manganis = "0.2.2"
serde = "1.0.197" serde = "1.0.199"
toml = "0.8.12" toml = "0.8.12"
[dependencies.dioxus-router] [dependencies.dioxus-router]
version = "0.5.0-alpha.0" version = "0.5.0"
features = ["web"] features = ["fullstack"]
[dependencies.dioxus] [dependencies.dioxus]
version = "0.5.0-alpha.0" version = "0.5.1"
features = ["web", "fullstack"] features = ["fullstack", "router"]
[features] [features]
default = [] default = []
@ -32,9 +32,9 @@ verison = "0.3.34"
features = ["wasm-bindgen", "macros", "local-offset"] features = ["wasm-bindgen", "macros", "local-offset"]
[dependencies.megalodon] [dependencies.megalodon]
version = "0.13.2" version = "0.13.4"
optional = true optional = true
[dependencies.tokio] [dependencies.tokio]
version = "1.36.0" version = "1.37.0"
optional = true optional = true

View File

@ -24,25 +24,25 @@ title = "About A Werefox"
reload_html = true reload_html = true
# which files or dirs will be watcher monitoring # which files or dirs will be watcher monitoring
watch_path = ["src", "public", "tailwind.config.js", "Dioxus.toml", "Cargo.toml"] watch_path = ["src", "public", "tailwind.config.js"]
# implement redirect on 404 # implement redirect on 404
index_on_404 = true index_on_404 = true
# # include `assets` in web platform # include `assets` in web platform
# [web.resource] [web.resource]
# # CSS style file # CSS style file
# style = ["/styles/tailwind.min.css"] style = ["tailwind.css"]
# # Javascript code file # Javascript code file
# script = [] script = []
# [web.resource.dev] [web.resource.dev]
# # CSS style file # CSS style file
# style = ["/styles/tailwind.min.css"] style = ["tailwind.css"]
# # Javascript code file # Javascript code file
# # serve: [dev-server] only # serve: [dev-server] only
# script = [] script = []

View File

@ -9,11 +9,11 @@ pub fn HomePage(page_title: String, card_title: String, children: Element) -> El
head { head {
title { "{page_title}" } title { "{page_title}" }
link { rel: "icon", href: "/favicon.ico" } link { rel: "icon", href: "/favicon.ico" }
link { rel: "me", href: "https://bark.lgbt/@alicew" } link { rel: "me", href: "https://yiff.life/@werefox" }
link { rel: "me", href: "https://dragon.style/@alice" } link { rel: "me", href: "https://dragon.style/@alice" }
link { rel: "me", href: "https://mspsocial.net/@alice" } link { rel: "me", href: "https://mspsocial.net/@alice" }
} }
div { class: "container space-y-4 mx-auto px-4 py-4", div { class: "container px-4 py-4 mx-auto space-y-4",
TitleCard { card_title: card_title } TitleCard { card_title: card_title }
{children}, {children},
FooterCard {} FooterCard {}

View File

@ -29,7 +29,7 @@ pub mod info_app {
use crate::components::werefox_card::*; use crate::components::werefox_card::*;
use crate::utils::prop_structs::*; use crate::utils::prop_structs::*;
use dioxus_router::prelude::*; // use dioxus_router::prelude::*;
#[derive(Routable, PartialEq, Clone)] #[derive(Routable, PartialEq, Clone)]
pub enum Route { pub enum Route {
@ -401,7 +401,7 @@ pub mod info_app {
async fn get_account_avatars() -> Result<Vec<Testimonial>, ServerFnError> { async fn get_account_avatars() -> Result<Vec<Testimonial>, ServerFnError> {
let client = megalodon::generator( let client = megalodon::generator(
megalodon::SNS::Mastodon, megalodon::SNS::Mastodon,
String::from("https://bark.lgbt"), String::from("https://yiff.life"),
Some(tokio::fs::read_to_string("access_token.key").await?), Some(tokio::fs::read_to_string("access_token.key").await?),
None, None,
); );