Commit graph

298 commits

Author SHA1 Message Date
Greg Johnston
af8889fab2
Merge pull request #262 from martinfrances107/uninlined_format_args
Minor: Clippy format!() all variables now inlined.
2023-01-07 12:42:56 -05:00
hakesson
f8c680d14d Integrations with workspace dependencies 2023-01-07 18:05:35 +01:00
Martin
1d480791a1 Removed clippy::single_match issue. 2023-01-07 16:08:17 +00:00
Martin
7acc309f66 Minor: Clippy format!() all variables now inlined. 2023-01-07 15:46:47 +00:00
Martin
9527de15ed Removed stray calls to .clone(). 2023-01-07 14:53:59 +00:00
benwis
677e4f2540 Leptos can now generate routes and provide them to the Axum router. More
testing and Actix version to come
2023-01-06 19:52:38 -08:00
Greg Johnston
dd35c31db1 Correct leptos_autoreload event variable name 2023-01-06 09:50:29 -05:00
Greg Johnston
a349707e1f
Merge pull request #230 from gbj/server-docs-and-debug
Improve docs and debugging tools for server functions (closes #225)
2023-01-03 21:51:10 -05:00
Ben Wishovich
05468d3307 You WILL change your doc comments 2023-01-03 17:33:22 -08:00
Greg Johnston
0da88f39cd Improve docs and debugging tools for server functions (closes #225) 2023-01-03 20:05:47 -05:00
Ben Wishovich
64e6eedb4d Add a redirect() function and some helpful utility functions for ResponseParts and ResponseOptions 2023-01-03 10:35:30 -08:00
Greg Johnston
d4b5b958f3 0.1.0-beta 2023-01-02 16:52:18 -05:00
Greg Johnston
755ceb7d75 0.1.0-beta 2023-01-02 16:35:00 -05:00
Ben Wishovich
442dc1e041 More changes to the examples 2022-12-30 16:17:17 -08:00
Ben Wishovich
c3fbf13ef3 No leading slashes, and a working todo-app-sqlite example. Improved config section detection 2022-12-30 11:01:01 -08:00
Ben Wishovich
1f1d675d17 Basic cargo-leptos test 2022-12-29 16:42:05 -08:00
Greg Johnston
f28da0770f Fix leptos_config version 2022-12-29 12:13:45 -05:00
Greg Johnston
70f6297277 Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into jquesada2016-leptos_dom_v2 2022-12-29 09:32:12 -05:00
Greg Johnston
b86e7f33dc Bump versions for new cargo-leptos compatible integrations 2022-12-29 08:04:22 -05:00
Greg Johnston
4b1fce4c9c Revert "Merge branch 'main' into pr/119"
This reverts commit 63f680f37d, reversing
changes made to 50ba796f49.
2022-12-28 15:06:46 -05:00
Greg Johnston
63f680f37d Merge branch 'main' into pr/119 2022-12-28 14:21:54 -05:00
Greg Johnston
e3c4e9f6a4 chores: fix failing tests, update docs, suppress warnings 2022-12-28 11:33:26 -05:00
Ben Wishovich
5729655657 Merge remote-tracking branch 'origin/cargo-leptos-beta' into cargo-leptos-beta 2022-12-27 13:02:13 -08:00
Ben Wishovich
f2ed521de8 Missing .is_ok() and more examples changes 2022-12-27 13:01:40 -08:00
Ben Wishovich
f8f0d9fae0
Merge branch 'main' into cargo-leptos-beta 2022-12-27 12:49:17 -08:00
Ben Wishovich
be94c1b846 Update examples to camelcase and add missing fields for feature flags. Should be working with cargo-leptos beta again 2022-12-27 10:58:05 -08:00
Greg Johnston
5540bb8e8c Bump version to 0.1.0-alpha 2022-12-25 22:58:07 -05:00
Ben Wishovich
ff0d058a3e leptos_watch is not a bool 2022-12-24 10:30:29 -08:00
Greg Johnston
2499755a9e Merge main integrations in 2022-12-23 14:22:49 -05:00
Greg Johnston
f54ffab888 Update integration versions 2022-12-23 12:43:18 -05:00
Ben Wishovich
fbacfc787c Add missing port to Websockets code 2022-12-22 20:56:47 -08:00
Ben Wishovich
ac489e7523 Who let me near the computer before coffee? 2022-12-22 08:42:16 -08:00
Ben Wishovich
0909f60e55 Remove redundant env check and add path option to get_configuration() 2022-12-22 08:39:04 -08:00
Ben Wishovich
5ec76682a7 Fix Websockets Code and re-enable optimizations in tailwind. Remove watch as a param 2022-12-21 23:54:48 -08:00
Ben Wishovich
428999fd14 Updated all the examples to use the new leptos_options, and make cargo-leptos porting easy. Refactored the Tailwind example to bring it closer to leptos norms 2022-12-21 23:08:39 -08:00
Ben Wishovich
0d314224c9 Make tests pass, and do small tweaks/cleanup 2022-12-21 11:51:29 -08:00
Ben Wishovich
b4897f7a61 Fix dumb typos and add an option for an id to Stylesheet 2022-12-21 10:15:42 -08:00
Ben Wishovich
f2e9d6f4c3 More small tweaks to support config 2022-12-20 17:56:38 -08:00
Ben Wishovich
ee379bb405 Add errors to leptos_config and more changes to support beta 2022-12-20 12:14:42 -08:00
Ben Wishovich
6fa15a5584 Cleanup of testing files 2022-12-16 17:35:32 -08:00
Ben Wishovich
2d289dd2b6 Actix version, but the issue is the same 2022-12-16 13:18:35 -08:00
Ben Wishovich
2658e158df HERE BE DRAGONS 2022-12-15 22:31:47 -08:00
Ben Wishovich
21274c08bf Hmmmm 2022-12-15 22:07:11 -08:00
Ben Wishovich
2fb3515e62 Cursed, it is 2022-12-15 16:03:07 -08:00
Ben Wishovich
7a8b08d149 Broken in a new way 2022-12-15 15:57:41 -08:00
Ben Wishovich
0bc29b5f26 Closer maybe? 2022-12-15 14:12:54 -08:00
Ben Wishovich
f9bda65dbe WIP impl of SSR Header/Status setting 2022-12-15 13:14:02 -08:00
Ben Wishovich
90849cc6e3 Add working example of Actix/Axum Header and Status Setting 2022-12-14 10:55:05 -08:00
Greg Johnston
e1836af6bd Fix .wasm location in integration 2022-12-14 09:06:10 -05:00
Greg Johnston
f6acecd3ad Fix Wasm import URL in integrations 2022-12-14 07:12:36 -05:00
Ben Wishovich
9f97497e48 Working impl of Request access and Response cookies for Axum 2022-12-13 22:07:15 -08:00
Ben Wishovich
70f2b3b4d3 More fiddling, still no dice 2022-12-13 16:05:31 -08:00
Ben Wishovich
181a15cf66 WIP axum acces to request 2022-12-13 15:23:47 -08:00
Greg Johnston
fcae17eab7 Streamline streaming SSR 2022-12-12 09:48:45 -05:00
Greg Johnston
c4cc3e944b Merge in changes from main 2022-12-12 09:26:46 -05:00
hakesson
bb282189c3 Add preload of js and wasm 2022-12-08 08:11:15 +01:00
hakesson
2694d2e93c Add missing init param 2022-12-08 08:10:56 +01:00
Greg Johnston
da5034da33 Bump versions after WASM-less fix 2022-12-05 16:17:29 -05:00
Greg Johnston
0c509970b5 Fix ability of server functions to work without WASM 2022-12-05 16:17:15 -05:00
Greg Johnston
d894c4dcf9 Merge branch 'main' of https://github.com/gbj/leptos 2022-12-05 16:10:33 -05:00
Ben Wishovich
0a9da8d55e Add some doc comments, and change the behavior of the reload_port 2022-12-04 17:55:51 -08:00
Ben Wishovich
52ad546710 Update rest of the examples and make the tests pass 2022-12-04 17:25:03 -08:00
Ben Wishovich
f88d2fa56a Add socket_address option to configure the ip address and port to serve 2022-12-04 15:50:29 -08:00
Ben Wishovich
f63cb02277 Commit WIP version of common config struct that writes a KDL file for cargo-leptos 2022-12-04 14:50:36 -08:00
Greg Johnston
4b363f9b33 0.0.3 for axum 0.6 compatibility 2022-12-03 22:12:17 -05:00
Ben Wishovich
7b376b6d3a Draft Builder Pattern for Render Options to add Leptos Autorender Code 2022-12-02 16:33:59 -08:00
Ben Wishovich
8fbb4abc76 Switch integrations to pass in a full path and name v the name to enable different pkg structures 2022-12-02 12:01:51 -08:00
Ben Wishovich
f457d8f319 Fix doc test 2022-12-01 12:56:27 -08:00
Greg Johnston
58abe55d7b
Merge branch 'main' into axum-0.6 2022-12-01 13:10:06 -05:00
Ben Wishovich
79faad4aac Missed another couple imports 2022-11-30 22:41:31 -08:00
IcosaHedron
cedc68c341
remove debug string from axum integration 2022-11-30 23:20:14 -05:00
indrazar
8ec772a129 update functions for Windows file directories
- leptos_macro/src/server.rs server_macro_impl
 - integrations/axum/src/lib.rs handle_server_fns
2022-11-30 23:01:59 -05:00
Ben Wishovich
2edc5b3b8b Remove extra print 2022-11-30 17:31:14 -08:00
Ben Wishovich
0f8930b6f2 Update Axum examples to latest 0.6 release and streamline things 2022-11-30 15:02:22 -08:00
Greg Johnston
2348bbc5cc Merge branch 'main' of https://github.com/gbj/leptos 2022-11-28 08:42:23 -05:00
Greg Johnston
ee41ea8b1d Update axum integration 2022-11-28 08:42:19 -05:00
Greg Johnston
a109e3d51c Remove my unnecessary nested closure 2022-11-28 07:39:17 -05:00
Ben Wishovich
fe5c9c6f0d Fix accept heading behavior in Axum to match Actix 2022-11-27 18:25:43 -08:00
Ben Wishovich
6c22c47bbf Cleanup, it now works except for when the server FN response is () or empty 2022-11-27 17:17:34 -08:00
Ben Wishovich
507191e1a4 Mostly working version of axum with server functions 2022-11-27 16:55:38 -08:00
Ben Wishovich
d5cd2b814e Make cargo check happy 2022-11-25 17:05:27 -08:00
Greg Johnston
22668f7999 Merge branch 'msgpack-encoding' of https://github.com/benwis/leptos into pr/107 2022-11-25 14:52:19 -05:00
Greg Johnston
f7b1e732c7 Update integrations 2022-11-25 14:52:14 -05:00
Greg Johnston
93f68e022f
Merge branch 'main' into msgpack-encoding 2022-11-25 14:35:52 -05:00
Greg Johnston
55f70367b5 Clear warnings in library 2022-11-25 14:32:25 -05:00
Greg Johnston
5a863ec411 Actix implementation 2022-11-25 14:28:03 -05:00
Greg Johnston
3482f456f8 Add metadata field for integrations 2022-11-22 19:45:38 -05:00
Greg Johnston
6c521226e3 Update other packages to handle new thread-local reactives 2022-11-21 21:46:07 -05:00
Greg Johnston
1f1218bbb7 Fix broken links and other issues in docs 2022-11-21 09:25:09 -05:00
Greg Johnston
9322cc991b Provide whole Request<Body> to server functions in Axum 2022-11-21 07:37:58 -05:00
Greg Johnston
8b3a8489b6 handle_server_fns for Axum 2022-11-20 22:13:17 -05:00
Greg Johnston
525a31bf3d Working render_app_to_stream for Axum 2022-11-20 18:28:47 -05:00
Greg Johnston
f773f52abc Initial work on Axum integration 2022-11-20 17:41:04 -05:00
Greg Johnston
257c07325e Version number to 0.0.1 2022-11-20 16:08:02 -05:00
Greg Johnston
01a1226c53 TODO handling the runtime leak in general 2022-11-20 16:06:16 -05:00
Greg Johnston
5208616178 Consolidate functions 2022-11-20 16:05:07 -05:00
Greg Johnston
4e8c1758c3 render_app_to_stream helper in leptos_actix 2022-11-20 16:03:08 -05:00
Greg Johnston
eff42a196f actix-web integration with builtin server function handler route 2022-11-20 15:25:45 -05:00