Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch main.js Excluding Merge-Ins
This is equivalent to a diff from 7eb5b0a2ae to 52a47db1a6
2017-12-05
| ||
01:29 | Add the "main.js" javascript file. Load that script on every page just before the </body> element, and use it to reduce the need for inline JS and CSS. check-in: 8394d2fee2 user: drh tags: trunk | |
01:24 | Remove unnecessary "antibot" class names from anchors. Closed-Leaf check-in: 52a47db1a6 user: drh tags: main.js | |
01:05 | Anti-robot defenses are now CSP-safe. check-in: 4f2c984132 user: drh tags: main.js | |
2017-12-04
| ||
21:29 | Add the /sqlar webpage. Link to this page from the /info page. check-in: 768e19219f user: drh tags: trunk | |
21:08 | Attempt to add a separate JS file and source it just prior to </body> check-in: 487aa43f42 user: drh tags: main.js | |
20:39 | Add the "fossil sqlar" command. Like "fossil zip", except generates sqlar archives. check-in: 7eb5b0a2ae user: dan tags: trunk | |
17:00 | Remove some stale ".timelineSpacer" CSS selectors. check-in: 5c0238b3a3 user: drh tags: trunk | |
Changes to src/codecheck1.c.
︙ | |||
310 311 312 313 314 315 316 317 318 319 320 321 322 323 | 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | + | unsigned fmtFlags; /* Processing flags */ } aFmtFunc[] = { { "admin_log", 1, 0 }, { "blob_append_sql", 2, FMT_NO_S }, { "blob_appendf", 2, 0 }, { "cgi_panic", 1, 0 }, { "cgi_redirectf", 1, 0 }, { "chref", 2, 0 }, { "db_blob", 2, FMT_NO_S }, { "db_double", 2, FMT_NO_S }, { "db_err", 1, 0 }, { "db_exists", 1, FMT_NO_S }, { "db_int", 2, FMT_NO_S }, { "db_int64", 2, FMT_NO_S }, { "db_multi_exec", 1, FMT_NO_S }, |
︙ |
Changes to src/info.c.
︙ | |||
796 797 798 799 800 801 802 | 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 | - + - + - + - + - + - + - + - + - + | verboseFlag = !verboseFlag; zPage = "ci"; zPageHide = "vinfo"; } diffFlags = construct_diff_flags(verboseFlag, sideBySide); zW = (diffFlags&DIFF_IGNORE_ALLWS)?"&w":""; if( verboseFlag ){ |
︙ |
Added src/main.js.
|
Changes to src/main.mk.
︙ | |||
192 193 194 195 196 197 198 199 200 201 202 203 204 205 | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | + | $(SRCDIR)/../skins/rounded1/footer.txt \ $(SRCDIR)/../skins/rounded1/header.txt \ $(SRCDIR)/../skins/xekri/css.txt \ $(SRCDIR)/../skins/xekri/details.txt \ $(SRCDIR)/../skins/xekri/footer.txt \ $(SRCDIR)/../skins/xekri/header.txt \ $(SRCDIR)/diff.tcl \ $(SRCDIR)/main.js \ $(SRCDIR)/markdown.md \ $(SRCDIR)/wiki.wiki TRANS_SRC = \ $(OBJDIR)/add_.c \ $(OBJDIR)/allrepo_.c \ $(OBJDIR)/attach_.c \ |
︙ |
Changes to src/makemake.tcl.
︙ | |||
158 159 160 161 162 163 164 165 166 167 168 169 170 171 | 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | + | # Additional resource files that get built into the executable. # set extra_files { diff.tcl markdown.md wiki.wiki main.js ../skins/*/*.txt } # Options used to compile the included SQLite library. # set SQLITE_OPTIONS { -DNDEBUG=1 |
︙ |
Changes to src/style.c.
︙ | |||
82 83 84 85 86 87 88 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | - - - - - - - - - - | /* ** Ad-unit styles. */ static unsigned adUnitFlags = 0; |
︙ | |||
124 125 126 127 128 129 130 | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | + + - - + + + - - + + - - - - + + + + + + + + + + + + + + - - - - - - + + - - - - - + - - - + - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - | ** ** @ %z(href("%R/artifact/%s",zUuid))%h(zFN)</a> ** ** Note %z format. The string returned by this function is always ** obtained from fossil_malloc() so rendering it with %z will reclaim ** that memory space. ** ** There are three versions of this routine: ** |
︙ | |||
421 422 423 424 425 426 427 428 | 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | + + - - - - + + + + | ** header template lacks a <body> tag, then all of the following is ** prepended. */ static char zDfltHeader[] = @ <html> @ <head> @ <base href="$baseurl/$current_page" /> @ <meta http-equiv="Content-Security-Policy-xxx" \ @ content="default-src 'self' 'unsafe-inline'" /> @ <title>$<project_name>: $<title></title> |
︙ | |||
554 555 556 557 558 559 560 561 562 563 564 565 566 567 | 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 | + | /* ** Draw the footer at the bottom of the page. */ void style_footer(void){ const char *zFooter; const char *zAd = 0; unsigned int mAdFlags = 0; int bMouseover = 0; /* Active hyperlinks after mouseover */ if( !headerHasBeenGenerated ) return; /* Go back and put the submenu at the top of the page. We delay the ** creation of the submenu until the end so that we can add elements ** to the submenu while generating page text. */ |
︙ | |||
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 | 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 | + + + + + + + + + + + + + + + + + + + + + + + + + - + + | ** the additional clear/both is needed to extend the content ** part to the end of an optional sidebox. */ @ <div class="endContent"></div> } @ </div> #if 0 /* Set the href= field on hyperlinks. Do this before the footer since ** the footer will be generating </html> */ style_resolve_href(); #endif /* Load up the page data */ @ <script id='page-data' type='application/json'> if( !g.javascriptHyperlink ){ @ {"antibot":{"enable":0}, }else{ int nDelay = db_get_int("auto-hyperlink-delay",0); int bMouseover; bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0)) && db_get_boolean("auto-hyperlink-mouseover",0); @ {"antibot": @ {"enable":1, @ "delay":%d(nDelay), @ "mouseover":%d(bMouseover)}, } @ "noop":0} @ </script> zFooter = skin_get("footer"); if( sqlite3_strlike("%</body>%", zFooter, 0)==0 ){ @ <script src='%s(g.zBaseURL)/main.js' type='application/javascript'>\ } if( g.thTrace ) Th_Trace("BEGIN_FOOTER<br />\n", -1); Th_Render(zFooter); if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1); /* Render trace log if TH1 tracing is enabled. */ if( g.thTrace ){ cgi_append_content("<span class=\"thTrace\"><hr />\n", -1); cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog)); cgi_append_content("</span>\n", -1); } /* Add document end mark if it was not in the footer */ if( sqlite3_strlike("%</body>%", zFooter, 0)!=0 ){ @ <script src='%s(g.zBaseURL)/main.js' type='application/javascript'>\ @ </script> |
︙ | |||
856 857 858 859 860 861 862 863 864 865 866 867 868 869 | 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 | + + + + + + + + + + + + + | image_url_var("logo"); image_url_var("background"); Th_Render(blob_str(&css)); /* Tell CGI that the content returned by this page is considered cacheable */ g.isConst = 1; } /* ** WEBPAGE: main.js ** ** Return the javascript */ void page_main_js(void){ Blob mainjs; cgi_set_content_type("application/javascript"); blob_init(&mainjs, builtin_text("main.js"), -1); cgi_set_content(&mainjs); } /* ** WEBPAGE: test_env ** ** Display CGI-variables and other aspects of the run-time ** environment, for debugging and trouble-shooting purposes. */ |
︙ |
Changes to src/tag.c.
︙ | |||
667 668 669 670 671 672 673 | 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 | - + | " AND tagname GLOB 'sym-*'" " ORDER BY tagname" ); @ <ul> while( db_step(&q)==SQLITE_ROW ){ const char *zName = db_column_text(&q, 0); if( g.perm.Hyperlink ){ |
︙ |
Changes to src/timeline.c.
︙ | |||
48 49 50 51 52 53 54 | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - + | } /* ** Generate a hyperlink to a version. */ void hyperlink_to_uuid(const char *zUuid){ if( g.perm.Hyperlink ){ |
︙ | |||
385 386 387 388 389 390 391 | 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 | - + | if( zType[0]=='e' && tagid ){ char *zId; zId = db_text(0, "SELECT substr(tagname, 7) FROM tag WHERE tagid=%d", tagid); zDateLink = href("%R/technote/%s",zId); free(zId); }else if( zUuid ){ |
︙ | |||
2293 2294 2295 2296 2297 2298 2299 | 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 | - + - + | /* Report any errors. */ if( zError ){ @ <p class="generalError">%h(zError)</p> } if( zNewerButton ){ |
︙ |
Changes to win/Makefile.mingw.
︙ | |||
601 602 603 604 605 606 607 608 609 610 611 612 613 614 | 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 | + | $(SRCDIR)/../skins/rounded1/footer.txt \ $(SRCDIR)/../skins/rounded1/header.txt \ $(SRCDIR)/../skins/xekri/css.txt \ $(SRCDIR)/../skins/xekri/details.txt \ $(SRCDIR)/../skins/xekri/footer.txt \ $(SRCDIR)/../skins/xekri/header.txt \ $(SRCDIR)/diff.tcl \ $(SRCDIR)/main.js \ $(SRCDIR)/markdown.md \ $(SRCDIR)/wiki.wiki TRANS_SRC = \ $(OBJDIR)/add_.c \ $(OBJDIR)/allrepo_.c \ $(OBJDIR)/attach_.c \ |
︙ |
Changes to win/Makefile.msc.
︙ | |||
527 528 529 530 531 532 533 534 535 536 537 538 539 540 | 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 | + | $(SRCDIR)\../skins/rounded1/footer.txt \ $(SRCDIR)\../skins/rounded1/header.txt \ $(SRCDIR)\../skins/xekri/css.txt \ $(SRCDIR)\../skins/xekri/details.txt \ $(SRCDIR)\../skins/xekri/footer.txt \ $(SRCDIR)\../skins/xekri/header.txt \ $(SRCDIR)\diff.tcl \ $(SRCDIR)\main.js \ $(SRCDIR)\markdown.md \ $(SRCDIR)\wiki.wiki OBJ = $(OX)\add$O \ $(OX)\allrepo$O \ $(OX)\attach$O \ $(OX)\bag$O \ |
︙ |