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
Brian Donovan
8f93ff3747
docs(hooks): fix typos ( #1299 )
...
I'm not totally sure how the sentence was supposed to read, but removing "state" from "It state" seemed to work. Also, "it's" is "it is" and not possessive, so I fixed that.
2023-08-04 15:13:02 -05:00
Evan Almloff
61a3b05616
fix parsing spread routes
2023-08-04 12:06:17 -07:00
Brian Donovan
6d154b5072
Minor Proxy Improvements ( #1289 )
...
* fix(serve): provide a clear error with pathless proxy URLs
Without this, `dx serve` panics with this message:
```
Paths must start with a `/`. Use "/" for
root routes
```
That's not very clear. Instead, we can detect this situation and provide a better error message:
```
Error: 🚫 Serving project failed: Failed to establish proxy: Proxy backend URL must have a non-empty path, e.g. http://localhost:8080/api instead of http://localhost:8080
```
* docs(config): correct format for `web.proxy`
2023-08-04 13:44:56 -05:00
Brian Donovan
50230b6f71
build(web): fix default-features
warning ( #1296 )
...
`cargo build` would print this warning:
```
warning: dioxus/packages/web/Cargo.toml: `default-features` is ignored for dioxus-html, since `default-features` was not specified for `workspace.dependencies.dioxus-html`, this could become a hard error in the future
```
Since it's being ignored anyway and that doesn't seem to be causing problems, I figured I'd remove it and get rid of the warning.
2023-08-04 12:51:17 -05:00
Brian Donovan
ab1d64bc4a
docs(cli): fix typo ( #1294 )
...
"tripple" should be "triple".
2023-08-04 12:49:31 -05:00
Brian Donovan
e98e773186
doc: fix typo ( #1287 )
2023-08-03 16:32:14 -05:00
Jonathan Kelley
3d4c5d7c98
Update fullstack to 0.4.1
2023-08-03 12:34:54 -07:00