From 8d74de75faba037252fce8d229420982e7588bfd Mon Sep 17 00:00:00 2001 From: TeodoraPavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Wed, 8 May 2024 15:52:24 +0300 Subject: [PATCH] Load schema on demand (fixes #203) (#207) * Load schema on demand (fixes #203) * refactor move schema.js to composables * rename event update-schema to updateSchema in order to find occurrences easily --- frontend/src/App.vue | 1 - frontend/src/components/Entity.vue | 194 +++++++++--------- frontend/src/components/EntityBulkEdit.vue | 134 ++++++------ frontend/src/components/Schema.vue | 166 ++++++++------- frontend/src/components/SchemaEdit.vue | 4 +- .../inputs/ReferencedEntitySelect.vue | 2 +- frontend/src/composables/schema.js | 19 ++ 7 files changed, 277 insertions(+), 243 deletions(-) create mode 100644 frontend/src/composables/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..46fde45 100644 --- a/frontend/src/components/Entity.vue +++ b/frontend/src/components/Entity.vue @@ -1,113 +1,115 @@