2023-01-06 19:13:02 -06:00
|
|
|
type Keys =
|
|
|
|
'v' |
|
|
|
|
'lastVersion' |
|
|
|
|
'instance' |
|
|
|
|
'account' |
|
|
|
|
'accounts' |
|
2023-01-06 20:49:00 -06:00
|
|
|
'latestDonationInfoShownAt' |
|
|
|
|
'neverShowDonationInfo' |
|
2023-04-05 00:30:03 -05:00
|
|
|
'neverShowLocalOnlyInfo' |
|
2023-01-06 19:13:02 -06:00
|
|
|
'lastUsed' |
|
|
|
|
'lang' |
|
|
|
|
'drafts' |
|
|
|
|
'hashtags' |
|
|
|
|
'wallpaper' |
|
|
|
|
'theme' |
|
2023-06-04 20:55:18 -05:00
|
|
|
'colorScheme' |
|
2023-01-06 19:13:02 -06:00
|
|
|
'useSystemFont' |
|
|
|
|
'fontSize' |
|
|
|
|
'ui' |
|
2023-01-26 22:52:51 -06:00
|
|
|
'ui_temp' |
|
2023-01-06 19:13:02 -06:00
|
|
|
'locale' |
|
2023-01-21 05:24:15 -06:00
|
|
|
'localeVersion' |
|
2023-01-06 19:13:02 -06:00
|
|
|
'theme' |
|
|
|
|
'customCss' |
|
|
|
|
'message_drafts' |
|
|
|
|
'scratchpad' |
|
2023-04-13 04:47:49 -05:00
|
|
|
'debug' |
|
2023-01-06 19:13:02 -06:00
|
|
|
`miux:${string}` |
|
|
|
|
`ui:folder:${string}` |
|
|
|
|
`themes:${string}` |
|
2023-02-28 05:10:52 -06:00
|
|
|
`aiscript:${string}` |
|
|
|
|
'lastEmojisFetchedAt' | // DEPRECATED, stored in indexeddb (13.9.0~)
|
|
|
|
'emojis' // DEPRECATED, stored in indexeddb (13.9.0~);
|
2023-01-06 19:13:02 -06:00
|
|
|
|
|
|
|
export const miLocalStorage = {
|
2023-04-13 04:47:49 -05:00
|
|
|
getItem: (key: Keys): string | null => window.localStorage.getItem(key),
|
|
|
|
setItem: (key: Keys, value: string): void => window.localStorage.setItem(key, value),
|
|
|
|
removeItem: (key: Keys): void => window.localStorage.removeItem(key),
|
2023-01-06 19:13:02 -06:00
|
|
|
};
|