mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 23:53:42 +08:00
1832fb090d
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
264 lines
16 KiB
TypeScript
264 lines
16 KiB
TypeScript
declare var _default: {
|
|
extend: any;
|
|
Session: typeof import("../common/Session").default;
|
|
Store: typeof import("../common/Store").default;
|
|
'utils/BasicEditorDriver': typeof BasicEditorDriver;
|
|
'utils/evented': {
|
|
handlers: Object;
|
|
getHandlers(event: string): any[];
|
|
trigger(event: string, ...args: any[]): void;
|
|
on(event: string, handler: Function): void;
|
|
one(event: string, handler: Function): void;
|
|
off(event: string, handler: Function): void;
|
|
};
|
|
'utils/liveHumanTimes': typeof import("../common/utils/liveHumanTimes").default;
|
|
'utils/ItemList': typeof import("../common/utils/ItemList").default;
|
|
'utils/mixin': typeof import("../common/utils/mixin").default;
|
|
'utils/humanTime': typeof import("../common/utils/humanTime").default;
|
|
'utils/computed': typeof import("../common/utils/computed").default;
|
|
'utils/insertText': typeof import("../common/utils/insertText").default;
|
|
'utils/styleSelectedText': typeof import("../common/utils/styleSelectedText").default;
|
|
'utils/Drawer': typeof import("../common/utils/Drawer").default;
|
|
'utils/anchorScroll': typeof import("../common/utils/anchorScroll").default;
|
|
'utils/RequestError': typeof import("../common/utils/RequestError").default;
|
|
'utils/abbreviateNumber': typeof import("../common/utils/abbreviateNumber").default;
|
|
'utils/string': typeof import("../common/utils/string");
|
|
'utils/SubtreeRetainer': typeof import("../common/utils/SubtreeRetainer").default;
|
|
'utils/escapeRegExp': typeof import("../common/utils/escapeRegExp").default;
|
|
'utils/extract': typeof import("../common/utils/extract").default;
|
|
'utils/ScrollListener': typeof import("../common/utils/ScrollListener").default;
|
|
'utils/stringToColor': typeof import("../common/utils/stringToColor").default;
|
|
'utils/Stream': typeof import("mithril/stream");
|
|
'utils/subclassOf': typeof import("../common/utils/subclassOf").default;
|
|
'utils/setRouteWithForcedRefresh': typeof import("../common/utils/setRouteWithForcedRefresh").default;
|
|
'utils/patchMithril': typeof import("../common/utils/patchMithril").default;
|
|
'utils/proxifyCompat': typeof import("../common/utils/proxifyCompat").default;
|
|
'utils/classList': (...classes: import("clsx").ClassValue[]) => string;
|
|
'utils/extractText': typeof import("../common/utils/extractText").default;
|
|
'utils/formatNumber': typeof import("../common/utils/formatNumber").default;
|
|
'utils/mapRoutes': typeof import("../common/utils/mapRoutes").default;
|
|
'utils/withAttr': (key: string, cb: Function) => (this: Element) => void;
|
|
'utils/throttleDebounce': typeof import("../common/utils/throttleDebounce");
|
|
'utils/isObject': typeof import("../common/utils/isObject").default;
|
|
'utils/focusTrap': typeof import("../common/utils/focusTrap");
|
|
'models/Notification': typeof import("../common/models/Notification").default;
|
|
'models/User': typeof import("../common/models/User").default;
|
|
'models/Post': typeof import("../common/models/Post").default;
|
|
'models/Discussion': typeof import("../common/models/Discussion").default;
|
|
'models/Group': typeof import("../common/models/Group").default;
|
|
'models/Forum': typeof import("../common/models/Forum").default;
|
|
Component: typeof import("../common/Component").default;
|
|
Fragment: typeof import("../common/Fragment").default;
|
|
Translator: typeof import("../common/Translator").default;
|
|
'components/AlertManager': typeof import("../common/components/AlertManager").default;
|
|
'components/Page': typeof import("../common/components/Page").default;
|
|
'components/Switch': typeof import("../common/components/Switch").default;
|
|
'components/Badge': typeof import("../common/components/Badge").default;
|
|
'components/LoadingIndicator': typeof import("../common/components/LoadingIndicator").default;
|
|
'components/Placeholder': typeof import("../common/components/Placeholder").default;
|
|
'components/Separator': typeof import("../common/components/Separator").default;
|
|
'components/Dropdown': typeof import("../common/components/Dropdown").default;
|
|
'components/SplitDropdown': typeof import("../common/components/SplitDropdown").default;
|
|
'components/RequestErrorModal': typeof import("../common/components/RequestErrorModal").default;
|
|
'components/FieldSet': typeof import("../common/components/FieldSet").default;
|
|
'components/Select': typeof import("../common/components/Select").default;
|
|
'components/Navigation': typeof import("../common/components/Navigation").default;
|
|
'components/Alert': typeof import("../common/components/Alert").default;
|
|
'components/Link': typeof import("../common/components/Link").default;
|
|
'components/LinkButton': typeof import("../common/components/LinkButton").default;
|
|
'components/Checkbox': typeof import("../common/components/Checkbox").default;
|
|
'components/ColorPreviewInput': typeof import("../common/components/ColorPreviewInput").default;
|
|
'components/SelectDropdown': typeof import("../common/components/SelectDropdown").default;
|
|
'components/ModalManager': typeof import("../common/components/ModalManager").default;
|
|
'components/Button': typeof import("../common/components/Button").default;
|
|
'components/Modal': typeof import("../common/components/Modal").default;
|
|
'components/GroupBadge': typeof import("../common/components/GroupBadge").default;
|
|
'components/TextEditor': typeof import("../common/components/TextEditor").default;
|
|
'components/TextEditorButton': typeof import("../common/components/TextEditorButton").default;
|
|
'components/Tooltip': typeof import("../common/components/Tooltip").default;
|
|
'components/EditUserModal': typeof import("../common/components/EditUserModal").default;
|
|
Model: typeof import("../common/Model").default;
|
|
Application: typeof import("../common/Application").default;
|
|
'helpers/fullTime': typeof import("../common/helpers/fullTime").default;
|
|
'helpers/avatar': typeof import("../common/helpers/avatar").default;
|
|
'helpers/icon': typeof import("../common/helpers/icon").default;
|
|
'helpers/humanTime': typeof import("../common/helpers/humanTime").default;
|
|
'helpers/punctuateSeries': typeof import("../common/helpers/punctuateSeries").default;
|
|
'helpers/highlight': typeof import("../common/helpers/highlight").default;
|
|
'helpers/username': typeof import("../common/helpers/username").default;
|
|
'helpers/userOnline': typeof import("../common/helpers/userOnline").default;
|
|
'helpers/listItems': typeof import("../common/helpers/listItems").default;
|
|
'resolvers/DefaultResolver': typeof import("../common/resolvers/DefaultResolver").default;
|
|
'states/PaginatedListState': typeof import("../common/states/PaginatedListState").default;
|
|
} & {
|
|
'utils/PostControls': {
|
|
controls(post: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
userControls(post: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
moderationControls(post: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
destructiveControls(post: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
editAction(): Promise<any>;
|
|
hideAction(): Promise<any>;
|
|
restoreAction(): Promise<any>;
|
|
deleteAction(context: any): Promise<any>;
|
|
};
|
|
'utils/KeyboardNavigatable': typeof KeyboardNavigatable;
|
|
'utils/slidable': typeof slidable;
|
|
'utils/History': typeof History;
|
|
'utils/DiscussionControls': {
|
|
controls(discussion: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
userControls(discussion: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
moderationControls(discussion: any): import("../common/utils/ItemList").default<any>;
|
|
destructiveControls(discussion: any): import("../common/utils/ItemList").default<any>;
|
|
replyAction(goToLast: boolean, forceRefresh: boolean): Promise<any>;
|
|
hideAction(): Promise<any>;
|
|
restoreAction(): Promise<any>;
|
|
deleteAction(): Promise<any>;
|
|
renameAction(): Promise<any>;
|
|
};
|
|
'utils/alertEmailConfirmation': typeof alertEmailConfirmation;
|
|
'utils/UserControls': {
|
|
controls(user: any, context: any): import("../common/utils/ItemList").default<any>;
|
|
userControls(): import("../common/utils/ItemList").default<any>;
|
|
moderationControls(user: any): import("../common/utils/ItemList").default<any>;
|
|
destructiveControls(user: any): import("../common/utils/ItemList").default<any>;
|
|
deleteAction(user: any): void;
|
|
showDeletionAlert(user: any, type: string): void;
|
|
editAction(user: any): void;
|
|
};
|
|
'utils/Pane': typeof Pane;
|
|
'utils/BasicEditorDriver': typeof BasicEditorDriver;
|
|
'states/ComposerState': typeof ComposerState;
|
|
'states/DiscussionListState': typeof DiscussionListState;
|
|
'states/GlobalSearchState': typeof GlobalSearchState;
|
|
'states/NotificationListState': typeof NotificationListState;
|
|
'states/PostStreamState': typeof PostStreamState;
|
|
'states/SearchState': typeof SearchState;
|
|
'components/AffixedSidebar': typeof AffixedSidebar;
|
|
'components/DiscussionPage': typeof DiscussionPage;
|
|
'components/DiscussionListPane': typeof DiscussionListPane;
|
|
'components/LogInModal': typeof LogInModal;
|
|
'components/ComposerBody': typeof ComposerBody;
|
|
'components/ForgotPasswordModal': typeof ForgotPasswordModal;
|
|
'components/Notification': typeof Notification;
|
|
'components/LogInButton': typeof LogInButton;
|
|
'components/DiscussionsUserPage': typeof DiscussionsUserPage;
|
|
'components/Composer': typeof Composer;
|
|
'components/SessionDropdown': typeof SessionDropdown;
|
|
'components/HeaderPrimary': typeof HeaderPrimary;
|
|
'components/PostEdited': typeof PostEdited;
|
|
'components/PostStream': typeof PostStream;
|
|
'components/ChangePasswordModal': typeof ChangePasswordModal;
|
|
'components/IndexPage': typeof IndexPage;
|
|
'components/DiscussionRenamedNotification': typeof DiscussionRenamedNotification;
|
|
'components/DiscussionsSearchSource': typeof DiscussionsSearchSource;
|
|
'components/HeaderSecondary': typeof HeaderSecondary;
|
|
'components/ComposerButton': typeof ComposerButton;
|
|
'components/DiscussionList': typeof DiscussionList;
|
|
'components/ReplyPlaceholder': typeof ReplyPlaceholder;
|
|
'components/AvatarEditor': typeof AvatarEditor;
|
|
'components/Post': typeof Post;
|
|
'components/SettingsPage': typeof SettingsPage;
|
|
'components/TerminalPost': typeof TerminalPost;
|
|
'components/ChangeEmailModal': typeof ChangeEmailModal;
|
|
'components/NotificationsDropdown': typeof NotificationsDropdown;
|
|
'components/UserPage': typeof UserPage;
|
|
'components/PostUser': typeof PostUser;
|
|
'components/UserCard': typeof UserCard;
|
|
'components/UsersSearchSource': typeof UsersSearchSource;
|
|
'components/NotificationGrid': typeof NotificationGrid;
|
|
'components/PostPreview': typeof PostPreview;
|
|
'components/EventPost': typeof EventPost;
|
|
'components/DiscussionHero': typeof DiscussionHero;
|
|
'components/PostMeta': typeof PostMeta;
|
|
'components/DiscussionRenamedPost': typeof DiscussionRenamedPost;
|
|
'components/DiscussionComposer': typeof DiscussionComposer;
|
|
'components/LogInButtons': typeof LogInButtons;
|
|
'components/NotificationList': typeof NotificationList;
|
|
'components/WelcomeHero': typeof WelcomeHero;
|
|
'components/SignUpModal': typeof SignUpModal;
|
|
'components/CommentPost': typeof CommentPost;
|
|
'components/ComposerPostPreview': typeof ComposerPostPreview;
|
|
'components/ReplyComposer': typeof ReplyComposer;
|
|
'components/NotificationsPage': typeof NotificationsPage;
|
|
'components/PostStreamScrubber': typeof PostStreamScrubber;
|
|
'components/EditPostComposer': typeof EditPostComposer;
|
|
'components/RenameDiscussionModal': typeof RenameDiscussionModal;
|
|
'components/Search': typeof Search;
|
|
'components/DiscussionListItem': typeof DiscussionListItem;
|
|
'components/LoadingPost': typeof LoadingPost;
|
|
'components/PostsUserPage': typeof PostsUserPage;
|
|
'resolvers/DiscussionPageResolver': typeof DiscussionPageResolver;
|
|
routes: typeof routes;
|
|
ForumApplication: typeof ForumApplication;
|
|
};
|
|
export default _default;
|
|
import BasicEditorDriver from "../common/utils/BasicEditorDriver";
|
|
import KeyboardNavigatable from "./utils/KeyboardNavigatable";
|
|
import slidable from "./utils/slidable";
|
|
import History from "./utils/History";
|
|
import alertEmailConfirmation from "./utils/alertEmailConfirmation";
|
|
import Pane from "./utils/Pane";
|
|
import ComposerState from "./states/ComposerState";
|
|
import DiscussionListState from "./states/DiscussionListState";
|
|
import GlobalSearchState from "./states/GlobalSearchState";
|
|
import NotificationListState from "./states/NotificationListState";
|
|
import PostStreamState from "./states/PostStreamState";
|
|
import SearchState from "./states/SearchState";
|
|
import AffixedSidebar from "./components/AffixedSidebar";
|
|
import DiscussionPage from "./components/DiscussionPage";
|
|
import DiscussionListPane from "./components/DiscussionListPane";
|
|
import LogInModal from "./components/LogInModal";
|
|
import ComposerBody from "./components/ComposerBody";
|
|
import ForgotPasswordModal from "./components/ForgotPasswordModal";
|
|
import Notification from "./components/Notification";
|
|
import LogInButton from "./components/LogInButton";
|
|
import DiscussionsUserPage from "./components/DiscussionsUserPage";
|
|
import Composer from "./components/Composer";
|
|
import SessionDropdown from "./components/SessionDropdown";
|
|
import HeaderPrimary from "./components/HeaderPrimary";
|
|
import PostEdited from "./components/PostEdited";
|
|
import PostStream from "./components/PostStream";
|
|
import ChangePasswordModal from "./components/ChangePasswordModal";
|
|
import IndexPage from "./components/IndexPage";
|
|
import DiscussionRenamedNotification from "./components/DiscussionRenamedNotification";
|
|
import DiscussionsSearchSource from "./components/DiscussionsSearchSource";
|
|
import HeaderSecondary from "./components/HeaderSecondary";
|
|
import ComposerButton from "./components/ComposerButton";
|
|
import DiscussionList from "./components/DiscussionList";
|
|
import ReplyPlaceholder from "./components/ReplyPlaceholder";
|
|
import AvatarEditor from "./components/AvatarEditor";
|
|
import Post from "./components/Post";
|
|
import SettingsPage from "./components/SettingsPage";
|
|
import TerminalPost from "./components/TerminalPost";
|
|
import ChangeEmailModal from "./components/ChangeEmailModal";
|
|
import NotificationsDropdown from "./components/NotificationsDropdown";
|
|
import UserPage from "./components/UserPage";
|
|
import PostUser from "./components/PostUser";
|
|
import UserCard from "./components/UserCard";
|
|
import UsersSearchSource from "./components/UsersSearchSource";
|
|
import NotificationGrid from "./components/NotificationGrid";
|
|
import PostPreview from "./components/PostPreview";
|
|
import EventPost from "./components/EventPost";
|
|
import DiscussionHero from "./components/DiscussionHero";
|
|
import PostMeta from "./components/PostMeta";
|
|
import DiscussionRenamedPost from "./components/DiscussionRenamedPost";
|
|
import DiscussionComposer from "./components/DiscussionComposer";
|
|
import LogInButtons from "./components/LogInButtons";
|
|
import NotificationList from "./components/NotificationList";
|
|
import WelcomeHero from "./components/WelcomeHero";
|
|
import SignUpModal from "./components/SignUpModal";
|
|
import CommentPost from "./components/CommentPost";
|
|
import ComposerPostPreview from "./components/ComposerPostPreview";
|
|
import ReplyComposer from "./components/ReplyComposer";
|
|
import NotificationsPage from "./components/NotificationsPage";
|
|
import PostStreamScrubber from "./components/PostStreamScrubber";
|
|
import EditPostComposer from "./components/EditPostComposer";
|
|
import RenameDiscussionModal from "./components/RenameDiscussionModal";
|
|
import Search from "./components/Search";
|
|
import DiscussionListItem from "./components/DiscussionListItem";
|
|
import LoadingPost from "./components/LoadingPost";
|
|
import PostsUserPage from "./components/PostsUserPage";
|
|
import DiscussionPageResolver from "./resolvers/DiscussionPageResolver";
|
|
import routes from "./routes";
|
|
import ForumApplication from "./ForumApplication";
|