Uses 66614K of libraries. Click here for Pure Java version (7971L/64K).
!7 !include once #1032300 // Playwright Include with sticky lib static MapSO _renameClasses = litmap("GazelleBEA" := "GazelleBEAMainServer"); mainPackage gazelle mainClassName main module GazelleBEAMainServer > GazelleBEA { void init :: after { runRefChecker = false; set exportUsersInVM; set exportUsersGlobally; } @Override O serveDefaultPage(DynGazelleRocks.Req req) { if (ewicOneOf(req.uri(), ".css", ".js")) ret serve404Page(); S uri = req.uri(); if (startsWith(addSlash(uri), "/kb/")) ret "Knowledge base missing :("; //S uri = replacePrefix("/kb/", "/", uri); ret hrefresh(addParamsToURL("https://gazelle.rocks/kb" + uri, req.params()); } O serve404Page() { if (startsWith(currentReq().uri, "/crud/")) ret hredirect(baseLink + "/login"); else ret subBot_serve404("Resource not found, please try the " + ahref("/", "home page")); } } !include early #1031418 // Gazelle BEA
Began life as a copy of #1030602
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031304 |
Snippet name: | gazelle.rocks [LIVE] |
Eternal ID of this version: | #1031304/143 |
Text MD5: | 0071bbd08bf03c8643bcff01f9076d49 |
Transpilation MD5: | 1876b754a17ebee13f037717b727089a |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-16 16:33:38 |
Source code size: | 1001 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 1377 / 178643 |
Version history: | 142 change(s) |
Referenced in: | [show references] |