Commit Graph
29 Commits
Author SHA1 Message Date
Evan AlmloffandJonathan Kelley 519ec9d294 Move the document trait into a separate crate (#3035)
* add a default head method through eval
* remove the old document trait
* implement document for each platform
* pull out document into a dedicated crate to cut down on shared dependencies
---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-10-14 10:33:37 -07:00
Evan AlmloffandJonathan Kelley 20d146d9bd Simplify the launch builder (#2967)
* improve documentation for the fullstack server context

* Add a section about axum integration to the crate root docs

* make serve_dioxus_application accept the cfg builder directly

* remove unused server_fn module

* improve fullstack config docs

* improve documentation for the server function macro

* fix axum router extension link

* Fix doc tests

* Fix launch builder

* Simplify the launch builder

* don't re-export launch in the prelude

* refactor fullstack launch

* Fix fullstack launch builder

* Update static generation with the new builder api

* fix some formatting/overly broad launch replacements

* fix custom menu example

* fix fullstack/static generation examples

* Fix static generation launch

* A few small formatting fixes

* Fix a few doc tests

* implement LaunchConfig for serve configs

* fix fullstack launch with separate web and server launch methods

* fix check with all features

* dont expose inner core module

* clippy and check

* fix readme

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-10-10 16:00:58 -07:00
ASR-ASU 14a8902374 Use of async_std::task::sleep instead of tokio::time::sleep (#2939) 2024-09-07 08:44:25 -05:00
ASR-ASUandEvan Almloff 1dfa1b5e7f Use of async_std::task::sleep instead of tokio::time::sleep in examples (#2912)
* Use of async_std::task::sleep instead of tokio::time::sleep

* Make the clock example run on wasm

* Add control_focus and eval examples to Cargo.toml

* Use web-time on desktop; It just falls back to std on non-wasm platforms

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-09-03 15:16:37 +00:00
Evan AlmloffandJonathan Kelley c6a2e5b6c8 Use head elements and new manganis syntax in examples (#2688)
* use head elements and new manganis syntax in examples
* only enable desktop workspace example scraping during a dioxus release

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-07-25 21:58:00 +00:00
Miles Murgaw 672f4dfefc Re-Export Manganis & Update Examples (#2625)
* feat: export manganis

* revision: use manganis in examples

* fix: manganis dep

* fix: workspace root finder

* fix: manganis dep

* fix: ci
2024-07-23 10:29:37 -07:00
Jonathan Kelley bdbae8ccb0 Update examples, add css 2024-02-14 12:33:07 -08:00
Jonathan Kelley 6818bbe10a Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 2024-01-31 16:33:53 -08:00
Jonathan Kelley d092f7f19f Fix effect by using a set_inner 2024-01-24 12:21:14 -08:00
Jonathan Kelley 3ded0f5329 Make more examples cross-platform 2024-01-20 00:11:55 -08:00
Jonathan Kelley 85c7c22619 Make router work on web 2024-01-19 16:36:40 -08:00
Evan Almloff e65c5f0eb3 depreciate the render macro 2024-01-16 13:18:46 -06:00
Evan Almloff 407a82588a fix more examples 2024-01-16 12:28:21 -06:00
Evan Almloff db35a9b48c add platform specific functions for launching apps for workspaces 2024-01-16 11:45:02 -06:00
Evan Almloff 7e4d2debe0 implement launch builder for the desktop and web platforms 2024-01-16 08:42:16 -06:00
Jonathan Kelley 1dde044697 remove cx.render 2024-01-13 21:12:21 -08:00
Jonathan Kelley fae0b08e61 Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Jonathan Kelley 2e9737ef57 Clean up and document the protocol handler 2024-01-04 19:52:49 -08:00
Jonathan Kelley 38216fa272 Make the tokio runtime optional 2024-01-04 19:09:59 -08:00
Evan Almloff 14c852010b restore clock example 2023-08-08 13:31:38 -07:00
Evan Almloff 49001c59d3 add logging to clock example 2023-08-04 17:29:44 -07:00
Evan Almloff b3fbbba711 fix signals in futures 2023-08-04 17:25:40 -07:00
Evan Almloff a6f611eccf fix subscriptions in events 2023-08-04 17:23:57 -07:00
Evan Almloff cb4c46154d fix scope context 2023-08-04 14:12:59 -07:00
Evan Almloff b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Jonathan Kelley 24b6874e97 wip: use signal for clock 2023-01-04 12:59:35 -05:00
Jonathan Kelley ba20bc08b8 chore: clean up clock 2022-12-30 02:41:09 -05:00
Jonathan Kelley 7bc8150da7 fix desktop to poll without budget 2022-12-29 20:39:22 -05:00
Jonathan Kelley bd720e2268 fix: use futuresunordered instead of bespoke waker system 2022-12-29 19:53:43 -05:00