Commit Graph

106 Commits

Author SHA1 Message Date
Greg Johnston e465867b30 Fixes issue #110 and improves `#[component]` docs overall 2022-11-24 07:48:57 -05:00
Greg Johnston 19d7b8434b
Merge branch 'main' into typed-event-handlers 2022-11-23 19:03:52 -05:00
Greg Johnston 6949750668 Fixing tests and examples 2022-11-23 18:29:20 -05:00
Greg Johnston 3a65ad9a51 Fix type inference on server 2022-11-23 16:54:41 -05:00
Greg Johnston 7a10ffd150 A couple small DX improvements re: we, and making sure it builds /tests properly 2022-11-23 15:12:21 -05:00
safx f3947abdc2
Merge branch 'main' into typed-event-handlers 2022-11-23 22:51:31 +09:00
Safx 701a12ab46 Add typed event handlers 2022-11-23 22:50:26 +09:00
Greg Johnston fe830e524c Add docs for component macro (fixes issues #106 and #111) 2022-11-23 07:58:01 -05:00
Greg Johnston 6ddef3018f Better errors on renderer bugs (fixes issue #112) 2022-11-23 07:37:47 -05:00
Greg Johnston 4f205b5368 `0.0.18` 2022-11-22 07:32:12 -05:00
Greg Johnston 10d19f7fb3 `leptos_macro` tests 2022-11-21 22:27:25 -05:00
Greg Johnston 20634e38a1 Refer to full type, in case it hasn't been imported 2022-11-20 15:04:05 -05:00
Greg Johnston 6ddc720227 Allow accessing `Scope` from server functions, which can be used to inject server-only dependencies like `HttpRequest` 2022-11-19 14:44:35 -05:00
Greg Johnston 63d06211b9 Fix which `Span` this is using 2022-11-18 16:46:54 -05:00
Greg Johnston d654a13541 Clear some macro warnings 2022-11-18 16:39:17 -05:00
Greg Johnston ad880efc0d `leptos 0.0.17` and `leptos_router 0.0.3` 2022-11-18 15:45:04 -05:00
Greg Johnston ccb5aeac6d Resolving lots of sibling order issues 2022-11-15 12:52:50 -05:00
Greg Johnston 4ba9844852 Rendering work 2022-11-15 12:11:35 -05:00
Greg Johnston 780c6d2e64 Improvements to the `view` macro to handle a wider variety of positions/relationships between child nodes 2022-11-14 21:33:49 -05:00
Greg Johnston 22eaa92355 Use `serde_urlencoded` for server functions (making it easier to use normal text inputs for forms) 2022-11-14 08:18:01 -05:00
Greg Johnston f8de0fff81 Allow prefixes for server function routes 2022-11-14 07:21:05 -05:00
Greg Johnston d9f07111e0 Address issue #69 by adding caller filename to server fn URLs 2022-11-13 20:42:56 -05:00
Greg Johnston d4da7e0c25 Allow returning `<template>` from `view` 2022-11-13 15:58:49 -05:00
Greg Johnston 05f635f4ac Don't require specific subminor versions in dev-dependencies 2022-11-13 09:04:25 -05:00
Greg Johnston ba3156c878 0.0.16 2022-11-13 09:02:04 -05:00
Greg Johnston 48e934cd40 Remove references to dash-pattern in docs 2022-11-12 20:13:12 -05:00
Greg Johnston 8d67aa1ff0 Fix issues when rendering adjacent blocks/text 2022-11-12 20:03:16 -05:00
Greg Johnston 12fc1ca7a1 Clear warnings 2022-11-12 19:30:47 -05:00
Greg Johnston c7826e0bc9 Continuing work 2022-11-12 07:47:57 -05:00
Greg Johnston 281b303c80 Initial work to upgrade to 0.9 2022-11-12 07:30:37 -05:00
Greg Johnston 92f4ea5888 Fixes issue #60 2022-11-08 07:15:26 -05:00
Greg Johnston 6b82a37dea
Merge pull request #58 from gbj/fix-component-and-element-order
Fix the out-of-order component/element rendering in #53.
2022-11-06 22:22:47 -05:00
Greg Johnston 33fdc3eae1 Fix `leptos` important for doctests with `on:` 2022-11-06 20:45:50 -05:00
Greg Johnston 10e01bf989 Remove logs I reintroduced 2022-11-06 20:43:05 -05:00
Greg Johnston 49820ccba6 This should fix the out-of-order component/element rendering in #53. 2022-11-06 20:37:09 -05:00
Greg Johnston 36be004ef2 Avoid manual delegation for all the DOM events that don't bubble by default. (This is technically too conservative, as one or two of these only don't bubble on certain elements, but it's simpler than passing in the element name and only a very small deopt in those cases.) 2022-11-06 20:00:35 -05:00
Greg Johnston 296e27cd4a Add notes on types that can be accepted as attributes. 2022-11-06 06:54:20 -05:00
Greg Johnston e9c1799a11 0.0.13 2022-11-05 22:24:59 -04:00
Greg Johnston 42cd3f1d69 Make sure server-only stuff appears in docs 2022-11-05 22:14:19 -04:00
Greg Johnston 6c04e91088 Fix broken class: and prop: 2022-11-05 19:11:02 -04:00
Greg Johnston a5712d3e17 0.0.12 2022-11-03 20:00:26 -04:00
Greg Johnston 47fad9a042 Allow on-, class-, prop-, and attr- as equivalent to on:, class:, prop:, and attr: to get around a syn-rsx parsing limitation on mixing colons and dashes in an attribute name 2022-11-03 19:57:27 -04:00
Greg Johnston abc1c07053 Work on fixing tests 2022-11-03 08:08:03 -04:00
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 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 f411ece51a
Merge branch 'main' into server-rpc 2022-10-29 20:31:34 -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 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