• webv4/lib/pages.js

    From echicken to Git commit to sbbs/master on Mon Sep 28 19:40:27 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/f1606a940708ca56e3e2381c
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    Allow for a mods/pages directory.

    If a page is found in both pages/ and mods/pages/, the
    version from mods/pages/ will be used.

    When matching files, the numeric ordering prefix is ignored;
    this means that eg. mods/pages/666-home.xjs will override
    pages/000-home.xjs.

    If a page is found in mods/pages/ which does not have a
    counterpart in pages/, it will be listed and available. (This
    makes mods/pages/ a good place for you to put custom content.)

    If a subdirectory with the same name is found in both pages/ and
    mods/pages/, the contents of those subdirectories will be handled
    according to the above rules.

    If you're using webctrl.ini, you'll need to put a copy in the
    same subdirectory of mods where your custom page lives, with an
    entry relevant to that file. (I think.)

    Still needs a bunch of testing.
  • From echicken to Git commit to sbbs/master on Mon Sep 28 19:40:27 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/7b130f8f05a13aa39959a300
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    Sort the merged page list.
  • From echicken to Git commit to sbbs/master on Mon Sep 28 19:40:27 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/cf3a9e1b0f7ec4e52838f366
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    _getPageList returns an array now.
  • From echicken to Git commit to sbbs/master on Mon Sep 28 19:40:27 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/912b6ece45754d62438c1b0d
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    Make pagelist sort a little less ugly.
  • From echicken to Git commit to sbbs/master on Fri Oct 23 20:07:41 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/d8542bfcab4217e9f2bb0bfe
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    When using filename as page name, strip ordering prefix and ext.
  • From Rob Swindell to Git commit to main/sbbs/master on Sat Jan 23 15:51:06 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/34cf114ab3a3f841e9296f07
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    Eliminate "_file is undefined" error.

    Not sure the cause, but this change stops the error-machine:

    Jan 23 15:03:43 cvs sbbs: web 0120 Request: GET /?page=001-forum.ssjs+AND+1+%3D+1&sub=mystic+AND+1+%3D+1&thread=4809+AND+1+%3D+1 HTTP/1.1
    Jan 23 15:03:43 cvs sbbs: web 0120 HTTP Logon (user #0)
    Jan 23 15:03:43 cvs sbbs: web 0120 Internal Redirect to: GET /index.xjs HTTP/1.1
    Jan 23 15:03:43 cvs sbbs: web 0120 Handling Internal Redirect to: GET /index.xjs HTTP/1.1
    Jan 23 15:03:43 cvs sbbs: web 0120 Adding query value page=001-forum.ssjs AND 1 = 1 at pos 0
    Jan 23 15:03:43 cvs sbbs: web 0120 Adding query value sub=mystic AND 1 = 1 at pos 0
    Jan 23 15:03:43 cvs sbbs: web 0120 Adding query value thread=4809 AND 1 = 1 at pos 0
    Jan 23 15:03:43 cvs sbbs: web 0120 JavaScript: Compiling script: /sbbs/exec/xjs_handler.js
    Jan 23 15:03:43 cvs sbbs: web 0120 JavaScript: Executing script: /sbbs/exec/xjs_handler.js
    Jan 23 15:03:43 cvs sbbs: web 0120 HTTP Logon (user #4)
    Jan 23 15:03:43 cvs sbbs: web 0120 !JavaScript /share/sbbs/webv4/lib/pages.js line 42: TypeError: _file is undefined, Request: /index.xjs
  • From echicken to Git commit to main/sbbs/master on Thu Jan 28 19:33:17 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/64c382e35c6ea113591fbbf7
    Modified Files:
    webv4/lib/pages.js
    Log Message:
    Trim whitespace from page control line