Niklas Eicker
fb0a62f3f6
fix: support additional context for route generation ( #2113 )
2023-12-17 20:37:27 -05:00
martin frances
731b028b11
chore: Bump http from 0.2.8 to 0.2.11. ( #2068 )
2023-11-29 07:36:03 -05:00
Greg Johnston
b95a79240e
v0.5.4
2023-11-28 18:46:51 -05:00
Greg Johnston
d6ee2a37f4
v0.5.3
2023-11-27 19:38:33 -05:00
martin frances
362e3bc603
chore: stop using std::fmt, instead used core::fmt. ( #2033 )
2023-11-17 15:36:13 -05:00
Greg Johnston
7aced17976
docs: clarify need to provide context to both rendering and server function handler ( #1983 )
2023-11-03 18:34:50 -04:00
Greg Johnston
777095670e
fix: add leptos_axum::build_static_routes
( closes #1843 ) ( #1855 )
2023-10-27 17:09:52 -04:00
Greg Johnston
5f53a1459e
v0.5.2
2023-10-24 21:03:29 -04:00
Greg Johnston
d943a50df1
fix: misaligned </head>
tags in streaming responses ( closes #1930 ) ( #1932 )
2023-10-24 15:42:07 -04:00
martin frances
d999ff857d
chore: remove cargo doc
lint warnings ( #1936 )
2023-10-24 14:28:01 -04:00
Greg Johnston
6abdca0597
docs: better document default
and wasm
features on leptos_axum
( closes #1872 ) ( #1883 )
2023-10-20 14:57:53 -04:00
Greg Johnston
0d4862b238
feat: add extractor
functions with better API than extract
( closes #1755 ) ( #1859 )
2023-10-07 13:10:30 -04:00
Ben Wishovich
5220c37edd
fix: make Async Mode return Content-Type header in Response ( #1851 )
2023-10-05 21:13:33 -04:00
Ben Wishovich
2d634364a9
feat: set Content-Type header for all Responses to text/html;charset="utf-8" ( #1803 )
2023-09-29 13:51:15 -04:00
Ben Wishovich
d7fff5a8ab
fix: render_route
error message and matching of non standard routes ( #1799 )
2023-09-29 09:10:59 -04:00
Sean Aye
50678dafe1
feat: add JS Fetch integration support ( #1554 )
2023-09-25 07:51:25 -04:00
Nico Burniske
38d1727e9c
change: generate_route_list
no longer async in any integration ( #1485 )
2023-09-22 15:42:58 -04:00
Village
3b864ac1a0
feat: Static Site Generation ( #1649 )
2023-09-22 13:32:09 -04:00
Chris
a821abfb11
fix: relax bounds on LeptosRoutes
( #1729 )
2023-09-15 18:17:55 -04:00
Cosmo Brain
5db2590bc6
feat: implement LeptosRoutes
for &mut ServiceConfig
in leptos_actix
( #1706 )
2023-09-13 20:56:03 -04:00
Greg Johnston
2fe5be2483
fix: restore deleted extract_with_state
function ( #1683 )
2023-09-10 07:55:13 -04:00
Greg Johnston
66dfef8729
Merge pull request #1681 from leptos-rs/docs
2023-09-08 17:11:47 -04:00
Greg Johnston
238d61ce1e
feat: experimental islands ( #1660 )
2023-09-08 16:33:00 -04:00
Greg Johnston
23d48d4c0e
docs: remove stray references to Scope
( closes #1671 )
2023-09-08 16:02:45 -04:00
IcosaHedron
d9e83121c1
feat: add reload websocket configuration and enable env configuration ( #1613 )
2023-09-01 20:51:46 -04:00
Greg Johnston
8f067dcde7
chore: clear release-mode warnings
2023-08-25 17:16:00 -04:00
Matt Cuneo
a789100e22
feat: allow autoreload websocket connection to work outside of localhost ( #1548 )
...
* Updated client reloading to use window.location.protocol/host to determine websocket connection. Added optional config reload_external_port to provide further control of the client websocket connection. These changes allow reloading while accessing the served site from outside of localhost.
2023-08-25 15:54:22 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx
/Scope
( #918 )
2023-08-21 19:31:37 -04:00
mateusvmv
4001561987
fix: scoping of JS variable names in inline scripts ( #1489 )
2023-08-03 08:46:06 -04:00
martin frances
1e002c2c2f
chore: Removed call to .into(), plus minor touch to docs. ( #1396 )
2023-07-20 08:07:31 -04:00
Greg Johnston
e8aa9b24f1
fix: memory leak in leptos_axum
( #1374 )
2023-07-17 21:59:20 -04:00
Greg Johnston
8e68699435
feat: add support for adding CSP nonces ( #1348 )
2023-07-14 16:37:18 -04:00
Joseph Cruz
7902e7edb7
ci: speed up verification ( #1347 )
...
* build: introduce ci task
* refactor(ci): rename cargo make task runner
* ci: add ci workflow
* ci: remove redundant workflows
2023-07-14 14:37:17 -04:00
Greg Johnston
4ad223277d
fix: duplicated meta content during async rendering ( #1352 )
2023-07-14 13:14:19 -04:00
Greg Johnston
3eed86fbf3
docs/warnings: improve ServerFnError
when a server function is not found ( #1350 )
2023-07-14 12:43:08 -04:00
Joseph Cruz
3481a6ee53
build: run tasks from workpace or member directory ( #1339 )
2023-07-13 16:46:51 -04:00
Greg Johnston
5d48911f01
fix: check LEPTOS_OUTPUT_NAME
correctly at compile time ( #1338 )
2023-07-13 10:49:13 -04:00
Greg Johnston
576bb078f7
fix: Actix server fn redirect()
duplicate Location
headers ( #1326 )
2023-07-11 13:57:44 -04:00
sjud
7e540a8f49
feat: support Axum extractors with state other than ()
( #1275 )
...
This requires state to be provided via context using a special handler, but allows for extractors that use this state, rather than only `()`, as previously.
2023-07-05 20:40:29 -04:00
Greg Johnston
66f54e7f1a
docs: add docs on responses/redirects and clarification re: Axum State(_)
extractors ( #1272 )
2023-07-03 09:58:02 -04:00
Greg Johnston
23594a43ea
fix: allow FnOnce
extractors ( #1192 )
2023-06-15 20:09:13 -04:00
martin frances
6fac92cb62
perf: removed duplicate calls to .collect() and .into_iter() in leptos_actix
( #1133 )
2023-06-11 21:54:24 -04:00
Greg Johnston
bb10b32200
feat: register server functions automatically ( #1154 )
2023-06-11 09:09:21 -04:00
martin frances
f6d856ee11
chore: cargo clippy --fix. ( #1136 )
2023-06-03 11:35:33 -04:00
Greg Johnston
4e41fad107
fix: wait for blocking fragments to resolve before pulling metadata ( closes #1118 ) ( #1137 )
2023-06-02 17:32:32 -04:00
Greg Johnston
5d70275c3a
fix: dispose of runtime when stream is actually finished ( closes #1097 ) ( #1110 )
2023-05-28 13:44:31 -04:00
Greg Johnston
4d3dd7a6e6
feat: add Axum extract()
function ( #1093 )
2023-05-25 11:16:58 -04:00
yuuma03
cc68d20758
fix: duplicate headers (like Set-Cookie) on the actix integration ( #1086 )
2023-05-25 11:16:29 -04:00
Ben Wishovich
06d28f7d67
feat: use Axum SubStates to enable .with_state
in Axum router ( #1085 )
2023-05-24 08:34:17 -04:00
yuuma03
b2faa6b86c
feat: allow multipart forms on server fns (Actix) ( #1048 )
2023-05-17 19:53:55 -04:00
Mark Catley
b472aaf6a0
fix: typo in actix extract documentation ( #1043 )
2023-05-15 08:57:49 -04:00
Matt Crane
add13fd6a4
change: migrate Axum integration to use with_state
over layer(Extension)
( #1032 )
2023-05-14 06:37:39 -04:00
Greg Johnston
40c1556f29
change: remove APIs that had been marked deprecated ( #1037 )
2023-05-12 19:45:48 -04:00
Greg Johnston
d7b919032e
feat: SsrMode::PartiallyBlocked
( #1026 )
2023-05-10 13:30:01 -04:00
Greg Johnston
ef45828ca7
fix: don't assume OutOfOrder and GET for /
2023-05-05 10:20:36 -04:00
Ben Wishovich
6c3381ce52
feat: add From for RequestParts into Parts for Axum and add an option to ge… ( #931 )
2023-04-24 20:08:28 -04:00
Greg Johnston
0a7dbb0ca4
feat: add Actix extract
helper ( #936 )
2023-04-24 20:03:24 -04:00
Ben Wishovich
72f8bf4e20
feat: remove need for LEPTOS_OUTPUT_NAME env var after compilation ( #899 )
2023-04-23 15:20:47 -04:00
Ben Wishovich
81f330e888
feat: add thorough tracing throughout ( #908 )
2023-04-22 06:47:11 -04:00
OvermindDL1
72d6af9c84
fix: use once_cell crate until OnceLock stabilized ( closes #890 )
...
* Fixes #890 that was using OnceLock, which is nightly only, by adding the once_cell crate as a dependency.
* Make `cargo fmt` happy
2023-04-18 16:31:04 -04:00
Greg Johnston
384d39543c
fix: dispose of scope when server fns return error ( closes #862 ) ( #888 )
2023-04-17 22:08:47 -04:00
Greg Johnston
764192af36
feat: allow multiple HTTP request methods/verbs ( #695 )
2023-04-10 16:42:15 -04:00
Aaron Karras
af8afb1204
perf: use local pools for axum handlers ( #815 )
2023-04-07 11:35:16 -04:00
Greg Johnston
ff5ceddbe2
fix: correctly pass server fn errors to client ( #822 )
2023-04-07 08:12:10 -04:00
Ben Wishovich
8b57ba7aa8
feat: add the ability for server fns to be submitted via GET requests ( #789 )
2023-04-05 06:47:17 -04:00
Greg Johnston
1e037ecb60
chore: clippy and docs warnings ( #779 )
2023-03-31 17:12:42 -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
Igor Shevchenko
98a9ec8335
chore(docs): fix a few typos ( #756 )
2023-03-27 20:06:34 -04:00
Greg Johnston
38daaf3b72
chore: apply cargo machete
systematically ( #671 )
2023-03-13 10:16:20 -04:00
Ben Wishovich
1a3c1e9e52
feat: provide Request<_>
in context for Axum, enabling easier extractor use ( #632 )
2023-03-10 17:28:32 -05:00
Greg Johnston
55ce805b60
feat: hot reloading support for cargo-leptos
( #592 )
2023-03-04 09:04:22 -05:00
tanguy-lf
e576d93f83
examples: add ssr_mode_axum
( #575 )
2023-02-25 11:24:24 -05:00
Fangdun Tsai
e9c4b490e5
feat: viz integration ( #506 )
2023-02-21 12:29:15 -05:00
Ben Wishovich
322041917d
fix issue with redirects in server fns creating multiple Location headers ( #550 )
2023-02-20 08:55:47 -05:00
Greg Johnston
20cbc240ee
v0.2.0-alpha2
(#539 )
2023-02-18 12:45:46 -05:00
jquesada2016
f2f52b2533
change: move signal method implementations into traits in signal prelude ( #490 )
2023-02-18 07:30:03 -05:00
Greg Johnston
586f524015
feature: in-order streaming and async
rendering ( #496 )
2023-02-17 17:31:32 -05:00
henrik
bde585dc3e
feature: enable cargo-leptos
to reload multiple CSS files ( #524 )
2023-02-14 18:51:47 -05:00
Greg Johnston
7d6c4930e4
remove .unwrap()
from redirect
in Actix integration ( #514 )
2023-02-13 06:02:43 -05:00
IcosaHedron
81d6689cc0
do not unwrap use_context in integrations axum redirect ( #513 )
2023-02-12 21:59:12 -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
Greg Johnston
352601aa42
fix: correct out-of-order streaming behavior ( #475 )
2023-02-05 17:29:35 -05:00
Ben Wishovich
76aeb573bf
fix: convert site_address
to site_addr
to match cargo-leptos
( #462 )
2023-02-04 16:37:41 -05:00
Greg Johnston
4034aa9c11
feature: add isomorphic <Redirect/>
component ( closes #412 ) ( #466 )
2023-02-04 10:02:17 -05:00
Gentle
f698f8badd
use latest tokio in leptos_axum ( #443 )
2023-02-02 17:00:49 -05:00
Bruno De Simone
e2cdbc746f
Add leptos_routes functions for integrations ( #415 )
...
* added leptos_routes_with_context
* added leptos_routes_with_handler for axum integration
2023-01-31 09:09:58 -05:00
Ben Wishovich
48cf8d9382
Switch RwLock to parking_lot so they are no longer async ( #414 )
2023-01-30 20:11:56 -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
Gentle
815c2e6dc2
leptos_axum::handle_server_fns was also duplicated ( #383 )
2023-01-26 15:53:31 -05:00
Gentle
679692e202
cloning is not needed here ( #381 )
2023-01-26 13:05:44 -05:00
Gentle
be1343fa88
refactor to eliminate duplicate code ( #380 )
2023-01-26 13:04:59 -05:00
Ben Wishovich
9b0fb63632
Add methods to take Actix/Axum Extractors/Route Info/Stuff and pass it to Leptos ( #359 )
2023-01-23 07:28:05 -05:00
benwis
300cc4f54c
Actually Do It
2023-01-17 09:27:09 -08:00
benwis
70d92c7f42
Path and Query
2023-01-17 05:52:38 -08:00
benwis
81a937277d
Simplify URI matching solution
2023-01-16 22:35:22 -08:00
benwis
355e711964
Fix issue with https pathing for Axum integration
2023-01-16 22:18:39 -08: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
cdf709fb09
0.1.0
2023-01-12 09:57:08 -05:00
Greg Johnston
a16540ccc5
Merge pull request #302 from martinfrances107/invalid_toml
...
Minor: "leptos.workspace = true" is invalid.
2023-01-11 20:48:51 -05:00
Martin
1621b86d8f
Minor: "leptos.workspace = true" is invalid.
2023-01-11 17:09:10 +00:00
hakesson
6471af8b89
Let data_fn return DataResponse
2023-01-11 12:08:44 +01:00
hakesson
abf54b832e
Improve naming and doc
2023-01-11 09:56:58 +01:00
hakesson
91e839c71a
data_fn returns Result
2023-01-11 09:08:07 +01:00
hakesson
339c920b19
Make data_fn take cloned HttpRequest
2023-01-10 18:55:45 +01:00
hakesson
3f036ee321
Fix refactoring error
2023-01-10 18:48:05 +01:00
hakesson
4e00ec2348
Add leptos_data_routes
2023-01-10 18:27:35 +01:00
hakesson
9c59b720b7
Improve fmt
2023-01-10 18:26:11 +01:00
hakesson
da4340894f
Extract fn provide_contexts
2023-01-10 18:18:25 +01:00
hakesson
02f5c3891c
Extract fn leptos_corrected_path
2023-01-10 18:06:24 +01:00
hakesson
087e67466f
Extract fn html_parts & stream_app
2023-01-10 18:03:11 +01:00
Greg Johnston
1613616008
Merge branch 'main' into workflow_cargo_fmt
2023-01-10 09:36:53 -05:00
Greg Johnston
8a01880ade
Merge pull request #293 from benwis/remove-deps
...
Remove a couple extra deps from the axum integration
2023-01-10 09:36:15 -05:00
hakesson
0547b4f846
Add missing semi-colon
2023-01-10 10:01:23 +01:00
henrik
75659ce674
Merge branch 'main' into workspace-multi-projects
2023-01-10 09:59:44 +01:00
hakesson
1f556cefb0
Default to serve root
2023-01-10 09:52:21 +01:00
hakesson
6a68ef67f3
Add LEPTOS prefix to OUTPUT_NAME in all files
2023-01-10 09:26:10 +01:00
Martin
23bbd90c81
Policy change ( part 2 ) added rule of enforcing cargo fmt.
2023-01-10 08:20:02 +00:00
benwis
27b8553076
Remove a couple extra deps from the axum integration
2023-01-09 23:46:07 -08:00
Greg Johnston
b8cafeb650
Merge pull request #289 from gbj/forbid-unsafe
...
Forbid `unsafe` code in all packages
2023-01-09 20:45:28 -05:00
Greg Johnston
5df89b0d25
Fix query parsing in Axum integration
2023-01-09 20:44:06 -05:00
Greg Johnston
4df3687463
Forbid unsafe code in all packages
2023-01-09 19:48:51 -05:00
Martin
c56806713e
Keeping up with changes to main.
2023-01-09 12:47:50 +00:00
Martin
3d25e86c23
Policy change: Workflow now enforce "cargo fmt".
2023-01-09 12:44:30 +00:00
benwis
dc60c35b58
Rewrite file handlers for Axum, and update all examples to use the new
...
generated routes. Fix a few issues in the integrations, and reduce the
number of warnings
2023-01-08 14:18:51 -08:00
benwis
1b8175e2fa
Add missing tokio dep for RwLock
2023-01-07 20:27:05 -08:00
Ben Wishovich
1d25134213
Merge branch 'main' into generated_routes
2023-01-07 14:58:26 -08:00
benwis
de73622949
Change Axum's "" matching
2023-01-07 14:53:38 -08:00
benwis
5d3cfc6483
Actix seems to be working now, plus applied Henrik's path recommendations
2023-01-07 14:49:25 -08:00
Greg Johnston
af7b93fa1e
Merge pull request #128 from akesson/workspace-features
...
Workspace features
2023-01-07 14:19:56 -05:00
Greg Johnston
a5e2587555
Merge pull request #261 from martinfrances107/Clippy_removed_clone_where_possible
...
Clippy: Removed stray calls to .clone().
2023-01-07 12:47:06 -05:00
Greg Johnston
af8889fab2
Merge pull request #262 from martinfrances107/uninlined_format_args
...
Minor: Clippy format!() all variables now inlined.
2023-01-07 12:42:56 -05:00
hakesson
f8c680d14d
Integrations with workspace dependencies
2023-01-07 18:05:35 +01:00
Martin
1d480791a1
Removed clippy::single_match issue.
2023-01-07 16:08:17 +00:00
Martin
7acc309f66
Minor: Clippy format!() all variables now inlined.
2023-01-07 15:46:47 +00:00
Martin
9527de15ed
Removed stray calls to .clone().
2023-01-07 14:53:59 +00:00
benwis
677e4f2540
Leptos can now generate routes and provide them to the Axum router. More
...
testing and Actix version to come
2023-01-06 19:52:38 -08:00
Greg Johnston
dd35c31db1
Correct leptos_autoreload
event variable name
2023-01-06 09:50:29 -05:00
Greg Johnston
a349707e1f
Merge pull request #230 from gbj/server-docs-and-debug
...
Improve docs and debugging tools for server functions (closes #225 )
2023-01-03 21:51:10 -05:00
Ben Wishovich
05468d3307
You WILL change your doc comments
2023-01-03 17:33:22 -08:00
Greg Johnston
0da88f39cd
Improve docs and debugging tools for server functions ( closes #225 )
2023-01-03 20:05:47 -05:00
Ben Wishovich
64e6eedb4d
Add a redirect() function and some helpful utility functions for ResponseParts and ResponseOptions
2023-01-03 10:35:30 -08:00
Greg Johnston
d4b5b958f3
0.1.0-beta
2023-01-02 16:52:18 -05:00
Greg Johnston
755ceb7d75
0.1.0-beta
2023-01-02 16:35:00 -05:00
Ben Wishovich
442dc1e041
More changes to the examples
2022-12-30 16:17:17 -08:00
Ben Wishovich
c3fbf13ef3
No leading slashes, and a working todo-app-sqlite example. Improved config section detection
2022-12-30 11:01:01 -08:00
Ben Wishovich
1f1d675d17
Basic cargo-leptos test
2022-12-29 16:42:05 -08:00
Greg Johnston
f28da0770f
Fix leptos_config
version
2022-12-29 12:13:45 -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