diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-23 10:46:42 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-23 10:46:42 +0900 |
| commit | 2bfbbbf16ac1f085efa897c98913297fe09eef61 (patch) | |
| tree | c88edb1ca495c3f48e92c2a14744a06c006f6a2f /packages/frontend/src/store.ts | |
| parent | fix(backend): admin側のエンドポイントで作成した招待コード... (diff) | |
| download | misskey-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.ts | 31 |
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', |