diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-19 10:58:42 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-19 10:58:42 +0900 |
| commit | 299c9c41188df46b64b04ba53cbded7a89998b6c (patch) | |
| tree | cb7e6b322782c79f2be7354437d462999fa0fd23 /packages/frontend/src/store.ts | |
| parent | Update .eslintrc.js (diff) | |
| download | misskey-299c9c41188df46b64b04ba53cbded7a89998b6c.tar.gz misskey-299c9c41188df46b64b04ba53cbded7a89998b6c.tar.bz2 misskey-299c9c41188df46b64b04ba53cbded7a89998b6c.zip | |
feat(frontend): 任意のユーザーリストをタイムラインページにピン留めできるように
Diffstat (limited to '')
| -rw-r--r-- | packages/frontend/src/store.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 787a584f83..4b8001bfb4 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -4,7 +4,7 @@ */ import { markRaw, ref } from 'vue'; -import misskey from 'misskey-js'; +import * as Misskey from 'misskey-js'; import { Storage } from './pizzax'; interface PostFormAction { @@ -163,10 +163,14 @@ export const defaultStore = markRaw(new Storage('base', { tl: { where: 'deviceAccount', default: { - src: 'home' as 'home' | 'local' | 'social' | 'global', - arg: null, + src: 'home' as 'home' | 'local' | 'social' | 'global' | `list:${string}`, + userList: null as Misskey.entities.UserList | null, }, }, + pinnedUserLists: { + where: 'deviceAccount', + default: [] as Misskey.entities.UserList[], + }, overridedDeviceKind: { where: 'device', |