Skip to content

Commit cab40a1

Browse files
feat: sync local changes
1 parent dfce78b commit cab40a1

File tree

1,639 files changed

+6771
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,639 files changed

+6771
-75
lines changed

opensvm-dioxus/Cargo.lock

Lines changed: 2274 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

opensvm-dioxus/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
dioxus = { version = "0.4.0", features = ["web", "router", "fermi"] }
7+
dioxus = "0.4.0"
88
dioxus-web = "0.4.0"
99
dioxus-router = "0.4.0"
1010
dioxus-signals = "0.4.0"
11-
dioxus-free-icons = { version = "0.7.0", features = ["font-awesome-solid", "lucide"] }
11+
dioxus-free-icons = { version = "0.7.0", features = ["font-awesome-solid"] }
1212
wasm-bindgen = "0.2.87"
1313
web-sys = { version = "0.3.64", features = [
1414
"Storage",

opensvm-dioxus/src/components/ai_assistant.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use dioxus::prelude::*;
2-
use dioxus_free_icons::icons::lucide_icons::{Bot, Send};
2+
use dioxus_free_icons::icons::fa_solid_icons::{FaRobot, FaPaperPlane};
33
use dioxus_free_icons::Icon;
44

5-
#[derive(Props)]
5+
#[derive(Props, PartialEq)]
66
pub struct AIAssistantProps {
77
#[props(optional)]
88
pub expanded: Option<bool>,
99
}
1010

11-
#[component]
11+
#[component(no_case_check)]
1212
pub fn AIAssistant(cx: Scope<AIAssistantProps>) -> Element {
1313
let message = use_state(cx, String::new);
1414
let expanded = cx.props.expanded.unwrap_or(false);
@@ -30,7 +30,7 @@ pub fn AIAssistant(cx: Scope<AIAssistantProps>) -> Element {
3030
div { class: "p-4",
3131
div { class: "flex items-center gap-3 mb-6",
3232
Icon {
33-
icon: Bot,
33+
icon: FaRobot,
3434
width: 24,
3535
height: 24,
3636
fill: "var(--primary)"
@@ -66,7 +66,7 @@ pub fn AIAssistant(cx: Scope<AIAssistantProps>) -> Element {
6666
onclick: handle_send,
6767

6868
Icon {
69-
icon: Send,
69+
icon: FaPaperPlane,
7070
width: 20,
7171
height: 20,
7272
fill: "white"

opensvm-dioxus/src/components/copy_button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn CopyButton<'a>(cx: Scope<'a, CopyButtonProps<'a>>) -> Element {
5151
} else {
5252
rsx! {
5353
Icon {
54-
icon: Copy,
54+
icon: FaCopy,
5555
width: 20,
5656
height: 20,
5757
fill: "var(--text-secondary)"

opensvm-dioxus/src/components/loading_skeleton.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use dioxus::prelude::*;
22

3-
#[derive(Props)]
3+
#[derive(Props, PartialEq)]
44
pub struct SkeletonProps {
55
pub height: u32,
66
pub width: u32,
@@ -10,7 +10,7 @@ pub struct SkeletonProps {
1010

1111
#[component]
1212
pub fn Skeleton(cx: Scope<SkeletonProps>) -> Element {
13-
let style = format!(
13+
let style_str = format!(
1414
"height: {}px; width: {}px; background-color: var(--surface-light); border-radius: 4px; animation: pulse 1.5s infinite; {}",
1515
cx.props.height,
1616
cx.props.width,
@@ -19,7 +19,7 @@ pub fn Skeleton(cx: Scope<SkeletonProps>) -> Element {
1919

2020
cx.render(rsx! {
2121
div {
22-
style: "{style}",
22+
style: "{style_str}",
2323
// Add keyframes for the pulse animation
2424
style { "
2525
@keyframes pulse {

opensvm-dioxus/src/components/network_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn NetworkStats(cx: Scope<NetworkStatsProps>) -> Element {
9999
}
100100
div { class: "info-row",
101101
span { class: "info-label", "Block Height" }
102-
span { class: "info-value", "{format_number(cx.props.block_height)}" }
102+
span { class: "info-value", "{block_height_str}" }
103103
}
104104
}
105105
}

opensvm-dioxus/src/components/search_bar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub fn SearchBar<'a>(cx: Scope<'a, SearchBarProps<'a>>) -> Element {
135135
class: "bg-transparent border-none cursor-pointer",
136136
onclick: handle_clear,
137137
Icon {
138-
icon: X,
138+
icon: FaTimes,
139139
width: 18,
140140
height: 18,
141141
fill: "var(--text-secondary)"

opensvm-dioxus/src/components/transaction_list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub enum TransactionStatus {
2626
}
2727

2828
// Props for the transaction list component
29-
#[derive(Props)]
29+
#[derive(Props, PartialEq)]
3030
pub struct TransactionListProps {
3131
#[props(optional)]
3232
pub transactions: Option<Vec<Transaction>>,
@@ -131,7 +131,7 @@ pub fn TransactionList(cx: Scope<TransactionListProps>) -> Element {
131131
// Amount and arrow
132132
div { class: "flex items-center gap-3",
133133
span { class: "font-bold", "{tx.amount} SOL" }
134-
Icon { icon: ChevronRight, width: 16, height: 16, fill: "var(--text-secondary)" }
134+
Icon { icon: FaChevronRight, width: 16, height: 16, fill: "var(--text-secondary)" }
135135
}
136136
}
137137
}

opensvm-dioxus/src/components/validator_analytics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn ValidatorAnalytics(cx: Scope) -> Element {
131131
div { class: "stats-grid",
132132
StatsCard {
133133
icon: cx.render(rsx! {
134-
Icon { icon: Shield, width: 18, height: 18, fill: "var(--primary)" }
134+
Icon { icon: FaShield, width: 18, height: 18, fill: "var(--primary)" }
135135
}),
136136
label: "Active Validators",
137137
value: &format_number(stats.active_validators),
@@ -140,7 +140,7 @@ pub fn ValidatorAnalytics(cx: Scope) -> Element {
140140

141141
StatsCard {
142142
icon: cx.render(rsx! {
143-
Icon { icon: Wallet, width: 18, height: 18, fill: "var(--primary)" }
143+
Icon { icon: FaWallet, width: 18, height: 18, fill: "var(--primary)" }
144144
}),
145145
label: "Total Stake",
146146
value: &format!("{} SOL", format_number(stats.total_stake)),
@@ -149,15 +149,15 @@ pub fn ValidatorAnalytics(cx: Scope) -> Element {
149149

150150
StatsCard {
151151
icon: cx.render(rsx! {
152-
Icon { icon: Users, width: 18, height: 18, fill: "var(--primary)" }
152+
Icon { icon: FaUsers, width: 18, height: 18, fill: "var(--primary)" }
153153
}),
154154
label: "Total Delegators",
155155
value: &format_number(stats.total_delegators),
156156
}
157157

158158
StatsCard {
159159
icon: cx.render(rsx! {
160-
Icon { icon: TrendingUp, width: 18, height: 18, fill: "var(--primary)" }
160+
Icon { icon: FaChartLine, width: 18, height: 18, fill: "var(--primary)" }
161161
}),
162162
label: "Average APY",
163163
value: &format!("{}%", stats.average_apy),

opensvm-dioxus/src/components/wallet_button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn WalletButton(cx: Scope) -> Element {
2929
onclick: handle_wallet_click,
3030

3131
Icon {
32-
icon: Wallet,
32+
icon: FaWallet,
3333
width: 16,
3434
height: 16,
3535
fill: if wallet.read().is_connected { "var(--text)" } else { "white" }

0 commit comments

Comments
 (0)