1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 18:35:56 +02:00

Bundled output for commit 3537f76eab

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot
2021-05-12 23:29:46 +00:00
parent 3537f76eab
commit c3a684c7ed
213 changed files with 6462 additions and 30 deletions

View File

@@ -0,0 +1,24 @@
/// <reference types="mithril" />
import DefaultResolver from '../../common/resolvers/DefaultResolver';
/**
* A custom route resolver for DiscussionPage that generates the same key to all posts
* on the same discussion. It triggers a scroll when going from one post to another
* in the same discussion.
*/
export default class DiscussionPageResolver extends DefaultResolver {
static scrollToPostNumber: string | null;
/**
* Remove optional parts of a discussion's slug to keep the substring
* that bijectively maps to a discussion object. By default this just
* extracts the numerical ID from the slug. If a custom discussion
* slugging driver is used, this may need to be overriden.
* @param slug
*/
canonicalizeDiscussionSlug(slug: string | undefined): string | undefined;
/**
* @inheritdoc
*/
makeKey(): string;
onmatch(args: any, requestedPath: any, route: any): import("mithril").Component<{}, {}>;
render(vnode: any): any[];
}