• xtrn/ddfilelister/ddfilelister.cfg ddfilelister.js defaultTheme.cfg re

    From Eric Oulashin@VERT to Git commit to main/sbbs/master on Sun Feb 6 15:01:02 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f3925de4b0bb4e414d03d980
    Added Files:
    xtrn/ddfilelister/ddfilelister.cfg ddfilelister.js defaultTheme.cfg readme.txt revision_history.txt
    Modified Files:
    exec/load/dd_lightbar_menu.js
    Log Message:
    Created a file lister (in JS) that lists files in the user's current file directory with a lightbar interface, as well as message windows etc.

    If the user does not have an ANSI terminal, this lister will run Synchronet's stock file lister interface.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Feb 6 15:01:02 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/9e8dbe4e12bac5d55f48918c
    Added Files:
    xtrn/ddfilelister/ddfilelister.cfg ddfilelister.js defaultTheme.cfg readme.txt revision_history.txt
    Modified Files:
    exec/load/dd_lightbar_menu.js
    Log Message:
    Merge branch 'dd_file_lister_new' into 'master'

    Created a file lister (in JS) that lists files in the user's current file directory

    See merge request main/sbbs!135

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to Eric Oulashin on Mon Feb 7 01:31:54 2022
    El 6/2/22 a las 20:01, Eric Oulashin escribió:
    https://gitlab.synchro.net/main/sbbs/-/commit/f3925de4b0bb4e414d03d980
    Added Files:
    xtrn/ddfilelister/ddfilelister.cfg ddfilelister.js defaultTheme.cfg readme.txt revision_history.txt
    Modified Files:
    exec/load/dd_lightbar_menu.js
    Log Message:
    Created a file lister (in JS) that lists files in the user's current file directory with a lightbar interface, as well as message windows etc.

    If the user does not have an ANSI terminal, this lister will run Synchronet's stock file lister interface.
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net

    Error when file description is empty:

    JavaScript ddfilelister.js line 452: TypeError: fileDesc is undefined

    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Ragnarok@VERT/DOCKSUD to Eric Oulashin on Mon Feb 7 01:39:01 2022
    El 6/2/22 a las 20:01, Eric Oulashin escribió:
    https://gitlab.synchro.net/main/sbbs/-/commit/f3925de4b0bb4e414d03d980
    Added Files:
    xtrn/ddfilelister/ddfilelister.cfg ddfilelister.js defaultTheme.cfg readme.txt revision_history.txt
    Modified Files:
    exec/load/dd_lightbar_menu.js
    Log Message:
    Created a file lister (in JS) that lists files in the user's current file directory with a lightbar interface, as well as message windows etc.

    If the user does not have an ANSI terminal, this lister will run Synchronet's stock file lister interface.
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net

    hi Eric! cool lister! i found some little issues:

    viewfile action don't screen pause and the content get out off screen

    if you use V or B shortcuts, then move left or tight arrows, the
    selected item still selected at firt menu "Info"

    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Nightfox@VERT/DIGDIST to Ragnarok on Mon Feb 7 08:59:39 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:31 am

    Error when file description is empty:

    JavaScript ddfilelister.js line 452: TypeError: fileDesc is undefined

    I hadn't sdeen that error, but I have an idea for a fix.

    Digital Man: This is a case where I got a metadata object for a file with extended information. Is it possible for either extdesc or desc or extdesc to not be included with a metadata object?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Ragnarok on Mon Feb 7 10:21:06 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:39 am

    hi Eric! cool lister! i found some little issues:

    viewfile action don't screen pause and the content get out off screen

    Can you elaborate? Does this happen when viewing text files, zip files, or other types of files? When you view a file, it calls Synchronet's view file action, so Synchronet should run whatever file viewer you have set up in Synchronet. Currently I have my own file viewer set up, so my setup might be different from yours.

    if you use V or B shortcuts, then move left or tight arrows, the
    selected item still selected at firt menu "Info"

    Thanks, I'll have a look.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Mon Feb 7 11:27:33 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cf
    By: Nightfox to Ragnarok on Mon Feb 07 2022 08:59 am

    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:31 am

    Error when file description is empty:

    JavaScript ddfilelister.js line 452: TypeError: fileDesc is undefined

    I hadn't sdeen that error, but I have an idea for a fix.

    Digital Man: This is a case where I got a metadata object for a file with extended information. Is it possible for either extdesc or desc or extdesc to not be included with a metadata object?

    Yes, if either of those descriptions don't exist, they won't be populated as properties *unless* you use FileBase.DETAIL.MAX as the detail level in your calls to the FileBase methods.
    --
    digital man (rob)

    Synchronet "Real Fact" #65:
    Synchronet can dynamically compress and uncompress message bases (using LZH) Norco, CA WX: 74.6øF, 13.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Ragnarok on Mon Feb 7 11:33:14 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:31 am

    Error when file description is empty:

    JavaScript ddfilelister.js line 452: TypeError: fileDesc is undefined

    I've made a fix that should hopefully fix this. When my fix is merged, try getting the new version.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Ragnarok on Mon Feb 7 11:33:59 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:39 am

    if you use V or B shortcuts, then move left or tight arrows, the
    selected item still selected at firt menu "Info"

    My fix should fix this too. When it gets merged ,try the new version.

    I'm still curious about the file view issue you mentioned.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Ragnarok@VERT/DOCKSUD to Nightfox on Mon Feb 7 16:58:26 2022
    El 7/2/22 a las 15:21, Nightfox escribió:
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:39 am

    Ra> hi Eric! cool lister! i found some little issues:

    Ra> viewfile action don't screen pause and the content get out off screen

    Can you elaborate? Does this happen when viewing text files, zip files, or other types of files? When you view a file, it calls Synchronet's view file action, so Synchronet should run whatever file viewer you have set up in Synchronet. Currently I have my own file viewer set up, so my setup might be different from yours.

    the zip extension viewer have config as:

    unzip -lq %s

    I took a video capture:

    http://downloads.bbs.docksud.com.ar/tmp/dsfilelister.mp4

    Thanks!

    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Mon Feb 7 12:25:21 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cf
    By: Ragnarok to Nightfox on Mon Feb 07 2022 04:58 pm

    El 7/2/22 a las 15:21, Nightfox escribi¢:
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:39 am

    Ra> hi Eric! cool lister! i found some little issues:

    Ra> viewfile action don't screen pause and the content get out off screen

    Can you elaborate? Does this happen when viewing text files, zip files, or other types of files? When you view a file, it calls Synchronet's view file action, so Synchronet should run whatever file viewer you have set up in Synchronet. Currently I have my own file viewer set up, so my setup might be different from yours.

    the zip extension viewer have config as:

    unzip -lq %s

    I took a video capture:

    http://downloads.bbs.docksud.com.ar/tmp/dsfilelister.mp4

    You may way to consider using archive.js instead:

    run 'jsexec archive install' and remove your "zip extension viewer" that calls unzip.
    --
    digital man (rob)

    This Is Spinal Tap quote #17:
    David St. Hubbins: It's such a fine line between stupid, and uh... and clever. Norco, CA WX: 75.6øF, 13.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to Nightfox on Mon Feb 7 17:31:13 2022
    El 7/2/22 a las 16:33, Nightfox escribió:
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cfg
    By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:39 am

    Ra> if you use V or B shortcuts, then move left or tight arrows, the
    Ra> selected item still selected at firt menu "Info"

    My fix should fix this too. When it gets merged ,try the new version.

    I'm still curious about the file view issue you mentioned.

    Nightfox

    i will check your fix asap

    i have my own "file lister", to view file i was use this:


    bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, file, FL_VIEW);


    and the content view of file working as expected

    i will switch to new FileBase code to test too

    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Ragnarok@VERT/DOCKSUD to Ragnarok on Mon Feb 7 17:46:52 2022
    El 7/2/22 a las 17:31, Ragnarok escribió:
    El 7/2/22 a las 16:33, Nightfox escribió:
       Re: Re: xtrn/ddfilelister/ddfilelister.cfg
    ddfilelister.jsdefaultTheme.cfg
       By: Ragnarok to Eric Oulashin on Mon Feb 07 2022 01:39 am

      Ra> if you use V or B shortcuts, then move left or tight arrows, the
      Ra> selected item still selected at firt menu "Info"

    My fix should fix this too.  When it gets merged ,try the new version.

    I'm still curious about the file view issue you mentioned.

    Nightfox

    i will check your fix asap

    i have my own "file lister", to view file i was use this:


    bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, file, FL_VIEW);


    and the content view of file working as expected

    i will switch to new FileBase code to test too

    just for test

    function view_file(file) {

    console.clear();

    //bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, file, FL_VIEW);

    code = file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].code
    var fb = new FileBase(code);
    fb.open();
    path = fb.get_path(file);
    bbs.view_file(path);
    console.pause();

    }

    I replace my code from bbs.list() ti bbs_view_file()

    I had to add a console.pause() at the end to be able to see the content

    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Nightfox@VERT/DIGDIST to Ragnarok on Mon Feb 7 18:52:05 2022
    Re: Re: xtrn/ddfilelister/ddfilelister.cfg ddfilelister.jsdefaultTheme.cf
    By: Ragnarok to Nightfox on Mon Feb 07 2022 04:58 pm

    unzip -lq %s

    I took a video capture:

    http://downloads.bbs.docksud.com.ar/tmp/dsfilelister.mp4

    I've added an option to pause after viewing a file (which defaults to true) and have pushed up a branch with the change. Please try downloading ddfilelister.js from here (ddfilelister.cfg also has an option to toggle it):

    https://bit.ly/3J8UVzo

    Full link:

    https://gitlab.synchro.net/main/sbbs/-/tree/dd_file_lister_view_file_pause/xtrn /ddfilelister

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com