parent
c05c504c86
commit
42833cd921
3 changed files with 34 additions and 3 deletions
|
|
@ -24,11 +24,16 @@ interface NotePostInterruptor {
|
|||
handler: (note: FIXME) => unknown;
|
||||
}
|
||||
|
||||
interface PageViewInterruptor {
|
||||
handler: (page: 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[] = [];
|
||||
|
||||
// TODO: それぞれいちいちwhereとかdefaultというキーを付けなきゃいけないの冗長なのでなんとかする(ただ型定義が面倒になりそう)
|
||||
// あと、現行の定義の仕方なら「whereが何であるかに関わらずキー名の重複不可」という制約を付けられるメリットもあるからそのメリットを引き継ぐ方法も考えないといけない
|
||||
|
|
@ -318,7 +323,7 @@ interface Watcher {
|
|||
import { miLocalStorage } from './local-storage';
|
||||
import lightTheme from '@/themes/l-light.json5';
|
||||
import darkTheme from '@/themes/d-green-lime.json5';
|
||||
import { Note, UserDetailed } from 'misskey-js/built/entities';
|
||||
import { Note, UserDetailed, Page } from 'misskey-js/built/entities';
|
||||
|
||||
export class ColdDeviceStorage {
|
||||
public static default = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue