restore following feed deck UI

This commit is contained in:
Hazelnoot 2025-03-27 10:30:04 -04:00
parent 86bfafe27f
commit b4e3062083
4 changed files with 40 additions and 35 deletions

View file

@ -4,7 +4,8 @@
*/
import { notificationTypes } from 'misskey-js';
import { ref } from 'vue';
import { ref, computed } from 'vue';
import type { Ref } from 'vue';
import { v4 as uuid } from 'uuid';
import { i18n } from './i18n.js';
import type { BasicTimelineType } from '@/timelines.js';
@ -320,6 +321,12 @@ export function updateColumn(id: Column['id'], column: Partial<Column>) {
saveCurrentDeckProfile();
}
export function getColumn<TColumn extends Column>(id: Column['id']): Ref<TColumn> {
return computed(() => {
return columns.value.find(c => c.id === id) as TColumn;
});
}
export function switchProfileMenu(ev: MouseEvent) {
const items: MenuItem[] = prefer.s['deck.profile'] ? [{
text: prefer.s['deck.profile'],