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