From ee24917bee0157f1d1a93494bc216d3292753ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 2 Mar 2021 00:15:39 +0100 Subject: [PATCH] new forms --- yopa-web/Makefile | 5 + .../src/components/EditObjectForm.vue | 21 +- .../src/components/EditPropertyField.vue | 31 +- .../src/components/EditRelationForm.vue | 24 +- .../src/components/NewObjectForm.vue | 19 +- .../src/components/NewRelationForm.vue | 49 +- .../src/components/PropertyField.vue | 55 +- yopa-web/resources/src/style/_common.scss | 222 - .../resources/src/style/_spectre-patches.scss | 4 + yopa-web/resources/src/style/app.scss | 21 +- .../src/style/spectre/src/_tables.scss | 3 +- yopa-web/resources/static/bundle.js | 10412 +--------------- yopa-web/resources/static/bundle.js.map | 2 +- yopa-web/resources/static/style.css | 30 +- .../templates/_form_macros.html.tera | 39 + .../resources/templates/_layout.html.tera | 20 +- .../templates/models/_schema_macros.html.tera | 1 + .../templates/models/index.html.tera | 2 +- .../templates/models/model_create.html.tera | 17 +- .../templates/models/model_update.html.tera | 34 +- .../models/property_create.html.tera | 54 +- .../models/property_update.html.tera | 70 +- .../models/relation_create.html.tera | 57 +- .../models/relation_update.html.tera | 39 +- .../templates/objects/index.html.tera | 18 +- .../templates/objects/object_create.html.tera | 3 +- .../templates/objects/object_detail.html.tera | 20 +- .../templates/objects/object_update.html.tera | 2 +- yopa-web/resources/test/edit_object.html | 13 +- .../resources/test/edit_object_model.html | 51 + yopa-web/resources/test/edit_prop_model.htm | 83 + yopa-web/resources/test/edit_rel_model.html | 52 + yopa-web/resources/test/model_list.html | 66 + yopa-web/resources/test/new_object.html | 29 + yopa-web/resources/test/new_rel_model.html | 74 + yopa-web/resources/test/object_detail.html | 73 + yopa-web/src/routes/models/property.rs | 1 + 37 files changed, 748 insertions(+), 10968 deletions(-) delete mode 100644 yopa-web/resources/src/style/_common.scss create mode 100644 yopa-web/resources/templates/_form_macros.html.tera create mode 100644 yopa-web/resources/test/edit_object_model.html create mode 100644 yopa-web/resources/test/edit_prop_model.htm create mode 100644 yopa-web/resources/test/edit_rel_model.html create mode 100644 yopa-web/resources/test/model_list.html create mode 100644 yopa-web/resources/test/new_object.html create mode 100644 yopa-web/resources/test/new_rel_model.html create mode 100644 yopa-web/resources/test/object_detail.html diff --git a/yopa-web/Makefile b/yopa-web/Makefile index 279c345..56d1c4b 100644 --- a/yopa-web/Makefile +++ b/yopa-web/Makefile @@ -1,2 +1,7 @@ +.PHONY: assets watch + assets: cd resources && npm run build + +watch: + cd resources && npm run watch diff --git a/yopa-web/resources/src/components/EditObjectForm.vue b/yopa-web/resources/src/components/EditObjectForm.vue index c8df88d..83a13da 100644 --- a/yopa-web/resources/src/components/EditObjectForm.vue +++ b/yopa-web/resources/src/components/EditObjectForm.vue @@ -134,19 +134,20 @@ export default {