dependencies update

This commit is contained in:
2024-12-21 23:11:13 +01:00
parent 5e320d2782
commit f568fd35b7
89 changed files with 36761 additions and 19028 deletions
+3 -3
View File
@@ -17,13 +17,13 @@ gettext-utils = "0.1.0"
lazy_static = "1.3"
serde = "1.0.137"
serde_json = "1.0"
wasm-bindgen = "0.2.81"
js-sys = "0.3.58"
wasm-bindgen = "0.2.99"
js-sys = "0.3.76"
serde_derive = "1.0.123"
console_error_panic_hook = "0.1.6"
[dependencies.web-sys]
version = "0.3.58"
version = "0.3.76"
features = [
'console',
'ClipboardEvent',
@@ -11,3 +11,36 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
msgid "Do you want to load the local autosave last edited at {}?"
msgstr ""
msgid "Open the rich text editor"
msgstr ""
msgid "Title"
msgstr ""
msgid "Subtitle, or summary"
msgstr ""
msgid "Write your article here. Markdown is supported."
msgstr ""
msgid "Around {} characters left"
msgstr ""
msgid "Tags"
msgstr ""
msgid "License"
msgstr ""
msgid "Cover"
msgstr ""
msgid "This is a draft"
msgstr ""
msgid "Publish"
msgstr ""
+5 -1
View File
@@ -168,10 +168,14 @@ fn load_autosave() {
.get(&get_autosave_id())
{
let autosave_info: AutosaveInformation = serde_json::from_str(&autosave_str).ok().unwrap();
let d = &JsValue::from_f64(autosave_info.last_saved);
let message = i18n!(
CATALOG,
"Do you want to load the local autosave last edited at {}?";
Date::new(&JsValue::from_f64(autosave_info.last_saved)).to_date_string().as_string().unwrap()
// next line shows 'unexpected token' error on docker image building
//Date::new(&JsValue::from_f64(autosave_info.last_saved)).to_date_string().as_string().unwrap()
Date::new(d).to_date_string().as_string().unwrap()
);
if let Ok(true) = window().unwrap().confirm_with_message(&message) {
set_value("editor-content", &autosave_info.contents);