2021-12-14 03:11:57 +00:00
|
|
|
/// <reference path="../../../src/common/translator-icu-rich.d.ts" />
|
|
|
|
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
|
|
|
|
import ExtensionReadme from '../models/ExtensionReadme';
|
|
|
|
import type Mithril from 'mithril';
|
|
|
|
import type { Extension } from '../AdminApplication';
|
|
|
|
export interface IReadmeModalAttrs extends IInternalModalAttrs {
|
|
|
|
extension: Extension;
|
|
|
|
}
|
|
|
|
export default class ReadmeModal<CustomAttrs extends IReadmeModalAttrs = IReadmeModalAttrs> extends Modal<CustomAttrs> {
|
|
|
|
protected name: string;
|
|
|
|
protected extName: string;
|
|
|
|
protected readme: ExtensionReadme;
|
|
|
|
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
|
|
|
|
className(): string;
|
|
|
|
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
|
|
|
content(): JSX.Element;
|
2021-10-28 01:59:00 +00:00
|
|
|
loadReadme(): Promise<void>;
|
|
|
|
}
|