refactor(frontend): relocate plugin consts
This commit is contained in:
parent
933abedc90
commit
27e8805dcb
8 changed files with 48 additions and 45 deletions
|
|
@ -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「設定」)
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue