enhance(frontend): improve emoji picker settings

This commit is contained in:
syuilo
2025-03-13 16:56:47 +09:00
parent 3ced310f77
commit 10b67e1b3a
16 changed files with 601 additions and 324 deletions

View File

@@ -29,6 +29,8 @@ export type SoundStore = {
volume: number;
};
// NOTE: デフォルト値は他の設定の状態に依存してはならない(依存していた場合、ユーザーがその設定項目単体で「初期値にリセット」した場合不具合の原因になる)
export const PREF_DEF = {
pinnedUserLists: {
accountDependent: true,
@@ -56,6 +58,27 @@ export const PREF_DEF = {
default: [] as DeckProfile[],
},
emojiPalettes: {
serverDependent: true,
default: [{
id: 'a',
name: '',
emojis: ['👍', '❤️', '😆', '🤔', '😮', '🎉', '💢', '😥', '😇', '🍮'],
}] as {
id: string;
name: string;
emojis: string[];
}[],
},
emojiPaletteForReaction: {
serverDependent: true,
default: null as string | null,
},
emojiPaletteForMain: {
serverDependent: true,
default: null as string | null,
},
overridedDeviceKind: {
default: null as DeviceKind | null,
},
@@ -180,13 +203,13 @@ export const PREF_DEF = {
default: 'remote' as 'none' | 'remote' | 'always',
},
emojiPickerScale: {
default: 1,
default: 2,
},
emojiPickerWidth: {
default: 1,
default: 2,
},
emojiPickerHeight: {
default: 2,
default: 3,
},
emojiPickerStyle: {
default: 'auto' as 'auto' | 'popup' | 'drawer',