From 941f5d183bd87b11cb784f9e0923fdafc142df10 Mon Sep 17 00:00:00 2001 From: estel <690930@qq.com> Date: Mon, 28 Jul 2025 21:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E6=8A=95=E5=85=A5=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E7=8E=AF=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/docs/DocsAsideLeftTop.vue | 20 ++++++++-------- nuxt.config.ts | 7 ++++-- package.json | 29 ++++++++++++++++++++---- pnpm-lock.yaml | 8 ++++++- 4 files changed, 47 insertions(+), 17 deletions(-) diff --git a/app/components/docs/DocsAsideLeftTop.vue b/app/components/docs/DocsAsideLeftTop.vue index 1783fa5..a3be514 100644 --- a/app/components/docs/DocsAsideLeftTop.vue +++ b/app/components/docs/DocsAsideLeftTop.vue @@ -15,62 +15,62 @@ const items = ref([ label: 'defineShortcuts', icon: 'lucide-file-text', description: 'Define shortcuts for your application.', - to: '/composables/define-shortcuts' + to: '/' }, { label: 'useOverlay', icon: 'lucide-file-text', description: 'Display a modal/slideover within your application.', - to: '/composables/use-overlay' + to: '/' }, { label: 'useToast', icon: 'lucide-file-text', description: 'Display a toast within your application.', - to: '/composables/use-toast' + to: '/' } ] }, { label: 'Components', icon: 'lucide-box', - to: '/components', + to: '', children: [ { label: 'Link', icon: 'lucide-file-text', description: 'Use NuxtLink with superpowers.', - to: '/components/link' + to: '/' }, { label: 'Modal', icon: 'lucide-file-text', description: 'Display a modal within your application.', - to: '/components/modal' + to: '/' }, { label: 'NavigationMenu', icon: 'lucide-file-text', description: 'Display a list of links.', - to: '/components/navigation-menu' + to: '/' }, { label: 'Pagination', icon: 'lucide-file-text', description: 'Display a list of pages.', - to: '/components/pagination' + to: '' }, { label: 'Popover', icon: 'lucide-file-text', description: 'Display a non-modal dialog that floats around a trigger element.', - to: '/components/popover' + to: '/' }, { label: 'Progress', icon: 'lucide-file-text', description: 'Show a horizontal bar to indicate task progression.', - to: '/components/progress' + to: '/' } ] } diff --git a/nuxt.config.ts b/nuxt.config.ts index 6984283..71881ed 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -54,6 +54,9 @@ export default defineNuxtConfig({ }, icon: { - provider: 'iconify' - } + clientBundle: { + scan: true, + sizeLimitKb: 512, + }, + }, }) diff --git a/package.json b/package.json index 3b9ef04..8f163d3 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,28 @@ { - "name": "nuxt-ui-pro-template-docs", + "name": "Estel Docs", "private": true, "type": "module", - "scripts": { + "description": "简约文档,但功能强大", + "packageManager": "pnpm@10.13.1", + "author": "Estel", + "license": "MIT", + "version": "1.0.0", + "homepage": "https://lijue.me", + "repository": { + "type": "git", + "url": "https://github.com/estel-li/estel-docs" + }, + "keywords": [ + "markdown", + "docs", + "vue", + "nuxt", + "documentation-tool", + "nuxt-content", + "shadcn-vue" + ], + "main": "./nuxt.config.ts", + "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", @@ -27,6 +47,8 @@ "@iconify-json/lucide": "^1.2.57", "@iconify-json/simple-icons": "^1.2.43", "@nuxt/eslint": "^1.5.2", + "@nuxt/fonts": "^0.11.4", + "@nuxt/icon": "^1.15.0", "@vueuse/core": "^13.5.0", "eslint": "^9.31.0", "lucide": "^0.526.0", @@ -44,6 +66,5 @@ "ignoredBuiltDependencies": [ "vue-demi" ] - }, - "packageManager": "pnpm@10.13.1" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2d84ef8..6cc0868 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,6 +51,12 @@ importers: '@nuxt/eslint': specifier: ^1.5.2 version: 1.5.2(@vue/compiler-sfc@3.5.17)(eslint-plugin-import-x@4.16.1(@typescript-eslint/utils@8.37.0(eslint@9.31.0(jiti@2.4.2))(typescript@5.8.3))(eslint@9.31.0(jiti@2.4.2)))(eslint@9.31.0(jiti@2.4.2))(magicast@0.3.5)(typescript@5.8.3)(vite@7.0.6(@types/node@24.0.7)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(yaml@2.8.0)) + '@nuxt/fonts': + specifier: ^0.11.4 + version: 0.11.4(@netlify/blobs@9.1.2)(db0@0.3.2(better-sqlite3@12.2.0))(ioredis@5.6.1)(magicast@0.3.5)(vite@7.0.6(@types/node@24.0.7)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(yaml@2.8.0)) + '@nuxt/icon': + specifier: ^1.15.0 + version: 1.15.0(magicast@0.3.5)(vite@7.0.6(@types/node@24.0.7)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.17(typescript@5.8.3)) '@vueuse/core': specifier: ^13.5.0 version: 13.5.0(vue@3.5.17(typescript@5.8.3)) @@ -7502,7 +7508,7 @@ snapshots: consola: 3.4.2 css-tree: 3.1.0 defu: 6.1.4 - esbuild: 0.25.6 + esbuild: 0.25.8 fontaine: 0.6.0 h3: 1.15.3 jiti: 2.4.2