From 2bfbbbf16ac1f085efa897c98913297fe09eef61 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 23 May 2025 10:46:42 +0900 Subject: enhance(frontend): improve tips --- packages/frontend/src/store.ts | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'packages/frontend/src/store.ts') 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>, // true = 既読 }, memo: { where: 'account', -- cgit v1.2.3-freya