From a7af9404af7f9207d63e9fc8afd0de45956af771 Mon Sep 17 00:00:00 2001 From: Teodora Pavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:59:48 +0300 Subject: [PATCH 1/4] Load schema on demand (fixes #203) --- frontend/src/App.vue | 1 - frontend/src/components/Entity.vue | 194 +++++++++--------- frontend/src/components/EntityBulkEdit.vue | 134 ++++++------ frontend/src/components/Schema.vue | 164 ++++++++------- frontend/src/components/SchemaEdit.vue | 4 +- .../inputs/ReferencedEntitySelect.vue | 2 +- frontend/src/store/schema.js | 19 ++ 7 files changed, 275 insertions(+), 243 deletions(-) create mode 100644 frontend/src/store/schema.js diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 07c543d..934914d 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -63,7 +63,6 @@ export default { }, provide() { return { - activeSchema: computed(() => this.activeSchema), availableSchemas: computed(() => this.$refs.schemalist.schemas), updatePendingRequests: this.onPendingReviews, apiInfo: computed(() => this.apiInfo) diff --git a/frontend/src/components/Entity.vue b/frontend/src/components/Entity.vue index b471120..ef45fd9 100644 --- a/frontend/src/components/Entity.vue +++ b/frontend/src/components/Entity.vue @@ -1,113 +1,115 @@