1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Bundled output for commit 0107c96fb7

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

[skip ci]
This commit is contained in:
flarum-bot
2024-10-16 17:15:53 +00:00
parent 0107c96fb7
commit db17253ccd
25 changed files with 128 additions and 51 deletions

View File

@@ -5,13 +5,14 @@ import IHistory from '../common/IHistory';
import SearchManager from '../common/SearchManager';
import SearchState from '../common/states/SearchState';
import GeneralSearchIndex from './states/GeneralSearchIndex';
export type Extension = {
export interface Extension {
id: string;
name: string;
version: string;
description?: string;
icon?: {
name: string;
[key: string]: string;
};
links: {
authors?: {
@@ -33,7 +34,7 @@ export type Extension = {
};
};
require?: Record<string, string>;
};
}
export declare enum DatabaseDriver {
MySQL = "MySQL",
PostgreSQL = "PostgreSQL",

View File

@@ -50,10 +50,6 @@ export default class UserListPage extends AdminPage {
* `undefined` when page loads as no data has been fetched.
*/
private pageData;
/**
* Are there more users available?
*/
private moreData;
private isLoadingPage;
oninit(vnode: Mithril.Vnode<IPageAttrs, this>): void;
/**
@@ -89,8 +85,6 @@ export default class UserListPage extends AdminPage {
* @param pageNumber The **zero-based** page number to load and display
*/
loadPage(pageNumber: number): Promise<void>;
nextPage(): void;
previousPage(): void;
/**
* @param page The **1-based** page number
*/

View File

@@ -1,6 +1,11 @@
import { FlarumRequestOptions } from './Application';
import Model, { ModelData, SavedModelData } from './Model';
export interface MetaInformation {
page?: {
limit?: number;
offset?: number;
total?: number;
};
[key: string]: any;
}
export interface ApiQueryParamsSingle {

View File

@@ -29,6 +29,7 @@ import './utils/patchMithril';
import './utils/classList';
import './utils/extractText';
import './utils/formatNumber';
import './utils/formatAmount';
import './utils/mapRoutes';
import './utils/withAttr';
import './utils/focusTrap';

View File

@@ -8,7 +8,6 @@ export interface IInputAttrs extends ComponentAttrs {
clearable?: boolean;
clearLabel?: string;
loading?: boolean;
inputClassName?: string;
onchange?: (value: string) => void;
value?: string;
stream?: Stream<string>;

View File

@@ -0,0 +1,12 @@
/// <reference types="mithril" />
import Component, { ComponentAttrs } from '../Component';
export interface IPaginationInterface extends ComponentAttrs {
total: number;
perPage: number;
currentPage: number;
loadingPageNumber?: number;
onChange: (page: number) => void;
}
export default class Pagination<CustomAttrs extends IPaginationInterface = IPaginationInterface> extends Component<CustomAttrs> {
view(): JSX.Element;
}

View File

@@ -34,11 +34,13 @@ export default abstract class PaginatedListState<T extends Model, P extends Pagi
static DEFAULT_PAGE_SIZE: number;
protected location: PaginationLocation;
pageSize: number | null;
totalItems: number | null;
protected pages: Page<T>[];
protected params: P;
protected initialLoading: boolean;
protected loadingPrev: boolean;
protected loadingNext: boolean;
protected loadingPage: boolean;
protected constructor(params?: P, page?: number, pageSize?: number | null);
abstract get type(): string;
clear(): void;
@@ -67,6 +69,7 @@ export default abstract class PaginatedListState<T extends Model, P extends Pagi
*/
refreshParams(newParams: P, page: number): Promise<void>;
refresh(page?: number): Promise<void>;
goto(page: number): Promise<void>;
getPages(): Page<T>[];
getLocation(): PaginationLocation;
isLoading(): boolean;
@@ -106,4 +109,5 @@ export default abstract class PaginatedListState<T extends Model, P extends Pagi
sortValue(sort: SortMapItem): string | undefined;
currentSort(): string | undefined;
changeSort(sort: string): void;
changeFilter(key: string, value: string): void;
}

View File

@@ -0,0 +1 @@
export default function formatAmount(size: number): string;

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

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