Commit cargo.lock and allow mobile example to be part of workspace

This commit is contained in:
Jonathan Kelley committed 2024-01-08 15:27:59 -08:00
1 parent 0c684261c9
commit 3aabaa8c8f
5 files changed
+12417 -4

No files matched your search

+3 -1
View File
@@ -2,10 +2,12 @@
/playwright-tests/web/dist
/playwright-tests/fullstack/dist
/dist
Cargo.lock
.DS_Store
/examples/assets/test_video.mp4
# new recommendation to keep the lockfile in for CI and reproducible builds
# Cargo.lock
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
Generated
+12410
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -44,12 +44,12 @@ members = [
"examples/PWA-example",
"examples/query_segments_demo",
"examples/openid_connect_demo",
"examples/mobile_demo",
# Playwright tests
"playwright-tests/liveview",
"playwright-tests/web",
"playwright-tests/fullstack",
]
exclude = ["examples/mobile_demo"]
[workspace.package]
version = "0.4.3"
+2 -2
View File
@@ -63,7 +63,7 @@ impl<P: 'static> App<P> {
pub fn new(cfg: Config, props: P, root: Component<P>) -> (EventLoop<UserWindowEvent>, Self) {
let event_loop = EventLoopBuilder::<UserWindowEvent>::with_user_event().build();
let mut app = Self {
let app = Self {
root,
window_behavior: cfg.last_window_close_behaviour,
is_visible_before_start: true,
@@ -109,7 +109,7 @@ impl<P: 'static> App<P> {
}
#[cfg(all(feature = "hot-reload", debug_assertions))]
pub fn connect_hotreload(&mut self) {
pub fn connect_hotreload(&self) {
dioxus_hot_reload::connect({
let proxy = self.shared.proxy.clone();
move |template| {
+1
View File
@@ -113,6 +113,7 @@ pub fn launch_with_props_blocking<P: 'static>(root: Component<P>, props: P, cfg:
EventData::Poll => app.poll_vdom(id),
EventData::NewWindow => app.handle_new_window(),
EventData::CloseWindow => app.handle_close_msg(id),
#[cfg(feature = "hot-reload")]
EventData::HotReloadEvent(msg) => app.handle_hot_reload_msg(msg),
EventData::Ipc(msg) => match msg.method() {
IpcMethod::FileDialog => app.handle_file_dialog_msg(msg, id),