Bundled output for commit 21b483625e4cf2b87934d579483e8fd175dcdab5

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

[skip ci]
This commit is contained in:
flarum-bot 2023-05-07 17:49:29 +00:00
parent 21b483625e
commit 96e1411b7d
9 changed files with 73 additions and 6 deletions

View File

@ -9,7 +9,7 @@ export default class TagsPage extends Page<import("flarum/common/components/Page
mainContent(): ItemList<any>;
content(): JSX.Element;
contentItems(): ItemList<any>;
hero(): import("mithril").Vnode<{}, {}>;
hero(): JSX.Element;
sidebar(): JSX.Element;
sidebarItems(): ItemList<import("mithril").Children>;
tagTileListView(pinned: any): JSX.Element;

View File

@ -33,6 +33,7 @@ import EditGroupModal from './components/EditGroupModal';
import routes from './routes';
import AdminApplication from './AdminApplication';
import generateElementId from './utils/generateElementId';
import CreateUserModal from './components/CreateUserModal';
declare const _default: {
extenders: {
Model: typeof import("../common/extenders/Model").default;
@ -172,6 +173,7 @@ declare const _default: {
'components/AdminHeader': typeof AdminHeader;
'components/EditCustomCssModal': typeof EditCustomCssModal;
'components/EditGroupModal': typeof EditGroupModal;
'components/CreateUserModal': typeof CreateUserModal;
routes: typeof routes;
AdminApplication: typeof AdminApplication;
};

View File

@ -0,0 +1,54 @@
/// <reference path="../../@types/translator-icu-rich.d.ts" />
import Modal, { IInternalModalAttrs } from '../../common/components/Modal';
import ItemList from '../../common/utils/ItemList';
import Stream from '../../common/utils/Stream';
import type Mithril from 'mithril';
export interface ICreateUserModalAttrs extends IInternalModalAttrs {
username?: string;
email?: string;
password?: string;
token?: string;
provided?: string[];
}
export declare type SignupBody = {
username: string;
email: string;
isEmailConfirmed: boolean;
password: string;
};
export default class CreateUserModal<CustomAttrs extends ICreateUserModalAttrs = ICreateUserModalAttrs> extends Modal<CustomAttrs> {
/**
* The value of the username input.
*/
username: Stream<string>;
/**
* The value of the email input.
*/
email: Stream<string>;
/**
* The value of the password input.
*/
password: Stream<string | null>;
/**
* Whether email confirmation is required after signing in.
*/
requireEmailConfirmation: Stream<boolean>;
/**
* Keeps the modal open after the user is created to facilitate creating
* multiple users at once.
*/
bulkAdd: Stream<boolean>;
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
className(): string;
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
content(): JSX.Element;
body(): JSX.Element;
fields(): ItemList<unknown>;
onready(): void;
onsubmit(e?: SubmitEvent | null): void;
/**
* Get the data that should be submitted in the sign-up request.
*/
submitData(): SignupBody;
resetData(): void;
}

View File

@ -1,5 +1,5 @@
/// <reference path="../../@types/translator-icu-rich.d.ts" />
import type Mithril from 'mithril';
import Mithril from 'mithril';
import type User from '../../common/models/User';
import type { IPageAttrs } from '../../common/components/Page';
import ItemList from '../../common/utils/ItemList';
@ -60,6 +60,8 @@ export default class UserListPage extends AdminPage {
* Component to render.
*/
content(): JSX.Element[];
headerItems(): ItemList<Mithril.Children>;
actionItems(): ItemList<Mithril.Children>;
/**
* Build an item list of columns to show for each user.
*

View File

@ -31,4 +31,13 @@ export declare function ucfirst(string: string): string;
* Transform a camel case string to snake case.
*/
export declare function camelCaseToSnakeCase(str: string): string;
/**
* Generate a random string (a-z, 0-9) of a given length.
*
* Providing a length of less than 0 will result in an error.
*
* @param length Length of the random string to generate
* @returns A random string of provided length
*/
export declare function generateRandomString(length: number): string;
export {};

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