mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
[next] Email (#2261)
* feat: suspending, banning, now propogation * feat: added email rendering + localization support * fix: fix related to lib * refactor: moved juicer to queue task * refactor: cleanup of job processor * refactor: improved error messaging around failed email * feat: initial forgot passwor impl * fix: fixed rebase errors * feat: send back Content-Language header with requests * feat: added ban email * feat: implemented forgotten password API * fix: linting * feat: support more emails * fix: promise patches * feat: initial confirm email API * feat: added rate limiting * feat: added URL support * feat: added email docs * fix: updated docs * chore: documentation review * fix: fixed build bug * feat: implement forgot password in auth popup * test: add tests + fixes * chore: rename StatelessComponent to FunctionComponent * fix: types and test fixes * chore: upgrade deps * fix: THANK YOU TESTS FOR SAVING MY A** * chore: reorder imports * chore: remove obsolete ! * feat: implement accounts bundle * refactor: review suggestion * fix: rebase upgrade error * fix: rebase bug * feat: reset password link support * test: add tests for account password reset page * fix: remove redirect uri * fix: revert local state changes
This commit is contained in:
Vendored
+25
@@ -1,6 +1,31 @@
|
||||
// tslint:disable:max-classes-per-file
|
||||
|
||||
// Allowing loading fluent files.
|
||||
declare module "*.ftl";
|
||||
|
||||
declare module "fluent-dom/compat" {
|
||||
import { FluentBundle } from "fluent/compat";
|
||||
|
||||
export class DOMLocalization {
|
||||
constructor(resourceIDs: string[], generateBundles: any);
|
||||
|
||||
/**
|
||||
* Translate a DOM element or fragment asynchronously using this
|
||||
* `DOMLocalization` object.
|
||||
*
|
||||
* Manually trigger the translation (or re-translation) of a DOM fragment.
|
||||
* Use the `data-l10n-id` and `data-l10n-args` attributes to mark up the DOM
|
||||
* with information about which translations to use.
|
||||
*
|
||||
* Returns a `Promise` that gets resolved once the translation is complete.
|
||||
*
|
||||
* @param {DOMFragment} frag - Element or DocumentFragment to be translated
|
||||
* @returns {Promise}
|
||||
*/
|
||||
public translateFragment(frag: DocumentFragment): Promise<DocumentFragment>;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "fluent-react/compat" {
|
||||
import { FluentBundle } from "fluent/compat";
|
||||
import { ComponentType } from "react";
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
declare module "querystringify" {
|
||||
export function parse(query: string): any;
|
||||
export function parse(query: string): Record<string, string | undefined>;
|
||||
export function stringify(obj: object, prefix?: string | boolean): string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user