Evan Almloff
b63c14fab8
change config flags from ssr to server to match the features
2024-02-05 14:20:15 -06:00
Jonathan Kelley
8f07d881a6
Switch todo!() to unreachable!/unimplemented! where it matters
2024-01-31 16:26:20 -08:00
Evan Almloff
8eda785ace
try to pull the default out directory for the fullstack server from the config
2024-01-31 16:50:54 -06:00
Evan Almloff
fb01a276b0
fix axum build in fullstack
2024-01-31 15:25:19 -06:00
Evan Almloff
89b1e56fc3
fix other fullstack adapters
2024-01-18 11:39:51 -06:00
Evan Almloff
a323962a22
fix the fullstack platform with the new launch API
2024-01-18 10:19:39 -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
e004c1722f
set the required environment variable for manganis support
2024-01-10 11:19:51 -06:00
Evan Almloff
b1de7d850c
Merge branch 'master' into intigrate-collect-assets
2024-01-04 18:44:29 -06:00
Evan Almloff
e2646e655e
fix hydration after suspense
2023-12-27 10:17:18 -06:00
Evan Almloff
66e2c02bf7
Merge branch 'master' into intigrate-collect-assets
2023-12-08 08:49:17 -06:00
Evan Almloff
df57cc7d9c
fix disconnects that happen while a server function is being resolved
2023-12-07 08:29:14 -06:00
Ben Sully and Evan Almloff
04fd2487b3
feat(fullstack): add render_handler_with_state ( #1687 )
...
* feat(fullstack): add `render_handler_with_state`
When using server functions, the current pattern to access state such as
database connections is to use `register_server_fns_with_handler` on an
Axum router and 'inject' the state into the context provided to the
server function. However, this only affects function calls which go via
the Axum router; SSR renders bypass this, and therefore don't have
access to any state.
This commit adds an alternative `render_handler` which accepts some
additional state. That state is injected into the context in a
similar manner to `register_server_fns_with_handler`. SSR renders can
then proceed to run in the same way as HTTP calls.
* Change state object to 'inject_state' callback
Also add a compiling doctest example.
* remove the explicit for<'a> lifetime
* remove unused assets_path from render_handler_with_context example
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com >
2023-12-05 14:10:18 -06:00
Evan Almloff
426a342700
add logs when the desktop or fullstack application is collecting assets
2023-10-10 10:26:16 -05:00
Leonard
07613c806b
Fix #1367 ( #1471 )
...
* Bump cargo_toml to 1.16.0
* Format
2023-09-18 18:51:04 -05:00
Evan Almloff
f976e08f71
Merge branch 'master' into intigrate-collect-assets
2023-09-17 19:40:14 -05:00
Jonathan Kelley
a7551d1e63
Merge branch 'master' into log-server-errors
2023-09-16 12:00:54 -07:00
Evan Almloff
c55c17cb81
switch to tracing for logging
2023-09-06 17:47:33 -05:00
gmorenz
2a32271fa0
Set response headers from response, not request, parts ( #1328 )
2023-08-08 21:04:15 -05:00
Evan Almloff
65102b70c7
return more useful messages when a server function errors
2023-08-07 11:09:51 -07:00
Jonathan Kelley
e1dcc335c0
Merge pull request #1263 from Demonthos/builder-launch-fullstack
...
Switch to launch builder instead of macro for fullstack
2023-07-31 11:44:36 -07:00
Evan Almloff
fcb993a2cb
don't spawn a new runtime every request
2023-07-28 13:14:26 -07:00
Evan Almloff
9f891f9478
switch to launch builder instead of macro for fullstack
2023-07-28 12:58:34 -07:00
Evan Almloff
831bcfd8e7
Fix warp fullstack adapter
2023-07-10 19:14:13 -05:00
Evan Almloff
0e83d48c04
Fix salvo fullstack builds
2023-07-10 18:48:55 -05:00
Evan Almloff
d94316f7dd
fix formatting
2023-07-08 11:03:16 -07:00
Evan Almloff
6a3198ef85
cargo fix axum
2023-07-08 10:58:04 -07:00
Evan Almloff
1e5c57dd16
cargo fix
2023-07-08 10:57:44 -07:00
Evan Almloff
14883bb711
add server function middleware
2023-07-07 18:25:45 -07:00
Evan Almloff
4f6e6a7c0d
add extractors to server-fn
2023-07-06 17:54:05 -07:00
Evan Almloff
f53dd5c181
remove logging
2023-07-04 11:54:41 -07:00
Evan Almloff
e7c3047aa1
apply headers to axum adapter
2023-07-04 09:19:22 -07:00
Evan Almloff
6569827b97
remove debug handler
2023-06-26 12:54:04 -07:00
Evan Almloff
a165e13564
add cache headers
2023-06-24 13:21:12 -07:00
Evan Almloff
99674fcf94
create server launch macro
2023-06-23 18:23:03 -07:00
Evan Almloff
1704ee0068
router/fullstack/ssr intigration
2023-06-22 16:51:48 -07:00
Evan Almloff
da44b7a3f2
fix salvo server function handler example
2023-06-19 16:11:59 -05:00
Evan Almloff
158852e5a0
make regestering server functions optional
2023-06-19 16:08:46 -05:00
Evan Almloff
4a8542c28e
fix response spelling
2023-05-11 18:40:02 -05:00
Evan Almloff
ab1de6e53f
finish server function docs
2023-05-04 09:57:11 -05:00
Evan Almloff
515aee6c3c
reorganize the fullstack docs
2023-05-02 17:43:07 -05:00
Evan Almloff
fb6757484d
pull out serve static assets methods
2023-05-02 11:05:21 -05:00
Evan Almloff
e6c540320e
rename package to dioxus-fullstack
2023-05-02 10:15:34 -05:00