rumtk_web/utils/
defaults.rs

1/*
2 * rumtk attempts to implement HL7 and medical protocols for interoperability in medicine.
3 * This toolkit aims to be reliable, simple, performant, and standards compliant.
4 * Copyright (C) 2025  Luis M. Santos, M.D.
5 * Copyright (C) 2025  MedicalMasses L.L.C.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20 */
21use crate::utils::ConstTextMap;
22use phf_macros::phf_ordered_map;
23/*
24   TextMap
25*/
26pub static DEFAULT_TEXT_MAP: ConstTextMap = phf_ordered_map!();
27
28/*
29   IP
30*/
31pub const DEFAULT_LOCAL_LISTENING_ADDRESS: &str = "127.0.0.1:3000";
32pub const DEFAULT_OUTBOUND_LISTENING_ADDRESS: &str = "0.0.0.0:3000";
33
34/*
35   Misc
36*/
37pub const DEFAULT_TEXT_ITEM: &str = "default";
38pub const DEFAULT_CONTACT_ITEM: &str = "company";
39pub const DEFAULT_NO_TEXT: &str = "";
40
41/*
42    Options
43*/
44pub const OPT_INVERTED_DIRECTION: &str = "inverted";
45
46/*
47   Params
48*/
49pub const PARAMS_TITLE: &str = "title";
50pub const PARAMS_TYPE: &str = "type";
51pub const PARAMS_CSS_CLASS: &str = "class";
52pub const PARAMS_SOCIAL_LIST: &str = "social_list";
53pub const PARAMS_ITEM: &str = "item";
54pub const PARAMS_INVERTED: &str = "inverted";
55pub const PARAMS_SECTION: &str = "section";
56pub const PARAMS_FUNCTION: &str = "function";
57pub const PARAMS_TARGET: &str = "target";
58pub const PARAMS_SIZE: &str = "size";
59pub const PARAMS_CONTENTS: &str = "contents";
60
61/*
62   CONF SECTIONS
63*/
64pub const SECTION_TEXT: &str = "text";
65pub const SECTION_PERSONNEL: &str = "personnel";
66pub const SECTION_CONTACT: &str = "contact";
67pub const SECTION_TITLES: &str = "titles";
68pub const SECTION_API: &str = "api";
69pub const SECTION_SOCIALS: &str = "socials";
70pub const SECTION_SERVICES: &str = "services";
71pub const SECTION_PRODUCTS: &str = "products";
72pub const SECTION_LINKS: &str = "links";
73pub const SECTION_DEFAULT: &str = "default";
74
75/*
76   LANGUAGES
77*/
78pub const LANG_EN: &str = "en";
79pub const LANG_ES: &str = "es";
80
81/*
82   Icon
83*/
84pub const DEFAULT_ICON_STYLE: &str = "fa-solid";
85
86/*
87   Robots.txt
88*/
89pub const DEFAULT_ROBOT_TXT: &str = r"
90User-agent: *
91Disallow: /static/
92";