mirror of
https://github.com/outline/outline.git
synced 2026-11-26 07:33:19 +03:00
* feat: allow sort by position for comments * wait for prosemirror nodes to load * Move to menu * remove sort; rename enum * asc sort for in-thread display * revert sort --------- Co-authored-by: Tom Moor <tom.moor@gmail.com>
36 lines
971 B
TypeScript
36 lines
971 B
TypeScript
import {
|
|
TOCPosition,
|
|
TeamPreference,
|
|
TeamPreferences,
|
|
UserPreference,
|
|
UserPreferences,
|
|
} from "./types";
|
|
|
|
export const MAX_AVATAR_DISPLAY = 6;
|
|
|
|
export const Pagination = {
|
|
defaultLimit: 25,
|
|
defaultOffset: 0,
|
|
maxLimit: 100,
|
|
sidebarLimit: 10,
|
|
};
|
|
|
|
export const TeamPreferenceDefaults: TeamPreferences = {
|
|
[TeamPreference.SeamlessEdit]: true,
|
|
[TeamPreference.ViewersCanExport]: true,
|
|
[TeamPreference.MembersCanInvite]: false,
|
|
[TeamPreference.MembersCanCreateApiKey]: true,
|
|
[TeamPreference.MembersCanDeleteAccount]: true,
|
|
[TeamPreference.PublicBranding]: false,
|
|
[TeamPreference.Commenting]: true,
|
|
[TeamPreference.CustomTheme]: undefined,
|
|
[TeamPreference.TocPosition]: TOCPosition.Left,
|
|
};
|
|
|
|
export const UserPreferenceDefaults: UserPreferences = {
|
|
[UserPreference.RememberLastPath]: true,
|
|
[UserPreference.UseCursorPointer]: true,
|
|
[UserPreference.CodeBlockLineNumers]: true,
|
|
[UserPreference.SortCommentsByOrderInDocument]: false,
|
|
};
|