Update packages
This commit is contained in:
parent
e8511c01b0
commit
526029ee4d
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
plate-tool-lib = { path = "../plate-tool-lib" }
|
plate-tool-lib = { path = "../plate-tool-lib" }
|
||||||
yew = { version = "0.20.0", features = ["csr"] }
|
yew = { version = "0.21.0", features = ["csr"] }
|
||||||
yewdux = "0.9"
|
yewdux = "0.10"
|
||||||
wasm-bindgen = "0.2"
|
wasm-bindgen = "0.2"
|
||||||
web-sys = { version = "0.3", features = ["FormData", "HtmlFormElement",
|
web-sys = { version = "0.3", features = ["FormData", "HtmlFormElement",
|
||||||
"HtmlDialogElement", "Blob", "Url", "Window",
|
"HtmlDialogElement", "Blob", "Url", "Window",
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link data-trunk rel="scss" href="assets/scss/index.scss">
|
<link data-trunk rel="scss" href="assets/scss/index.scss">
|
||||||
<link data-trunk rel="copy-dir" href="assets/fonts">
|
<link data-trunk rel="copy-dir" href="assets/fonts">
|
||||||
|
<link data-trunk rel="rust" data-bin="plate-tool-web" />
|
||||||
<script data-trunk src="assets/js/screenshot_utility.js"></script>
|
<script data-trunk src="assets/js/screenshot_utility.js"></script>
|
||||||
<script data-trunk src="assets/js/html2canvas.js"></script>
|
<script data-trunk src="assets/js/html2canvas.js"></script>
|
||||||
<title>Plate Tool</title>
|
<title>Plate Tool</title>
|
||||||
|
|
|
@ -41,7 +41,8 @@ pub fn NewPlateDialog(props: &NewPlateDialogProps) -> Html {
|
||||||
{
|
{
|
||||||
let dialog_ref = dialog_ref.clone();
|
let dialog_ref = dialog_ref.clone();
|
||||||
|
|
||||||
use_effect_with_deps(
|
use_effect_with(
|
||||||
|
dialog_ref,
|
||||||
|dialog_ref| {
|
|dialog_ref| {
|
||||||
dialog_ref
|
dialog_ref
|
||||||
.cast::<HtmlDialogElement>()
|
.cast::<HtmlDialogElement>()
|
||||||
|
@ -49,7 +50,6 @@ pub fn NewPlateDialog(props: &NewPlateDialogProps) -> Html {
|
||||||
.show_modal()
|
.show_modal()
|
||||||
.ok();
|
.ok();
|
||||||
},
|
},
|
||||||
dialog_ref,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,8 @@ pub struct MainState {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Store for MainState {
|
impl Store for MainState {
|
||||||
fn new() -> Self {
|
fn new(context: &yewdux::Context) -> Self {
|
||||||
init_listener(storage::StorageListener::<Self>::new(storage::Area::Local));
|
init_listener(storage::StorageListener::<Self>::new(storage::Area::Local), context);
|
||||||
|
|
||||||
storage::load(storage::Area::Local)
|
storage::load(storage::Area::Local)
|
||||||
.expect("Unable to load state")
|
.expect("Unable to load state")
|
||||||
|
|
|
@ -205,7 +205,8 @@ fn PlateInfoModal(props: &PlateInfoModalProps) -> Html {
|
||||||
{
|
{
|
||||||
let dialog_ref = dialog_ref.clone();
|
let dialog_ref = dialog_ref.clone();
|
||||||
|
|
||||||
use_effect_with_deps(
|
use_effect_with(
|
||||||
|
dialog_ref,
|
||||||
|dialog_ref| {
|
|dialog_ref| {
|
||||||
dialog_ref
|
dialog_ref
|
||||||
.cast::<HtmlDialogElement>()
|
.cast::<HtmlDialogElement>()
|
||||||
|
@ -213,7 +214,6 @@ fn PlateInfoModal(props: &PlateInfoModalProps) -> Html {
|
||||||
.show_modal()
|
.show_modal()
|
||||||
.ok();
|
.ok();
|
||||||
},
|
},
|
||||||
dialog_ref,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue