1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Bundled output for commit 0a2b28ebe0

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

[skip ci]
This commit is contained in:
flarum-bot
2021-08-23 01:02:28 +00:00
parent 0a2b28ebe0
commit 6defca5a6d
18 changed files with 44 additions and 92 deletions

View File

@@ -96,6 +96,7 @@ declare var _default: {
'utils/ExtensionData': typeof ExtensionData; 'utils/ExtensionData': typeof ExtensionData;
'utils/isExtensionEnabled': typeof isExtensionEnabled; 'utils/isExtensionEnabled': typeof isExtensionEnabled;
'utils/getCategorizedExtensions': typeof getCategorizedExtensions; 'utils/getCategorizedExtensions': typeof getCategorizedExtensions;
'utils/generateElementId': typeof generateElementId;
'components/SettingDropdown': typeof SettingDropdown; 'components/SettingDropdown': typeof SettingDropdown;
'components/EditCustomFooterModal': typeof EditCustomFooterModal; 'components/EditCustomFooterModal': typeof EditCustomFooterModal;
'components/SessionDropdown': typeof SessionDropdown; 'components/SessionDropdown': typeof SessionDropdown;
@@ -132,6 +133,7 @@ import saveSettings from "./utils/saveSettings";
import ExtensionData from "./utils/ExtensionData"; import ExtensionData from "./utils/ExtensionData";
import isExtensionEnabled from "./utils/isExtensionEnabled"; import isExtensionEnabled from "./utils/isExtensionEnabled";
import getCategorizedExtensions from "./utils/getCategorizedExtensions"; import getCategorizedExtensions from "./utils/getCategorizedExtensions";
import generateElementId from "./utils/generateElementId";
import SettingDropdown from "./components/SettingDropdown"; import SettingDropdown from "./components/SettingDropdown";
import EditCustomFooterModal from "./components/EditCustomFooterModal"; import EditCustomFooterModal from "./components/EditCustomFooterModal";
import SessionDropdown from "./components/SessionDropdown"; import SessionDropdown from "./components/SessionDropdown";

View File

@@ -1,55 +0,0 @@
export default class AdminPage extends Page {
settings: {} | undefined;
loading: boolean | undefined;
content(): string;
submitButton(): JSX.Element;
header(): JSX.Element;
headerInfo(): {
className: string;
icon: string;
title: string;
description: string;
};
/**
* buildSettingComponent takes a settings object and turns it into a component.
* Depending on the type of input, you can set the type to 'bool', 'select', or
* any standard <input> type. Any values inside the 'extra' object will be added
* to the component as an attribute.
*
* Alternatively, you can pass a callback that will be executed in ExtensionPage's
* context to include custom JSX elements.
*
* @example
*
* {
* setting: 'acme.checkbox',
* label: app.translator.trans('acme.admin.setting_label'),
* type: 'bool',
* help: app.translator.trans('acme.admin.setting_help'),
* className: 'Setting-item'
* }
*
* @example
*
* {
* setting: 'acme.select',
* label: app.translator.trans('acme.admin.setting_label'),
* type: 'select',
* options: {
* 'option1': 'Option 1 label',
* 'option2': 'Option 2 label',
* },
* default: 'option1',
* }
*
* @param setting
* @returns {JSX.Element}
*/
buildSettingComponent(entry: any): JSX.Element;
onsaved(): void;
setting(key: any, fallback?: string): any;
dirty(): {};
isChanged(): number;
saveSettings(e: any): Promise<void>;
}
import Page from "../../common/components/Page";

View File

@@ -1,3 +1,4 @@
export default class AppearancePage extends AdminPage { export default class AppearancePage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
} }
import AdminPage from "./AdminPage"; import AdminPage from "./AdminPage";

View File

@@ -1,4 +1,5 @@
export default class BasicsPage extends AdminPage { export default class BasicsPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
localeOptions: {} | undefined; localeOptions: {} | undefined;
displayNameOptions: {} | undefined; displayNameOptions: {} | undefined;
slugDriverOptions: {} | undefined; slugDriverOptions: {} | undefined;

View File

@@ -1,4 +1,5 @@
export default class DashboardPage extends AdminPage { export default class DashboardPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
availableWidgets(): ItemList; availableWidgets(): ItemList;
} }
import AdminPage from "./AdminPage"; import AdminPage from "./AdminPage";

View File

@@ -1,4 +1,5 @@
export default class ExtensionPage extends AdminPage { export default class ExtensionPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
extension: any; extension: any;
changingState: boolean | undefined; changingState: boolean | undefined;
infoFields: { infoFields: {

View File

@@ -1,4 +1,5 @@
export default class MailPage extends AdminPage { export default class MailPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
sendingTest: boolean | undefined; sendingTest: boolean | undefined;
refresh(): void; refresh(): void;
status: { status: {

View File

@@ -1,3 +1,4 @@
export default class PermissionsPage extends AdminPage { export default class PermissionsPage extends AdminPage<import("../../common/components/Page").IPageAttrs> {
constructor();
} }
import AdminPage from "./AdminPage"; import AdminPage from "./AdminPage";

View File

@@ -0,0 +1 @@
export { nanoid as default } from 'nanoid';

View File

@@ -1,27 +1,15 @@
import Component from '../Component';
export interface IPageAttrs {
key?: number;
routeName: string;
}
/** /**
* The `Page` component * The `Page` component
* *
* @abstract * @abstract
*/ */
export default class Page extends Component<import("../Component").ComponentAttrs, undefined> { export default abstract class Page<CustomAttrs extends IPageAttrs = IPageAttrs> extends Component<CustomAttrs> {
constructor(); oninit(vnode: any): void;
/** oncreate(vnode: any): void;
* A class name to apply to the body while the route is active. onremove(vnode: any): void;
*
* @type {String}
*/
bodyClass: string | undefined;
/**
* Whether we should scroll to the top of the page when its rendered.
*
* @type {Boolean}
*/
scrollTopOnCreate: boolean | undefined;
/**
* Whether the browser should restore scroll state on refreshes.
*
* @type {Boolean}
*/
useBrowserScrollRestoration: boolean | undefined;
} }
import Component from "../Component";

View File

@@ -2,7 +2,9 @@
* The `DiscussionPage` component displays a whole discussion page, including * The `DiscussionPage` component displays a whole discussion page, including
* the discussion list pane, the hero, the posts, and the sidebar. * the discussion list pane, the hero, the posts, and the sidebar.
*/ */
export default class DiscussionPage extends Page { export default class DiscussionPage extends Page<import("../../common/components/Page").IPageAttrs> {
constructor();
useBrowserScrollRestoration: boolean | undefined;
/** /**
* The discussion that is being viewed. * The discussion that is being viewed.
* *
@@ -15,6 +17,7 @@ export default class DiscussionPage extends Page {
* @type {number} * @type {number}
*/ */
near: number | undefined; near: number | undefined;
bodyClass: string | undefined;
/** /**
* List of components shown while the discussion is loading. * List of components shown while the discussion is loading.
* *

View File

@@ -2,9 +2,12 @@
* The `IndexPage` component displays the index page, including the welcome * The `IndexPage` component displays the index page, including the welcome
* hero, the sidebar, and the discussion list. * hero, the sidebar, and the discussion list.
*/ */
export default class IndexPage extends Page { export default class IndexPage extends Page<import("../../common/components/Page").IPageAttrs> {
static providesInitialSearch: boolean; static providesInitialSearch: boolean;
constructor();
lastDiscussion: any; lastDiscussion: any;
bodyClass: string | undefined;
scrollTopOnCreate: boolean | undefined;
setTitle(): void; setTitle(): void;
/** /**
* Get the component to display as the hero. * Get the component to display as the hero.

View File

@@ -2,6 +2,8 @@
* The `NotificationsPage` component shows the notifications list. It is only * The `NotificationsPage` component shows the notifications list. It is only
* used on mobile devices where the notifications dropdown is within the drawer. * used on mobile devices where the notifications dropdown is within the drawer.
*/ */
export default class NotificationsPage extends Page { export default class NotificationsPage extends Page<import("../../common/components/Page").IPageAttrs> {
constructor();
bodyClass: string | undefined;
} }
import Page from "../../common/components/Page"; import Page from "../../common/components/Page";

View File

@@ -5,13 +5,15 @@
* *
* @abstract * @abstract
*/ */
export default class UserPage extends Page { export default class UserPage extends Page<import("../../common/components/Page").IPageAttrs> {
constructor();
/** /**
* The user this page is for. * The user this page is for.
* *
* @type {User} * @type {User}
*/ */
user: any; user: any;
bodyClass: string | undefined;
/** /**
* Get the content to display in the user page. * Get the content to display in the user page.
* *

4
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

File diff suppressed because one or more lines are too long

4
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

File diff suppressed because one or more lines are too long