Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/forum

Index

References

Classes

Interfaces

Properties

Variables

Functions

Type literals

References

app

Re-exports app

Properties

default

default: { Application: typeof Application; Component: typeof Component; Fragment: typeof Fragment; Model: typeof Model; Session: typeof Session; Store: typeof Store; Translator: typeof Translator; components/Alert: typeof Alert; components/AlertManager: typeof AlertManager; components/Badge: typeof Badge; components/Button: typeof Button; components/Checkbox: typeof Checkbox; components/ColorPreviewInput: typeof ColorPreviewInput; components/Dropdown: typeof Dropdown; components/EditUserModal: typeof EditUserModal; components/FieldSet: typeof FieldSet; components/GroupBadge: typeof GroupBadge; components/Link: typeof Link; components/LinkButton: typeof LinkButton; components/LoadingIndicator: typeof LoadingIndicator; components/Modal: typeof Modal; components/ModalManager: typeof ModalManager; components/Navigation: typeof Navigation; components/Page: typeof Page; components/Placeholder: typeof Placeholder; components/RequestErrorModal: typeof RequestErrorModal; components/Select: typeof Select; components/SelectDropdown: typeof SelectDropdown; components/Separator: typeof Separator; components/SplitDropdown: typeof SplitDropdown; components/Switch: typeof Switch; components/TextEditor: typeof TextEditor; components/TextEditorButton: typeof TextEditorButton; components/Tooltip: typeof Tooltip; extend: any; helpers/avatar: (user: null | User, attrs?: ComponentAttrs) => Mithril.Vnode; helpers/fullTime: (time: Date) => Mithril.Vnode; helpers/highlight: (string: string, phrase?: string | RegExp, length?: number) => Mithril.Vnode<any, any> | string; helpers/humanTime: (time: Date) => Mithril.Vnode; helpers/icon: (fontClass: string, attrs?: Attributes) => Mithril.Vnode; helpers/listItems: <Attrs>(rawItems: ModdedChildrenWithItemName[], customTag?: VnodeElementTag<Attrs, Component<Attrs, {}>>, attributes?: Attrs) => Mithril.Vnode[]; helpers/punctuateSeries: (items: Children[]) => Children; helpers/userOnline: (user: User) => Mithril.Vnode<{}, {}> | null; helpers/username: (user: undefined | null | false | User) => Mithril.Vnode; models/Discussion: typeof Discussion; models/Forum: typeof Forum; models/Group: typeof Group; models/Notification: typeof Notification; models/Post: typeof Post; models/User: typeof User; resolvers/DefaultResolver: typeof DefaultResolver; states/PaginatedListState: typeof PaginatedListState; utils/BasicEditorDriver: typeof BasicEditorDriver; utils/Drawer: typeof Drawer; utils/ItemList: typeof ItemList; utils/RequestError: typeof RequestError; utils/ScrollListener: typeof ScrollListener; utils/Stream: typeof Stream; utils/SubtreeRetainer: typeof SubtreeRetainer; utils/abbreviateNumber: (number: number) => string; utils/anchorScroll: (element: string | HTMLElement | Element | SVGElement, callback: () => void) => void; utils/classList: (...inputs: ClassValue[]) => string; utils/computed: <T, M>(...args: [...string[], (...args: unknown[]) => T]) => () => T; utils/escapeRegExp: (input: string) => string; utils/evented: { handlers: Record<string, unknown>; getHandlers: any; off: any; on: any; one: any; trigger: any }; utils/extract: <T, K>(object: T, property: K) => T[K]; utils/extractText: (vdom: Children) => string; utils/focusTrap: __module; utils/formatNumber: (number: number, locale?: string) => string; utils/humanTime: (time: undefined | null | string | number | Date | Dayjs) => string; utils/insertText: (textarea: HTMLTextAreaElement, __namedParameters: SelectionRange) => void; utils/isObject: (obj: unknown) => obj is object; utils/liveHumanTimes: () => void; utils/mapRoutes: (routes: Record<string, FlarumGenericRoute>, basePath?: string) => Record<string, RouteResolver<Record<string, unknown>, Component<{ routeName: string }, undefined>, Record<string, unknown>>>; utils/mixin: (Parent: object, ...mixins: Record<string, any>[]) => object; utils/patchMithril: (global: any) => void; utils/proxifyCompat: (compat: Record<string, unknown>, namespace: string) => Record<string, unknown>; utils/setRouteWithForcedRefresh: (route: string, params?: null, options?: RouteOptions) => void; utils/string: __module; utils/stringToColor: (string: string) => string; utils/styleSelectedText: (textarea: HTMLTextAreaElement, styleArgs: StyleArgs) => void; utils/subclassOf: (A: any, B: any) => any; utils/throttleDebounce: __module; utils/withAttr: (key: string, cb: Function) => () => void } & { ForumApplication: typeof ForumApplication; components/AffixedSidebar: typeof AffixedSidebar; components/AvatarEditor: typeof AvatarEditor; components/ChangeEmailModal: typeof ChangeEmailModal; components/ChangePasswordModal: typeof ChangePasswordModal; components/CommentPost: typeof CommentPost; components/Composer: typeof Composer; components/ComposerBody: typeof ComposerBody; components/ComposerButton: typeof ComposerButton; components/ComposerPostPreview: typeof ComposerPostPreview; components/DiscussionComposer: typeof DiscussionComposer; components/DiscussionHero: typeof DiscussionHero; components/DiscussionList: typeof DiscussionList; components/DiscussionListItem: typeof DiscussionListItem; components/DiscussionListPane: typeof DiscussionListPane; components/DiscussionPage: typeof DiscussionPage; components/DiscussionRenamedNotification: typeof DiscussionRenamedNotification; components/DiscussionRenamedPost: typeof DiscussionRenamedPost; components/DiscussionsSearchSource: typeof DiscussionsSearchSource; components/DiscussionsUserPage: typeof DiscussionsUserPage; components/EditPostComposer: typeof EditPostComposer; components/EventPost: typeof EventPost; components/ForgotPasswordModal: typeof ForgotPasswordModal; components/HeaderPrimary: typeof HeaderPrimary; components/HeaderSecondary: typeof HeaderSecondary; components/IndexPage: typeof IndexPage; components/LoadingPost: typeof LoadingPost; components/LogInButton: typeof LogInButton; components/LogInButtons: typeof LogInButtons; components/LogInModal: typeof LogInModal; components/Notification: typeof Notification; components/NotificationGrid: typeof NotificationGrid; components/NotificationList: typeof NotificationList; components/NotificationsDropdown: typeof NotificationsDropdown; components/NotificationsPage: typeof NotificationsPage; components/Post: typeof Post; components/PostEdited: typeof PostEdited; components/PostMeta: typeof PostMeta; components/PostPreview: typeof PostPreview; components/PostStream: typeof PostStream; components/PostStreamScrubber: typeof PostStreamScrubber; components/PostUser: typeof PostUser; components/PostsUserPage: typeof PostsUserPage; components/RenameDiscussionModal: typeof RenameDiscussionModal; components/ReplyComposer: typeof ReplyComposer; components/ReplyPlaceholder: typeof ReplyPlaceholder; components/Search: typeof Search; components/SessionDropdown: typeof SessionDropdown; components/SettingsPage: typeof SettingsPage; components/SignUpModal: typeof SignUpModal; components/TerminalPost: typeof TerminalPost; components/UserCard: typeof UserCard; components/UserPage: typeof UserPage; components/UsersSearchSource: typeof UsersSearchResults; components/WelcomeHero: typeof WelcomeHero; resolvers/DiscussionPageResolver: typeof DiscussionPageResolver; routes: (app: ForumApplication) => void; states/ComposerState: typeof ComposerState; states/DiscussionListState: typeof DiscussionListState; states/GlobalSearchState: typeof GlobalSearchState; states/NotificationListState: typeof NotificationListState; states/PostStreamState: typeof PostStreamState; states/SearchState: typeof SearchState; utils/BasicEditorDriver: typeof BasicEditorDriver; utils/DiscussionControls: { controls: any; deleteAction: any; destructiveControls: any; hideAction: any; moderationControls: any; renameAction: any; replyAction: any; restoreAction: any; userControls: any }; utils/History: typeof History; utils/KeyboardNavigatable: typeof KeyboardNavigatable; utils/Pane: typeof Pane; utils/PostControls: { controls: any; deleteAction: any; destructiveControls: any; editAction: any; hideAction: any; moderationControls: any; restoreAction: any; userControls: any }; utils/UserControls: { controls: any; deleteAction: any; destructiveControls: any; editAction: any; moderationControls: any; showDeletionAlert: any; userControls: any }; utils/alertEmailConfirmation: (app: ForumApplication) => void; utils/isSafariMobile: () => boolean; utils/slidable: (element: HTMLElement | Element | SVGElement) => { reset: any } }

