mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 00:44:34 +08:00
Bundled output for commit 71cb8c378ff0f40ff0c1ea30710d7634a963293e
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
/// <reference path="../../../src/common/translator-icu-rich.d.ts" />
|
||||||
import Modal from '../../common/components/Modal';
|
import Modal from '../../common/components/Modal';
|
||||||
export default class LoadingModal<ModalAttrs = {}> extends Modal<ModalAttrs> {
|
export default class LoadingModal<ModalAttrs = {}> extends Modal<ModalAttrs> {
|
||||||
/**
|
/**
|
||||||
@ -5,7 +6,7 @@ export default class LoadingModal<ModalAttrs = {}> extends Modal<ModalAttrs> {
|
|||||||
*/
|
*/
|
||||||
static readonly isDismissible: boolean;
|
static readonly isDismissible: boolean;
|
||||||
className(): string;
|
className(): string;
|
||||||
title(): any;
|
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||||
content(): string;
|
content(): string;
|
||||||
onsubmit(e: Event): void;
|
onsubmit(e: Event): void;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/// <reference path="../../../src/common/translator-icu-rich.d.ts" />
|
||||||
/// <reference types="mithril" />
|
/// <reference types="mithril" />
|
||||||
import type User from '../../common/models/User';
|
import type User from '../../common/models/User';
|
||||||
import ItemList from '../../common/utils/ItemList';
|
import ItemList from '../../common/utils/ItemList';
|
||||||
@ -65,8 +66,8 @@ export default class UserListPage extends AdminPage {
|
|||||||
headerInfo(): {
|
headerInfo(): {
|
||||||
className: string;
|
className: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
title: any;
|
title: import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||||
description: any;
|
description: import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Asynchronously fetch the next set of users to be rendered.
|
* Asynchronously fetch the next set of users to be rendered.
|
||||||
|
11
js/dist-typings/common/Translator.d.ts
vendored
11
js/dist-typings/common/Translator.d.ts
vendored
@ -1,3 +1,6 @@
|
|||||||
|
/// <reference path="../../src/common/translator-icu-rich.d.ts" />
|
||||||
|
import { RichMessageFormatter } from '@askvortsov/rich-icu-message-formatter';
|
||||||
|
import { pluralTypeHandler, selectTypeHandler } from '@ultraq/icu-message-formatter';
|
||||||
declare type Translations = Record<string, string>;
|
declare type Translations = Record<string, string>;
|
||||||
declare type TranslatorParameters = Record<string, unknown>;
|
declare type TranslatorParameters = Record<string, unknown>;
|
||||||
export default class Translator {
|
export default class Translator {
|
||||||
@ -8,15 +11,15 @@ export default class Translator {
|
|||||||
/**
|
/**
|
||||||
* The underlying ICU MessageFormatter util.
|
* The underlying ICU MessageFormatter util.
|
||||||
*/
|
*/
|
||||||
protected formatter: any;
|
protected formatter: RichMessageFormatter;
|
||||||
setLocale(locale: string): void;
|
setLocale(locale: string): void;
|
||||||
addTranslations(translations: Translations): void;
|
addTranslations(translations: Translations): void;
|
||||||
/**
|
/**
|
||||||
* An extensible entrypoint for extenders to register type handlers for translations.
|
* An extensible entrypoint for extenders to register type handlers for translations.
|
||||||
*/
|
*/
|
||||||
protected formatterTypeHandlers(): {
|
protected formatterTypeHandlers(): {
|
||||||
plural: any;
|
plural: typeof pluralTypeHandler;
|
||||||
select: any;
|
select: typeof selectTypeHandler;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* A temporary system to preprocess parameters.
|
* A temporary system to preprocess parameters.
|
||||||
@ -26,6 +29,6 @@ export default class Translator {
|
|||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
protected preprocessParameters(parameters: TranslatorParameters): TranslatorParameters;
|
protected preprocessParameters(parameters: TranslatorParameters): TranslatorParameters;
|
||||||
trans(id: string, parameters?: TranslatorParameters): any;
|
trans(id: string, parameters?: TranslatorParameters): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
|
||||||
}
|
}
|
||||||
export {};
|
export {};
|
||||||
|
Reference in New Issue
Block a user