benwis
81ab77e8ea
One more time!
2023-01-21 11:54:55 -08:00
benwis
23bd399239
I did, I did break it
2023-01-21 11:25:36 -08:00
benwis
3e04318082
Remove extra
2023-01-21 10:58:47 -08:00
benwis
9ea604f516
Merge branch 'main' into error-handling
2023-01-20 15:53:18 -08:00
benwis
b5ab7b107a
Test of SSR/Hydration of ErrorBoundary
2023-01-20 15:52:43 -08:00
Greg Johnston
a49dfd3f8e
Merge pull request #344 from leptos-rs/view-ssr
...
Reenable optimizations for SSR using the `view!` macro
2023-01-20 15:14:06 -05:00
Kompreni
bcabdddce5
doc: add link for leptos watch
2023-01-20 20:14:09 +01:00
Greg Johnston
9ac0f0a579
Fix `todomvc`
2023-01-20 12:18:31 -05:00
benwis
64add54de6
Add example error template and give the ability to access error info
...
inside it
2023-01-19 14:57:34 -08:00
benwis
ac343427e7
Remember all the files
2023-01-18 23:21:08 -08:00
benwis
452e397048
Made todo_app_sqlite_axum throw an error
2023-01-18 16:47:22 -08:00
benwis
ad3ac5ad3c
Remove silly thing
2023-01-18 16:03:53 -08:00
benwis
3215e44c9a
Create example of file_and_error handler for Axum, and create <ErrorBoundary/>
...
for leptos
2023-01-18 12:59:15 -08:00
Greg Johnston
40155e91ea
`cargo fmt` fix
2023-01-17 12:43:27 -05:00
Greg Johnston
5c062fa6f1
Add `use_navigate` in `router` example
2023-01-17 12:40:54 -05:00
ekanna
ce0910caca
Updated example code and README to use latest syntax for data binding
2023-01-17 12:08:44 +05:30
benwis
10a833d763
Switch get_configuration calls to None and add a note in the docs for
...
uses of get_configuration()
2023-01-15 12:50:25 -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
ace5e7cbba
Add missing `hackernews_axum` makefile
2023-01-09 21:59:00 -05:00
Greg Johnston
c8f0988e53
Merge pull request #292 from gbj/router-warnings
...
Implement `state` and `replace` correctly in `leptos_router` and clear warnings
2023-01-09 21:11:28 -05:00
Greg Johnston
64f0f8879b
Implement `state` and `replace` correctly in `leptos_router` and clear warnings
2023-01-09 21:10:42 -05:00
Greg Johnston
992b218ffe
Merge pull request #291 from gbj/correct-axum-query-handling
...
Correct Axum query handling
2023-01-09 20:44:58 -05:00
Greg Johnston
c050456a47
Use a runtime warning about SVG <a/> instead of a macro warning on all ambiguous tags
2023-01-09 20:31:51 -05:00
Greg Johnston
f5f345e623
Merge pull request #286 from benwis/favicons
...
FAVICON!
2023-01-09 19:57:27 -05:00
benwis
ee647cba1c
Add Favicons to all the examples and standardize on the public folder for public assets
2023-01-09 15:27:52 -08:00
Martin
4d21f5ac63
simple_logger use version 4.0.0 everywhere.
2023-01-09 21:43:48 +00:00
Greg Johnston
28ec3a6cda
Merge pull request #281 from martinfrances107/hackernews_axum
...
Minor: Clippy fixes related to hackernew_axum.
2023-01-09 07:02:43 -05:00
Greg Johnston
8b92a561a3
Merge pull request #269 from benwis/generated_routes
...
Generate Routes and pass them to Actix/Axum
2023-01-09 07:02:11 -05:00
Martin
e490c0423f
Minor: Clippy fixes related to hackernew_axum.
2023-01-09 09:54:39 +00:00
benwis
b6579a040a
Warning Squashing
2023-01-08 19:41:22 -08:00
benwis
01e024b726
One more time!
2023-01-08 19:38:45 -08:00
benwis
6603c44ce2
Minor fixes and revisions
2023-01-08 19:36:24 -08:00
benwis
6b729f9131
Fix hackernews_axum example
2023-01-08 14:51:41 -08: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
Greg Johnston
32ec9cc57e
Prevent `create_signal_from_stream` from panicking on SSR
2023-01-08 17:09:04 -05:00
Martin
67503a108d
BugFix.
2023-01-08 15:28:30 +00:00
Martin
ef52a01838
examples/hackernews - Cargo clippy fixes.
2023-01-08 13:33:53 +00:00
benwis
c41cf879d1
Formatting
2023-01-07 15:44:35 -08:00
benwis
b34f2070d3
Remove extraneous route
2023-01-07 15:09:49 -08:00
benwis
7fa21defa6
Merge remote-tracking branch 'origin/generated_routes' into generated_routes
2023-01-07 15:08:12 -08:00
benwis
bdd9abc04d
Removing some missed code and changing the stylesheet
2023-01-07 15:06:21 -08:00
Ben Wishovich
1d25134213
Merge branch 'main' into generated_routes
2023-01-07 14:58:26 -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
8915e2615b
Adjust default features for `meta` and `router`
2023-01-07 14:43:32 -05:00
Greg Johnston
05d2eb8ce0
Improve CI disk space usage
2023-01-07 07:43:52 -05: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
benwis
63b1837315
First pass of method to generate routelist
2023-01-06 14:08:45 -08:00
Greg Johnston
319a058e63
Fix relative route for stylesheet in `hackernews`
2023-01-06 16:06:03 -05:00
Greg Johnston
a2943c4649
Fix `counters_isomorphic`
2023-01-02 18:37:10 -05:00
Greg Johnston
411fc51ea2
Clean up examples
2023-01-02 16:20:05 -05:00
Greg Johnston
e714cac0ec
Add missing makefiles
2023-01-02 16:19:52 -05:00
Greg Johnston
7f21ee97a8
Fix `counter_isomorphic` import
2023-01-02 13:34:56 -05:00
Greg Johnston
0ed56d382d
Add `build-examples` task to `cargo make` CI
2023-01-02 13:29:37 -05:00
Greg Johnston
3a5e3aea99
Small fixes to Tailwind example
2023-01-01 08:09:24 -05:00
Ben Wishovich
827b787c91
Bugfixes, using cargo-leptos for CSS, and updating READMEs.
2022-12-31 18:39:05 -08:00
Ben Wishovich
01c00eee6b
Update SSR Readmes with new instructions
2022-12-31 16:06:54 -08:00
Ben Wishovich
f45d33db73
Move the examples out of the workspace, and standardize naming. All of the SSR examples now work with cargo-leptos
2022-12-31 15:52:19 -08:00
Ben Wishovich
60f0bf23fd
Merge branch 'main' into cargo-leptos-release-testing
2022-12-30 16:17:50 -08:00
Ben Wishovich
442dc1e041
More changes to the examples
2022-12-30 16:17:17 -08:00
Greg Johnston
04c85d6eb0
Fix Axum example
2022-12-30 16:55:50 -05:00
Greg Johnston
71d278927b
Update examples to new action APIs
2022-12-30 15:44:25 -05:00
Ben Wishovich
8eaa0b0c15
Merge branch 'main' into cargo-leptos-release-testing
2022-12-30 11:04:43 -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
9bde885b9d
Fix suspense in story page
2022-12-29 19:28:10 -05:00
Greg Johnston
383f8a409d
Add `<Suspense/>` to story and user pages
2022-12-29 19:17:35 -05:00
Greg Johnston
cc48ff72ad
Prep for `stable` support
2022-12-29 18:21:24 -05:00
Greg Johnston
b2cf953c07
Example fix
2022-12-29 18:21:18 -05:00
Greg Johnston
94af8f26ca
Fix site-root
2022-12-29 17:39:08 -05:00
Greg Johnston
19dabb6b6a
Clear up warnings in the example
2022-12-29 17:39:04 -05:00
Greg Johnston
15b5f7545a
Use `<Transition/>` here for that silky-smooth optimistic UI update
2022-12-29 17:35:46 -05:00
Greg Johnston
5d8d5d9910
`SocketAddr`? I hardly know her! (missing import from merge)
2022-12-29 16:01:37 -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
e595d35c8b
Fix CSS location for `hackernews-axum`
2022-12-29 08:50:43 -05:00
Greg Johnston
f47fad3ed5
Merge pull request #177 from benwis/cargo-leptos-beta
...
Changes to leptos, leptos_meta, leptos_actix/leptos_axum, and leptos_config to support cargo-leptos-beta
2022-12-29 07:48:38 -05:00
Greg Johnston
e8424138ce
Fix TOML
2022-12-28 15:06:52 -05:00
Greg Johnston
4b1fce4c9c
Revert "Merge branch 'main' into pr/119"
...
This reverts commit 63f680f37d
, reversing
changes made to 50ba796f49
.
2022-12-28 15:06:46 -05:00
Greg Johnston
fd2a2bd5f4
Fixing merge issues
2022-12-28 14:51:01 -05:00
Greg Johnston
d64ca366fc
Fix merge
2022-12-28 14:22:03 -05:00
Greg Johnston
63f680f37d
Merge branch 'main' into pr/119
2022-12-28 14:21:54 -05:00
Greg Johnston
e3c4e9f6a4
chores: fix failing tests, update docs, suppress warnings
2022-12-28 11:33:26 -05:00
Greg Johnston
dac69b9802
Port `hackernews-axum`
2022-12-28 08:53:05 -05:00
Ben Wishovich
f8f0d9fae0
Merge branch 'main' into cargo-leptos-beta
2022-12-27 12:49:17 -08:00
Ben Wishovich
be94c1b846
Update examples to camelcase and add missing fields for feature flags. Should be working with cargo-leptos beta again
2022-12-27 10:58:05 -08:00
Greg Johnston
86df770dad
chores: getting tests fixed, etc.
2022-12-25 22:53:52 -05:00
Matt Crane
587a85baaf
Fix erros in counter-isomorphic with stable
2022-12-24 12:13:35 -08:00
Greg Johnston
bf9587c349
Attempt at `Transition`
2022-12-24 07:39:43 -05:00
Greg Johnston
8c4dcbeddc
Fix paths for imports
2022-12-23 17:05:52 -05:00
Greg Johnston
48e1d6cfab
Recursive components allowed
2022-12-23 17:00:52 -05:00
Greg Johnston
a4740d6c06
Remove `web` by default
2022-12-23 17:00:42 -05:00
Greg Johnston
c24958bec4
Fix paths in `hackernews` example
2022-12-23 14:35:02 -05:00
Greg Johnston
50c9c38b7d
Fix JS path
2022-12-23 14:24:59 -05:00
Greg Johnston
629ac01484
merge `todo-app-sqlite-axum`
2022-12-23 14:23:38 -05:00
Greg Johnston
f17f651986
Clean up example
2022-12-23 13:30:22 -05:00
Greg Johnston
4839bfbb29
Tailwind example ported
2022-12-23 13:10:45 -05:00
Greg Johnston
6354b79588
Use `Transition` in example
2022-12-23 11:34:20 -05:00
Greg Johnston
0bf52c95bb
Make sure `--debug` is noted in examples so hydration matches
2022-12-22 21:24:36 -05:00
Greg Johnston
89aa02af19
Update `counter` example
2022-12-22 21:21:17 -05:00
Greg Johnston
d158c34d24
Transition back to `Transition` in `hackernews`
2022-12-22 20:55:38 -05:00
Greg Johnston
6cf5d0a403
`<Route element=...` => `view=...`
2022-12-22 20:54:52 -05:00
Ben Wishovich
ac489e7523
Who let me near the computer before coffee?
2022-12-22 08:42:16 -08:00
Ben Wishovich
0909f60e55
Remove redundant env check and add path option to get_configuration()
2022-12-22 08:39:04 -08:00
Ben Wishovich
5ec76682a7
Fix Websockets Code and re-enable optimizations in tailwind. Remove watch as a param
2022-12-21 23:54:48 -08: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
Greg Johnston
ce84632c39
Update `NodeRef` to be generic over typed HTML elements
2022-12-21 21:15:48 -05:00
Sarah Allen
cd59bf5a10
fix warning, set initial value of counter
2022-12-21 07:11:15 -08:00
Greg Johnston
2f218e7428
Small changes to examples
2022-12-21 07:56:33 -05:00
Greg Johnston
7ca131c5b8
Work on hydration examples
2022-12-19 22:45:12 -05:00
Greg Johnston
9a2035f1e1
Relocate `view-tests` into `leptos_dom`
2022-12-19 20:11:25 -05:00
Greg Johnston
df8e50e85a
Update TodoMVC example
2022-12-19 20:10:15 -05:00
Greg Johnston
8be33ccd7c
Updating `todo-app-sqlite` example (todo: fix hydration)
2022-12-19 16:25:24 -05:00
Greg Johnston
d6920847ca
Fix tests in `counter` example
2022-12-19 16:14:46 -05:00
Greg Johnston
c63c8728a7
Clear warnings in `router` example
2022-12-19 07:41:50 -05:00
Greg Johnston
fc8921445e
Update `parent-child` example
2022-12-18 17:12:06 -05:00
Greg Johnston
80287f7a61
Merge pull request #174 from nim65s/main
...
Fix example tailwind
2022-12-17 19:43:52 -05:00
Guilhem Saurel
218faed341
Fix example tailwind
...
fix:
╰─>$ cargo leptos watch
Error: at `…/cargo-leptos-0.0.9/src/main.rs@104:58`
Caused by:
no css/sass/scss file found at: "style/output.css"
2022-12-17 23:33:18 +01:00
Ben Wishovich
186e2454b0
Fix DBs
2022-12-16 17:37:17 -08:00
Ben Wishovich
6fa15a5584
Cleanup of testing files
2022-12-16 17:35:32 -08:00
Ben Wishovich
2d289dd2b6
Actix version, but the issue is the same
2022-12-16 13:18:35 -08:00
Ben Wishovich
21274c08bf
Hmmmm
2022-12-15 22:07:11 -08:00
Ben Wishovich
7a8b08d149
Broken in a new way
2022-12-15 15:57:41 -08:00
Ben Wishovich
0bc29b5f26
Closer maybe?
2022-12-15 14:12:54 -08:00
Ben Wishovich
f9bda65dbe
WIP impl of SSR Header/Status setting
2022-12-15 13:14:02 -08:00
Ben Wishovich
8a85d4261a
Fix Todo DB
2022-12-14 11:20:53 -08:00
Ben Wishovich
90849cc6e3
Add working example of Actix/Axum Header and Status Setting
2022-12-14 10:55:05 -08:00
Ben Wishovich
9f97497e48
Working impl of Request access and Response cookies for Axum
2022-12-13 22:07:15 -08:00
Ben Wishovich
70f2b3b4d3
More fiddling, still no dice
2022-12-13 16:05:31 -08:00
Ben Wishovich
181a15cf66
WIP axum acces to request
2022-12-13 15:23:47 -08:00
Greg Johnston
4134d2f924
Working on `router` example
2022-12-13 14:20:58 -05:00
Greg Johnston
92335989b7
Don't overwrite `MetaContext` from integration
2022-12-12 20:55:57 -05:00
Greg Johnston
6b6c54e8ff
Updating hackernews example
2022-12-12 13:40:05 -05:00
Greg Johnston
c481e465b0
Update `counter-isomorphic`
2022-12-12 09:26:13 -05:00
Greg Johnston
073bd759b0
Add .gitignore
2022-12-12 09:25:57 -05:00
Greg Johnston
88435af844
Update `counter-isomorphic`example
2022-12-12 09:25:47 -05:00
Greg Johnston
86d5f4c2e4
Update `<For/>` in example
2022-12-11 20:21:07 -05:00
Greg Johnston
43ffa1bcd7
Use `Fn() -> Fragment` for component children, and update router and Suspense/Transition
2022-12-10 22:12:08 -05:00
Greg Johnston
a53f7ccdb7
Update `Suspense` and `Transition` with new `impl IntoView` pattern
2022-12-10 19:51:41 -05:00
Greg Johnston
b7bd4fc69c
Update `Counters` example
2022-12-10 19:51:30 -05:00
Greg Johnston
90de653a60
Concrete return types work
2022-12-10 19:28:11 -05:00
Greg Johnston
bcb130deca
Working on router
2022-12-10 09:15:05 -05:00
Greg Johnston
000d796149
Update router example
2022-12-10 08:32:19 -05:00
Greg Johnston
46e77d72ea
Add transition
2022-12-09 22:23:42 -05:00
Greg Johnston
ba34a9644e
Work on Suspense
2022-12-09 18:27:32 -05:00
Greg Johnston
0b448daf3a
Fix `SimpleCounter` example in tests
2022-12-09 14:58:53 -05:00
Greg Johnston
f6eceaeaf9
Update `counters` exaple
2022-12-09 14:56:50 -05:00
Greg Johnston
c01dba5138
Merge pull request #160 from gbj/component-documentation
...
Allows documenting `Component` and `ComponentProps` in a single doc comment
2022-12-09 14:27:36 -05:00
Greg Johnston
50b0fe157a
Fix example test
2022-12-09 13:34:35 -05:00
Greg Johnston
b56dde9a6d
Add working Tailwind example per issue #147
2022-12-09 13:05:20 -05:00
Greg Johnston
b8559d4335
Transition `counter` example to use `View`
2022-12-08 19:33:01 -05:00
Greg Johnston
aca2c131d4
Add the ability to document `Component` and `ComponentProps` in a single doc comment.
2022-12-08 17:08:54 -05:00
Greg Johnston
1ba602ec47
Fix issue #109
2022-12-06 22:31:54 -05:00
Greg Johnston
1f3dde5b4a
Fix Hackernews CSS
2022-12-06 19:22:29 -05:00
Greg Johnston
a65cd67db3
Fix name of Wasm export
2022-12-06 18:18:46 -05:00
Greg Johnston
a1f94b609f
Improvements to example to show off transitions and streaming
2022-12-05 16:17:47 -05:00
Ben Wishovich
52ad546710
Update rest of the examples and make the tests pass
2022-12-04 17:25:03 -08:00
Ben Wishovich
f88d2fa56a
Add socket_address option to configure the ip address and port to serve
2022-12-04 15:50:29 -08:00
Ben Wishovich
f63cb02277
Commit WIP version of common config struct that writes a KDL file for cargo-leptos
2022-12-04 14:50:36 -08:00
Ben Wishovich
7b376b6d3a
Draft Builder Pattern for Render Options to add Leptos Autorender Code
2022-12-02 16:33:59 -08:00
Ben Wishovich
8fbb4abc76
Switch integrations to pass in a full path and name v the name to enable different pkg structures
2022-12-02 12:01:51 -08:00
Greg Johnston
19698d86b6
Allow styling `<A/>` component with `class`
2022-12-02 13:20:07 -05:00
Greg Johnston
3d54055573
Add `<Meta/>` component to `leptos_meta`
2022-12-02 12:36:51 -05:00
Greg Johnston
58abe55d7b
Merge branch 'main' into axum-0.6
2022-12-01 13:10:06 -05:00
Ben Wishovich
79faad4aac
Missed another couple imports
2022-11-30 22:41:31 -08:00
Vytenis
be96a230ee
Update lib.rs
2022-12-01 01:47:54 +02:00
Ben Wishovich
0f8930b6f2
Update Axum examples to latest 0.6 release and streamline things
2022-11-30 15:02:22 -08:00
Greg Johnston
db8c393f49
Update examples
2022-11-30 11:36:54 -05:00
Greg Johnston
a2c5855362
`<Transition/>` component
2022-11-30 11:27:07 -05:00
Greg Johnston
c5a1e9a447
Copy edited and added Trunk install instructions
2022-11-29 20:00:09 -05:00
Ben Wishovich
e88e131ec3
Add READMEs to all examples and fix typo in todo-app-axum
2022-11-29 13:14:59 -08:00
Greg Johnston
c7dd6200e8
Fix GTK example
2022-11-29 07:07:10 -05:00
Greg Johnston
321e11e97a
Fix issue in which server-side resource are called 3x
2022-11-28 22:28:02 -05:00
Greg Johnston
c472a1c5ef
Fix misnamed optional-import feature exclusion that was causing CI to break
2022-11-28 20:50:04 -05:00
Greg Johnston
1180eeeadb
Merge pull request #127 from akesson/cargo-path-fix
...
Fix path deps' going one level too high
2022-11-28 12:17:32 -05:00
Greg Johnston
edb0f8c848
Fix import for CSR/no-features verson
2022-11-28 07:43:31 -05:00
Greg Johnston
40a842ff1d
Correct name of the root component we're rendering
2022-11-28 07:39:04 -05:00
hakesson
17baec46b7
Fix path deps' going one level too high
2022-11-28 06:03:56 +01:00
Ben Wishovich
6c22c47bbf
Cleanup, it now works except for when the server FN response is () or empty
2022-11-27 17:17:34 -08:00
Ben Wishovich
2d88a113c4
Typoed
2022-11-27 17:04:34 -08:00
Ben Wishovich
b0dd759bcf
Remove commented code in main
2022-11-27 17:01:42 -08:00
Ben Wishovich
507191e1a4
Mostly working version of axum with server functions
2022-11-27 16:55:38 -08:00
Greg Johnston
ed24e47c1d
Add examples of canceling in-flight requests (issue #32 ) and filter against empty IDs to avoid extra requests (issue #123 )
2022-11-26 15:29:46 -05:00
Greg Johnston
db34565959
Merge pull request #107 from benwis/msgpack-encoding
...
Binary encoding as an option for server functions
2022-11-25 22:44:53 -05:00
Greg Johnston
4093f4c2d8
Fix todomvc
2022-11-25 16:28:21 -05:00
Greg Johnston
994debea3f
Change `_ref` attribute to use `NodeRef` type
2022-11-25 15:38:46 -05:00
Greg Johnston
93f68e022f
Merge branch 'main' into msgpack-encoding
2022-11-25 14:35:52 -05:00
Greg Johnston
2b4dc76d95
Clear warnings in examples
2022-11-25 14:34:14 -05:00
Greg Johnston
a01b0cbbc6
Clear warnings from examples
2022-11-25 14:31:03 -05:00
Greg Johnston
4a426be6fb
Logging to track rerenders
2022-11-25 13:44:58 -05:00
Ben Wishovich
3ac92dc0fe
Switched out string for Payload enum in register() function and REGISTERED_SERVER_FUNCTIONS. Not sure if this is the way to go
2022-11-23 15:58:15 -08:00
Greg Johnston
6949750668
Fixing tests and examples
2022-11-23 18:29:20 -05:00
Ben Wishovich
440719071a
Switch MessagePack for CBOR, as it's more standardized
2022-11-23 14:23:49 -08:00
Jason Rodney Hansen
d8a97a81ff
Assign correct ids in `add_many_counters`
...
The counters and counters-stable examples didn't assign the correct ids when
clicking the "Add 1000 Counters" button if there were already counters added,
which meant clicking the "x" to remove them would remove the wrong counter.
2022-11-22 17:00:04 -07:00
Greg Johnston
89f837d3b6
Fixes #98 , cleans up `leptos_meta`, and improves interface by removing manual .into() calls
2022-11-21 10:47:54 -05:00
Greg Johnston
525a31bf3d
Working `render_app_to_stream` for Axum
2022-11-20 18:28:47 -05:00
Greg Johnston
4e8c1758c3
`render_app_to_stream` helper in `leptos_actix`
2022-11-20 16:03:08 -05:00
Greg Johnston
eff42a196f
`actix-web` integration with builtin server function handler route
2022-11-20 15:25:45 -05:00
Greg Johnston
4f3d7dc492
Add server context to counter-isomorphic example
2022-11-20 14:18:27 -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
75de8a95b6
Make `todo-app-sqlite` work in fully-WASMless mode with `<Suspense/>` and streaming
2022-11-19 07:36:16 -05:00
Greg Johnston
5ff806d35a
Merge pull request #92 from gbj/action-api
...
`Action` and `MultiAction` API changes
2022-11-18 15:21:07 -05:00
Greg Johnston
165ec069ba
Deletion feature
2022-11-18 15:20:33 -05:00
Greg Johnston
be7bce03dc
Optimistic UI
2022-11-18 14:58:10 -05:00
Greg Johnston
1b1182114d
Fix up example since there's no CSR option
2022-11-18 13:53:16 -05:00
Greg Johnston
5c36f0963c
Initial version of todo app with sqlite
2022-11-18 13:25:12 -05:00
Greg Johnston
43524c0135
Clean up docs on `counter-isomorphic`
2022-11-18 11:48:08 -05:00
Greg Johnston
2ad49a0a7e
Restore view-tests
2022-11-18 10:28:23 -05:00
Greg Johnston
58e0bead02
Fix JS path in hackernews example
2022-11-18 10:24:36 -05:00
Greg Johnston
46b1a96cc7
Allow triggering an effect to re-run from within the effect (so that e.g., you can `get()` and `set()` the same signal within the effect — see issue #83 )
2022-11-17 20:16:57 -05:00
Ben Wishovich
13a1d2efaa
Merge branch 'gbj:main' into axum-example
2022-11-16 18:34:01 -08:00
Ben Wishovich
cae3bb8bbd
Fix CSS imports, is a bit clunky though
2022-11-16 17:26:45 -08:00
Greg Johnston
c17c6549cf
Resolve ambiguous main import error
2022-11-16 20:15:29 -05:00
Ben Wishovich
971f75b6c5
It mostly works, except for the CSS
2022-11-16 16:09:51 -08:00
Ben Wishovich
fc6a3c0eb2
Getting closer
2022-11-16 13:36:35 -08:00
Ben Wishovich
cca63e6724
Closer to the goal!
2022-11-16 13:05:06 -08:00
Ben Wishovich
becd107290
Commited almost working example
2022-11-16 08:13:49 -08:00
Ben Wishovich
36f86afa02
Merge remote-tracking branch 'origin/main' into axum-example
2022-11-16 07:41:52 -08:00
Greg Johnston
96238c553e
Fix `router` example rendering
2022-11-16 07:24:21 -05:00
Ben Wishovich
19f89633ff
Some more WIP improvements for the Axum example
2022-11-15 14:55:38 -08:00
Ben Wishovich
3885816699
Add hackernews-axum example
2022-11-15 14:08:09 -08:00
Greg Johnston
21471f809f
Merge pull request #78 from gbj/fix-router-example
...
Fix rendering issues
2022-11-15 13:27:41 -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
a94e739725
Small changes to fix CI and clean up
2022-11-14 22:19:21 -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
Ben Wishovich
067b52f731
Fix missing import that is needed sometime
2022-11-14 17:18:11 -08:00
Ben Wishovich
40ed424116
Add denylist for optional Cargo features
2022-11-14 16:57:08 -08:00
Ben Wishovich
9c59564e16
Update cfg to make CI happy and remove some extra imports
2022-11-14 16:08:34 -08:00
Ben Wishovich
11f375fdaa
Fix another booboo in js imports
2022-11-14 15:02:58 -08:00
Ben Wishovich
bf301c2266
Fix issue with old import
2022-11-14 14:57:47 -08:00
Ben Wishovich
107f7c05c6
Fix README typo
2022-11-14 14:56:12 -08:00
Ben Wishovich
e9c1846470
counter-isomorphic mostly works now
2022-11-14 14:52:05 -08:00
Greg Johnston
796764493b
Fix `<Suspense/>` part of example
2022-11-14 17:31:57 -05:00
Ben Wishovich
b9e0255016
Commit working version of Router with render bug
2022-11-14 13:45:22 -08:00
Ben Wishovich
74b2889e8a
Add provide_context to router example
2022-11-14 13:37:58 -08:00
Ben Wishovich
482c84dc73
Add README to router example
2022-11-14 13:19:11 -08:00
Ben Wishovich
8c0385d94c
Add context to router example
2022-11-14 13:17:56 -08:00
Ben Wishovich
1c81337024
Merge branch 'main' into example-improvements
2022-11-14 13:17:39 -08:00
Ben Wishovich
992983efd9
Commit WIP version of isomorphic counter
2022-11-14 12:04:26 -08:00
Ben Wishovich
d8c2cab64d
Fix crate name
2022-11-14 09:15:56 -08:00
Ben Wishovich
0f2715290c
Updated hacker news example to new SFA format and added a README
2022-11-14 09:03:44 -08: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
d4da7e0c25
Allow returning `<template>` from `view`
2022-11-13 15:58:49 -05:00
Greg Johnston
f5ae5f4fff
Final TodoMVC fix
2022-11-12 08:39:30 -05:00
Greg Johnston
19ac14cf62
Figuring out the right way to handle refs/event listeners in SSR mode is hard...
2022-11-12 07:37:07 -05:00
Greg Johnston
3fe1c6ccda
Merge pull request #61 from gbj/doc-patrol
...
Adding missing docs
2022-11-12 06:40:14 -05:00
Greg Johnston
33bbfa6f75
Merge branch 'main' into doc-patrol
2022-11-11 22:02:39 -05:00
Greg Johnston
75354517bf
Fix failing test
2022-11-10 21:45:54 -05:00
Greg Johnston
01807ea514
Fix toggle_all panic
2022-11-10 21:43:40 -05:00
Greg Johnston
3d0a8f574e
Fix misplaced ref in TodoMVC
2022-11-09 07:47:17 -05:00
Greg Johnston
3730427789
Fix misplaced ref in TodoMVC
2022-11-09 07:47:05 -05:00
Greg Johnston
63a2199405
Oops this was an accident
2022-11-07 21:26:57 -05:00
Greg Johnston
fd3443b129
Fix TodoMVC example
2022-11-05 23:27:36 -04:00
Greg Johnston
4e9d0354c6
Use localStorage for initial state of todo list
2022-11-05 19:48:12 -04:00
Greg Johnston
cccd7068f9
Remove : I have bigger plans for this
2022-11-05 19:47:17 -04:00
Greg Johnston
8f56a52615
Simplify and add comments on TodoMVC
2022-11-05 19:14:45 -04:00
Greg Johnston
2483616d0d
Remove route data loaders for now.
2022-11-05 09:32:12 -04:00
Greg Johnston
bd652ec542
Adding docs
2022-11-04 16:50:03 -04:00
Greg Johnston
8a7ff0414a
Fixing a few more build/test issues
2022-11-02 23:10:12 -04:00
Greg Johnston
db69145fd9
Sorting out all sorts of feature flags etc. so everything will build and test
2022-11-02 21:46:47 -04:00
Greg Johnston
19db83c933
Rename ServerForm to ActionForm
2022-11-02 07:49:40 -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
ae0fad5465
Abstract out ActixIntegration into a broader ServerIntegration and make it easier to use
2022-10-30 19:41:59 -04:00
Greg Johnston
beaeb769d6
Update TODO.md
2022-10-29 20:35:57 -04:00
Greg Johnston
f411ece51a
Merge branch 'main' into server-rpc
2022-10-29 20:31:34 -04:00
Greg Johnston
9f884471a8
Rename create_async_action to create_action
2022-10-29 20:12:38 -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
4c2dc0e5c7
Updates todos for remaining work
2022-10-28 20:58:44 -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
Greg Johnston
3b5224295d
Extract server function stuff into a `leptos_server` library
2022-10-28 15:41:40 -04:00
Greg Johnston
33688d2463
Remove unnecessary logging
2022-10-28 15:10:09 -04:00
Greg Johnston
869e17736b
Create a trait to handle the server side of server functions
2022-10-28 15:03:26 -04:00
Greg Johnston
b7e40b9a30
Separate two forms of communication into separate components to show difference
2022-10-27 08:00:26 -04:00
Greg Johnston
6a3ff03e9d
Simple GTK counter example
2022-10-26 22:28:30 -04:00
Greg Johnston
41594af898
Examples with both route actions and with SSE to coordinate in a "multiplayer" way
2022-10-26 20:40:06 -04:00
Greg Johnston
3a2d5ef39c
Add TODOs here
2022-10-25 15:31:54 -04:00
Greg Johnston
06c6d3f3e4
Work on manual versions of APIs
2022-10-25 15:28:10 -04:00
Greg Johnston
afdf6343b9
Move action/server APIs into their own file
2022-10-25 14:28:06 -04:00
Greg Johnston
5c36229b97
create_route_action API
2022-10-25 14:17:59 -04:00
Greg Johnston
fd847633a9
This is a manual implementation of "server functions." I'm going to use this to build out the RPC protocol that will allow us to do proper, fine-grained data loading and mutations.
2022-10-24 20:09:18 -04:00
Greg Johnston
e59ec14dec
Remove `Clone` bounds on signals and make previous value in `Memo` fn `Option<&T>` instead of `Option<T>`
...
Merge pull request #37 from danheuck/remove-clone-bounds
2022-10-24 19:18:40 -04:00
Greg Johnston
9db73dfd26
Fix todomvc-ssr example
2022-10-24 09:27:28 -04:00
Dan Heuckeroth
523569cd94
Fix bug in "counters" examples
2022-10-23 21:24:31 -04:00
Greg Johnston
88464fefe9
Merge pull request #35 from danheuck/unserializable-resources
...
Unserializable resources
2022-10-23 21:23:36 -04:00
Greg Johnston
1d48da937b
Clarify TLS/HTTPS in HackerNews example server
2022-10-23 13:28:07 -04:00
Dan Heuckeroth
e80f04a5e8
Fix hackernews-app example
2022-10-22 23:13:31 -04:00
Greg Johnston
600eb8c1c9
`serde`, `serde-lite`, and `miniserde` features for resources
2022-10-22 16:22:44 -04:00
Greg Johnston
5c022879f1
Transition from serde to serde-lite to save Wasm binary size
2022-10-22 11:02:47 -04:00
Greg Johnston
a119acdfca
Add missing panic hook dep
2022-10-22 10:35:10 -04:00
Greg Johnston
298cd16acb
Better nav link highlighting in router example
2022-10-21 22:18:16 -04:00
Greg Johnston
fd0538fadf
Simply routing
2022-10-21 17:17:24 -04:00
Greg Johnston
4b142fcbe0
Clean up router example and fix some bugs
2022-10-21 15:00:54 -04:00
Greg Johnston
89b24bc52f
Replace route loaders with resources in examples, as the loader API is going to change
2022-10-21 14:47:59 -04:00
Greg Johnston
5880aaefd5
Include examples in workspace so `rust-analyzer` works (per issue #28 )
2022-10-20 21:44:38 -04:00
Greg Johnston
f59efc6c2b
Fix duplicates because I'm terrible at using GitHub
2022-10-20 21:43:30 -04:00
Greg Johnston
af152891a1
Merge branch 'main' into pr/add-console-panic-hooks
2022-10-20 17:51:40 -04:00
Oceantume
7065e5b32d
Add console error panic hook to all existing examples
2022-10-20 17:45:46 -04:00
Greg Johnston
a463bcca43
Add console_error_panic_hook to examples
2022-10-20 17:28:09 -04:00
Greg Johnston
4448f7a83a
Example of four modes of parent-child communication between components
2022-10-19 07:35:22 -04:00
Greg Johnston
1bbbdbf29e
Rationalize features and set up defaults so that a) users don't need to specify `csr` mode by default and b) tests pass without feature flags
2022-10-18 10:42:55 -04:00
Greg Johnston
70b2b3b283
Fix package name in example
2022-10-18 10:32:56 -04:00
Greg Johnston
1b074f4468
Fix stable example
2022-10-18 10:22:09 -04:00
Greg Johnston
2dd247c750
Fix example package names
2022-10-18 10:15:42 -04:00
Greg Johnston
418e4f4c77
wee_alloc is unmaintained so I'm now getting security alerts about it; I'm removing it from the examples.
2022-10-17 13:51:39 -04:00
Greg Johnston
0a0fb3bcf6
on_cleanup (issue #13 ) and example for cleanup functions
2022-10-17 13:39:40 -04:00
Greg Johnston
015bfc24fd
Feature-flag to enable support for stable Rust instead of nightly
2022-10-17 13:23:20 -04:00
Greg Johnston
7c19dd8039
Clearing some additional warnings in examples
2022-10-17 11:03:43 -04:00
Greg Johnston
3f7e7193ea
Clearing up some of the flood of warnings for unused imports etc. that have come up as I've shifted around implementations
2022-10-17 10:45:20 -04:00
Greg Johnston
4c5518bd20
Helper for route loader JSON responses
2022-10-16 22:18:07 -04:00
Greg Johnston
9a03fcf2ef
Provide helping for streaming SSR
2022-10-16 22:06:13 -04:00
Greg Johnston
3dd3870dbf
Fixing/updating SSR/hydration and some bugs in new reactivity
2022-10-15 22:17:58 -04:00
Greg Johnston
7a04411b64
New reactive system: switching to using SecondaryMaps from slotmap to reduce binary size and creation cost significantly
2022-10-15 19:26:17 -04:00
Greg Johnston
56c04e3772
Small updates to book
2022-10-14 15:44:08 -04:00
Greg Johnston
6d7c36655c
Not actually necessary, because the effect won't run on the server anyway
2022-10-14 14:42:27 -04:00
Greg Johnston
16f084a712
Fix Hacker News SSR/streaming/hydration
2022-10-13 18:53:31 -04:00
Greg Johnston
9563e70dcf
Fix hackernews example (CSR)
2022-10-13 17:13:30 -04:00
Greg Johnston
2c90922385
Fix up TodoMVC example and add build script on client side
2022-10-13 16:42:00 -04:00
Greg Johnston
2b1eeacef1
Remove transition example
2022-10-12 22:30:38 -04:00
Greg Johnston
c02839d6fc
Remove version numbers from examples
2022-10-12 14:43:42 -04:00
Greg Johnston
6e89ea4447
Proc-macro hygiene by including cx in view! macro. :-( but necessary...
2022-10-10 20:44:44 -04:00
Greg Johnston
b6cdf43622
Fix issue #1 on route loaders reloading
2022-10-08 22:03:35 -04:00
Greg Johnston
3638f488c9
Change <Link/> and <NavLink/> to <A/>, and update router example
2022-10-08 21:34:59 -04:00
Greg Johnston
2d2f2a52a4
Update all libraries and examples to use new set_x API
2022-10-08 20:39:13 -04:00
Greg Johnston
6e5e18eb33
Transition example broken, should fix
2022-10-08 20:38:56 -04:00
Greg Johnston
b23a6b6a26
Add version number for leptos dependencies
2022-10-07 06:53:17 -04:00
Greg Johnston
1d42c1b902
Significant progress on accurate/robust hydration
2022-10-01 21:25:49 -04:00
Greg Johnston
a0e320dee3
Remove old manual hydration example (would be broken in any case)
2022-09-30 15:27:38 -04:00
Greg Johnston
b2fcb552ea
Add <Stylesheet> component to meta
2022-09-28 20:54:56 -04:00
Greg Johnston
1a1af6a673
Out-of-order HTML streaming of Suspense nodes!
2022-09-11 21:13:30 -04:00
Greg Johnston
1b796ccd70
Remove unnecessary quotes
2022-09-11 16:20:56 -04:00
Greg Johnston
fb1dc9302a
Remove layout jank
2022-09-11 16:20:52 -04:00
Greg Johnston
80de7e9e12
Work on data streaming
2022-09-11 15:11:03 -04:00
Greg Johnston
4424361f57
Fixing hydration
2022-09-08 22:04:36 -04:00
Greg Johnston
4a8339df18
Picking away at hydration bugs
2022-09-07 22:21:22 -04:00
Greg Johnston
133a088364
Progress on SSR/hydration
2022-09-07 15:43:35 -04:00
Greg Johnston
45d1bbc236
Create HackerNews app
2022-09-05 12:32:27 -04:00
Greg Johnston
812c3a2045
SSR/hydration example!
2022-09-03 17:53:18 -04:00
Greg Johnston
a4a8a972b5
Rationalize features for CSR/SSR/hydration
2022-09-03 11:26:57 -04:00
Greg Johnston
2d62610288
Update examples, removing unnecessary one and using new APIs
2022-09-03 08:16:22 -04:00
Greg Johnston
bea51d54ef
Clear warnings in TodoMVC
2022-09-03 08:03:07 -04:00
Greg Johnston
ed23604237
Update TodoMVC example to use new interfaces
2022-09-02 15:22:35 -04:00
Greg Johnston
18d28ecefc
Hydration improvements
2022-09-02 14:50:49 -04:00
Greg Johnston
395075b530
Hydration!
2022-09-02 11:26:06 -04:00
Greg Johnston
54f37095dc
Beginning work on SSR/hydration
2022-09-01 10:39:04 -04:00
Greg Johnston
4eadf6e788
Clear warnings
2022-09-01 10:38:32 -04:00
Greg Johnston
89d30d017c
Router example
2022-08-29 08:05:14 -04:00
Greg Johnston
9233985738
Cleaning warnings
2022-08-25 15:04:30 -04:00
Greg Johnston
b602eea6bb
New reactive system
2022-08-24 16:47:37 -04:00
Greg Johnston
41f415160a
Remove Memo
2022-08-24 11:19:58 -04:00
Greg Johnston
7cfebcbfee
Significant router work
2022-08-24 10:59:06 -04:00
Greg Johnston
7996e25045
Clean up after work on transitions
2022-08-13 15:06:34 -04:00
Greg Johnston
9d2e7022f1
Transitions!
2022-08-13 09:26:04 -04:00
Greg Johnston
46fd5f6355
Make Resources copy/serializable like Signals etc.; useful for DX but also for ultimately serializing the dependency graph and resuming apps
2022-08-12 13:05:38 -04:00
Greg Johnston
00a0e8d5e0
Add Suspense
2022-08-12 11:51:59 -04:00
Greg Johnston
af5becb85b
Recomponentify
2022-08-11 07:15:00 -04:00
Greg Johnston
3e4adcad21
Fix some ownership clashes by using grow-only Vecs to hold signal/memo/effect state
2022-08-10 22:55:55 -04:00
Greg Johnston
4a7154071e
Debugging issues
2022-08-10 22:42:54 -04:00
Greg Johnston
612b64707e
Experimenting with a new reactive system
2022-08-10 22:34:20 -04:00
Greg Johnston
c2c4a4afe6
Use my old reactive system again
2022-08-08 14:09:16 -04:00
Greg Johnston
78b10dd546
Transition example
2022-08-05 07:53:56 -04:00
Greg Johnston
ef032092f1
Iniitial work on transitions
2022-08-05 07:53:34 -04:00
Greg Johnston
4da115b52c
Transition example (without transitions)
2022-08-05 07:53:22 -04:00
Greg Johnston
5612793f4e
Suspense
2022-08-03 10:28:36 -04:00
Greg Johnston
62eaa56102
Much neater
2022-08-01 18:43:39 -04:00
Greg Johnston
46ea459988
Async/Resource support and example
2022-08-01 18:02:02 -04:00
Greg Johnston
b21973783d
Improved naming conventions and remove an extra clone in create_signal_owned
2022-07-31 19:40:55 -04:00
Greg Johnston
17c2faeb56
Initial commit
2022-07-31 16:46:14 -04:00