2021-11-12 03:21:56 +08:00
|
|
|
import ItemList from '../../common/utils/ItemList';
|
|
|
|
import AdminPage from './AdminPage';
|
|
|
|
import RequestError from '../../common/utils/RequestError';
|
|
|
|
import { Extension } from '../AdminApplication';
|
|
|
|
import { IPageAttrs } from '../../common/components/Page';
|
|
|
|
import type Mithril from 'mithril';
|
|
|
|
export interface ExtensionPageAttrs extends IPageAttrs {
|
|
|
|
id: string;
|
|
|
|
}
|
|
|
|
export default class ExtensionPage<Attrs extends ExtensionPageAttrs = ExtensionPageAttrs> extends AdminPage<Attrs> {
|
|
|
|
extension: Extension;
|
|
|
|
changingState: boolean;
|
2021-05-13 07:29:46 +08:00
|
|
|
infoFields: {
|
|
|
|
discuss: string;
|
|
|
|
documentation: string;
|
|
|
|
support: string;
|
|
|
|
website: string;
|
|
|
|
donate: string;
|
|
|
|
source: string;
|
2021-11-12 03:21:56 +08:00
|
|
|
};
|
|
|
|
oninit(vnode: Mithril.Vnode<Attrs, this>): void;
|
2021-05-13 07:29:46 +08:00
|
|
|
className(): string;
|
2021-11-12 03:21:56 +08:00
|
|
|
view(vnode: Mithril.VnodeDOM<Attrs, this>): JSX.Element | null;
|
|
|
|
header(): JSX.Element[];
|
2021-11-12 04:05:26 +08:00
|
|
|
sections(vnode: Mithril.VnodeDOM<Attrs, this>): ItemList<unknown>;
|
2021-11-12 03:21:56 +08:00
|
|
|
content(vnode: Mithril.VnodeDOM<Attrs, this>): JSX.Element;
|
2021-11-12 08:58:35 +08:00
|
|
|
topItems(): ItemList<Mithril.Children>;
|
|
|
|
infoItems(): ItemList<Mithril.Children>;
|
2021-05-13 07:29:46 +08:00
|
|
|
toggle(): void;
|
|
|
|
isEnabled(): any;
|
2021-11-12 03:21:56 +08:00
|
|
|
onerror(e: RequestError): void;
|
2021-05-13 07:29:46 +08:00
|
|
|
}
|