From 50def8fc504650d4d3a6d4cd7b2bec805ce89237 Mon Sep 17 00:00:00 2001
From: Miao_Spring <539943419@qq.com>
Date: Mon, 13 Jan 2025 10:18:07 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8element-plus=E4=BB=A3?=
=?UTF-8?q?=E6=9B=BFnaive-ui=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=9B=A0naive-ui?=
=?UTF-8?q?=E5=86=85=E8=81=94=E6=A0=B7=E5=BC=8F=E5=AF=BC=E8=87=B4=E6=B0=B4?=
=?UTF-8?q?=E5=90=88=E5=87=BA=E7=8E=B0=E6=8A=96=E5=8A=A8=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.vue | 12 +-
components/miaoContentWrapper.vue | 4 +-
components/miaoDivider-left.vue | 37 ++++
nuxt.config.ts | 34 +--
package.json | 12 +-
pages/index.vue | 9 +-
pages/posts/index.vue | 3 +-
pages/posts/post-[id].vue | 5 +-
pnpm-lock.yaml | 347 +++++++++++++++---------------
9 files changed, 251 insertions(+), 212 deletions(-)
create mode 100644 components/miaoDivider-left.vue
diff --git a/app.vue b/app.vue
index 2bc6cfa..808650c 100644
--- a/app.vue
+++ b/app.vue
@@ -1,11 +1,11 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/components/miaoContentWrapper.vue b/components/miaoContentWrapper.vue
index 98e4226..fc0a0ab 100644
--- a/components/miaoContentWrapper.vue
+++ b/components/miaoContentWrapper.vue
@@ -1,10 +1,10 @@
-
+
-
+
diff --git a/components/miaoDivider-left.vue b/components/miaoDivider-left.vue
new file mode 100644
index 0000000..7b40564
--- /dev/null
+++ b/components/miaoDivider-left.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 9f3e126..d6eb448 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -1,6 +1,6 @@
-import AutoImport from "unplugin-auto-import/vite";
-import { NaiveUiResolver } from "unplugin-vue-components/resolvers";
-import Components from "unplugin-vue-components/vite";
+// import AutoImport from "unplugin-auto-import/vite";
+// import Components from "unplugin-vue-components/vite";
+// import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://nuxt.com/docs/api/configuration/nuxt-config
// @ts-ignore
@@ -8,6 +8,7 @@ export default defineNuxtConfig({
devtools: { enabled: false },
alias: {
"@": "/"
+ // 'dayjs': 'dayjs/esm/'
},
app: {
pageTransition: {
@@ -18,19 +19,20 @@ export default defineNuxtConfig({
vite: {
server: {},
plugins: [
- AutoImport({
- imports: [
- {
- "naive-ui": ["useDialog", "useMessage", "useNotification", "useLoadingBar"]
- }
- ]
- }),
- Components({
- resolvers: [NaiveUiResolver()]
- })
- ]
+ // AutoImport({
+ // resolvers: [ElementPlusResolver()],
+ // }),
+ // Components({
+ // resolvers: [ElementPlusResolver()],
+ // })
+ ],
+ test: {
+ deps: {
+ inline: ['element-plus']
+ }
+ },
},
- modules: ["nuxtjs-naive-ui", "@pinia/nuxt"],
+ modules: ["@pinia/nuxt", '@element-plus/nuxt'],
compatibilityDate: "2025-01-12",
build: {
analyze: {
@@ -38,7 +40,7 @@ export default defineNuxtConfig({
},
},
nitro: {
- compressPublicAssets: true,
+ compressPublicAssets: true,
},
experimental: { appManifest: false },
});
diff --git a/package.json b/package.json
index d446e14..bff0318 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
- "build": "nuxt build && atfBuild.sh",
+ "build": "nuxt build && bash ./aftBuild.sh",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
@@ -12,11 +12,10 @@
"dependencies": {
"@pinia/nuxt": "^0.9.0",
"@vicons/ionicons5": "^0.13.0",
+ "dayjs": "^1.11.13",
"markdown-it": "^14.1.0",
- "naive-ui": "^2.41.0",
"node-fetch": "^3.3.2",
- "nuxt": "^3.10.3",
- "nuxtjs-naive-ui": "^1.0.2",
+ "nuxt": "^3.15.1",
"pinia": "^2.3.0",
"unplugin-auto-import": "^19.0.0",
"unplugin-vue-components": "^28.0.0",
@@ -24,7 +23,10 @@
"vue-router": "^4.3.0"
},
"devDependencies": {
+ "@element-plus/nuxt": "^1.1.1",
"@types/markdown-it": "^14.1.2",
+ "element-plus": "^2.9.3",
"sass": "^1.83.1"
- }
+ },
+ "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
}
diff --git a/pages/index.vue b/pages/index.vue
index 72ef8d0..fba613a 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -6,7 +6,7 @@