Uses 1059K of libraries. Click here for Pure Java version (33218L/209K).
1 | !7 |
2 | |
3 | cmodule2 NoilandVIP > GazelleExamples { |
4 | switchable long favIconID; |
5 | |
6 | void init { |
7 | super.init(); |
8 | botName = heading = adminName = "Noiland.VIP"; |
9 | //templateID = #1030430; |
10 | //cssID = "396"; |
11 | set enableVars; |
12 | set enableAvatars; |
13 | set showTalkToBotLink; |
14 | timeZone = germanTimeZone_string(); |
15 | unset phoneNumberSpecialInputField; |
16 | } |
17 | |
18 | Set<Class> hiddenCrudClasses() { ret litset(); } |
19 | |
20 | L<Class> botCmdClasses() { |
21 | ret dynNewBot2_botCmdClasses(); |
22 | } |
23 | |
24 | S authFormHeading() { |
25 | ret h3("Noiland.VIP"); |
26 | } |
27 | |
28 | void makeFramer(Req req) { |
29 | super.makeFramer(req); |
30 | req.framer.renderTitle = () -> h1(ahref(baseLink + "/", "Noiland.VIP") |
31 | + " " + htmlEncode2(req.framer.title)); |
32 | } |
33 | |
34 | O serveFavIcon() { |
35 | if (favIconID == 0) ret super.serveFavIcon(); |
36 | UploadedFile f = getConcept UploadedFile(favIconID); |
37 | if (f != null) |
38 | ret serveFile(f.theFile(), faviconMimeType()); |
39 | ret serve404(); |
40 | } |
41 | |
42 | S calcVar(Conversation conv, S var) { |
43 | if (eqic(var, "hasUserName")) |
44 | ret str(nempty(calcVar(conv, "userName"))); |
45 | ret super.calcVar(conv, var); |
46 | } |
47 | |
48 | /*S cssURL() { |
49 | ret "https://pays5.com/text/" + cssID; |
50 | }*/ |
51 | } |
52 | |
53 | !include early #1029913 // gazelle.rocks |
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: | 240 / 793 |
Referenced in: | [show references] |