This commit is contained in:
syuilo 2022-06-28 00:27:24 +09:00 committed by Johann150
parent 9e64796a9e
commit cfb7b70cde
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -13,55 +13,55 @@ export const notePostInterruptors = [];
export const defaultStore = markRaw(new Storage('base', { export const defaultStore = markRaw(new Storage('base', {
tutorial: { tutorial: {
where: 'account', where: 'account',
default: 0 default: 0,
}, },
keepCw: { keepCw: {
where: 'account', where: 'account',
default: true default: true,
}, },
showFullAcct: { showFullAcct: {
where: 'account', where: 'account',
default: false default: false,
}, },
rememberNoteVisibility: { rememberNoteVisibility: {
where: 'account', where: 'account',
default: false default: false,
}, },
defaultNoteVisibility: { defaultNoteVisibility: {
where: 'account', where: 'account',
default: 'public' default: 'public',
}, },
defaultNoteLocalOnly: { defaultNoteLocalOnly: {
where: 'account', where: 'account',
default: false default: false,
}, },
uploadFolder: { uploadFolder: {
where: 'account', where: 'account',
default: null as string | null default: null as string | null,
}, },
pastedFileName: { pastedFileName: {
where: 'account', where: 'account',
default: 'yyyy-MM-dd HH-mm-ss [{{number}}]' default: 'yyyy-MM-dd HH-mm-ss [{{number}}]',
}, },
keepOriginalUploading: { keepOriginalUploading: {
where: 'account', where: 'account',
default: false default: false,
}, },
memo: { memo: {
where: 'account', where: 'account',
default: null default: null,
}, },
reactions: { reactions: {
where: 'account', where: 'account',
default: ['👍', '❤️', '😆', '🤔', '😮', '🎉', '💢', '😥', '😇', '🍮'] default: ['👍', '❤️', '😆', '🤔', '😮', '🎉', '💢', '😥', '😇', '🍮'],
}, },
mutedWords: { mutedWords: {
where: 'account', where: 'account',
default: [] default: [],
}, },
mutedAds: { mutedAds: {
where: 'account', where: 'account',
default: [] as string[] default: [] as string[],
}, },
menu: { menu: {
@ -78,15 +78,15 @@ export const defaultStore = markRaw(new Storage('base', {
'search', 'search',
'-', '-',
'ui', 'ui',
] ],
}, },
visibility: { visibility: {
where: 'deviceAccount', where: 'deviceAccount',
default: 'public' as 'public' | 'home' | 'followers' | 'specified' default: 'public' as 'public' | 'home' | 'followers' | 'specified',
}, },
localOnly: { localOnly: {
where: 'deviceAccount', where: 'deviceAccount',
default: false default: false,
}, },
widgets: { widgets: {
where: 'deviceAccount', where: 'deviceAccount',
@ -95,14 +95,14 @@ export const defaultStore = markRaw(new Storage('base', {
id: string; id: string;
place: string | null; place: string | null;
data: Record<string, any>; data: Record<string, any>;
}[] }[],
}, },
tl: { tl: {
where: 'deviceAccount', where: 'deviceAccount',
default: { default: {
src: 'home' as 'home' | 'local' | 'social' | 'global', src: 'home' as 'home' | 'local' | 'social' | 'global',
arg: null arg: null,
} },
}, },
overridedDeviceKind: { overridedDeviceKind: {
@ -111,87 +111,87 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
serverDisconnectedBehavior: { serverDisconnectedBehavior: {
where: 'device', where: 'device',
default: 'quiet' as 'quiet' | 'reload' | 'dialog' default: 'quiet' as 'quiet' | 'reload' | 'dialog',
}, },
nsfw: { nsfw: {
where: 'device', where: 'device',
default: 'respect' as 'respect' | 'force' | 'ignore' default: 'respect' as 'respect' | 'force' | 'ignore',
}, },
animation: { animation: {
where: 'device', where: 'device',
default: true default: true,
}, },
animatedMfm: { animatedMfm: {
where: 'device', where: 'device',
default: true default: true,
}, },
loadRawImages: { loadRawImages: {
where: 'device', where: 'device',
default: false default: false,
}, },
imageNewTab: { imageNewTab: {
where: 'device', where: 'device',
default: false default: false,
}, },
disableShowingAnimatedImages: { disableShowingAnimatedImages: {
where: 'device', where: 'device',
default: false default: false,
}, },
disablePagesScript: { disablePagesScript: {
where: 'device', where: 'device',
default: false default: false,
}, },
useOsNativeEmojis: { useOsNativeEmojis: {
where: 'device', where: 'device',
default: false default: false,
}, },
disableDrawer: { disableDrawer: {
where: 'device', where: 'device',
default: false default: false,
}, },
useBlurEffectForModal: { useBlurEffectForModal: {
where: 'device', where: 'device',
default: true default: true,
}, },
useBlurEffect: { useBlurEffect: {
where: 'device', where: 'device',
default: true default: true,
}, },
showFixedPostForm: { showFixedPostForm: {
where: 'device', where: 'device',
default: false default: false,
}, },
enableInfiniteScroll: { enableInfiniteScroll: {
where: 'device', where: 'device',
default: true default: true,
}, },
useReactionPickerForContextMenu: { useReactionPickerForContextMenu: {
where: 'device', where: 'device',
default: false default: false,
}, },
showGapBetweenNotesInTimeline: { showGapBetweenNotesInTimeline: {
where: 'device', where: 'device',
default: false default: false,
}, },
darkMode: { darkMode: {
where: 'device', where: 'device',
default: false default: false,
}, },
instanceTicker: { instanceTicker: {
where: 'device', where: 'device',
default: 'remote' as 'none' | 'remote' | 'always' default: 'remote' as 'none' | 'remote' | 'always',
}, },
reactionPickerSize: { reactionPickerSize: {
where: 'device', where: 'device',
default: 1 default: 1,
}, },
reactionPickerWidth: { reactionPickerWidth: {
where: 'device', where: 'device',
default: 1 default: 1,
}, },
reactionPickerHeight: { reactionPickerHeight: {
where: 'device', where: 'device',
default: 2 default: 2,
}, },
reactionPickerUseDrawerForMobile: { reactionPickerUseDrawerForMobile: {
where: 'device', where: 'device',
@ -199,35 +199,35 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
recentlyUsedEmojis: { recentlyUsedEmojis: {
where: 'device', where: 'device',
default: [] as string[] default: [] as string[],
}, },
recentlyUsedUsers: { recentlyUsedUsers: {
where: 'device', where: 'device',
default: [] as string[] default: [] as string[],
}, },
defaultSideView: { defaultSideView: {
where: 'device', where: 'device',
default: false default: false,
}, },
menuDisplay: { menuDisplay: {
where: 'device', where: 'device',
default: 'sideFull' as 'sideFull' | 'sideIcon' | 'top' default: 'sideFull' as 'sideFull' | 'sideIcon' | 'top',
}, },
reportError: { reportError: {
where: 'device', where: 'device',
default: false default: false,
}, },
squareAvatars: { squareAvatars: {
where: 'device', where: 'device',
default: false default: false,
}, },
postFormWithHashtags: { postFormWithHashtags: {
where: 'device', where: 'device',
default: false default: false,
}, },
postFormHashtags: { postFormHashtags: {
where: 'device', where: 'device',
default: '' default: '',
}, },
themeInitial: { themeInitial: {
where: 'device', where: 'device',
@ -235,7 +235,7 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
aiChanMode: { aiChanMode: {
where: 'device', where: 'device',
default: false default: false,
}, },
})); }));
@ -326,7 +326,7 @@ export class ColdDeviceStorage {
set: (value: unknown) => { set: (value: unknown) => {
const val = value; const val = value;
ColdDeviceStorage.set(key, val); ColdDeviceStorage.set(key, val);
} },
}; };
} }
} }