Variables

app

app: ForumApplication = ...

compat

compat: Record<string, unknown> = ...

Functions

default

makeRouteHelpers

  • Parameters

    Returns { discussion: (discussion: Discussion, near?: number) => string; post: (post: Post) => string; user: (user: User) => string }

    • discussion: (discussion: Discussion, near?: number) => string
        • Generate a URL to a discussion.

          Parameters

          Returns string

    • post: (post: Post) => string
        • (post: Post): string
        • Generate a URL to a post.

          Parameters

          Returns string

    • user: (user: User) => string
        • (user: User): string
        • Generate a URL to a user.

          Parameters

          Returns string

Type literals

__type

__type

Application

Application: typeof Application = Application

Component

Component: typeof Component = Component

Fragment

Fragment: typeof Fragment = Fragment

Model

Model: typeof Model = Model

Session

Session: typeof Session = Session

Store

Store: typeof Store = Store

Translator

Translator: typeof Translator = Translator

components/Alert

components/Alert: typeof Alert = Alert

components/AlertManager

components/AlertManager: typeof AlertManager = AlertManager

components/Badge

components/Badge: typeof Badge = Badge

components/Button

components/Button: typeof Button = Button

components/Checkbox

components/Checkbox: typeof Checkbox = Checkbox

components/ColorPreviewInput

