From bd4e51980c990c72023ecabf2032290c5f4841b3 Mon Sep 17 00:00:00 2001 From: Maksim Nedoshev Date: Mon, 18 Nov 2024 15:58:27 +0200 Subject: [PATCH] chore(docs): improve perfomance --- package.json | 24 +- packages/docs/assets/css/tailwind.css | 5 +- packages/docs/components/layout/Sidebar.vue | 1 + packages/docs/layouts/default.vue | 96 +- .../page-config/blocks/alert/index.vue | 4 +- .../blocks/api/components/ApiDocs.vue | 1 + .../blocks/example/example-footer.vue | 4 +- packages/docs/modules/vuestic.ts | 36 +- packages/docs/nuxt.config.ts | 11 + packages/github-utilities/package.json | 4 +- .../ui/build/plugins/component-v-bind-fix.ts | 6 +- packages/ui/package.json | 2 +- .../components/va-form-field/VaFormField.vue | 2 +- .../ui/src/components/va-layout/VaLayout.vue | 30 +- .../va-layout/components/VaLayoutArea.vue | 5 +- .../va-layout/hooks/useGridTemplateArea.ts | 12 +- .../va-progress-circle/VaProgressCircle.vue | 2 + .../src/components/va-sidebar/_variables.scss | 2 +- .../std/browser/useElementBackground.ts | 8 + packages/ui/src/composables/useSize.ts | 8 +- .../useStickyTableHeaders.ts | 7 +- packages/ui/src/styles/resources/_mixins.scss | 2 - yarn.lock | 5105 ++++++++++------- 23 files changed, 3120 insertions(+), 2257 deletions(-) diff --git a/package.json b/package.json index e50cdb07b5..b5a74e17ec 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "devDependencies": { "lerna": "^3.20.2", "syncpack": "^9.8.6", - "yorkie": "^2.0.0", - "tsx": "^4.6.1" + "tsx": "^4.6.1", + "yorkie": "^2.0.0" }, "private": true, "scripts": { @@ -46,14 +46,16 @@ "pre-commit": "lerna run --concurrency 1 --stream precommit --since HEAD" }, "resolutions": { - "vue": "^3.4.21", - "@vue/shared": "3.4.21", - "@vue/compiler-sfc": "3.4.21", - "@vue/compiler-core": "3.4.21", - "@vue/runtime-core": "3.4.21", - "@vue/runtime-dom": "3.4.21", - "@vue/reactivity": "3.4.21", - "@vue/server-renderer": "3.4.21", - "@vue/compiler-dom": "3.4.21" + "vue": "3.5.12", + "@vue/shared": "3.5.12", + "@vue/compiler-sfc": "3.5.12", + "@vue/compiler-core": "3.5.12", + "@vue/runtime-core": "3.5.12", + "@vue/runtime-dom": "3.5.12", + "@vue/reactivity": "3.5.12", + "@vue/server-renderer": "3.5.12", + "@vue/compiler-dom": "3.5.12", + "sass": "1.52.0", + "vue-tsc": "2.0.7" } } diff --git a/packages/docs/assets/css/tailwind.css b/packages/docs/assets/css/tailwind.css index b545bb26e9..ef5adfac01 100644 --- a/packages/docs/assets/css/tailwind.css +++ b/packages/docs/assets/css/tailwind.css @@ -1,4 +1,7 @@ /* Disables Tailwind CSS Reset */ -@tailwind base; +@layer tailwind.base { + @tailwind base; +} + @tailwind components; @tailwind utilities; diff --git a/packages/docs/components/layout/Sidebar.vue b/packages/docs/components/layout/Sidebar.vue index ed392d18bd..33cc482c4e 100644 --- a/packages/docs/components/layout/Sidebar.vue +++ b/packages/docs/components/layout/Sidebar.vue @@ -3,6 +3,7 @@ v-model="writableVisible" class="sidebar docs-sidebar" :width="sidebarWidth" + :animated="false" > * { z-index: 1; diff --git a/packages/docs/modules/page-config/blocks/alert/index.vue b/packages/docs/modules/page-config/blocks/alert/index.vue index 52c07dbb32..5465881d3a 100644 --- a/packages/docs/modules/page-config/blocks/alert/index.vue +++ b/packages/docs/modules/page-config/blocks/alert/index.vue @@ -30,8 +30,8 @@ const props = defineProps({