From 646d1aac0f141ea177466e7ce568ea021f1b3048 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (in GitKraken)" <rob@synchro.net> Date: Tue, 14 Mar 2023 11:10:21 -0700 Subject: [PATCH] Fix JSDOC property descriptions Add some missing descriptions, fix the order of others. --- src/sbbs3/js_filebase.c | 2 ++ src/sbbs3/js_internal.c | 10 +++++----- src/sbbs3/js_system.c | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/sbbs3/js_filebase.c b/src/sbbs3/js_filebase.c index a7ddb702b5..0900a4c104 100644 --- a/src/sbbs3/js_filebase.c +++ b/src/sbbs3/js_filebase.c @@ -1849,6 +1849,8 @@ static char* filebase_sort_prop_desc[] = { "Filename descending, case sensitive sort order", "Import date/time ascending sort order", "Import date/time descending sort order", + "File size in bytes, ascending sort order", + "File size in bytes, descending sort order", NULL }; #endif diff --git a/src/sbbs3/js_internal.c b/src/sbbs3/js_internal.c index bfe425eb5a..0984a6aef8 100644 --- a/src/sbbs3/js_internal.c +++ b/src/sbbs3/js_internal.c @@ -223,11 +223,6 @@ static char* prop_desc[] = { ,"Option flags - <small>READ ONLY</small>" ,"Do callbacks after script finishes running" /* New properties go here... */ - ,"Full path and filename of JS file executed" - ,"JS filename executed (with no path)" - ,"Directory of executed JS file" - ,"Either the configured startup directory in SCFG (for externals) or the cwd when jsexec is started" - ,"Global scope for this script" ,"load() search path array.<br>For relative load paths (e.g. not beginning with '/' or '\\'), " "the path is assumed to be a sub-directory of the (configurable) mods or exec directories " "and is searched accordingly. " @@ -236,6 +231,11 @@ static char* prop_desc[] = { "exec/load/somefile.js<br>" "mods/somefile.js<br>" "exec/somefile.js<br>" + ,"Full path and filename of JS file executed" + ,"JS filename executed (with no path)" + ,"Directory of executed JS file" + ,"Either the configured startup directory in SCFG (for externals) or the cwd when jsexec is started" + ,"Global scope for this script" ,NULL }; #endif diff --git a/src/sbbs3/js_system.c b/src/sbbs3/js_system.c index 66b44430a0..dfa126d2f2 100644 --- a/src/sbbs3/js_system.c +++ b/src/sbbs3/js_system.c @@ -484,6 +484,7 @@ static char* sys_prop_desc[] = { ,"Operator is available for chat" ,"System QWK-ID (for QWK packets)" ,"Settings bitfield (see <tt>SYS_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)" + ,"Login control settings bitfield (see <tt>LOGIN_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)" ,"Internet address (host or domain name)" ,"Location (city, state)" ,"Timezone (use <i>system.zonestr()</i> to get string representation)" -- GitLab