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