refactor(frontend): relocate plugin consts
This commit is contained in:
@@ -15,40 +15,6 @@ import { miLocalStorage } from '@/local-storage.js';
|
||||
import { Storage } from '@/pizzax.js';
|
||||
import { DEFAULT_DEVICE_KIND } from '@/utility/device-kind.js';
|
||||
|
||||
interface PostFormAction {
|
||||
title: string,
|
||||
handler: <T>(form: T, update: (key: unknown, value: unknown) => void) => void;
|
||||
}
|
||||
|
||||
interface UserAction {
|
||||
title: string,
|
||||
handler: (user: Misskey.entities.UserDetailed) => void;
|
||||
}
|
||||
|
||||
interface NoteAction {
|
||||
title: string,
|
||||
handler: (note: Misskey.entities.Note) => void;
|
||||
}
|
||||
|
||||
interface NoteViewInterruptor {
|
||||
handler: (note: Misskey.entities.Note) => unknown;
|
||||
}
|
||||
|
||||
interface NotePostInterruptor {
|
||||
handler: (note: FIXME) => unknown;
|
||||
}
|
||||
|
||||
interface PageViewInterruptor {
|
||||
handler: (page: Misskey.entities.Page) => unknown;
|
||||
}
|
||||
|
||||
export const postFormActions: PostFormAction[] = [];
|
||||
export const userActions: UserAction[] = [];
|
||||
export const noteActions: NoteAction[] = [];
|
||||
export const noteViewInterruptors: NoteViewInterruptor[] = [];
|
||||
export const notePostInterruptors: NotePostInterruptor[] = [];
|
||||
export const pageViewInterruptors: PageViewInterruptor[] = [];
|
||||
|
||||
/**
|
||||
* 「状態」を管理するストア(not「設定」)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user