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