1
0
mirror of https://github.com/flarum/core.git synced 2025-08-30 19:40:02 +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

@@ -0,0 +1,7 @@
import PaginatedListState, { SortMap } from 'flarum/common/states/PaginatedListState';
import ExternalExtension from '../models/ExternalExtension';
export default class ExtensionListState extends PaginatedListState<ExternalExtension> {
get type(): string;
constructor();
sortMap(): SortMap;
}

View File

@@ -1,6 +1,8 @@
import QueueState from './QueueState';
import ControlSectionState from './ControlSectionState';
import ExtensionListState from './ExtensionListState';
export default class ExtensionManagerState {
queue: QueueState;
control: ControlSectionState;
extensions: ExtensionListState;
}

View File

@@ -6,14 +6,19 @@ export default class QueueState {
private limit;
private offset;
private total;
private loading;
load(params?: ApiQueryParamsPlural, actionTaken?: boolean): Promise<Task[]>;
isLoading(): boolean;
getItems(): Task[] | null;
getTotalItems(): number;
getTotalPages(): number;
pageNumber(): number;
getPerPage(): number;
hasPrev(): boolean;
hasNext(): boolean;
prev(): void;
next(): void;
goto(page: number): void;
pollQueue(actionTaken?: boolean): void;
hasPending(): boolean;
}