mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 07:21:49 +08:00
Bundled output for commit f83020cd1f
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
parent
f83020cd1f
commit
abe1a4cc30
2
extensions/package-manager/js/dist-typings/extend.d.ts
generated
vendored
2
extensions/package-manager/js/dist-typings/extend.d.ts
generated
vendored
|
@ -1,2 +1,2 @@
|
|||
declare const _default: import("flarum/common/extenders/Admin").default[];
|
||||
declare const _default: any[];
|
||||
export default _default;
|
||||
|
|
2
extensions/package-manager/js/dist/admin.js
generated
vendored
2
extensions/package-manager/js/dist/admin.js
generated
vendored
File diff suppressed because one or more lines are too long
2
extensions/package-manager/js/dist/admin.js.map
generated
vendored
2
extensions/package-manager/js/dist/admin.js.map
generated
vendored
File diff suppressed because one or more lines are too long
19
framework/core/js/dist-typings/admin/states/GeneralSearchIndex.d.ts
generated
vendored
19
framework/core/js/dist-typings/admin/states/GeneralSearchIndex.d.ts
generated
vendored
|
@ -1,9 +1,28 @@
|
|||
export type GeneralIndexItem = {
|
||||
/**
|
||||
* The unique identifier for this index item.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* Optional: The tree path to this item, used for grouping in the search results.
|
||||
*/
|
||||
tree?: string[];
|
||||
/**
|
||||
* The label to display in the search results.
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Optional: The description to display in the search results.
|
||||
*/
|
||||
help?: string;
|
||||
/**
|
||||
* Optional: The URL to navigate to when this item is selected.
|
||||
* The default is to navigate to the extension page.
|
||||
*/
|
||||
link?: string;
|
||||
/**
|
||||
* Optional: A callback that returns a boolean indicating whether this item should be visible in the search results.
|
||||
*/
|
||||
visible?: () => boolean;
|
||||
};
|
||||
export type GeneralIndexData = Record<string, Record<'settings' | 'permissions', GeneralIndexItem[]>>;
|
||||
|
|
11
framework/core/js/dist-typings/common/extenders/Admin.d.ts
generated
vendored
11
framework/core/js/dist-typings/common/extenders/Admin.d.ts
generated
vendored
|
@ -2,7 +2,8 @@ import IExtender, { IExtensionModule } from './IExtender';
|
|||
import type AdminApplication from '../../admin/AdminApplication';
|
||||
import type { CustomExtensionPage, SettingConfigInternal } from '../../admin/utils/AdminRegistry';
|
||||
import type { PermissionConfig, PermissionType } from '../../admin/components/PermissionGrid';
|
||||
import Mithril from 'mithril';
|
||||
import type Mithril from 'mithril';
|
||||
import type { GeneralIndexItem } from '../../admin/states/GeneralSearchIndex';
|
||||
export default class Admin implements IExtender<AdminApplication> {
|
||||
protected settings: {
|
||||
setting?: () => SettingConfigInternal;
|
||||
|
@ -15,6 +16,10 @@ export default class Admin implements IExtender<AdminApplication> {
|
|||
priority: number;
|
||||
}[];
|
||||
protected customPage: CustomExtensionPage | null;
|
||||
protected generalIndexes: {
|
||||
settings?: () => GeneralIndexItem[];
|
||||
permissions?: () => GeneralIndexItem[];
|
||||
};
|
||||
/**
|
||||
* Register a setting to be shown on the extension's settings page.
|
||||
*/
|
||||
|
@ -31,5 +36,9 @@ export default class Admin implements IExtender<AdminApplication> {
|
|||
* Register a custom page to be shown in the admin interface.
|
||||
*/
|
||||
page(page: CustomExtensionPage): this;
|
||||
/**
|
||||
* Register a custom general search index entry.
|
||||
*/
|
||||
generalIndexItems(type: 'settings' | 'permissions', items: () => GeneralIndexItem[]): this;
|
||||
extend(app: AdminApplication, extension: IExtensionModule): void;
|
||||
}
|
||||
|
|
2
framework/core/js/dist/admin.js
generated
vendored
2
framework/core/js/dist/admin.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/admin.js.map
generated
vendored
2
framework/core/js/dist/admin.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js
generated
vendored
2
framework/core/js/dist/forum.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/forum.js.map
generated
vendored
2
framework/core/js/dist/forum.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user