Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

37
LINES

< > BotCompany Repo | #1029802 // concierge.avor.ag

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1113K of libraries. Click here for Pure Java version (32095L/193K).

!7

cm AvorDemonstrator > DynAvorDemonstrator {
  void start2 :: after {
    templateID = #1031827;
    cssID = #1031825;
    
    botName = heading = "AVOR Concierge";
    adminName = "AVOR Concierge";
  }
  
  void makeFramer(Req req) {
    super.makeFramer(req);
    req.framer.addInHead(hStylesheetSnippet(#1031828));
    req.framer.renderTitle = () -> h1(ahref(baseLink + "/",
      himgsrc("https://concierge.avor.ag/uploaded-image/1123", style := "height: 1em; vertical-align: bottom", title := "AVOR Logo"))
      + " " + req.framer.encodedTitle());
  }
  
  S serveAuthForm(S redirect) {
    if (eq(currentReq->get("oldLoginPage"), "1"))
      ret super.serveAuthForm(redirect);
      
    redirect = dropParamFromURL(redirect, "logout"); // don't log us out right again
    if (empty(redirect)) redirect = baseLink + "/";
    ret replaceDollarVars(loadSnippet(#1031829),
      redirect := htmlEncode(redirect));
  }
  
  O html3(Req req) {
    if (eq(req.uri, "/concierge"))
      req.uri = "/demo";
    ret super.html3(req);
  }
  
  S botDemoHeadStuff() { ret hStylesheetSnippet(#1031828); }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1029802
Snippet name: concierge.avor.ag
Eternal ID of this version: #1029802/52
Text MD5: 2ccefb168e0403d74bc1b3e0760d2050
Transpilation MD5: b6c087dee54545309c3c2fba0e240161
Author: stefan
Category:
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-14 14:30:15
Source code size: 1141 bytes / 37 lines
Pitched / IR pitched: No / No
Views / Downloads: 262 / 1375
Version history: 51 change(s)
Referenced in: #1028671 - Eleu Cruddie [old]
#1029850 - Eleu Cruddie [LIVE, for the cruddie server, serving cruddie.site + avor.botcompany.de + more]
#1029878 - Trainable Bot [dev.]
#1031826 - AVOR Demonstrator old (still live at avor.botcompany.de)