rumtk_web/utils/
defaults.rs1use crate::utils::ConstTextMap;
22use phf_macros::phf_ordered_map;
23pub static DEFAULT_TEXT_MAP: ConstTextMap = phf_ordered_map!();
27
28pub const DEFAULT_LOCAL_LISTENING_ADDRESS: &str = "127.0.0.1:3000";
32pub const DEFAULT_OUTBOUND_LISTENING_ADDRESS: &str = "0.0.0.0:3000";
33
34pub const DEFAULT_TEXT_ITEM: &str = "default";
38pub const DEFAULT_CONTACT_ITEM: &str = "company";
39pub const DEFAULT_NO_TEXT: &str = "";
40
41pub const OPT_INVERTED_DIRECTION: &str = "inverted";
45
46pub const PARAMS_ID: &str = "id";
50pub const PARAMS_TITLE: &str = "title";
51pub const PARAMS_TYPE: &str = "type";
52pub const PARAMS_CSS_CLASS: &str = "class";
53pub const PARAMS_SOCIAL_LIST: &str = "social_list";
54pub const PARAMS_ITEM: &str = "item";
55pub const PARAMS_INVERTED: &str = "inverted";
56pub const PARAMS_SECTION: &str = "section";
57pub const PARAMS_FUNCTION: &str = "function";
58pub const PARAMS_TARGET: &str = "target";
59pub const PARAMS_SIZE: &str = "size";
60pub const PARAMS_CONTENTS: &str = "contents";
61pub const PARAMS_MODULE: &str = "module";
62pub const PARAMS_ENDPOINT: &str = "endpoint";
63
64pub const SECTION_TEXT: &str = "text";
68pub const SECTION_PERSONNEL: &str = "personnel";
69pub const SECTION_CONTACT: &str = "contact";
70pub const SECTION_TITLES: &str = "titles";
71pub const SECTION_API: &str = "api";
72pub const SECTION_SOCIALS: &str = "socials";
73pub const SECTION_SERVICES: &str = "services";
74pub const SECTION_PRODUCTS: &str = "products";
75pub const SECTION_LINKS: &str = "links";
76pub const SECTION_MODULES: &str = "modules";
77pub const SECTION_ENDPOINTS: &str = "endpoints";
78pub const SECTION_ALT: &str = "alt";
79pub const SECTION_DEFAULT: &str = "default";
80
81pub const CONTENT_TYPE_PDF: &str = "application/pdf";
85pub const CONTENT_TYPE_HTML: &str = "text/html";
86
87pub const FORM_DATA_TYPE_PDF: &str = "pdf";
91pub const FORM_DATA_TYPE_HTML: &str = "html";
92pub const FORM_DATA_TYPE_MARKDOWN: &str = "markdown";
93pub const FORM_DATA_TYPE_DEFAULT: &str = "text";
94
95pub const LANG_EN: &str = "en";
99pub const LANG_ES: &str = "es";
100
101pub const DEFAULT_ICON_STYLE: &str = "fa-solid";
105
106pub const DEFAULT_ROBOT_TXT: &str = r"
110User-agent: *
111Disallow: /static/
112";
113
114pub const DEFAULT_SCRIPT: &str = "default";
118pub const DEFAULT_SCRIPT_MODULE: &str = "module";
119pub const DEFAULT_SCRIPT_IMPORT: &str = "import";
120
121pub const DEFAULT_EMPTY_PARAMS: &[(&str, &str); 1] = &[("", "")];