components/ColorPreviewInput: typeof ColorPreviewInput = ColorPreviewInput

components/Dropdown

components/Dropdown: typeof Dropdown = Dropdown

components/EditUserModal

components/EditUserModal: typeof EditUserModal = EditUserModal

components/FieldSet

components/FieldSet: typeof FieldSet = FieldSet

components/GroupBadge

components/GroupBadge: typeof GroupBadge = GroupBadge

components/Link

components/Link: typeof Link = Link

components/LinkButton

components/LinkButton: typeof LinkButton = LinkButton

components/LoadingIndicator

components/LoadingIndicator: typeof LoadingIndicator = LoadingIndicator

components/Modal

components/Modal: typeof Modal = Modal

components/ModalManager

components/ModalManager: typeof ModalManager = ModalManager

components/Navigation

components/Navigation: typeof Navigation = Navigation

components/Page

components/Page: typeof Page = Page

components/Placeholder

components/Placeholder: typeof Placeholder = Placeholder

components/RequestErrorModal

components/RequestErrorModal: typeof RequestErrorModal = RequestErrorModal

components/Select

components/Select: typeof Select = Select

components/SelectDropdown

components/SelectDropdown: typeof SelectDropdown = SelectDropdown

components/Separator

components/Separator: typeof Separator = Separator

components/SplitDropdown

components/SplitDropdown: typeof SplitDropdown = SplitDropdown

components/Switch

components/Switch: typeof Switch = Switch

components/TextEditor

components/TextEditor: typeof TextEditor = TextEditor

components/TextEditorButton

components/TextEditorButton: typeof TextEditorButton = TextEditorButton

components/Tooltip

components/Tooltip: typeof Tooltip = Tooltip

extend

extend: any = extend

helpers/avatar

helpers/avatar: (user: null | User, attrs?: ComponentAttrs) => Mithril.Vnode = avatar

Type declaration

    • The avatar helper displays a user's avatar.

      Parameters

      Returns Mithril.Vnode

helpers/fullTime

helpers/fullTime: (time: Date) => Mithril.Vnode = fullTime

Type declaration

    • (time: Date): Mithril.Vnode
    • The fullTime helper displays a formatted time string wrapped in a

      Parameters

      Returns Mithril.Vnode

