Commit Graph

58 Commits

Author SHA1 Message Date
Greg Johnston f84f1422f4
fix: maintain insertion order of meta tags (#1021) 2023-05-08 08:36:54 -04:00
Greg Johnston 93da88eac0
feat: add ability to set `node_ref` and pass additional attributes to `<Form/>` and friends (#853) 2023-04-14 14:25:52 -04:00
novacrazy be7b9eea25 Merge branch 'main' of https://github.com/leptos-rs/leptos 2023-04-07 14:09:10 -05:00
Greg Johnston 016ad6b7a6
feat: make `__Props` imports unnecessary (closes #746) (#828) 2023-04-07 15:06:10 -04:00
novacrazy 84c7d00ea9 Use `Cow<'static, str>` for Attributes 2023-04-06 21:52:11 -05:00
novacrazy 8f5ae0054d Second round of inlining 2023-04-06 21:39:29 -05:00
Greg Johnston 64e056ffa9
docs: warn if you are using `leptos_meta` without features (#797) 2023-04-03 21:07:43 -04:00
Christian Rausch c391c2e938
feat: arbitrary attributes to `<Html/>` and `<Body/>` meta tags (#726) 2023-03-31 16:30:10 -04:00
Greg Johnston 42360d109b
change: insert `<head>` metadata tags at the beginning of the head, not the end (#731) 2023-03-31 14:51:27 -04:00
Ben Wishovich e6b1298915
feat: add property field to Meta component (#759) 2023-03-28 09:10:00 -04:00
Greg Johnston b8f79a7e56
fix: suppress spurious hydration warnings for tags in `leptos_meta` (#684) 2023-03-14 14:17:23 -04:00
Greg Johnston 55ce805b60
feat: hot reloading support for `cargo-leptos` (#592) 2023-03-04 09:04:22 -05:00
SleeplessOne1917 a985ae5660
fix: `<Meta/>` component `as_` property outputs correct attribute html (#573) 2023-02-24 08:58:15 -05:00
PolarMutex f7d0eea04d
feature: add `class` prop to `<Html/>` component (#554) 2023-02-21 12:28:11 -05:00
Greg Johnston 586f524015
feature: in-order streaming and `async` rendering (#496) 2023-02-17 17:31:32 -05:00
Greg Johnston 1dbcfe2861
change: reorganize module exports and reexports (#503) 2023-02-12 17:04:36 -05:00
Greg Johnston 6bab4ad966
apply new formatting everywhere (#502) 2023-02-11 14:30:06 -05:00
martin frances ea0e2ce363
Escape <HTML> and <BODY> tokens in documentation markup. (#410) 2023-01-30 19:17:41 -05:00
Greg Johnston 62061f90ea
Add `<Html/>` and `<Body/>` components in `leptos_meta` (#407)
Closes #376.
2023-01-29 19:07:48 -05:00
Greg Johnston b861f84e40
Fix a large number of small issues in docs (#386)
* Fix example links in docs

* Restore missing CSR READMEs

* Document need to enable features on `leptos_router` and `leptos_meta`

* Add "Is it production ready?" to FAQs

* Document which types are provided as contexts in server integrations

* Fix broken links and other issues in docs
2023-01-26 21:44:01 -05:00
Greg Johnston cadb04b076 Fix `MetaContext` debug for wasm target 2023-01-17 14:23:13 -05:00
Greg Johnston 6ed86d0ee9 impl `Debug` on `MetaContext` 2023-01-17 12:17:16 -05:00
Greg Johnston ae0a243cc0 Fix meta doctests 2023-01-16 12:08:13 -05:00
hakesson 884297706a Search https://github.com/gbj/ and replace with https://github.com/leptos-rs/ 2023-01-13 09:03:11 +01:00
Greg Johnston 4df3687463 Forbid unsafe code in all packages 2023-01-09 19:48:51 -05:00
Greg Johnston 1fe526c99c Remove erroneous log 2023-01-07 08:32:39 -05:00
Greg Johnston 0b80bba4ec Fix tests 2023-01-06 23:04:25 -05:00
Greg Johnston 9cc38988d8 Corrects style docs 2023-01-06 22:56:23 -05:00
Greg Johnston 0d92a5dec8 Add `<Script/>` and `<Style/>` components 2023-01-06 22:54:35 -05:00
Greg Johnston bc43a9d329 Use builder syntax and refactor tag registration 2023-01-06 16:49:26 -05:00
Greg Johnston 1850c28d3a Add `<Link/>` and refactor `<Stylesheet/>` to use it 2023-01-06 16:06:03 -05:00
Greg Johnston 7db292779b Correct `on_cleanup` import 2023-01-04 22:41:46 -05:00
Greg Johnston e2496e01d0 Correctly hydrate stylesheets, and correctly clean up stylesheets and metadata 2023-01-04 22:39:54 -05:00
Greg Johnston c7fa041469 Working on disposing metadata tags 2023-01-04 16:56:04 -05:00
Greg Johnston 4264b15aab Correct hydration behavior of `<Stylesheet id=.../>` (necessary for `cargo-leptos` CSS reloading) 2023-01-01 22:56:17 -05:00
Greg Johnston 26b28be436 Fix warning about MetaContext so it's less misleading. 2022-12-30 19:30:35 -05:00
Greg Johnston 528a9d7a6f Fix merge 2022-12-29 12:13:52 -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 c44693e0a4 Use `#[component]` macro for `leptos_meta` to generate docs 2022-12-29 08:46:41 -05:00
Greg Johnston e3c4e9f6a4 chores: fix failing tests, update docs, suppress warnings 2022-12-28 11:33:26 -05:00
Greg Johnston 55b27f7aec Fix `<Meta/>` tag hydration lookup 2022-12-28 08:19:56 -05: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 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 d5fbeb9474 WIP Implementation of expanded LeptosOptions, which interop with the cargo-leptos beta and allow configuration of Leptos. Adds id option to <Stylesheet/> 2022-12-20 12:14:05 -08:00
Greg Johnston 1804a65857 Merge in updates to meta package 2022-12-12 13:39:30 -05:00
Greg Johnston 2b726f1a88 Fix docs on props for each component 2022-12-06 11:42:47 -05:00
Greg Johnston 5152703f0c Clear warnings 2022-12-02 12:39:32 -05:00
Greg Johnston 3d54055573 Add `<Meta/>` component to `leptos_meta` 2022-12-02 12:36:51 -05:00
Greg Johnston 2651bf5fef Fix meta and router tests 2022-11-21 22:45:56 -05:00