Commit Graph

332 Commits

Author SHA1 Message Date
Greg Johnston 8ea73565de Shift from mutually-exclusive features to a more-gracefully-degrading system of features ordered by preference, clean up some warnings, and use cfg_if for improved readability 2022-11-02 20:41:00 -04:00
Greg Johnston 19db83c933 Rename ServerForm to ActionForm 2022-11-02 07:49:40 -04:00
Greg Johnston c034e84b1d Direct server fn => ServerForm interface per #43 2022-11-01 22:57:55 -04:00
Greg Johnston 292c3d8bb1 Support for POST in client-side forms 2022-10-30 20:37:50 -04:00
Greg Johnston ae0fad5465 Abstract out ActixIntegration into a broader ServerIntegration and make it easier to use 2022-10-30 19:41:59 -04:00
Greg Johnston 15f3d66ef0 Merge branch 'main' of https://github.com/gbj/leptos 2022-10-30 18:55:21 -04:00
Greg Johnston 1041d04d9e Input and URL on actions to allow forms with optimistic UI 2022-10-30 18:55:16 -04:00
Greg Johnston beaeb769d6
Update TODO.md 2022-10-29 20:35:57 -04:00
Greg Johnston 7168f24dcb Clean up some version mismatches from merging 2022-10-29 20:34:32 -04:00
Greg Johnston b3217c6523
Merge pull request #40 from gbj/server-rpc
Merge work on server functions
2022-10-29 20:31:46 -04:00
Greg Johnston f411ece51a
Merge branch 'main' into server-rpc 2022-10-29 20:31:34 -04:00
Greg Johnston 3fe20cf307 Add some initial docs 2022-10-29 20:29:39 -04:00
Greg Johnston 9f884471a8 Rename create_async_action to create_action 2022-10-29 20:12:38 -04:00
Greg Johnston 57ddfbf2ef Correctly handle serialization using Serializable and multiple types of arguments for input & output 2022-10-29 20:09:05 -04:00
Greg Johnston 4b845f8125 Library-level compile error when invalid combination of mutually-exclusive feature flags is set 2022-10-29 17:19:07 -04:00
Greg Johnston dbc7fb13fc Fix feature flags here 2022-10-29 17:18:50 -04:00
Greg Johnston 4c2dc0e5c7 Updates todos for remaining work 2022-10-28 20:58:44 -04:00
Greg Johnston c3afa0b08d Reduce types that need to be derived 2022-10-28 20:58:38 -04:00
Greg Johnston 572187399f Okay, here's the magic: add a #[server] macro and remove all the nasty boilerplate 2022-10-28 17:35:21 -04:00
Greg Johnston 3b5224295d Extract server function stuff into a `leptos_server` library 2022-10-28 15:41:40 -04:00
Greg Johnston 33688d2463 Remove unnecessary logging 2022-10-28 15:10:09 -04:00
Greg Johnston 869e17736b Create a trait to handle the server side of server functions 2022-10-28 15:03:26 -04:00
Greg Johnston 38a9c97a80
Add note about native GUI/GTK example in README 2022-10-28 12:14:10 -04:00
Greg Johnston d119d0659c
Add js-framework-benchmark official results 2022-10-27 16:12:37 -04:00
Greg Johnston b7e40b9a30 Separate two forms of communication into separate components to show difference 2022-10-27 08:00:26 -04:00
Greg Johnston f8c450003d
Merge pull request #38 from gbj/gtk-example
Simple GTK counter example
2022-10-26 22:30:21 -04:00
Greg Johnston b8f1d213be Add conversions between signals and async Streams 2022-10-26 22:29:24 -04:00
Greg Johnston 6a3ff03e9d Simple GTK counter example 2022-10-26 22:28:30 -04:00
Greg Johnston 41594af898 Examples with both route actions and with SSE to coordinate in a "multiplayer" way 2022-10-26 20:40:06 -04:00
Greg Johnston 3a2d5ef39c Add TODOs here 2022-10-25 15:31:54 -04:00
Greg Johnston 06c6d3f3e4 Work on manual versions of APIs 2022-10-25 15:28:10 -04:00
Greg Johnston afdf6343b9 Move action/server APIs into their own file 2022-10-25 14:28:06 -04:00
Greg Johnston 5c36229b97 create_route_action API 2022-10-25 14:17:59 -04:00
Greg Johnston fd847633a9 This is a manual implementation of "server functions." I'm going to use this to build out the RPC protocol that will allow us to do proper, fine-grained data loading and mutations. 2022-10-24 20:09:18 -04:00
Greg Johnston 2fbe08f128 0.0.11 2022-10-24 19:30:13 -04:00
Greg Johnston e59ec14dec
Remove `Clone` bounds on signals and make previous value in `Memo` fn `Option<&T>` instead of `Option<T>`
Merge pull request #37 from danheuck/remove-clone-bounds
2022-10-24 19:18:40 -04:00
Dan Heuckeroth 6f0d58bc7c Add docs to Resource::read() & Resource::with() 2022-10-24 19:02:34 -04:00
Greg Johnston a9e80bf113 Saves us one clone in map_keyed 2022-10-24 16:32:13 -04:00
Greg Johnston 9db73dfd26 Fix todomvc-ssr example 2022-10-24 09:27:28 -04:00
Greg Johnston a4963c5201 Derive same traits on RwSignal that are derived on ReadSignal 2022-10-24 07:51:11 -04:00
Dan Heuckeroth 1f34d667fa Remove unnecessary Clone bounds 2022-10-23 21:24:31 -04:00
Dan Heuckeroth 523569cd94 Fix bug in "counters" examples 2022-10-23 21:24:31 -04:00
Greg Johnston 88464fefe9
Merge pull request #35 from danheuck/unserializable-resources
Unserializable resources
2022-10-23 21:23:36 -04:00
Greg Johnston 7dbd259b3f Add Tera benchmarks, and list SSR benchmark results in README 2022-10-23 20:57:50 -04:00
Dan Heuckeroth fa79bf8bcc Update documentation 2022-10-23 20:32:05 -04:00
Dan Heuckeroth c3c6b3dfc1 Change "client" resources to "local" 2022-10-23 20:31:52 -04:00
Greg Johnston 1d48da937b Clarify TLS/HTTPS in HackerNews example server 2022-10-23 13:28:07 -04:00
Dan Heuckeroth e80f04a5e8 Fix hackernews-app example 2022-10-22 23:13:31 -04:00
Dan Heuckeroth 39aee60d6b Allow unserializable "client" resources 2022-10-22 23:13:31 -04:00
Greg Johnston 41268e3158 Merge branch 'main' of https://github.com/gbj/leptos 2022-10-22 21:40:46 -04:00