helpers/highlight

helpers/highlight: (string: string, phrase?: string | RegExp, length?: number) => Mithril.Vnode<any, any> | string = highlight

Type declaration

    • (string: string, phrase?: string | RegExp, length?: number): Mithril.Vnode<any, any> | string
    • The highlight helper searches for a word phrase in a string, and wraps matches with the tag.

      Parameters

      • string: string

        The string to highlight.

      • Optional phrase: string | RegExp

        The word or words to highlight.

      • Optional length: number

      Returns Mithril.Vnode<any, any> | string

helpers/humanTime

helpers/humanTime: (time: Date) => Mithril.Vnode = humanTimeHelper

Type declaration

    • (time: Date): Mithril.Vnode
    • The humanTime helper displays a time in a human-friendly time-ago format (e.g. '12 days ago'), wrapped in a

      Parameters

      Returns Mithril.Vnode

helpers/icon

helpers/icon: (fontClass: string, attrs?: Attributes) => Mithril.Vnode = icon

Type declaration

    • (fontClass: string, attrs?: Attributes): Mithril.Vnode
    • The icon helper displays an icon.

      Parameters

      • fontClass: string

        The full icon class, prefix and the icon’s name.

      • attrs: Attributes = {}

        Any other attributes to apply.

      Returns Mithril.Vnode

helpers/listItems

helpers/listItems: <Attrs>(rawItems: ModdedChildrenWithItemName[], customTag?: VnodeElementTag<Attrs, Component<Attrs, {}>>, attributes?: Attrs) => Mithril.Vnode[] = listItems

Type declaration

    • The listItems helper wraps an array of components in the provided tag, stripping out any unnecessary Separator components.

      By default, this tag is an <li> tag, but this is customisable through the second function parameter, customTag.

      Type parameters

      Parameters

      Returns Mithril.Vnode[]

helpers/punctuateSeries

helpers/punctuateSeries: (items: Children[]) => Children = punctuateSeries

Type declaration

    • (items: Children[]): Children
    • The punctuateSeries helper formats a list of strings (e.g. names) to read fluently in the application's locale.

      punctuateSeries(['Toby', 'Franz', 'Dominion']) // Toby, Franz, and Dominion
      

      Parameters

      • items: Children[]

      Returns Children

      ')}

helpers/userOnline

helpers/userOnline: (user: User) => Mithril.Vnode<{}, {}> | null = userOnline

Type declaration

    • (user: User): Mithril.Vnode<{}, {}> | null
    • The useronline helper displays a green circle if the user is online

      Parameters

      Returns Mithril.Vnode<{}, {}> | null

helpers/username

helpers/username: (user: undefined | null | false | User) => Mithril.Vnode = username

Type declaration

    • (user: undefined | null | false | User): Mithril.Vnode
    • The username helper displays a user's username in a tag. If the user doesn't exist, the username will be displayed as [deleted].

      Parameters

      • user: undefined | null | false | User

      Returns Mithril.Vnode

models/Discussion

models/Discussion: typeof Discussion = Discussion

models/Forum

models/Forum: typeof Forum = Forum

models/Group

models/Group: typeof Group = Group

models/Notification

models/Notification: typeof Notification = Notification

models/Post

models/Post: typeof Post = Post

models/User

models/User: typeof User = User

resolvers/DefaultResolver

resolvers/DefaultResolver: typeof DefaultResolver = DefaultResolver

states/PaginatedListState

states/PaginatedListState: typeof PaginatedListState = PaginatedListState

utils/BasicEditorDriver

utils/BasicEditorDriver: typeof BasicEditorDriver = BasicEditorDriver

utils/Drawer

utils/Drawer: typeof Drawer = Drawer

utils/ItemList

utils/ItemList: typeof ItemList = ItemList

utils/RequestError

utils/RequestError: typeof RequestError = RequestError

utils/ScrollListener

utils/ScrollListener: typeof ScrollListener = ScrollListener

utils/Stream

utils/Stream: typeof Stream = Stream

utils/SubtreeRetainer

utils/SubtreeRetainer: typeof SubtreeRetainer = SubtreeRetainer

