mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
chore: 移除 bun.yml 中的 SourceMap 上传步骤,优化构建流程;更新 components.d.ts,添加 Naive UI 组件类型定义;调整 ScheduleList.vue 中的空行格式
This commit is contained in:
3
.github/workflows/bun.yml
vendored
3
.github/workflows/bun.yml
vendored
@@ -32,9 +32,6 @@ jobs:
|
|||||||
- name: 📦 Build
|
- name: 📦 Build
|
||||||
run: bun run 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
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
src/components.d.ts
vendored
6
src/components.d.ts
vendored
@@ -19,13 +19,19 @@ declare module 'vue' {
|
|||||||
LiveInfoContainer: typeof import('./components/LiveInfoContainer.vue')['default']
|
LiveInfoContainer: typeof import('./components/LiveInfoContainer.vue')['default']
|
||||||
MonacoEditorComponent: typeof import('./components/MonacoEditorComponent.vue')['default']
|
MonacoEditorComponent: typeof import('./components/MonacoEditorComponent.vue')['default']
|
||||||
NAlert: typeof import('naive-ui')['NAlert']
|
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']
|
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||||
NEmpty: typeof import('naive-ui')['NEmpty']
|
NEmpty: typeof import('naive-ui')['NEmpty']
|
||||||
NFlex: typeof import('naive-ui')['NFlex']
|
NFlex: typeof import('naive-ui')['NFlex']
|
||||||
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
|
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
|
||||||
NGridItem: typeof import('naive-ui')['NGridItem']
|
NGridItem: typeof import('naive-ui')['NGridItem']
|
||||||
NIcon: typeof import('naive-ui')['NIcon']
|
NIcon: typeof import('naive-ui')['NIcon']
|
||||||
|
NImage: typeof import('naive-ui')['NImage']
|
||||||
|
NPopconfirm: typeof import('naive-ui')['NPopconfirm']
|
||||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||||
|
NSpace: typeof import('naive-ui')['NSpace']
|
||||||
NTag: typeof import('naive-ui')['NTag']
|
NTag: typeof import('naive-ui')['NTag']
|
||||||
NText: typeof import('naive-ui')['NText']
|
NText: typeof import('naive-ui')['NText']
|
||||||
NTime: typeof import('naive-ui')['NTime']
|
NTime: typeof import('naive-ui')['NTime']
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function getDateFromWeek(year: number, week: number, dayOfWeek: number): Date {
|
|||||||
const startOfWeekOne = new Date(januaryFourth)
|
const startOfWeekOne = new Date(januaryFourth)
|
||||||
const dayOfWeekJan4 = (januaryFourth.getDay() + 6) % 7
|
const dayOfWeekJan4 = (januaryFourth.getDay() + 6) % 7
|
||||||
startOfWeekOne.setDate(januaryFourth.getDate() - dayOfWeekJan4)
|
startOfWeekOne.setDate(januaryFourth.getDate() - dayOfWeekJan4)
|
||||||
|
|
||||||
const targetDate = new Date(startOfWeekOne)
|
const targetDate = new Date(startOfWeekOne)
|
||||||
targetDate.setDate(startOfWeekOne.getDate() + (week - 1) * 7 + dayOfWeek)
|
targetDate.setDate(startOfWeekOne.getDate() + (week - 1) * 7 + dayOfWeek)
|
||||||
return targetDate
|
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) {
|
function getDayHeaderStyle(year: number, week: number, dayIndex: number, primaryColor: string, primaryColorSuppl: string) {
|
||||||
const isToday = isCurrentDay(year, week, dayIndex)
|
const isToday = isCurrentDay(year, week, dayIndex)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
marginBottom: '6px',
|
marginBottom: '6px',
|
||||||
padding: '4px 8px',
|
padding: '4px 8px',
|
||||||
@@ -111,10 +111,10 @@ function getDayHeaderStyle(year: number, week: number, dayIndex: number, primary
|
|||||||
:style="
|
:style="
|
||||||
isCurrentWeek(item.year, item.week)
|
isCurrentWeek(item.year, item.week)
|
||||||
? {
|
? {
|
||||||
boxShadow: `0 0 0 1px ${themeVars.primaryColorSuppl}99 inset`,
|
boxShadow: `0 0 0 1px ${themeVars.primaryColorSuppl}99 inset`,
|
||||||
borderRadius: '8px',
|
borderRadius: '8px',
|
||||||
transition: 'box-shadow 0.2s ease',
|
transition: 'box-shadow 0.2s ease',
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user