From c1be9ebdbbba03ababb9f362635565026c24c789 Mon Sep 17 00:00:00 2001 From: li-chx Date: Sun, 31 Aug 2025 02:30:39 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=9B=B4=E6=96=B0=E9=83=A8?= =?UTF-8?q?=E5=88=86CSS=20=E6=B7=BB=E5=8A=A0TS7.0=E4=BE=9D=E8=B5=96=20?= =?UTF-8?q?=E6=9C=89=E5=BE=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + assets/css/main.css | 2 +- components/PageLogo.vue | 1 - components/PersonalCard.vue | 72 ++++++++++++++++++ components/ReadonlyMdEditor.vue | 26 ++++++- content | 2 +- content.config.ts | 3 +- nuxt.config.ts | 4 + package.json | 3 +- pages/admin/index.vue | 7 +- pages/index.vue | 4 +- pages/index/archive/components/TimeLine.vue | 39 +++++----- pages/index/archive/index.vue | 28 ++++--- .../[articleID]/components/ArticleHeader.vue | 40 +++++----- pages/index/article/[articleID]/index.vue | 15 ++-- pages/index/components/ArticleCard.vue | 65 +++++++++------- .../{RamblingCard.vue => SimpleCard.vue} | 43 +++++++---- pages/index/index.vue | 58 ++++++++------ public/60217414 (1).jpg | Bin 0 -> 64101 bytes tailwind.config.ts => tailwind.config.js | 0 types/PostMetaData.ts | 34 +++++++++ 21 files changed, 307 insertions(+), 140 deletions(-) create mode 100644 components/PersonalCard.vue rename pages/index/components/{RamblingCard.vue => SimpleCard.vue} (78%) create mode 100644 public/60217414 (1).jpg rename tailwind.config.ts => tailwind.config.js (100%) diff --git a/.gitignore b/.gitignore index 945045f..bcafa8f 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ pnpm-workspace.yaml /client_ chrome.run.xml /nuxt.run.xml /server_ nuxt.run.xml +/output.tar.gz diff --git a/assets/css/main.css b/assets/css/main.css index dc16552..7102faf 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -8,4 +8,4 @@ html { --light-text-color: #1e2939; /*gray-800*/ --light-text-secondary-color: #4a5565; /*gray-600*/ --dark-text-color: #e5e7eb; /*gray-200*/ -} +} \ No newline at end of file diff --git a/components/PageLogo.vue b/components/PageLogo.vue index a62e062..72256af 100644 --- a/components/PageLogo.vue +++ b/components/PageLogo.vue @@ -3,7 +3,6 @@ diff --git a/components/PersonalCard.vue b/components/PersonalCard.vue new file mode 100644 index 0000000..b085a21 --- /dev/null +++ b/components/PersonalCard.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/components/ReadonlyMdEditor.vue b/components/ReadonlyMdEditor.vue index 9d05ac6..ac39d9e 100644 --- a/components/ReadonlyMdEditor.vue +++ b/components/ReadonlyMdEditor.vue @@ -17,14 +17,13 @@ const { colorMode } = storeToRefs(useColorModeStore()); diff --git a/content b/content index a7cd0a0..e4c08e4 160000 --- a/content +++ b/content @@ -1 +1 @@ -Subproject commit a7cd0a03602ed93da797632e5616211f40868125 +Subproject commit e4c08e4b0aa49ec629020047c88f43664bda0ba2 diff --git a/content.config.ts b/content.config.ts index f40f182..8ff0531 100644 --- a/content.config.ts +++ b/content.config.ts @@ -10,7 +10,8 @@ const schema = z.object({ draft: z.boolean().default(false), updated_at: z.array(z.string().datetime()).default([]), tags: z.array(z.string()).default([]), - type: z.enum(['article', 'rambling']).default('article'), + type: z.enum(['article', 'rambling', 'announcement']).default('article'), + isPinned: z.boolean().default(false), tech_stack: z.array(z.string()).default([]), tech_stack_percent: z.array(z.number()).default([]), tech_stack_icon_names: z.array(z.string()).default([]), diff --git a/nuxt.config.ts b/nuxt.config.ts index ee338c5..6b5ed83 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -22,9 +22,13 @@ export default defineNuxtConfig({ }, app: { head: { + title: '随机存取', htmlAttrs: { lang: 'zh-CN', }, + meta: [ + { name: 'description', content: 'Lichx 个人博客' }, + ], script: [{ src: '/darkVerify.js' }], }, }, diff --git a/package.json b/package.json index d666aab..c08fd5c 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@nuxt/ui": "3.2.0", "@pinia/nuxt": "^0.11.1", "@tailwindcss/vite": "^4.1.11", + "@typescript/native-preview": "7.0.0-dev.20250830.1", "@vue/eslint-config-prettier": "^10.2.0", "@vueuse/core": "^13.6.0", "better-sqlite3": "^12.2.0", @@ -32,7 +33,7 @@ "vue-router": "^4.5.1", "word-count": "^0.3.1" }, - "packageManager": "pnpm@10.14.0", + "packageManager": "pnpm@10.15.0", "devDependencies": { "@stylistic/eslint-plugin": "^5.1.0", "@stylistic/eslint-plugin-jsx": "^4.4.1", diff --git a/pages/admin/index.vue b/pages/admin/index.vue index 69e2194..f3569c5 100644 --- a/pages/admin/index.vue +++ b/pages/admin/index.vue @@ -3,10 +3,11 @@ \ No newline at end of file + diff --git a/pages/index.vue b/pages/index.vue index 024ede7..8315694 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -61,9 +61,9 @@ import breakpointsHelper from '~/utils/BreakpointsHelper';