utils/abbreviateNumber

utils/abbreviateNumber: (number: number) => string = abbreviateNumber

Type declaration

    • (number: number): string
    • The abbreviateNumber utility converts a number to a shorter localized form.

      example

      abbreviateNumber(1234); // "1.2K"

      Parameters

      • number: number

      Returns string

utils/anchorScroll

utils/anchorScroll: (element: string | HTMLElement | Element | SVGElement, callback: () => void) => void = anchorScroll

Type declaration

    • The anchorScroll utility saves the scroll position relative to an element, and then restores it after a callback has been run.

      This is useful if a redraw will change the page's content above the viewport. Normally doing this will result in the content in the viewport being pushed down or pulled up. By wrapping the redraw with this utility, the scroll position can be anchor to an element that is in or below the viewport, so the content in the viewport will stay the same.

      Parameters

      • element: string | HTMLElement | Element | SVGElement

        The element to anchor the scroll position to.

      • callback: () => void

        The callback to run that will change page content.

          • (): void
          • Returns void

      Returns void

utils/classList

utils/classList: (...inputs: ClassValue[]) => string = classList

Type declaration

    • (...inputs: ClassValue[]): string
    • Parameters

      • Rest ...inputs: ClassValue[]

      Returns string

utils/computed

utils/computed: <T, M>(...args: [...string[], (...args: unknown[]) => T]) => () => T = computed

Type declaration

    • <T, M>(...args: [...string[], (...args: unknown[]) => T]): () => T
    • The computed utility creates a function that will cache its output until any of the dependent values are dirty.

      Type parameters

      Parameters

      • Rest ...args: [...string[], (...args: unknown[]) => T]

      Returns () => T

        • (): T
        • The computed utility creates a function that will cache its output until any of the dependent values are dirty.

          Returns T

utils/escapeRegExp

utils/escapeRegExp: (input: string) => string = escapeRegExp

Type declaration

utils/evented

utils/evented: { handlers: Record<string, unknown>; getHandlers: any; off: any; on: any; one: any; trigger: any } = evented

Type declaration

  • handlers: Record<string, unknown>
  • getHandlers:function
  • off:function
    • off(event: string, handler: Function): void
    • Unregister an event handler.

      deprecated

      Parameters

      • event: string

        The name of the event.

      • handler: Function

        The function that handles the event.

      Returns void

  • on:function
    • on(event: string, handler: Function): void
    • Register an event handler.

      deprecated

      Parameters

      • event: string

        The name of the event.

      • handler: Function

        The function to handle the event.

      Returns void

  • one:function
    • one(event: string, handler: Function): void
    • Register an event handler so that it will run only once, and then unregister itself.

      deprecated

      Parameters

      • event: string

        The name of the event.

      • handler: Function

        The function to handle the event.

      Returns void

  • trigger:function
    • trigger(event: string, ...args: any[]): void
    • Trigger an event.

      deprecated

      Parameters

      • event: string

        The name of the event.

      • Rest ...args: any[]

        Arguments to pass to event handlers.

      Returns void

utils/extract

utils/extract: <T, K>(object: T, property: K) => T[K] = extract

Type declaration

    • <T, K>(object: T, property: K): T[K]
    • The extract utility deletes a property from an object and returns its value.

      Type parameters

      • T

      • K: string | number | symbol

      Parameters

      • object: T

        The object that owns the property

      • property: K

        The name of the property to extract

      Returns T[K]

      The value of the property

utils/extractText

utils/extractText: (vdom: Children) => string = extractText

Type declaration

    • (vdom: Children): string
    • Extract the text nodes from a virtual element.

      Parameters

      • vdom: Children

      Returns string

utils/focusTrap

utils/focusTrap: __module = FocusTrap

utils/formatNumber

utils/formatNumber: (number: number, locale?: string) => string = formatNumber

Type declaration

    • (number: number, locale?: string): string
    • The formatNumber utility localizes a number into a string with the appropriate punctuation based on the provided locale otherwise will default to the users locale.

      example

      formatNumber(1234); // 1,234

      Parameters

      • number: number
      • locale: string = app.data.locale

      Returns string

