Bundled output for commit afbf5f4905

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

[skip ci]
This commit is contained in:
flarum-bot 2021-11-23 22:58:48 +00:00
parent afbf5f4905
commit 94370375a5
7 changed files with 24 additions and 28 deletions

View File

@ -1,37 +1,35 @@
import User from './models/User';
import { FlarumRequestOptions } from './Application';
export declare type LoginParams = {
/**
* The username/email
*/
identification: string;
/**
* Password
*/
password: string;
};
/** /**
* The `Session` class defines the current user session. It stores a reference * The `Session` class defines the current user session. It stores a reference
* to the current authenticated user, and provides methods to log in/out. * to the current authenticated user, and provides methods to log in/out.
*/ */
export default class Session { export default class Session {
constructor(user: any, csrfToken: any);
/** /**
* The current authenticated user. * The current authenticated user.
*
* @type {User|null}
* @public
*/ */
public user: any | null; user: User | null;
/** /**
* The CSRF token. * The CSRF token.
*
* @type {String|null}
* @public
*/ */
public csrfToken: string | null; csrfToken: string;
constructor(user: User | null, csrfToken: string);
/** /**
* Attempt to log in a user. * Attempt to log in a user.
*
* @param {String} identification The username/email.
* @param {String} password
* @param {Object} [options]
* @return {Promise}
* @public
*/ */
public login(body: any, options?: Object | undefined): Promise<any>; login(body: LoginParams, options?: Omit<FlarumRequestOptions<any>, 'url' | 'body' | 'method'>): Promise<any>;
/** /**
* Log the user out. * Log the user out.
*
* @public
*/ */
public logout(): void; logout(): void;
} }

View File

@ -28,7 +28,7 @@ export default class AlertManagerState {
/** /**
* Dismiss an alert. * Dismiss an alert.
*/ */
dismiss(key: AlertIdentifier): void; dismiss(key: AlertIdentifier | null): void;
/** /**
* Clear all alerts. * Clear all alerts.
*/ */

View File

@ -1,7 +1,5 @@
import type Mithril from 'mithril';
/** /**
* Extract the text nodes from a virtual element. * Extract the text nodes from a virtual element.
*
* @param {VirtualElement} vdom
* @return {String}
*/ */
export default function extractText(vdom: any): string; export default function extractText(vdom: Mithril.Children): string;

2
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

2
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