From 2966a49fc9d92e385cd38db29aab16ba8d1740b2 Mon Sep 17 00:00:00 2001 From: Megghy Date: Sun, 5 Oct 2025 15:17:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20bun.yml=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=20SourceMap=20=E4=B8=8A=E4=BC=A0=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=EF=BC=8C=E4=BC=98=E5=8C=96=E6=9E=84=E5=BB=BA=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=EF=BC=9B=E6=9B=B4=E6=96=B0=20components.d.ts=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Naive=20UI=20=E7=BB=84=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89=EF=BC=9B=E8=B0=83=E6=95=B4=20Schedu?= =?UTF-8?q?leList.vue=20=E4=B8=AD=E7=9A=84=E7=A9=BA=E8=A1=8C=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bun.yml | 3 --- src/components.d.ts | 6 ++++++ src/components/ScheduleList.vue | 12 ++++++------ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml index bb1713a..36fc03b 100644 --- a/.github/workflows/bun.yml +++ b/.github/workflows/bun.yml @@ -32,9 +32,6 @@ jobs: - name: 📦 Build run: bun run build - - name: 📦 Upload SourceMap - run: bunx @hyperdx/cli upload-sourcemaps --serviceKey ${{ secrets.HYPERDX_SERVICE_KEY }} --path dist/assets - - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: diff --git a/src/components.d.ts b/src/components.d.ts index 09b830b..382f8ff 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -19,13 +19,19 @@ declare module 'vue' { LiveInfoContainer: typeof import('./components/LiveInfoContainer.vue')['default'] MonacoEditorComponent: typeof import('./components/MonacoEditorComponent.vue')['default'] NAlert: typeof import('naive-ui')['NAlert'] + NAvatar: typeof import('naive-ui')['NAvatar'] + NButton: typeof import('naive-ui')['NButton'] + NCard: typeof import('naive-ui')['NCard'] NEllipsis: typeof import('naive-ui')['NEllipsis'] NEmpty: typeof import('naive-ui')['NEmpty'] NFlex: typeof import('naive-ui')['NFlex'] NFormItemGi: typeof import('naive-ui')['NFormItemGi'] NGridItem: typeof import('naive-ui')['NGridItem'] NIcon: typeof import('naive-ui')['NIcon'] + NImage: typeof import('naive-ui')['NImage'] + NPopconfirm: typeof import('naive-ui')['NPopconfirm'] NScrollbar: typeof import('naive-ui')['NScrollbar'] + NSpace: typeof import('naive-ui')['NSpace'] NTag: typeof import('naive-ui')['NTag'] NText: typeof import('naive-ui')['NText'] NTime: typeof import('naive-ui')['NTime'] diff --git a/src/components/ScheduleList.vue b/src/components/ScheduleList.vue index fd0175e..dc01f6c 100644 --- a/src/components/ScheduleList.vue +++ b/src/components/ScheduleList.vue @@ -65,7 +65,7 @@ function getDateFromWeek(year: number, week: number, dayOfWeek: number): Date { const startOfWeekOne = new Date(januaryFourth) const dayOfWeekJan4 = (januaryFourth.getDay() + 6) % 7 startOfWeekOne.setDate(januaryFourth.getDate() - dayOfWeekJan4) - + const targetDate = new Date(startOfWeekOne) targetDate.setDate(startOfWeekOne.getDate() + (week - 1) * 7 + dayOfWeek) return targetDate @@ -74,7 +74,7 @@ function getDateFromWeek(year: number, week: number, dayOfWeek: number): Date { // 样式工具函数 function getDayHeaderStyle(year: number, week: number, dayIndex: number, primaryColor: string, primaryColorSuppl: string) { const isToday = isCurrentDay(year, week, dayIndex) - + return { marginBottom: '6px', padding: '4px 8px', @@ -111,10 +111,10 @@ function getDayHeaderStyle(year: number, week: number, dayIndex: number, primary :style=" isCurrentWeek(item.year, item.week) ? { - boxShadow: `0 0 0 1px ${themeVars.primaryColorSuppl}99 inset`, - borderRadius: '8px', - transition: 'box-shadow 0.2s ease', - } + boxShadow: `0 0 0 1px ${themeVars.primaryColorSuppl}99 inset`, + borderRadius: '8px', + transition: 'box-shadow 0.2s ease', + } : undefined " >