utils/humanTime

utils/humanTime: (time: undefined | null | string | number | Date | Dayjs) => string = humanTime

Type declaration

    • (time: undefined | null | string | number | Date | Dayjs): string
    • The humanTime utility converts a date to a localized, human-readable time- ago string.

      Parameters

      • time: undefined | null | string | number | Date | Dayjs

      Returns string

utils/insertText

utils/insertText: (textarea: HTMLTextAreaElement, __namedParameters: SelectionRange) => void = insertText

Type declaration

utils/isObject

utils/isObject: (obj: unknown) => obj is object = isObject

Type declaration

    • (obj: unknown): obj is object
    • Returns if the passed value is an object.

      In this context, "object" refers to any non-primitive value, including arrays, function, maps, dates, and more.

      example

      isObject({}); // true

      example

      isObject([]); // true

      example

      isObject(function () {}); // true

      example

      isObject(Object(1)); // true

      example

      isObject(null); // false

      example

      isObject(1); // false

      example

      isObject("hello world"); // false

      see

      https://github.com/jashkenas/underscore/blob/943977e34e2279503528a71ddcc2dd5f96483945/underscore.js#L87-L91

      Parameters

      • obj: unknown

      Returns obj is object

utils/liveHumanTimes

utils/liveHumanTimes: () => void = liveHumanTimes

Type declaration

    • (): void
    • The liveHumanTimes initializer sets up a loop every 1 second to update timestamps rendered with the humanTime helper.

      Returns void

utils/mapRoutes

utils/mapRoutes: (routes: Record<string, FlarumGenericRoute>, basePath?: string) => Record<string, RouteResolver<Record<string, unknown>, Component<{ routeName: string }, undefined>, Record<string, unknown>>> = mapRoutes

Type declaration

    • The mapRoutes utility converts a map of named application routes into a format that can be understood by Mithril, and wraps them in route resolvers to provide each route with the current route name.

      see

      https://mithril.js.org/route.html#signature

      Parameters

      Returns Record<string, RouteResolver<Record<string, unknown>, Component<{ routeName: string }, undefined>, Record<string, unknown>>>

utils/mixin

utils/mixin: (Parent: object, ...mixins: Record<string, any>[]) => object = mixin

Type declaration

    • (Parent: object, ...mixins: Record<string, any>[]): object
    • The mixin utility assigns the properties of a set of 'mixin' objects to the prototype of a parent object.

      example

      class MyClass extends mixin(ExistingClass, evented, etc) {}

      Parameters

      • Parent: object

        The class to extend the new class from.

      • Rest ...mixins: Record<string, any>[]

        The objects to mix in.

      Returns object

      A new class that extends Parent and contains the mixins.

utils/patchMithril

utils/patchMithril: (global: any) => void = patchMithril

Type declaration

    • (global: any): void
    • Parameters

      • global: any

      Returns void

utils/proxifyCompat

utils/proxifyCompat: (compat: Record<string, unknown>, namespace: string) => Record<string, unknown> = proxifyCompat

Type declaration

    • (compat: Record<string, unknown>, namespace: string): Record<string, unknown>
    • Parameters

      • compat: Record<string, unknown>
      • namespace: string

      Returns Record<string, unknown>

utils/setRouteWithForcedRefresh

utils/setRouteWithForcedRefresh: (route: string, params?: null, options?: RouteOptions) => void = setRouteWithForcedRefresh

Type declaration

    • (route: string, params?: null, options?: RouteOptions): void
    • Mithril 2 does not completely rerender the page if a route change leads to the same route (or the same component handling a different route). This util calls m.route.set, forcing a reonit.

      see

      https://mithril.js.org/route.html#key-parameter

      Parameters

      • route: string
      • params: null = null
      • options: RouteOptions = {}

      Returns void

utils/string

utils/string: __module = string

utils/stringToColor

utils/stringToColor: (string: string) => string = stringToColor

Type declaration

    • (string: string): string
    • Convert the given string to a unique color.

      Parameters

      • string: string

      Returns string

utils/styleSelectedText

utils/styleSelectedText: (textarea: HTMLTextAreaElement, styleArgs: StyleArgs) => void = styleSelectedText

