1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 06:41:21 +02:00

Bundled output for commit 1948f25151

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

[skip ci]
This commit is contained in:
flarum-bot
2022-08-08 21:22:31 +00:00
parent 1948f25151
commit eab5093012
12 changed files with 73 additions and 65 deletions

View File

@@ -34,6 +34,8 @@ export interface AdminApplicationData extends ApplicationData {
modelStatistics: Record<string, {
total: number;
}>;
displayNameDrivers: string[];
slugDrivers: Record<string, string[]>;
}
export default class AdminApplication extends Application {
extensionData: ExtensionData;

View File

@@ -25,7 +25,7 @@ export interface AdminHeaderOptions {
export declare type HTMLInputTypes = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
export interface CommonSettingsItemOptions extends Mithril.Attributes {
setting: string;
label: Mithril.Children;
label?: Mithril.Children;
help?: Mithril.Children;
className?: string;
}
@@ -87,6 +87,9 @@ export declare type SettingsComponentOptions = HTMLInputSettingsComponentOptions
export declare type AdminHeaderAttrs = AdminHeaderOptions & Partial<Omit<Mithril.Attributes, 'class'>>;
export declare type SettingValue = string;
export declare type MutableSettings = Record<string, Stream<SettingValue>>;
export declare type SaveSubmitEvent = SubmitEvent & {
redraw: boolean;
};
export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends Page<CustomAttrs> {
settings: MutableSettings;
loading: boolean;
@@ -100,7 +103,7 @@ export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAt
*
* Calls `this.saveSettings` when the button is clicked.
*/
submitButton(vnode: Mithril.Vnode<CustomAttrs, this>): Mithril.Children;
submitButton(): Mithril.Children;
/**
* Returns the Header component for this AdminPage.
*/
@@ -197,8 +200,6 @@ export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAt
/**
* Saves the modified settings to the database.
*/
saveSettings(e: SubmitEvent & {
redraw: boolean;
}): Promise<void>;
saveSettings(e: SaveSubmitEvent): Promise<void>;
}
export {};

View File

@@ -1,6 +1,8 @@
/// <reference path="../../@types/translator-icu-rich.d.ts" />
export default class AppearancePage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
import AdminPage from './AdminPage';
import ItemList from '../../common/utils/ItemList';
import type Mithril from 'mithril';
export default class AppearancePage extends AdminPage {
headerInfo(): {
className: string;
icon: string;
@@ -8,7 +10,6 @@ export default class AppearancePage extends AdminPage<import("../../common/compo
description: import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
};
content(): JSX.Element[];
colorItems(): ItemList<any>;
colorItems(): ItemList<Mithril.Children>;
onsaved(): void;
}
import AdminPage from "./AdminPage";
import ItemList from "../../common/utils/ItemList";

View File

@@ -1,10 +1,17 @@
/// <reference path="../../@types/translator-icu-rich.d.ts" />
export default class BasicsPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
oninit(vnode: any): void;
localeOptions: {} | undefined;
displayNameOptions: {} | undefined;
slugDriverOptions: {} | undefined;
import ItemList from '../../common/utils/ItemList';
import AdminPage from './AdminPage';
import type { IPageAttrs } from '../../common/components/Page';
import type Mithril from 'mithril';
export declare type HomePageItem = {
path: string;
label: Mithril.Children;
};
export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends AdminPage<CustomAttrs> {
localeOptions: Record<string, string>;
displayNameOptions: Record<string, string>;
slugDriverOptions: Record<string, Record<string, string>>;
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
headerInfo(): {
className: string;
icon: string;
@@ -15,13 +22,6 @@ export default class BasicsPage extends AdminPage<import("../../common/component
/**
* Build a list of options for the default homepage. Each option must be an
* object with `path` and `label` properties.
*
* @return {ItemList<{ path: string, label: import('mithril').Children }>}
*/
homePageItems(): ItemList<{
path: string;
label: import('mithril').Children;
}>;
homePageItems(): ItemList<HomePageItem>;
}
import AdminPage from "./AdminPage";
import ItemList from "../../common/utils/ItemList";

View File

@@ -1,8 +1,27 @@
/// <reference path="../../@types/translator-icu-rich.d.ts" />
export default class MailPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
oninit(vnode: any): void;
sendingTest: boolean | undefined;
import AdminPage from './AdminPage';
import type { IPageAttrs } from '../../common/components/Page';
import type { AlertIdentifier } from '../../common/states/AlertManagerState';
import type Mithril from 'mithril';
import type { SaveSubmitEvent } from './AdminPage';
export interface MailSettings {
data: {
attributes: {
fields: Record<string, any>;
sending: boolean;
errors: any[];
};
};
}
export default class MailPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends AdminPage<CustomAttrs> {
sendingTest: boolean;
status?: {
sending: boolean;
errors: any;
};
driverFields?: Record<string, any>;
testEmailSuccessAlert?: AlertIdentifier;
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
headerInfo(): {
className: string;
icon: string;
@@ -10,14 +29,7 @@ export default class MailPage extends AdminPage<import("../../common/components/
description: import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
};
refresh(): void;
status: {
sending: boolean;
errors: {};
} | undefined;
driverFields: any;
content(): JSX.Element;
sendTestEmail(): void;
testEmailSuccessAlert: number | undefined;
saveSettings(e: any): void;
saveSettings(e: SaveSubmitEvent): Promise<void>;
}
import AdminPage from "./AdminPage";

View File

@@ -1,6 +1,7 @@
/// <reference path="../../@types/translator-icu-rich.d.ts" />
export default class PermissionsPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
/// <reference types="mithril" />
import AdminPage from './AdminPage';
export default class PermissionsPage extends AdminPage {
headerInfo(): {
className: string;
icon: string;
@@ -9,4 +10,3 @@ export default class PermissionsPage extends AdminPage<import("../../common/comp
};
content(): JSX.Element[];
}
import AdminPage from "./AdminPage";

View File

@@ -1,10 +1,10 @@
import Page, { IPageAttrs } from '../../common/components/Page';
import type Mithril from 'mithril';
/**
* The `NotificationsPage` component shows the notifications list. It is only
* used on mobile devices where the notifications dropdown is within the drawer.
*/
export default class NotificationsPage extends Page<import("../../common/components/Page").IPageAttrs, undefined> {
constructor();
oninit(vnode: any): void;
export default class NotificationsPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends Page<CustomAttrs> {
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
view(): JSX.Element;
}
import Page from "../../common/components/Page";

View File

@@ -1,36 +1,28 @@
import UserPage, { IUserPageAttrs } from './UserPage';
import ItemList from '../../common/utils/ItemList';
import type Mithril from 'mithril';
/**
* The `SettingsPage` component displays the user's settings control panel, in
* the context of their user profile.
*/
export default class SettingsPage extends UserPage<import("./UserPage").IUserPageAttrs, undefined> {
constructor();
oninit(vnode: any): void;
export default class SettingsPage<CustomAttrs extends IUserPageAttrs = IUserPageAttrs> extends UserPage<CustomAttrs> {
discloseOnlineLoading?: boolean;
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
content(): JSX.Element;
/**
* Build an item list for the user's settings controls.
*
* @return {ItemList<import('mithril').Children>}
*/
settingsItems(): ItemList<import('mithril').Children>;
settingsItems(): ItemList<Mithril.Children>;
/**
* Build an item list for the user's account settings.
*
* @return {ItemList<import('mithril').Children>}
*/
accountItems(): ItemList<import('mithril').Children>;
accountItems(): ItemList<Mithril.Children>;
/**
* Build an item list for the user's notification settings.
*
* @return {ItemList<import('mithril').Children>}
*/
notificationsItems(): ItemList<import('mithril').Children>;
notificationsItems(): ItemList<Mithril.Children>;
/**
* Build an item list for the user's privacy settings.
*
* @return {ItemList<import('mithril').Children>}
*/
privacyItems(): ItemList<import('mithril').Children>;
discloseOnlineLoading: boolean | undefined;
privacyItems(): ItemList<Mithril.Children>;
}
import UserPage from "./UserPage";
import ItemList from "../../common/utils/ItemList";

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