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

53
LINES

< > BotCompany Repo | #1030482 // noiland.vip [LIVE]

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

Uses 1059K of libraries. Click here for Pure Java version (33218L/209K).

!7

cmodule2 NoilandVIP > GazelleExamples {
  switchable long favIconID;
  
  void init {
    super.init();
    botName = heading = adminName = "Noiland.VIP";
    //templateID = #1030430;
    //cssID = "396";
    set enableVars;
    set enableAvatars;
    set showTalkToBotLink;
    timeZone = germanTimeZone_string();
    unset phoneNumberSpecialInputField;
  }
  
  Set<Class> hiddenCrudClasses() { ret litset(); }
  
  L<Class> botCmdClasses() {
    ret dynNewBot2_botCmdClasses();
  }
  
  S authFormHeading() {
    ret h3("Noiland.VIP");
  }
  
  void makeFramer(Req req) {
    super.makeFramer(req);
      req.framer.renderTitle = () -> h1(ahref(baseLink + "/", "Noiland.VIP")
      + " " + htmlEncode2(req.framer.title));
  }
  
  O serveFavIcon() {
    if (favIconID == 0) ret super.serveFavIcon();
    UploadedFile f = getConcept UploadedFile(favIconID);
    if (f != null) 
      ret serveFile(f.theFile(), faviconMimeType());
    ret serve404();
  }
  
  S calcVar(Conversation conv, S var) {
    if (eqic(var, "hasUserName"))
      ret str(nempty(calcVar(conv, "userName")));
    ret super.calcVar(conv, var);
  }
  
  /*S cssURL() {
    ret "https://pays5.com/text/" + cssID;
  }*/
}

!include early #1029913 // gazelle.rocks

Author comment

Began life as a copy of #1030422

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030482
Snippet name: noiland.vip [LIVE]
Eternal ID of this version: #1030482/1
Text MD5: f4f00d663d2ab43f2af35b77a9e0d117
Transpilation MD5: a4906a700567d9e4401c8e317b2c1f0e
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-23 22:52:05
Source code size: 1290 bytes / 53 lines
Pitched / IR pitched: No / No
Views / Downloads: 124 / 627
Referenced in: [show references]