Type declaration

utils/subclassOf

utils/subclassOf: (A: any, B: any) => any = subclassOf

Type declaration

    • (A: any, B: any): any
    • Check if class A is the same as or a subclass of class B.

      Parameters

      • A: any
      • B: any

      Returns any

utils/throttleDebounce

utils/throttleDebounce: __module = ThrottleDebounce

utils/withAttr

utils/withAttr: (key: string, cb: Function) => () => void = withAttr

Type declaration

__type

__type

ForumApplication

ForumApplication: typeof ForumApplication = ForumApplication

components/AffixedSidebar

components/AffixedSidebar: typeof AffixedSidebar = AffixedSidebar

components/AvatarEditor

components/AvatarEditor: typeof AvatarEditor = AvatarEditor

components/ChangeEmailModal

components/ChangeEmailModal: typeof ChangeEmailModal = ChangeEmailModal

components/ChangePasswordModal

components/ChangePasswordModal: typeof ChangePasswordModal = ChangePasswordModal

components/CommentPost

components/CommentPost: typeof CommentPost = CommentPost

components/Composer

components/Composer: typeof Composer = Composer

components/ComposerBody

components/ComposerBody: typeof ComposerBody = ComposerBody

components/ComposerButton

components/ComposerButton: typeof ComposerButton = ComposerButton

components/ComposerPostPreview

components/ComposerPostPreview: typeof ComposerPostPreview = ComposerPostPreview

components/DiscussionComposer

components/DiscussionComposer: typeof DiscussionComposer = DiscussionComposer

components/DiscussionHero

components/DiscussionHero: typeof DiscussionHero = DiscussionHero

components/DiscussionList

components/DiscussionList: typeof DiscussionList = DiscussionList

components/DiscussionListItem

components/DiscussionListItem: typeof DiscussionListItem = DiscussionListItem

components/DiscussionListPane

components/DiscussionListPane: typeof DiscussionListPane = DiscussionListPane

components/DiscussionPage

components/DiscussionPage: typeof DiscussionPage = DiscussionPage

components/DiscussionRenamedNotification

components/DiscussionRenamedNotification: typeof DiscussionRenamedNotification = DiscussionRenamedNotification

components/DiscussionRenamedPost

components/DiscussionRenamedPost: typeof DiscussionRenamedPost = DiscussionRenamedPost

components/DiscussionsSearchSource

components/DiscussionsSearchSource: typeof DiscussionsSearchSource = DiscussionsSearchSource

components/DiscussionsUserPage

components/DiscussionsUserPage: typeof DiscussionsUserPage = DiscussionsUserPage

components/EditPostComposer

components/EditPostComposer: typeof EditPostComposer = EditPostComposer

components/EventPost

components/EventPost: typeof EventPost = EventPost

components/ForgotPasswordModal

components/ForgotPasswordModal: typeof ForgotPasswordModal = ForgotPasswordModal

components/HeaderPrimary

components/HeaderPrimary: typeof HeaderPrimary = HeaderPrimary

components/HeaderSecondary

components/HeaderSecondary: typeof HeaderSecondary = HeaderSecondary

components/IndexPage

components/IndexPage: typeof IndexPage = IndexPage

components/LoadingPost

components/LoadingPost: typeof LoadingPost = LoadingPost

components/LogInButton

components/LogInButton: typeof LogInButton = LogInButton

components/LogInButtons

components/LogInButtons: typeof LogInButtons = LogInButtons

components/LogInModal

components/LogInModal: typeof LogInModal = LogInModal

components/Notification

components/Notification: typeof Notification = Notification

components/NotificationGrid

components/NotificationGrid: typeof NotificationGrid = NotificationGrid

components/NotificationList

components/NotificationList: typeof NotificationList = NotificationList

components/NotificationsDropdown

components/NotificationsDropdown: typeof NotificationsDropdown = NotificationsDropdown

components/NotificationsPage

components/NotificationsPage: typeof NotificationsPage = NotificationsPage

components/Post

components/Post: typeof Post = Post

components/PostEdited

components/PostEdited: typeof PostEdited = PostEdited

components/PostMeta

