rumtk_web/utils/
defaults.rs1use crate::utils::ConstTextMap;
24use phf_macros::phf_ordered_map;
25pub static DEFAULT_TEXT_MAP: ConstTextMap = phf_ordered_map!();
29
30pub const DEFAULT_LOCAL_LISTENING_ADDRESS: &str = "127.0.0.1:3000";
34pub const DEFAULT_OUTBOUND_LISTENING_ADDRESS: &str = "0.0.0.0:3000";
35
36pub const DEFAULT_TEXT_ITEM: &str = "default";
40pub const DEFAULT_CONTACT_ITEM: &str = "company";
41pub const DEFAULT_NO_TEXT: &str = "";
42
43pub const OPT_INVERTED_DIRECTION: &str = "inverted";
47
48pub const PARAMS_ID: &str = "id";
52pub const PARAMS_TITLE: &str = "title";
53pub const PARAMS_TYPE: &str = "type";
54pub const PARAMS_CSS_CLASS: &str = "class";
55pub const PARAMS_SOCIAL_LIST: &str = "social_list";
56pub const PARAMS_ITEM: &str = "item";
57pub const PARAMS_INVERTED: &str = "inverted";
58pub const PARAMS_SECTION: &str = "section";
59pub const PARAMS_FUNCTION: &str = "function";
60pub const PARAMS_TARGET: &str = "target";
61pub const PARAMS_SIZE: &str = "size";
62pub const PARAMS_CONTENTS: &str = "contents";
63pub const PARAMS_MODULE: &str = "module";
64pub const PARAMS_ENDPOINT: &str = "endpoint";
65
66pub const SECTION_TEXT: &str = "text";
70pub const SECTION_PERSONNEL: &str = "personnel";
71pub const SECTION_CONTACT: &str = "contact";
72pub const SECTION_TITLES: &str = "titles";
73pub const SECTION_API: &str = "api";
74pub const SECTION_SOCIALS: &str = "socials";
75pub const SECTION_SERVICES: &str = "services";
76pub const SECTION_PRODUCTS: &str = "products";
77pub const SECTION_LINKS: &str = "links";
78pub const SECTION_MODULES: &str = "modules";
79pub const SECTION_ENDPOINTS: &str = "endpoints";
80pub const SECTION_DEFAULT: &str = "default";
81
82pub const CONTENT_TYPE_PDF: &str = "application/pdf";
86pub const CONTENT_TYPE_HTML: &str = "text/html";
87
88pub const FORM_DATA_TYPE_PDF: &str = "pdf";
92pub const FORM_DATA_TYPE_HTML: &str = "html";
93pub const FORM_DATA_TYPE_MARKDOWN: &str = "markdown";
94pub const FORM_DATA_TYPE_DEFAULT: &str = "text";
95
96pub const LANG_EN: &str = "en";
100pub const LANG_ES: &str = "es";
101
102pub const DEFAULT_ICON_STYLE: &str = "fa-solid";
106
107pub const DEFAULT_ROBOT_TXT: &str = r"
111User-agent: *
112Disallow: /static/
113";
114
115pub const DEFAULT_SCRIPT: &str = "default";
119pub const DEFAULT_SCRIPT_MODULE: &str = "module";
120pub const DEFAULT_SCRIPT_IMPORT: &str = "import";