Skip to content

Commit

Permalink
feat: Add Link component back (#411)
Browse files Browse the repository at this point in the history
* add it

* optimize

* Update anchor.rs

* Remove `ExternalLink` and rename to link

* add theming

* migrate from ExternalLink

* update for latest

* update again

* Update link.rs

* add externallink back + better example

* format + fix

* clean up

* remove external_link example

* fix doctest

* fix doctest

* clean up

* fix doc errors

* clean up

* fix

* Update Cargo.toml

* unit test

---------

Co-authored-by: marc2332 <[email protected]>
  • Loading branch information
tigerros and marc2332 authored Feb 20, 2024
1 parent a125bc8 commit 84e108d
Show file tree
Hide file tree
Showing 10 changed files with 422 additions and 158 deletions.
3 changes: 2 additions & 1 deletion crates/components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ freya-common = { workspace = true }
freya-engine = { path = "../engine", version = "0.1" }
torin = { workspace = true }

dioxus-router = { workspace = true }
dioxus = { workspace = true }
futures-util = { workspace = true }

Expand All @@ -37,4 +38,4 @@ reqwest = { version = "0.11.22", features = ["json"] }

[dev-dependencies]
freya = { path = "../freya" }
freya-testing = { path = "../testing" }
freya-testing = { path = "../testing" }
102 changes: 0 additions & 102 deletions crates/components/src/external_link.rs

This file was deleted.

4 changes: 2 additions & 2 deletions crates/components/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ mod canvas;
mod cursor_area;
mod drag_drop;
mod dropdown;
mod external_link;
mod gesture_area;
mod graph;
mod icons;
mod input;
mod link;
mod loader;
mod network_image;
mod progress_bar;
Expand All @@ -30,11 +30,11 @@ pub use canvas::*;
pub use cursor_area::*;
pub use drag_drop::*;
pub use dropdown::*;
pub use external_link::*;
pub use gesture_area::*;
pub use graph::*;
pub use icons::*;
pub use input::*;
pub use link::*;
pub use loader::*;
pub use network_image::*;
pub use progress_bar::*;
Expand Down
Loading

0 comments on commit 84e108d

Please sign in to comment.