mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-08 11:26:56 +08:00
feat: 添加积分兑换通知功能;优化通知处理逻辑;更新设置以支持新通知类型
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useTauriStore } from './useTauriStore';
|
||||
|
||||
export type NotificationType = 'question-box' | 'danmaku';
|
||||
export type NotificationType = 'question-box' | 'danmaku' | 'goods-buy';
|
||||
export type NotificationSettings = {
|
||||
enableTypes: NotificationType[];
|
||||
};
|
||||
@@ -14,6 +14,8 @@ export type VTsuruClientSettings = {
|
||||
|
||||
enableNotification: boolean;
|
||||
notificationSettings: NotificationSettings;
|
||||
|
||||
dev_disableDanmakuClient: boolean;
|
||||
};
|
||||
|
||||
export const useSettings = defineStore('settings', () => {
|
||||
@@ -29,6 +31,8 @@ export const useSettings = defineStore('settings', () => {
|
||||
notificationSettings: {
|
||||
enableTypes: ['question-box', 'danmaku'],
|
||||
},
|
||||
|
||||
dev_disableDanmakuClient: false,
|
||||
};
|
||||
const settings = ref<VTsuruClientSettings>(Object.assign({}, defaultSettings));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user