mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
[CORL-498, CORL-495, CORL-539, CORL-496, CORL-494] Email Notifications Support & Framework (#2498)
* chore: renamed old templates * feat: initial notifications support * feat: email enhancements * fix: linting * feat: initial digesting beheviour * feat: added notification configuration * feat: added unsubscribe routes * fix: fixed failing snapshots/tests bc random ids * feat: adjusted the save beheviour, added tests * feat: added tests * feat: added staff replies * feat: renamed E-Mail to Email * feat: enhanced cron processing * fix: linting + updating tests * feat: enhanced cron context * fix: added staff replies back in
This commit is contained in:
Vendored
+11
-1
@@ -1,14 +1,24 @@
|
||||
declare module "dompurify" {
|
||||
interface Config<T extends boolean> {
|
||||
ADD_TAGS?: string[];
|
||||
ALLOWED_ATTR?: string[];
|
||||
ALLOWED_TAGS?: string[];
|
||||
FORBID_TAGS?: string[];
|
||||
FORBID_ATTR?: string[];
|
||||
RETURN_DOM?: boolean;
|
||||
RETURN_DOM_FRAGMENT?: T;
|
||||
ALLOW_DATA_ATTR?: boolean;
|
||||
WHOLE_DOCUMENT?: boolean;
|
||||
SANITIZE_DOM?: boolean;
|
||||
IN_PLACE?: boolean;
|
||||
}
|
||||
|
||||
class DOMPurify<T extends boolean = true> {
|
||||
public setConfig(config: Config<T>): void;
|
||||
public sanitize(source: string): T extends true ? HTMLBodyElement : string;
|
||||
public sanitize(
|
||||
source: HTMLElement | string,
|
||||
config?: Config<T>
|
||||
): T extends true ? HTMLBodyElement : string;
|
||||
public addHook(name: string, callback: (node: Element) => void): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user