Commit Graph
86 Commits
Author SHA1 Message Date
Evan Almloff ffa36a67c3 Forward cli serve settings and make it easier to provide platform config to fullstack (#2521)
* assert that launch never returns for better compiler errors

* fix static generation launch function

* fix web renderer

* pass context providers into server functions

* add an example for FromContext

* clean up DioxusRouterExt

* fix server function context

* fix fullstack desktop example

* forward CLI serve settings to fullstack

* re-export serve config at the root of fullstack

* forward env directly instead of using a guard

* just set the port in the CLI for fullstack playwright tests

* fix fullstack dioxus-cli-config feature

* fix launch server merge conflicts

* fix fullstack launch context

* run web playwright tests on 9999 to avoid port conflicts with other local servers

* fix playwright tests
2024-06-28 14:40:41 -07:00
Evan Almloff b0caf442ab Make it easier to provide context to fullstack (#2515)
* pass context providers into server functions

* add an example for FromContext

* clean up DioxusRouterExt

* fix server function context

* fix fullstack desktop example

* fix axum auth example

* fix fullstack context type

* fix context providers path
2024-06-18 20:38:06 -05:00
Evan Almloff 245003a5d4 Create a Static Site Generation platform; Deduplicate hot reloading code (#2226)
* create static site generation helpers in the router crate

* work on integrating static site generation into fullstack

* move ssg into a separate crate

* integrate ssg with the launch builder

* simplify ssg example

* fix static_routes for child routes

* move CLI hot reloading websocket code into dioxus-hot-reload

* fix some unused imports

* use the same hot reloading websocket code for fullstack

* fix fullstack hot reloading

* move cli hot reloading logic into the hot reload crate

* ssg example working with dx serve

* add more examples

* fix clippy

* fix formatting

* fix hot reload doctest imports

* fix axum imports

* don't run server doc tests

* Fix hot reload websocket doc examples
2024-05-22 07:24:15 -05:00
Chungand=Chung Wong c9ab09b348 fix path of set_server_url (#2314)
Co-authored-by: =Chung Wong <=wch705@gmail.com>
2024-04-16 09:18:50 -05:00
Jonathan Kelley 537f064001 Remove some old docs, cleanup some readmes 2024-03-27 17:28:30 -07:00
Evan Almloff e012d816eb fix streaming server functions, and precompress assets in release mode (#2121) 2024-03-20 23:05:50 -07:00
Jonathan Kelley ad7a350d2e fix hotreloading issues in the CLI 2024-03-12 13:39:42 -07:00
Jonathan Kelley ebdb98bff2 Make clippy happy, pass tests 2024-02-18 21:08:48 -08:00
Evan Almloff 14b4af4bbc fix cargo check all features except the router 2024-02-16 16:22:13 -06:00
Evan Almloff 2952578a2e add a streaming example 2024-02-16 16:04:12 -06:00
Evan Almloff 194d90e66f fix a few CLI errors 2024-02-16 12:39:36 -06:00
Jonathan Kelley 64a321eacc Get more axum stuff upgraded to 0.7 2024-02-15 18:59:57 -08:00
Jonathan Kelley 214a907adc Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Evan Almloff b4d17abfc1 document all features 2024-02-09 12:15:59 -06:00
Evan Almloff b4f2a925c7 fix fullstack playwright test features 2024-02-05 15:04:49 -06:00
Evan Almloff b63c14fab8 change config flags from ssr to server to match the features 2024-02-05 14:20:15 -06:00
Jonathan Kelley 7d78e5e250 Fix warnings and compile errors 2024-02-03 13:10:16 -08:00
Evan Almloff e767e49d5e switch to server instead of ssr everywhere 2024-02-02 19:32:18 -06:00
Evan Almloff 1c4e1d84ea serialize data in the server and deserialize data in the client 2024-02-02 17:23:00 -06:00
Jonathan Kelley 7c2947a131 Implement effects using reactivecontext 2024-02-01 13:21:52 -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 a72c035de4 Fix cargo check on examples 2024-01-30 17:59:57 -08:00
Jonathan Kelley 728a26a2cc Fix borrowmut error in nested spawns 2024-01-19 22:01:21 -08:00
Jonathan Kelley 85c7c22619 Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley 391fe15db8 Fix context trait params 2024-01-18 19:49:20 -08:00
Jonathan Kelley 6ed3aafb2f Get cargo check --all working 2024-01-18 19:27:55 -08:00
Jonathan Kelley d8af9b7ed1 Fix compile checks on numerous packages using --all --all-features 2024-01-18 16:27:43 -08:00
Evan Almloff 89b1e56fc3 fix other fullstack adapters 2024-01-18 11:39:51 -06:00
Evan Almloff ae3e167cfe make fullstack hello world compile 2024-01-17 16:58:03 -06:00
Evan Almloff 0c532c5e0c work on restoring fullstack 2024-01-17 14:02:49 -06:00
Evan Almloff e65c5f0eb3 depreciate the render macro 2024-01-16 13:18:46 -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
Evan Almloff b180b501f7 Merge branch 'master' into fullstack-binary-size-compile-times 2024-01-08 13:18:05 -06:00
Evan Almloff b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Jonathan Kelley 1a8bf13ff5 Merge branch 'master' into resilient-hydration 2024-01-04 10:28:41 -08:00
Evan Almloff 8b125231f0 make backend and frontend builds happen in parallel 2023-12-21 18:04:35 -06:00
Evan Almloff 37e9876a70 bump salvo 2023-12-20 15:18:20 -06:00
Evan Almloff 2d7d721fd6 make hydration more resilient using ids to hydrate 2023-12-19 16:02:07 -06:00
Evan Almloff 23090cb56b optimize fullstack compile times 2023-11-21 14:46:47 -06:00
Evan Almloff b9554fd744 add a noop evaluator to the ssr renderer 2023-11-05 08:32:39 -06:00
Leonard c866ae602b Add system for creating component attributes + new #[component] attribute (#1448)
* Add `#[component]` attribute + system for creating component attributes + other stuff

* Delete inlineprops.rs

* Update inline_props.rs

* Cargo fmt

* Fix clippy warnings and paths in props/mods.rs

* Include where clause in `#[inline_props]` output

* Allow Clippy type complexity in `LinkProps`

* Allow the type complexity lint for the entire link.rs file

* Remove snake_case -> PascalCase converter, but rather enforce PascalCase

Also:
- Put the second function inside the main one instead of besides it.
- Simplify

* Simplify type check lints so they don't return false positives

They will not always work, but they won't return any false positives, like for aliases. This is likely going to be replaced by a more polished Clippy-backed linting system.

* Fix #583

* Cargo fmt

* Add docs for `deserialize()` and remove useless comment

* Add `#[component]` to prelude

* Merge branch 'master' of https://github.com/tigerros/dioxus

* #[inline_props] is no more. Except in the docs folder, but that's going to be removed

* Remove docs folder

* Remove docs from workspace

* Resolve `DeserializerOutput` conversation
2023-09-15 09:13:36 -05:00
Evan Almloff bdaa284c14 fix formatting 2023-09-12 09:12:32 -05:00
Evan Almloff 6e74d08bf5 remove log from a few examples 2023-09-11 19:42:08 -05:00
Evan Almloff c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff cabeacfcee fix formatting 2023-07-28 13:04:56 -07:00
Evan Almloff 9f891f9478 switch to launch builder instead of macro for fullstack 2023-07-28 12:58:34 -07:00
Jonathan Kelley 5e3451a6f2 Quiet cargo warnings 2023-07-26 21:02:39 -07:00
Evan Almloff c19420cb29 fix root component suspense 2023-07-25 12:51:12 -07:00
ealmloff d637ef187c fix all broken examples (#1248) 2023-07-25 14:30:08 -05:00