Skip to content

Commit

Permalink
chore: Fixes and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 9, 2024
1 parent 43f3ba8 commit 243e0ce
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dioxus-signals = { version = "0.5" }
dioxus-core = { version = "0.5" }
dioxus-hot-reload = { version = "0.5", features = ["file_watcher"], default-features = false }
dioxus-router = { version = "0.5", default-features = false }
dioxus-sdk = { version = "0.5", features = ["clipboard"]}
dioxus-clipboard = "0.1"

skia-safe = { version = "0.75.0", features = ["gl", "textlayout", "svg"] }

Expand Down Expand Up @@ -96,7 +96,7 @@ tree-sitter-highlight = "0.23.0"
tree-sitter-rust = "0.23.0"
rfd = "0.14.1"
bytes = "1.5.0"
dioxus-sdk = { workspace = true }
dioxus-clipboard = { workspace = true }
winit = { workspace = true }

[profile.release]
Expand Down
8 changes: 7 additions & 1 deletion crates/components/src/native_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ use dioxus::prelude::*;
use freya_core::prelude::EventMessage;
use freya_elements::{
elements as dioxus_elements,
events::KeyboardEvent,
events::{
keyboard::{
Key,
Modifiers,
},
KeyboardEvent,
},
};
use freya_hooks::{
use_init_native_platform,
Expand Down
5 changes: 4 additions & 1 deletion crates/components/src/popup.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use dioxus::prelude::*;
use freya_elements::{
elements as dioxus_elements,
events::KeyboardEvent,
events::{
keyboard::Key,
KeyboardEvent,
},
};
use freya_hooks::{
theme_with,
Expand Down
1 change: 1 addition & 0 deletions crates/components/src/slider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use dioxus::prelude::*;
use freya_elements::{
elements as dioxus_elements,
events::{
keyboard::Key,
KeyboardEvent,
MouseEvent,
WheelEvent,
Expand Down
1 change: 1 addition & 0 deletions crates/components/src/tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use dioxus::prelude::*;
use freya_elements::{
elements as dioxus_elements,
events::{
keyboard::Key,
KeyboardEvent,
MouseEvent,
},
Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ torin = { workspace = true }
dioxus-hooks = { workspace = true }
dioxus-signals = { workspace = true }
dioxus-core = { workspace = true }
dioxus-sdk = { workspace = true }
dioxus-clipboard = { workspace = true }

tokio = { workspace = true }
winit = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/src/rope_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
ops::Range,
};

use dioxus_sdk::clipboard::UseClipboard;
use dioxus_clipboard::prelude::UseClipboard;
use ropey::iter::Lines;
pub use ropey::Rope;

Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
ops::Range,
};

use dioxus_sdk::clipboard::UseClipboard;
use dioxus_clipboard::prelude::UseClipboard;
use freya_elements::events::keyboard::{
Code,
Key,
Expand Down
8 changes: 4 additions & 4 deletions crates/hooks/src/use_editable.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use std::rc::Rc;

use dioxus_clipboard::prelude::{
use_clipboard,
UseClipboard,
};
use dioxus_core::{
prelude::spawn,
use_hook,
AttributeValue,
};
use dioxus_sdk::clipboard::{
use_clipboard,
UseClipboard,
};
use dioxus_signals::{
Readable,
Signal,
Expand Down
2 changes: 1 addition & 1 deletion examples/text_editors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
windows_subsystem = "windows"
)]

use dioxus_sdk::clipboard::use_clipboard;
use dioxus_clipboard::prelude::use_clipboard;
use freya::prelude::*;

fn main() {
Expand Down

0 comments on commit 243e0ce

Please sign in to comment.