• exec/webfileindex.ssjs

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, March 31, 2022 19:05:38
    https://gitlab.synchro.net/main/sbbs/-/commit/be0a37c8769539c78534414e
    Added Files:
    exec/webfileindex.ssjs
    Log Message:
    My initial/simple/ugly dynamic web file index generator

    Configured in sbbs.ini [web] by setting:

    FileVpathPrefix = /files/
    FileIndexScript = webfileindex.ssjs

    And optionally (if you want your vhosts to get filebase access):

    FileVPathForVHosts = true

    You can use an .xjs file if you prefer.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, April 03, 2022 19:19:54
    https://gitlab.synchro.net/main/sbbs/-/commit/61e6f5d3c6c6a560ef52eac1
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Change sorting_description from const to var

    Since this script can be reloaded in the same scope.

    Fixes issue #387.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, June 24, 2022 12:49:03
    https://gitlab.synchro.net/main/sbbs/-/commit/187f8f8aaed7a52fdcf2f3ec
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Respond with redir when directory requests are received without trailing slash

    HTTP Directory requests without a trailing slash would "work" (the directory listing would be sent), but the links to files, since they're relative to the current request location, would be incorrect (missing the directory's virtual subdir). So send a 301 response if a client requets a directory without a trailing slash.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, June 25, 2022 17:19:55
    https://gitlab.synchro.net/main/sbbs/-/commit/2bb0ca81c53691275810605f
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Do the redir thing for all requests not ending in /, not just dirs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Monday, September 16, 2024 13:57:39
    https://gitlab.synchro.net/main/sbbs/-/commit/dc1f8759e7d313c532432c15
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Display the file index date-time instead of the file's date-time

    Since sorting works on the file index record date-time (date/time added)
    it was confusing to display dates that didn't always match the sort order.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, December 05, 2024 17:00:15
    https://gitlab.synchro.net/main/sbbs/-/commit/37126d82ef319ffc51fb393b
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Display directory aliases from web_alias.ini as shortcuts on index page

    Other kinds of aliases are supported in web_alias.ini (e.g. libraries, files) but not displaying those here (yet).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, January 22, 2025 23:19:39
    https://gitlab.synchro.net/main/sbbs/-/commit/50d04b24aae59ae24d57d1bf
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Add support for viewing file (images and archive) contents

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, January 22, 2025 23:58:33
    https://gitlab.synchro.net/main/sbbs/-/commit/6d41d290d62dc14fbf6dad09
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Filter out the non-viewable files for the next/prev file buttons

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, January 23, 2025 01:59:25
    https://gitlab.synchro.net/main/sbbs/-/commit/9e039b2006a57b0d8b8ca4cd
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Display file SHA1 (if has one) and date/time in div title (hover text)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, January 23, 2025 02:54:19
    https://gitlab.synchro.net/main/sbbs/-/commit/f0ca1a1846408f01345d0f0d
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Minor beautification

    Indenting lib and dir lists use the ul tag, I'm sure this isn't technically the most correct way to do this, but its providing the cosmetic result I want.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, January 23, 2025 23:32:17
    https://gitlab.synchro.net/main/sbbs/-/commit/65f79e9c747589dc1a4ab53e
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Cosmetic improvements using Unicode characters as icons

    (file cabinets, folders)

    Bold the directory/library names and other markup improvements.

    Expand viewable types to more readable archive types supported by libarchive (many more than the list in Archive.supported_formats).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, February 05, 2025 18:44:18
    https://gitlab.synchro.net/main/sbbs/-/commit/c830577e0aab9ef087aedce7
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Handle files where the 'added' property is 0 or undefined

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, February 20, 2025 20:29:35
    https://gitlab.synchro.net/main/sbbs/-/commit/936351241814cec19ee5e95a
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Fix links to filenames with spaces

    View images in a smaller viewport (I'm no CSS expert here, obviously)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, June 18, 2025 18:01:15
    https://gitlab.synchro.net/main/sbbs/-/commit/a4c1f9084748d37822c3fd99
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Fix viewing file contents broken in last commit of this file

    Need to remove the quotes that were added to all files as of 3 months ago
    in commit 936351241814cec19ee5e95aca029887b4b119b7

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net