figcraft/crates/ui-egui/locales
Justin John 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
..
de.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
en.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
es-419.toml M9: online files: the app remembers the files it put online 2026-10-13 01:41:14 +07:00
es.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
fr.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
ja.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
ko.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
pt-BR.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00
zh-Hans.toml feat(dev-mode): Leptos code with component properties, instance calls and Code Connect (#240) 2026-10-14 10:32:14 +07:00