Constants ✨
Provides HappyX constants
Flag | Description | Need Value |
---|---|---|
-d:httpx | enables Httpx as alternative HTTP Server ⚡ | ❌ |
-d:beast | enables HttpBeast as alternative HTTP Server ⚡ | ❌ |
-d:micro | enables MicroAsyncHttpServer as alternative HTTP Server ⚡ | ❌ |
-d:translate | enables automatic translate for returns 🌐 | ❌ |
-d:debug | enables debug logging 💻 | ❌ |
-d:cryptoMethod | choose crypto method for generate_password methods 🔐 | ✅ |
-d:numThreads | choose number of threads (httpx/httpbeast) ⌛ | ✅ |
-d:sessionIdLength | choose length of session ID ✍ | ✅ |
-d:disableApiDoc | disables built-in API documentation 📕 | ❌ |
-d:appName | choose name of application (SSR/SSG) 📕 | ✅ |
-d:apiDocsPath | choose path for API documentation 📕 | ✅ |
-d:noliveviews | Disables LiveViews at SSR/SSG (It helpful for components) 📕 | ❌ |
-d:safeRequests | Enables requests safety (On error returns 500 with err msg) 📕 | ❌ |
-d:disableDefDeco | Disables default decorators (AuthBasic, GetUserAgent) 👀 | ❌ |
-d:disableComp | Disables default components. Only functional components will be enabled | ❌ |
Dev Consts 👨💻
Flag | Description | Need Value |
---|---|---|
-d:compDebug | enables debug logging for components | ❌ |
-d:compTreeDebug | enables debug logging for components (tree mode) | ❌ |
-d:ssrDebug | enables debug logging for SSR | ❌ |
-d:spaDebug | enables debug logging for SPA | ❌ |
-d:reqModelDebug | enables debug logging for request models | ❌ |
-d:routingDebug | enables debug logging for routing | ❌ |
-d:componentDebugTarget | after this component program will terminated | ✅ |
-d:reqModelDebugTarget | after this request model program will terminated | ✅ |
Consts
apiDocsPath {.strdefine.} = "/docs"
appName {.strdefine.} = "HappyX Application"
componentDebugTarget {.strdefine.} = ""
cryptoMethod {.strdefine.} = "sha512"
enableApiDoc = true
enableAppRouting = true
enableAutoTranslate = false
enableDebug = false
enableDebugComponentMacro = false
enableDebugSpaMacro = false
enableDebugSsrMacro = false
enableDebugTreeComponentMacro = false
enableDefaultComponents = true
enableDefaultDecorators = true
enableHistoryApi = false
enableHttpBeast = false
enableHttpx = false
enableLiveViews = true
enableMicro = false
enableRequestModelDebugMacro = false
enableRoutingDebugMacro = false
enableSafeRequests = false
enableTemplateEngine = true
enableUseCompDebugMacro = false
exportJvm = false
exportPython = false
HpxMajor = 3
HpxMinor = 12
HpxPatch = 0
HpxVersion = "3.12.0"
htmlTagsList = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "portal", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "cicle", "path", "g", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"]
httpMethods = ["get", "post", "put", "patch", "link", "options", "head", "delete", "unlink", "purge", "copy"]
nim_1_6_14 = false
nim_2_0_0 = true
numThreads {.intdefine.} = 0
reqModelDebugTarget {.strdefine.} = ""
sessionIdLength {.intdefine.} = 32