summaryrefslogtreecommitdiff
path: root/packages/frontend/src/store.ts
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-05-23 10:46:42 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-05-23 10:46:42 +0900
commit2bfbbbf16ac1f085efa897c98913297fe09eef61 (patch)
treec88edb1ca495c3f48e92c2a14744a06c006f6a2f /packages/frontend/src/store.ts
parentfix(backend): admin側のエンドポイントで作成した招待コード... (diff)
downloadmisskey-2bfbbbf16ac1f085efa897c98913297fe09eef61.tar.gz
misskey-2bfbbbf16ac1f085efa897c98913297fe09eef61.tar.bz2
misskey-2bfbbbf16ac1f085efa897c98913297fe09eef61.zip
enhance(frontend): improve tips
Diffstat (limited to 'packages/frontend/src/store.ts')
-rw-r--r--packages/frontend/src/store.ts31
1 files changed, 15 insertions, 16 deletions
diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts
index 06c2f9149c..6f9b5786ee 100644
--- a/packages/frontend/src/store.ts
+++ b/packages/frontend/src/store.ts
@@ -14,6 +14,18 @@ import { miLocalStorage } from '@/local-storage.js';
import { Pizzax } from '@/lib/pizzax.js';
import { DEFAULT_DEVICE_KIND } from '@/utility/device-kind.js';
+export const TIPS = [
+ 'drive',
+ 'uploader',
+ 'clips',
+ 'userLists',
+ 'tl.home',
+ 'tl.local',
+ 'tl.social',
+ 'tl.global',
+ 'abuses',
+] as const;
+
/**
* 「状態」を管理するストア(not「設定」)
*/
@@ -22,22 +34,9 @@ export const store = markRaw(new Pizzax('base', {
where: 'account',
default: 0,
},
- timelineTutorials: {
- where: 'account',
- default: {
- home: false,
- local: false,
- social: false,
- global: false,
- },
- },
- abusesTutorial: {
- where: 'account',
- default: false,
- },
- readDriveTip: {
- where: 'account',
- default: false,
+ tips: {
+ where: 'device',
+ default: {} as Partial<Record<typeof TIPS[number], boolean>>, // true = 既読
},
memo: {
where: 'account',