Bundled output for commit 1af506d4b8

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot 2022-07-13 20:47:43 +00:00
parent 1af506d4b8
commit ec22162cf4
13 changed files with 94 additions and 69 deletions

View File

@ -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;
/**

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
framework/core/js/dist/forum.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long