π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
β‘ Lazy load the schema data, only when needed
Alicia Sykesc4249e7d7e69
diff --git a/src/components/InteractiveEditor/EditAppConfig.vue b/src/components/InteractiveEditor/EditAppConfig.vueindex 596ef0b3..f05a73b3 100644--- a/src/components/InteractiveEditor/EditAppConfig.vue+++ b/src/components/InteractiveEditor/EditAppConfig.vue@@ -31,9 +31,11 @@ import StoreKeys from '@/utils/StoreMutations';import { modalNames } from '@/utils/config/defaults';import ErrorHandler, { InfoHandler, InfoKeys } from '@/utils/logging/ErrorHandler';import safeClone from '@/utils/safeClone';+import { defineAsyncComponent } from 'vue';import AccessError from '@/components/Configuration/AccessError';import SaveCancelButtons from '@/components/InteractiveEditor/SaveCancelButtons';-import SchemaForm from '@/components/FormElements/SchemaForm';++const SchemaForm = defineAsyncComponent(() => import('@/components/FormElements/SchemaForm.vue'));export default {name: 'EditAppConfig',diff --git a/src/components/InteractiveEditor/EditMultiPages.vue b/src/components/InteractiveEditor/EditMultiPages.vueindex 8265f554..6d01dd31 100644--- a/src/components/InteractiveEditor/EditMultiPages.vue+++ b/src/components/InteractiveEditor/EditMultiPages.vue@@ -20,9 +20,11 @@ import StoreKeys from '@/utils/StoreMutations';import { modalNames } from '@/utils/config/defaults';import ErrorHandler, { InfoHandler, InfoKeys } from '@/utils/logging/ErrorHandler';import safeClone from '@/utils/safeClone';+import { defineAsyncComponent } from 'vue';import SaveCancelButtons from '@/components/InteractiveEditor/SaveCancelButtons';import AccessError from '@/components/Configuration/AccessError';-import SchemaForm from '@/components/FormElements/SchemaForm';++const SchemaForm = defineAsyncComponent(() => import('@/components/FormElements/SchemaForm.vue'));/* Curated subset of the pages schema (name, path, and the most commonly* toggled displayData flag). Full option list is in the docs. */diff --git a/src/components/InteractiveEditor/EditPageInfo.vue b/src/components/InteractiveEditor/EditPageInfo.vueindex c8c1d6df..6dfe1026 100644--- a/src/components/InteractiveEditor/EditPageInfo.vue+++ b/src/components/InteractiveEditor/EditPageInfo.vue@@ -20,9 +20,11 @@ import StoreKeys from '@/utils/StoreMutations';import { modalNames } from '@/utils/config/defaults';import ErrorHandler, { InfoHandler, InfoKeys } from '@/utils/logging/ErrorHandler';import safeClone from '@/utils/safeClone';+import { defineAsyncComponent } from 'vue';import AccessError from '@/components/Configuration/AccessError';import SaveCancelButtons from '@/components/InteractiveEditor/SaveCancelButtons';-import SchemaForm from '@/components/FormElements/SchemaForm';++const SchemaForm = defineAsyncComponent(() => import('@/components/FormElements/SchemaForm.vue'));export default {name: 'EditPageInfo',diff --git a/src/components/InteractiveEditor/EditSection.vue b/src/components/InteractiveEditor/EditSection.vueindex 51a979af..5c5a3e6f 100644--- a/src/components/InteractiveEditor/EditSection.vue+++ b/src/components/InteractiveEditor/EditSection.vue@@ -21,9 +21,11 @@ import StoreKeys from '@/utils/StoreMutations';import { modalNames } from '@/utils/config/defaults';import ErrorHandler, { InfoHandler, InfoKeys } from '@/utils/logging/ErrorHandler';import safeClone from '@/utils/safeClone';+import { defineAsyncComponent } from 'vue';import SaveCancelButtons from '@/components/InteractiveEditor/SaveCancelButtons';import AccessError from '@/components/Configuration/AccessError';-import SchemaForm from '@/components/FormElements/SchemaForm';++const SchemaForm = defineAsyncComponent(() => import('@/components/FormElements/SchemaForm.vue'));/* Curated subset of the section schema: omits `items` (edited per-item elsewhere)* and trims displayData to the commonly-tweaked attributes. */