feat: enhance DefaultIndexTemplate with ordered links and UI improvements

- Added computed property to order links based on user settings or default order.
- Updated UI to display ordered links dynamically.
- Improved text display for UID and adjusted button styles for better UX.
- Modified TypeScript configuration to include 'jszip' type definitions.
This commit is contained in:
Megghy
2025-09-26 23:10:09 +08:00
parent ca575a623e
commit 83a6c36d57
16 changed files with 1787 additions and 1864 deletions

View File

@@ -143,6 +143,11 @@ export interface Setting_Index {
videos: string[]
notification: string
links: { [key: string]: string }
/**
* 自定义链接顺序(存储链接名称的有序数组)
* 旧数据无此字段时在前端初始化为 Object.keys(links)
*/
linkOrder?: string[]
}
export interface Setting_LiveRequest {
orderPrefix: string
@@ -824,6 +829,7 @@ export interface ResponseUserIndexModel {
notification: string
videos: VideoCollectVideo[]
links: { [key: string]: string }
linkOrder?: string[]
}
// 签到排行信息