mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 04:26:23 +08:00
Bundled output for commit a2034691096274cc57a25e376fe65eb3b8c2bc0e
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
parent
a203469109
commit
c96fa49853
@ -2,7 +2,7 @@
|
|||||||
* The `EditGroupModal` component shows a modal dialog which allows the user
|
* The `EditGroupModal` component shows a modal dialog which allows the user
|
||||||
* to create or edit a group.
|
* to create or edit a group.
|
||||||
*/
|
*/
|
||||||
export default class EditGroupModal extends Modal<any> {
|
export default class EditGroupModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
group: any;
|
group: any;
|
||||||
nameSingular: Stream<any> | undefined;
|
nameSingular: Stream<any> | undefined;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export default class ReadmeModal extends Modal<any> {
|
export default class ReadmeModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
name: any;
|
name: any;
|
||||||
extName: any;
|
extName: any;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export default class SettingsModal extends Modal<any> {
|
export default class SettingsModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
settings: {} | undefined;
|
settings: {} | undefined;
|
||||||
form(): string;
|
form(): string;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* The `EditUserModal` component displays a modal dialog with a login form.
|
* The `EditUserModal` component displays a modal dialog with a login form.
|
||||||
*/
|
*/
|
||||||
export default class EditUserModal extends Modal<any> {
|
export default class EditUserModal extends Modal<import("./Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
username: Stream<any> | undefined;
|
username: Stream<any> | undefined;
|
||||||
email: Stream<any> | undefined;
|
email: Stream<any> | undefined;
|
||||||
|
16
js/dist-typings/common/components/Modal.d.ts
vendored
16
js/dist-typings/common/components/Modal.d.ts
vendored
@ -4,7 +4,7 @@ import type Mithril from 'mithril';
|
|||||||
import type ModalManagerState from '../states/ModalManagerState';
|
import type ModalManagerState from '../states/ModalManagerState';
|
||||||
import type RequestError from '../utils/RequestError';
|
import type RequestError from '../utils/RequestError';
|
||||||
import type ModalManager from './ModalManager';
|
import type ModalManager from './ModalManager';
|
||||||
interface IInternalModalAttrs {
|
export interface IInternalModalAttrs {
|
||||||
state: ModalManagerState;
|
state: ModalManagerState;
|
||||||
animateShow: ModalManager['animateShow'];
|
animateShow: ModalManager['animateShow'];
|
||||||
animateHide: ModalManager['animateHide'];
|
animateHide: ModalManager['animateHide'];
|
||||||
@ -13,7 +13,7 @@ interface IInternalModalAttrs {
|
|||||||
* The `Modal` component displays a modal dialog, wrapped in a form. Subclasses
|
* The `Modal` component displays a modal dialog, wrapped in a form. Subclasses
|
||||||
* should implement the `className`, `title`, and `content` methods.
|
* should implement the `className`, `title`, and `content` methods.
|
||||||
*/
|
*/
|
||||||
export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttrs & IInternalModalAttrs> {
|
export default abstract class Modal<ModalAttrs extends IInternalModalAttrs = IInternalModalAttrs> extends Component<ModalAttrs> {
|
||||||
/**
|
/**
|
||||||
* Determine whether or not the modal should be dismissible via an 'x' button.
|
* Determine whether or not the modal should be dismissible via an 'x' button.
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,12 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
|
|||||||
* Attributes for an alert component to show below the header.
|
* Attributes for an alert component to show below the header.
|
||||||
*/
|
*/
|
||||||
alertAttrs: AlertAttrs;
|
alertAttrs: AlertAttrs;
|
||||||
oninit(vnode: Mithril.VnodeDOM<ModalAttrs & IInternalModalAttrs, this>): void;
|
oninit(vnode: Mithril.VnodeDOM<ModalAttrs, this>): void;
|
||||||
oncreate(vnode: Mithril.VnodeDOM<ModalAttrs & IInternalModalAttrs, this>): void;
|
oncreate(vnode: Mithril.VnodeDOM<ModalAttrs, this>): void;
|
||||||
onbeforeremove(vnode: Mithril.VnodeDOM<ModalAttrs & IInternalModalAttrs, this>): Promise<void> | void;
|
onbeforeremove(vnode: Mithril.VnodeDOM<ModalAttrs, this>): Promise<void> | void;
|
||||||
|
/**
|
||||||
|
* @todo split into FormModal and Modal in 2.0
|
||||||
|
*/
|
||||||
view(): JSX.Element;
|
view(): JSX.Element;
|
||||||
/**
|
/**
|
||||||
* Get the class name to apply to the modal.
|
* Get the class name to apply to the modal.
|
||||||
@ -42,7 +45,7 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
|
|||||||
/**
|
/**
|
||||||
* Handle the modal form's submit event.
|
* Handle the modal form's submit event.
|
||||||
*/
|
*/
|
||||||
abstract onsubmit(e: Event): void;
|
onsubmit(e: SubmitEvent): void;
|
||||||
/**
|
/**
|
||||||
* Callback executed when the modal is shown and ready to be interacted with.
|
* Callback executed when the modal is shown and ready to be interacted with.
|
||||||
*
|
*
|
||||||
@ -63,4 +66,3 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
|
|||||||
*/
|
*/
|
||||||
onerror(error: RequestError): void;
|
onerror(error: RequestError): void;
|
||||||
}
|
}
|
||||||
export {};
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export default class RequestErrorModal extends Modal<any> {
|
export default class RequestErrorModal extends Modal<import("./Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
}
|
}
|
||||||
import Modal from "./Modal";
|
import Modal from "./Modal";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* The `ChangeEmailModal` component shows a modal dialog which allows the user
|
* The `ChangeEmailModal` component shows a modal dialog which allows the user
|
||||||
* to change their email address.
|
* to change their email address.
|
||||||
*/
|
*/
|
||||||
export default class ChangeEmailModal extends Modal<any> {
|
export default class ChangeEmailModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
/**
|
/**
|
||||||
* Whether or not the email has been changed successfully.
|
* Whether or not the email has been changed successfully.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* The `ChangePasswordModal` component shows a modal dialog which allows the
|
* The `ChangePasswordModal` component shows a modal dialog which allows the
|
||||||
* user to send themself a password reset email.
|
* user to send themself a password reset email.
|
||||||
*/
|
*/
|
||||||
export default class ChangePasswordModal extends Modal<any> {
|
export default class ChangePasswordModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
}
|
}
|
||||||
import Modal from "../../common/components/Modal";
|
import Modal from "../../common/components/Modal";
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* - `email`
|
* - `email`
|
||||||
*/
|
*/
|
||||||
export default class ForgotPasswordModal extends Modal<any> {
|
export default class ForgotPasswordModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
/**
|
/**
|
||||||
* The value of the email input.
|
* The value of the email input.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* - `identification`
|
* - `identification`
|
||||||
* - `password`
|
* - `password`
|
||||||
*/
|
*/
|
||||||
export default class LogInModal extends Modal<any> {
|
export default class LogInModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
/**
|
/**
|
||||||
* The value of the identification input.
|
* The value of the identification input.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* The 'RenameDiscussionModal' displays a modal dialog with an input to rename a discussion
|
* The 'RenameDiscussionModal' displays a modal dialog with an input to rename a discussion
|
||||||
*/
|
*/
|
||||||
export default class RenameDiscussionModal extends Modal<any> {
|
export default class RenameDiscussionModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
discussion: any;
|
discussion: any;
|
||||||
currentTitle: any;
|
currentTitle: any;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* - `password`
|
* - `password`
|
||||||
* - `token` An email token to sign up with.
|
* - `token` An email token to sign up with.
|
||||||
*/
|
*/
|
||||||
export default class SignUpModal extends Modal<any> {
|
export default class SignUpModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||||
constructor();
|
constructor();
|
||||||
/**
|
/**
|
||||||
* The value of the username input.
|
* The value of the username input.
|
||||||
|
2
js/dist/admin.js
generated
vendored
2
js/dist/admin.js
generated
vendored
File diff suppressed because one or more lines are too long
2
js/dist/admin.js.map
generated
vendored
2
js/dist/admin.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
js/dist/forum.js
generated
vendored
2
js/dist/forum.js
generated
vendored
File diff suppressed because one or more lines are too long
2
js/dist/forum.js.map
generated
vendored
2
js/dist/forum.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user