mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-17 04:35:25 +08:00
This commit responds to feedback in the Discourse Meta discussion https://meta.discourse.org/t/monospace-font-in-the-markdown-only-editor/359936 This change introduces a user preference that allows users to choose whether the Markdown editor uses a monospace font. The default setting is `true` for new sites, but set to `false` for existing sites to avoid disrupting current users' experiences. Admins can change the `default_other_enable_markdown_monospace_font` site setting to manage this for all users.
126 lines
3.5 KiB
JavaScript
126 lines
3.5 KiB
JavaScript
// DO NOT EDIT THIS FILE!!!
|
|
// Update it by running `rake javascript:update_constants`
|
|
|
|
export const ADMIN_SEARCH_RESULT_TYPES = [
|
|
"page",
|
|
"setting",
|
|
"theme",
|
|
"component",
|
|
"report",
|
|
];
|
|
|
|
export const SITE_SETTING_REQUIRES_CONFIRMATION_TYPES = {
|
|
simple: "simple",
|
|
user_option: "user_option",
|
|
};
|
|
|
|
export const API_KEY_SCOPE_MODES = ["global", "read_only", "granular"];
|
|
|
|
export const SYSTEM_FLAG_IDS = {
|
|
like: 2,
|
|
notify_user: 6,
|
|
off_topic: 3,
|
|
inappropriate: 4,
|
|
spam: 8,
|
|
illegal: 10,
|
|
notify_moderators: 7,
|
|
};
|
|
|
|
export const REPORT_MODES = {
|
|
table: "table",
|
|
chart: "chart",
|
|
stacked_chart: "stacked_chart",
|
|
stacked_line_chart: "stacked_line_chart",
|
|
radar: "radar",
|
|
counters: "counters",
|
|
inline_table: "inline_table",
|
|
storage_stats: "storage_stats",
|
|
};
|
|
|
|
export const USER_FIELD_FLAGS = [
|
|
"editable",
|
|
"show_on_profile",
|
|
"show_on_user_card",
|
|
"searchable",
|
|
];
|
|
|
|
export const DEFAULT_USER_PREFERENCES = [
|
|
"default_email_digest_frequency",
|
|
"default_include_tl0_in_digests",
|
|
"default_email_level",
|
|
"default_email_messages_level",
|
|
"default_email_mailing_list_mode",
|
|
"default_email_mailing_list_mode_frequency",
|
|
"default_email_previous_replies",
|
|
"default_email_in_reply_to",
|
|
"default_hide_profile",
|
|
"default_hide_presence",
|
|
"default_other_new_topic_duration_minutes",
|
|
"default_other_auto_track_topics_after_msecs",
|
|
"default_other_notification_level_when_replying",
|
|
"default_other_external_links_in_new_tab",
|
|
"default_other_enable_quoting",
|
|
"default_other_enable_smart_lists",
|
|
"default_other_enable_defer",
|
|
"default_other_dynamic_favicon",
|
|
"default_other_like_notification_frequency",
|
|
"default_other_skip_new_user_tips",
|
|
"default_other_enable_markdown_monospace_font",
|
|
"default_topics_automatic_unpin",
|
|
"default_categories_watching",
|
|
"default_categories_tracking",
|
|
"default_categories_muted",
|
|
"default_categories_watching_first_post",
|
|
"default_categories_normal",
|
|
"default_tags_watching",
|
|
"default_tags_tracking",
|
|
"default_tags_muted",
|
|
"default_tags_watching_first_post",
|
|
"default_text_size",
|
|
"default_title_count_mode",
|
|
"default_navigation_menu_categories",
|
|
"default_navigation_menu_tags",
|
|
"default_sidebar_link_to_filtered_list",
|
|
"default_sidebar_show_count_of_new_items",
|
|
"default_composition_mode",
|
|
];
|
|
|
|
export const MAIN_FONTS = [
|
|
{ key: "open_sans", name: "Open Sans" },
|
|
{ key: "roboto", name: "Roboto" },
|
|
{ key: "lato", name: "Lato" },
|
|
{ key: "inter", name: "Inter" },
|
|
{ key: "montserrat", name: "Montserrat" },
|
|
{ key: "poppins", name: "Poppins" },
|
|
{ key: "merriweather", name: "Merriweather" },
|
|
{ key: "mukta", name: "Mukta" },
|
|
{ key: "helvetica", name: "Helvetica" },
|
|
];
|
|
|
|
export const MORE_FONTS = [
|
|
{ key: "arial", name: "Arial" },
|
|
{ key: "system", name: "System" },
|
|
{ key: "oxanium", name: "Oxanium" },
|
|
{ key: "noto_sans_jp", name: "NotoSansJP" },
|
|
{ key: "roboto_condensed", name: "RobotoCondensed" },
|
|
{ key: "source_sans_pro", name: "SourceSansPro" },
|
|
{ key: "oswald", name: "Oswald" },
|
|
{ key: "raleway", name: "Raleway" },
|
|
{ key: "roboto_mono", name: "RobotoMono" },
|
|
{ key: "noto_sans", name: "NotoSans" },
|
|
{ key: "roboto_slab", name: "RobotoSlab" },
|
|
{ key: "ubuntu", name: "Ubuntu" },
|
|
{ key: "pt_sans", name: "PTSans" },
|
|
{ key: "playfair_display", name: "PlayfairDisplay" },
|
|
{ key: "nunito", name: "Nunito" },
|
|
{ key: "lora", name: "Lora" },
|
|
{ key: "jet_brains_mono", name: "JetBrains Mono" },
|
|
];
|
|
|
|
export const DEFAULT_TEXT_SIZES = [
|
|
"smallest",
|
|
"smaller",
|
|
"normal",
|
|
"larger",
|
|
"largest",
|
|
];
|