summaryrefslogtreecommitdiff
path: root/packages/frontend/src/local-storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/local-storage.ts')
-rw-r--r--packages/frontend/src/local-storage.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/frontend/src/local-storage.ts b/packages/frontend/src/local-storage.ts
index 89c0a4b849..c43bd7cd9a 100644
--- a/packages/frontend/src/local-storage.ts
+++ b/packages/frontend/src/local-storage.ts
@@ -3,13 +3,12 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
-export type Keys =
+export type Keys = (
'v' |
'lastVersion' |
'instance' |
'instanceCachedAt' |
'account' |
- 'accounts' |
'latestDonationInfoShownAt' |
'neverShowDonationInfo' |
'neverShowLocalOnlyInfo' |
@@ -19,7 +18,6 @@ export type Keys =
'drafts' |
'hashtags' |
'wallpaper' |
- 'theme' |
'colorScheme' |
'useSystemFont' |
'fontSize' |
@@ -29,18 +27,23 @@ export type Keys =
'locale' |
'localeVersion' |
'theme' |
+ 'themeId' |
'customCss' |
- 'message_drafts' |
+ 'chatMessageDrafts' |
'scratchpad' |
'debug' |
+ 'preferences' |
+ 'latestPreferencesUpdate' |
+ 'hidePreferencesRestoreSuggestion' |
`miux:${string}` |
`ui:folder:${string}` |
- `themes:${string}` |
+ `themes:${string}` | // DEPRECATED
`aiscript:${string}` |
'lastEmojisFetchedAt' | // DEPRECATED, stored in indexeddb (13.9.0~)
'emojis' | // DEPRECATED, stored in indexeddb (13.9.0~);
`channelLastReadedAt:${string}` |
`idbfallback::${string}`
+);
// セッション毎に廃棄されるLocalStorage代替(セーフモードなどで使用できそう)
//const safeSessionStorage = new Map<Keys, string>();