Evan Almloff
d6089bbd35
add optional dependency variants of selectors and effects
2023-08-08 13:06:33 -07:00
Evan Almloff
25f02904e9
make clippy happy
2023-08-08 11:39:36 -07:00
Evan Almloff
e43bdd815f
fix test failures
2023-08-08 11:27:29 -07:00
Evan Almloff
e2c08a79ae
fix signal readme example
2023-08-08 11:12:08 -07:00
Yolo
51b62dd33a
fix: readme awesome link ( #1320 )
2023-08-08 12:57:57 -05:00
Evan Almloff
aaded7981f
fix boolean attribute rendering in SSR
2023-08-08 10:56:41 -07:00
Evan Almloff
d1603238c4
Fix events with a text node target
2023-08-08 09:49:04 -07:00
Evan Almloff
292b3367dd
create some more compelling examples
2023-08-07 18:20:03 -07:00
Evan Almloff
0dc602eb32
Merge branch 'master' into signals
2023-08-07 18:02:19 -07:00
Evan Almloff
ed05abc196
document remaining methods in the signal crate
2023-08-07 18:00:17 -07:00
Evan Almloff
0c17bdb737
don't subscribe in tasks or event handlers
2023-08-07 17:55:29 -07:00
Evan Almloff
4447709ac8
add readmes
2023-08-07 17:49:14 -07:00
Evan Almloff
280d094f67
document generational box
2023-08-07 17:32:25 -07:00
Evan Almloff
c32d6dc8cb
Handle oninput for select elements
2023-08-07 17:19:16 -07:00
Evan Almloff
cfd68bf7d9
document signals crate
2023-08-07 16:56:49 -07:00
Evan Almloff
2c7d0700d4
rename memo to selector
2023-08-07 16:17:47 -07:00
Evan Almloff
646c161c7d
create read only signal
2023-08-07 16:04:49 -07:00
Evan Almloff
6ca170453b
handle virtual dom switching
2023-08-07 14:59:58 -07:00
Evan Almloff
ddbe913e79
make signals non-breaking
2023-08-07 14:50:36 -07:00
Evan Almloff
84734c4146
change dioxus signal to generational box
2023-08-07 14:34:16 -07:00
Evan Almloff
190c65b15d
fix memo and add tests
2023-08-07 14:31:03 -07:00
Evan Almloff
7f2049b647
add memo
2023-08-07 12:32:46 -07:00
Evan Almloff
717c09c4a3
create tests for signals
2023-08-07 11:52:54 -07:00
Evan Almloff
b0d499036a
make future handling functions global
2023-08-07 11:16:22 -07:00
Evan Almloff
65102b70c7
return more useful messages when a server function errors
2023-08-07 11:09:51 -07:00
Brian Donovan
a025617db3
refactor(cli): use more semantic Instant::elapsed
( #1307 )
...
Plus, one of these was incorrectly subtracting the end time from the start time.
2023-08-07 11:08:51 -05:00
Jonathan Kelley
56c3dcc437
Merge pull request #1301 from eventualbuddha/chore/cli/remove-unused-fn
...
chore(cli): remove unused function
2023-08-06 23:09:28 -07:00
Dylan Blokhuis
24df4e15d9
spelling ( #1308 )
2023-08-06 11:42:36 -05:00
Jonathan Kelley
ac30a9af7d
Merge pull request #1305 from eventualbuddha/fix/cli/prevent-zip-slip
2023-08-05 00:54:01 -07:00
Brian Donovan
03e02591ec
fix(cli): allows extracting files without separate directory entries
...
Some zip files do not list directories separately from files. For example, a zip might contain `dir/file.txt` without a corresponding entry for just `dir/`. This should be okay, so we just create the leading paths for the files we extract as necessary.
Also adds tests for the expected and dangerous path cases of `extract_zip`.
2023-08-04 21:28:09 -07:00
Brian Donovan
14e7c50478
fix(cli): prevent "zip slip" vulnerability in tool extract
...
Using the name directly from a zip archive's entry and writing to it is a potential security vulnerability. More information about the vulnerability can be found here: https://security.snyk.io/research/zip-slip-vulnerability and here https://docs.rs/zip/latest/zip/read/struct.ZipFile.html#warnings .
It looks like the previous version maybe tried to remove `\` characters to prevent this, but only in directory paths?
2023-08-04 20:02:07 -07:00
Evan Almloff
dce418140a
create a way to hoist ownership to a different scope
2023-08-04 17:50:05 -07:00
Evan Almloff
49001c59d3
add logging to clock example
2023-08-04 17:29:44 -07:00
Evan Almloff
b3fbbba711
fix signals in futures
2023-08-04 17:25:40 -07:00
Evan Almloff
a6f611eccf
fix subscriptions in events
2023-08-04 17:23:57 -07:00
Evan Almloff
07ed3e67dd
add check_generation feature flag
2023-08-04 15:46:04 -07:00
Evan Almloff
0032f7e2af
fix miri
2023-08-04 15:23:09 -07:00
Brian Donovan
7a7397bbb4
chore(cli): remove unused module ( #1302 )
...
It seems this was replaced by the `plugin.rs` module in 6cce4b9f4d
.
2023-08-04 17:01:04 -05:00
Brian Donovan
a77ff1c820
docs(cli): update subcommand comments ( #1303 )
...
A bunch of these were copy-pasted from `build`. This commit updates them to be the same as what their `dx help` string is.
2023-08-04 17:00:41 -05:00
Brian Donovan
5c62947835
refactor(cli): move check
module alongside others ( #1304 )
...
There was no reason for `check` to be defined as `check/mod.rs` when all the others were at the top level e.g. `serve.rs`.
2023-08-04 17:00:19 -05:00
Evan Almloff
48b1e9e54c
fix copy dependencies
2023-08-04 14:53:34 -07:00
Evan Almloff
3242fc9e88
add debug impl
2023-08-04 14:49:52 -07:00
Evan Almloff
0be5dbe715
fix the context API
2023-08-04 14:42:19 -07:00
Evan Almloff
2b6b3b67b1
move dioxus copy into a separate package
2023-08-04 14:28:55 -07:00
Evan Almloff
998f9e0d00
remove static bound from props
2023-08-04 14:24:49 -07:00
Evan Almloff
a2c7b69a1d
set the scope stack correctly
2023-08-04 14:19:59 -07:00
Evan Almloff
b09e528aaa
fix recursive runtime drop impl
2023-08-04 14:14:56 -07:00
Evan Almloff
cb4c46154d
fix scope context
2023-08-04 14:12:59 -07:00
Evan Almloff
04cdb14e5b
improve signal copy runtime
2023-08-04 13:53:05 -07:00
Brian Donovan
63bb5cc758
chore(cli): remove unused function
...
I believe that technically this function is part of the public API via `dioxus_cli::cli::cfg::parse_public_url`. However, I don't see any evidence that this function is actually used inside or outside this crate. The last use within the crate was removed in January 2022 (9bb10c65a3
).
2023-08-04 13:52:49 -07:00