mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Bundled output for commit 1af506d4b8
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
parent
1af506d4b8
commit
ec22162cf4
4
framework/core/js/dist-typings/admin/components/AdminPage.d.ts
generated
vendored
4
framework/core/js/dist-typings/admin/components/AdminPage.d.ts
generated
vendored
|
@ -85,8 +85,10 @@ export declare type SettingsComponentOptions = HTMLInputSettingsComponentOptions
|
|||
* Valid attrs that can be returned by the `headerInfo` function
|
||||
*/
|
||||
export declare type AdminHeaderAttrs = AdminHeaderOptions & Partial<Omit<Mithril.Attributes, 'class'>>;
|
||||
export declare type SettingValue = string;
|
||||
export declare type MutableSettings = Record<string, Stream<SettingValue>>;
|
||||
export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends Page<CustomAttrs> {
|
||||
settings: Record<string, Stream<string>>;
|
||||
settings: MutableSettings;
|
||||
loading: boolean;
|
||||
view(vnode: Mithril.Vnode<CustomAttrs, this>): Mithril.Children;
|
||||
/**
|
||||
|
|
5
framework/core/js/dist-typings/admin/components/EditCustomCssModal.d.ts
generated
vendored
5
framework/core/js/dist-typings/admin/components/EditCustomCssModal.d.ts
generated
vendored
|
@ -1,6 +1,9 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
/// <reference types="mithril" />
|
||||
import SettingsModal from './SettingsModal';
|
||||
export default class EditCustomCssModal extends SettingsModal {
|
||||
className(): string;
|
||||
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||
form(): JSX.Element[];
|
||||
onsaved(): void;
|
||||
}
|
||||
import SettingsModal from "./SettingsModal";
|
||||
|
|
5
framework/core/js/dist-typings/admin/components/EditCustomFooterModal.d.ts
generated
vendored
5
framework/core/js/dist-typings/admin/components/EditCustomFooterModal.d.ts
generated
vendored
|
@ -1,6 +1,9 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
/// <reference types="mithril" />
|
||||
import SettingsModal from './SettingsModal';
|
||||
export default class EditCustomFooterModal extends SettingsModal {
|
||||
className(): string;
|
||||
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||
form(): JSX.Element[];
|
||||
onsaved(): void;
|
||||
}
|
||||
import SettingsModal from "./SettingsModal";
|
||||
|
|
5
framework/core/js/dist-typings/admin/components/EditCustomHeaderModal.d.ts
generated
vendored
5
framework/core/js/dist-typings/admin/components/EditCustomHeaderModal.d.ts
generated
vendored
|
@ -1,6 +1,9 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
/// <reference types="mithril" />
|
||||
import SettingsModal from './SettingsModal';
|
||||
export default class EditCustomHeaderModal extends SettingsModal {
|
||||
className(): string;
|
||||
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||
form(): JSX.Element[];
|
||||
onsaved(): void;
|
||||
}
|
||||
import SettingsModal from "./SettingsModal";
|
||||
|
|
46
framework/core/js/dist-typings/admin/components/EditGroupModal.d.ts
generated
vendored
46
framework/core/js/dist-typings/admin/components/EditGroupModal.d.ts
generated
vendored
|
@ -1,29 +1,35 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
|
||||
import Group from '../../common/models/Group';
|
||||
import ItemList from '../../common/utils/ItemList';
|
||||
import Stream from '../../common/utils/Stream';
|
||||
import Mithril from 'mithril';
|
||||
export interface IEditGroupModalAttrs extends IInternalModalAttrs {
|
||||
group?: Group;
|
||||
}
|
||||
/**
|
||||
* The `EditGroupModal` component shows a modal dialog which allows the user
|
||||
* to create or edit a group.
|
||||
*/
|
||||
export default class EditGroupModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||
constructor();
|
||||
oninit(vnode: any): void;
|
||||
group: any;
|
||||
nameSingular: Stream<any> | undefined;
|
||||
namePlural: Stream<any> | undefined;
|
||||
icon: Stream<any> | undefined;
|
||||
color: Stream<any> | undefined;
|
||||
isHidden: Stream<any> | undefined;
|
||||
title(): any[];
|
||||
export default class EditGroupModal<CustomAttrs extends IEditGroupModalAttrs = IEditGroupModalAttrs> extends Modal<CustomAttrs> {
|
||||
group: Group;
|
||||
nameSingular: Stream<string>;
|
||||
namePlural: Stream<string>;
|
||||
icon: Stream<string>;
|
||||
color: Stream<string>;
|
||||
isHidden: Stream<boolean>;
|
||||
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
|
||||
className(): string;
|
||||
title(): (Mithril.Vnode<{}, {}> | import("@askvortsov/rich-icu-message-formatter").NestedStringArray)[];
|
||||
content(): JSX.Element;
|
||||
fields(): ItemList<any>;
|
||||
fields(): ItemList<unknown>;
|
||||
submitData(): {
|
||||
nameSingular: any;
|
||||
namePlural: any;
|
||||
color: any;
|
||||
icon: any;
|
||||
isHidden: any;
|
||||
nameSingular: string;
|
||||
namePlural: string;
|
||||
color: string;
|
||||
icon: string;
|
||||
isHidden: boolean;
|
||||
};
|
||||
onsubmit(e: any): void;
|
||||
onsubmit(e: SubmitEvent): void;
|
||||
deleteGroup(): void;
|
||||
}
|
||||
import Modal from "../../common/components/Modal";
|
||||
import Stream from "../../common/utils/Stream";
|
||||
import ItemList from "../../common/utils/ItemList";
|
||||
|
|
24
framework/core/js/dist-typings/admin/components/SettingsModal.d.ts
generated
vendored
24
framework/core/js/dist-typings/admin/components/SettingsModal.d.ts
generated
vendored
|
@ -1,14 +1,18 @@
|
|||
export default class SettingsModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||
constructor();
|
||||
oninit(vnode: any): void;
|
||||
settings: {} | undefined;
|
||||
form(): string;
|
||||
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
|
||||
import Stream from '../../common/utils/Stream';
|
||||
import Mithril from 'mithril';
|
||||
import { MutableSettings, SettingValue } from './AdminPage';
|
||||
export interface ISettingsModalAttrs extends IInternalModalAttrs {
|
||||
}
|
||||
export default abstract class SettingsModal<CustomAttrs extends ISettingsModalAttrs = ISettingsModalAttrs> extends Modal<CustomAttrs> {
|
||||
settings: MutableSettings;
|
||||
loading: boolean;
|
||||
form(): Mithril.Children;
|
||||
content(): JSX.Element;
|
||||
submitButton(): JSX.Element;
|
||||
setting(key: any, fallback?: string): any;
|
||||
dirty(): {};
|
||||
submitButton(): Mithril.Children;
|
||||
setting(key: string, fallback?: string): Stream<SettingValue>;
|
||||
dirty(): Record<string, string>;
|
||||
changed(): number;
|
||||
onsubmit(e: any): void;
|
||||
onsubmit(e: SubmitEvent): void;
|
||||
onsaved(): void;
|
||||
}
|
||||
import Modal from "../../common/components/Modal";
|
||||
|
|
33
framework/core/js/dist-typings/forum/components/ChangeEmailModal.d.ts
generated
vendored
33
framework/core/js/dist-typings/forum/components/ChangeEmailModal.d.ts
generated
vendored
|
@ -1,32 +1,29 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
|
||||
import Stream from '../../common/utils/Stream';
|
||||
import Mithril from 'mithril';
|
||||
import RequestError from '../../common/utils/RequestError';
|
||||
/**
|
||||
* The `ChangeEmailModal` component shows a modal dialog which allows the user
|
||||
* to change their email address.
|
||||
*/
|
||||
export default class ChangeEmailModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||
constructor();
|
||||
oninit(vnode: any): void;
|
||||
/**
|
||||
* Whether or not the email has been changed successfully.
|
||||
*
|
||||
* @type {Boolean}
|
||||
*/
|
||||
success: boolean | undefined;
|
||||
export default class ChangeEmailModal<CustomAttrs extends IInternalModalAttrs = IInternalModalAttrs> extends Modal<CustomAttrs> {
|
||||
/**
|
||||
* The value of the email input.
|
||||
*
|
||||
* @type {function}
|
||||
*/
|
||||
email: Function | undefined;
|
||||
email: Stream<string>;
|
||||
/**
|
||||
* The value of the password input.
|
||||
*
|
||||
* @type {function}
|
||||
*/
|
||||
password: Function | undefined;
|
||||
password: Stream<string>;
|
||||
/**
|
||||
* Whether or not the email has been changed successfully.
|
||||
*/
|
||||
success: boolean;
|
||||
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
|
||||
className(): string;
|
||||
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||
content(): JSX.Element;
|
||||
onsubmit(e: any): void;
|
||||
onerror(error: any): void;
|
||||
onsubmit(e: SubmitEvent): void;
|
||||
onerror(error: RequestError): void;
|
||||
}
|
||||
import Modal from "../../common/components/Modal";
|
||||
|
|
9
framework/core/js/dist-typings/forum/components/ChangePasswordModal.d.ts
generated
vendored
9
framework/core/js/dist-typings/forum/components/ChangePasswordModal.d.ts
generated
vendored
|
@ -1,12 +1,13 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
/// <reference types="mithril" />
|
||||
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
|
||||
/**
|
||||
* The `ChangePasswordModal` component shows a modal dialog which allows the
|
||||
* user to send themself a password reset email.
|
||||
*/
|
||||
export default class ChangePasswordModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||
constructor();
|
||||
export default class ChangePasswordModal<CustomAttrs extends IInternalModalAttrs = IInternalModalAttrs> extends Modal<CustomAttrs> {
|
||||
className(): string;
|
||||
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||
content(): JSX.Element;
|
||||
onsubmit(e: any): void;
|
||||
onsubmit(e: SubmitEvent): void;
|
||||
}
|
||||
import Modal from "../../common/components/Modal";
|
||||
|
|
24
framework/core/js/dist-typings/forum/components/RenameDiscussionModal.d.ts
generated
vendored
24
framework/core/js/dist-typings/forum/components/RenameDiscussionModal.d.ts
generated
vendored
|
@ -1,16 +1,22 @@
|
|||
/// <reference path="../../@types/translator-icu-rich.d.ts" />
|
||||
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
|
||||
import Stream from '../../common/utils/Stream';
|
||||
import Mithril from 'mithril';
|
||||
import Discussion from '../../common/models/Discussion';
|
||||
export interface IRenameDiscussionModalAttrs extends IInternalModalAttrs {
|
||||
discussion: Discussion;
|
||||
currentTitle: string;
|
||||
}
|
||||
/**
|
||||
* The 'RenameDiscussionModal' displays a modal dialog with an input to rename a discussion
|
||||
*/
|
||||
export default class RenameDiscussionModal extends Modal<import("../../common/components/Modal").IInternalModalAttrs> {
|
||||
constructor();
|
||||
oninit(vnode: any): void;
|
||||
discussion: any;
|
||||
currentTitle: any;
|
||||
newTitle: Stream<any> | undefined;
|
||||
export default class RenameDiscussionModal<CustomAttrs extends IRenameDiscussionModalAttrs = IRenameDiscussionModalAttrs> extends Modal<CustomAttrs> {
|
||||
discussion: Discussion;
|
||||
currentTitle: string;
|
||||
newTitle: Stream<string>;
|
||||
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
|
||||
className(): string;
|
||||
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||
content(): JSX.Element;
|
||||
onsubmit(e: any): any;
|
||||
onsubmit(e: SubmitEvent): Promise<void> | void;
|
||||
}
|
||||
import Modal from "../../common/components/Modal";
|
||||
import Stream from "../../common/utils/Stream";
|
||||
|
|
2
framework/core/js/dist/admin.js
generated
vendored
2
framework/core/js/dist/admin.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/admin.js.map
generated
vendored
2
framework/core/js/dist/admin.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js
generated
vendored
2
framework/core/js/dist/forum.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js.map
generated
vendored
2
framework/core/js/dist/forum.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user