diff --git a/Cargo.lock b/Cargo.lock index 3286873..1378fb9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -650,7 +650,7 @@ dependencies = [ "ansi_term", "atty", "bitflags", - "strsim", + "strsim 0.8.0", "textwrap", "unicode-width", "vec_map", @@ -736,6 +736,41 @@ dependencies = [ "cipher", ] +[[package]] +name = "darling" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11947000d710ff98138229f633039982f0fef2d9a3f546c21d610fee5f8631d5" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae53b4d9cc89c40314ccf2bf9e6ff1eb19c31e3434542445a41893dbf041aec2" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim 0.10.0", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9cd9ac4d50d023af5e710cae1501afb063efcd917bd3fc026e8ed6493cc9755" +dependencies = [ + "darling_core", + "quote", + "syn", +] + [[package]] name = "derive_more" version = "0.99.11" @@ -1131,6 +1166,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + [[package]] name = "idna" version = "0.2.1" @@ -1899,6 +1940,28 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_with" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b44be9227e214a0420707c9ca74c2d4991d9955bae9415a8f93f05cebf561be5" +dependencies = [ + "serde", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48b35457e9d855d3dc05ef32a73e0df1e2c0fd72c38796a4ee909160c8eeec2" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sha-1" version = "0.8.2" @@ -2059,6 +2122,12 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + [[package]] name = "subtle" version = "2.4.0" @@ -2670,6 +2739,7 @@ dependencies = [ "rand 0.8.3", "serde", "serde_json", + "serde_with", "simple-logging", "tera", "thiserror", diff --git a/yopa-web/Cargo.toml b/yopa-web/Cargo.toml index 990af7f..b477468 100644 --- a/yopa-web/Cargo.toml +++ b/yopa-web/Cargo.toml @@ -27,6 +27,7 @@ json_dotpath = "1.0.3" anyhow = "1.0.38" thiserror = "1.0.24" clap = "2" +serde_with = "1.6.4" tokio = { version="0.2.6", features=["full"] } diff --git a/yopa-web/resources/src/components/EditObjectForm.vue b/yopa-web/resources/src/components/EditObjectForm.vue index 779d56b..e5b8e5c 100644 --- a/yopa-web/resources/src/components/EditObjectForm.vue +++ b/yopa-web/resources/src/components/EditObjectForm.vue @@ -86,7 +86,6 @@ export default { return { model: this.object.model, // string is fine id: this.object.id, - name: this.name, values, relations, }; @@ -140,13 +139,6 @@ export default {
- | - - | -
---|
- | - - | -
---|