24c5617230
feat(dev-mode): Leptos code with component properties, instance calls and Code Connect ( #240 )
...
* feat(dev-mode): Leptos code for a layer tree (#223 )
inspect.code takes language: leptos, and the Inspect panel lists it: the
HTML markup inside a #[component] fn's view!, with the stylesheet after it
as for React. Text is Rust string literals (line breaks as <br/>) so the
macro parses it; px or rem like the other web languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* feat(dev-mode): Leptos components take their properties, instances are calls (#223 )
Leptos joins React in component code: a component or set is a #[component]
fn with #[prop] defaults (variant enums with as_str, bool, String, ViewFn
for instance swaps, Option<ViewFn> for slots), layers bound to booleans
show through .then, variants differ by data-* CSS rules, and instances
(also inside layer trees) are calls passing the values they change. Names
are snake_case, Rust keywords get a trailing _. Code Connect takes leptos
too (use <path>::<Name>; view! markup). Markup now takes the language
instead of jsx/leptos flags; React and Leptos share the stylesheet pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
---------
Co-authored-by: Justin John <babyjjbabyjj549@gmail.com >
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
Co-authored-by: bflatastic <bombayapirat@gmail.com >
2026-10-14 10:32:14 +07:00
..
2026-10-14 10:31:59 +07:00
2026-10-13 03:01:19 +07:00
2026-10-13 00:29:41 +07:00
2026-10-10 23:02:50 +07:00
2026-10-11 17:53:11 +07:00
2026-10-13 13:36:54 +07:00
2026-10-11 17:53:11 +07:00
2026-10-10 23:29:17 +07:00
2026-10-10 23:29:17 +07:00
2026-10-10 23:29:17 +07:00
2026-10-11 10:04:25 +07:00
2026-10-10 16:30:18 +07:00
2026-10-10 16:30:18 +07:00
2026-10-12 19:42:28 +07:00
2026-10-12 06:15:00 +07:00
2026-10-14 09:30:16 +07:00
2026-10-10 17:20:07 +07:00
2026-10-11 10:04:25 +07:00
2026-10-11 14:25:25 +07:00
2026-10-12 02:30:25 +07:00
2026-10-12 02:30:25 +07:00
2026-10-12 02:30:25 +07:00
2026-10-11 13:43:48 +07:00
2026-10-11 14:25:25 +07:00
2026-10-14 10:31:59 +07:00
2026-10-14 10:32:14 +07:00
2026-10-14 10:32:14 +07:00
2026-10-14 10:32:14 +07:00
2026-10-11 09:29:30 +07:00
2026-10-12 17:54:18 +07:00
2026-10-11 03:19:24 +07:00
2026-10-11 03:19:24 +07:00
2026-10-11 03:19:24 +07:00
2026-10-14 10:32:14 +07:00
2026-10-14 10:32:14 +07:00
2026-10-12 00:57:43 +07:00
2026-10-12 09:32:42 +07:00
2026-10-12 00:57:43 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 00:29:41 +07:00
2026-10-13 13:36:54 +07:00
2026-10-12 02:30:25 +07:00
2026-10-12 02:30:25 +07:00
2026-10-10 23:29:17 +07:00
2026-10-11 12:45:38 +07:00
2026-10-11 13:43:48 +07:00
2026-10-13 13:36:54 +07:00
2026-10-12 01:32:04 +07:00
2026-10-12 16:52:37 +07:00
2026-10-12 02:09:10 +07:00
2026-10-12 00:57:43 +07:00
2026-10-12 01:32:04 +07:00
2026-10-14 05:23:28 +07:00
2026-10-12 02:30:25 +07:00
2026-10-13 10:05:39 +07:00
2026-10-12 07:19:57 +07:00
2026-10-11 18:59:59 +07:00
2026-10-11 14:25:25 +07:00
2026-10-12 00:57:43 +07:00
2026-10-12 01:32:04 +07:00
2026-10-10 18:40:26 +07:00
2026-10-12 01:32:04 +07:00
2026-10-13 00:29:41 +07:00
2026-10-12 02:30:25 +07:00
2026-10-14 10:32:14 +07:00
2026-10-12 01:32:04 +07:00
2026-10-12 01:32:04 +07:00
2026-10-12 02:30:25 +07:00
2026-10-11 09:10:59 +07:00
2026-10-11 09:10:59 +07:00
2026-10-12 06:49:02 +07:00
2026-10-14 10:31:59 +07:00
2026-10-14 09:30:16 +07:00
2026-10-11 13:05:46 +07:00
2026-10-12 17:54:18 +07:00
2026-10-11 13:05:46 +07:00
2026-10-11 13:05:46 +07:00
2026-10-13 00:29:41 +07:00
2026-10-14 05:47:39 +07:00
2026-10-12 17:54:18 +07:00
2026-10-13 03:01:34 +07:00
2026-10-12 17:54:18 +07:00
2026-10-12 17:54:18 +07:00
2026-10-13 03:01:34 +07:00
2026-10-12 00:57:43 +07:00
2026-10-11 11:26:57 +07:00
2026-10-13 01:41:14 +07:00
2026-10-13 01:41:14 +07:00
2026-10-13 00:29:41 +07:00
2026-10-12 00:57:43 +07:00
2026-10-12 03:47:34 +07:00
2026-10-10 20:50:29 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 13:36:54 +07:00
2026-10-12 17:54:18 +07:00
2026-10-12 06:15:00 +07:00
2026-10-12 06:15:00 +07:00
2026-10-14 09:30:16 +07:00
2026-10-12 06:15:00 +07:00
2026-10-10 17:20:07 +07:00
2026-10-12 00:57:43 +07:00
2026-10-13 13:36:54 +07:00
2026-10-10 22:21:53 +07:00
2026-10-13 13:36:54 +07:00
2026-10-12 05:28:53 +07:00
2026-10-12 03:47:34 +07:00
2026-10-10 18:40:26 +07:00
2026-10-10 17:31:37 +07:00
2026-10-12 07:53:24 +07:00
2026-10-12 07:53:24 +07:00
2026-10-11 14:25:25 +07:00
2026-10-11 23:10:41 +07:00
2026-10-11 20:30:38 +07:00
2026-10-12 01:32:04 +07:00
2026-10-12 01:32:04 +07:00
2026-10-11 10:04:25 +07:00
2026-10-11 10:04:25 +07:00
2026-10-11 14:25:25 +07:00
2026-10-12 01:32:04 +07:00
2026-10-14 10:31:59 +07:00
2026-10-12 01:32:04 +07:00
2026-10-11 23:10:41 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 13:36:54 +07:00
2026-10-12 00:57:43 +07:00
2026-10-10 20:36:55 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 03:01:19 +07:00
2026-10-14 09:30:16 +07:00
2026-10-11 22:09:46 +07:00
2026-10-12 17:54:18 +07:00
2026-10-11 18:20:38 +07:00
2026-10-12 02:09:10 +07:00
2026-10-12 17:54:18 +07:00
2026-10-13 13:36:54 +07:00
2026-10-11 11:51:37 +07:00
2026-10-13 13:36:54 +07:00
2026-10-14 07:31:19 +07:00
2026-10-10 17:20:07 +07:00
2026-10-12 00:57:43 +07:00
2026-10-11 10:49:16 +07:00
2026-10-12 01:32:04 +07:00
2026-10-12 02:52:18 +07:00
2026-10-12 06:49:02 +07:00
2026-10-12 02:09:10 +07:00
2026-10-12 01:32:04 +07:00
2026-10-12 05:28:53 +07:00
2026-10-12 05:28:53 +07:00