components/PostMeta: typeof PostMeta = PostMeta

components/PostPreview

components/PostPreview: typeof PostPreview = PostPreview

components/PostStream

components/PostStream: typeof PostStream = PostStream

components/PostStreamScrubber

components/PostStreamScrubber: typeof PostStreamScrubber = PostStreamScrubber

components/PostUser

components/PostUser: typeof PostUser = PostUser

components/PostsUserPage

components/PostsUserPage: typeof PostsUserPage = PostsUserPage

components/RenameDiscussionModal

components/RenameDiscussionModal: typeof RenameDiscussionModal = RenameDiscussionModal

components/ReplyComposer

components/ReplyComposer: typeof ReplyComposer = ReplyComposer

components/ReplyPlaceholder

components/ReplyPlaceholder: typeof ReplyPlaceholder = ReplyPlaceholder

components/Search

components/Search: typeof Search = Search

components/SessionDropdown

components/SessionDropdown: typeof SessionDropdown = SessionDropdown

components/SettingsPage

components/SettingsPage: typeof SettingsPage = SettingsPage

components/SignUpModal

components/SignUpModal: typeof SignUpModal = SignUpModal

components/TerminalPost

components/TerminalPost: typeof TerminalPost = TerminalPost

components/UserCard

components/UserCard: typeof UserCard = UserCard

components/UserPage

components/UserPage: typeof UserPage = UserPage

components/UsersSearchSource

components/UsersSearchSource: typeof UsersSearchResults = UsersSearchSource

components/WelcomeHero

components/WelcomeHero: typeof WelcomeHero = WelcomeHero

resolvers/DiscussionPageResolver

resolvers/DiscussionPageResolver: typeof DiscussionPageResolver = DiscussionPageResolver

routes

routes: (app: ForumApplication) => void = routes

Type declaration

states/ComposerState

states/ComposerState: typeof ComposerState = ComposerState

states/DiscussionListState

states/DiscussionListState: typeof DiscussionListState = DiscussionListState

states/GlobalSearchState

states/GlobalSearchState: typeof GlobalSearchState = GlobalSearchState

states/NotificationListState

states/NotificationListState: typeof NotificationListState = NotificationListState

states/PostStreamState

states/PostStreamState: typeof PostStreamState = PostStreamState

states/SearchState

states/SearchState: typeof SearchState = SearchState

utils/BasicEditorDriver

utils/BasicEditorDriver: typeof BasicEditorDriver = BasicEditorDriver

utils/DiscussionControls

utils/DiscussionControls: { controls: any; deleteAction: any; destructiveControls: any; hideAction: any; moderationControls: any; renameAction: any; replyAction: any; restoreAction: any; userControls: any } = DiscussionControls

Type declaration

utils/History

utils/History: typeof History = History

utils/KeyboardNavigatable

utils/KeyboardNavigatable: typeof KeyboardNavigatable = KeyboardNavigatable

utils/Pane

utils/Pane: typeof Pane = Pane

utils/PostControls

utils/PostControls: { controls: any; deleteAction: any; destructiveControls: any; editAction: any; hideAction: any; moderationControls: any; restoreAction: any; userControls: any } = PostControls

Type declaration

utils/UserControls

utils/UserControls: { controls: any; deleteAction: any; destructiveControls: any; editAction: any; moderationControls: any; showDeletionAlert: any; userControls: any } = UserControls

Type declaration

utils/alertEmailConfirmation

utils/alertEmailConfirmation: (app: ForumApplication) => void = alertEmailConfirmation

Type declaration

utils/isSafariMobile

utils/isSafariMobile: () => boolean = isSafariMobile

Type declaration

utils/slidable

utils/slidable: (element: HTMLElement | Element | SVGElement) => { reset: any } = slidable

Type declaration

    • The slidable utility adds touch gestures to an element so that it can be slid away to reveal controls underneath, and then released to activate those controls.

      It relies on the element having children with particular CSS classes.

      The function returns a record with a reset proeprty. This is a function which reverts the slider to its original position. This should be called, for example, when a controls dropdown is closed.

      Parameters

      Returns { reset: any }

Generated using TypeDoc version 0.22.10