feat(frontend): 任意のユーザーリストをタイムラインページにピン留めできるように

This commit is contained in:
syuilo
2023-09-19 10:58:42 +09:00
parent bec338aa00
commit 299c9c4118
6 changed files with 49 additions and 7 deletions

View File

@@ -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',