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