Doc updates

This commit is contained in:
Bryan Ashby
2022-08-12 19:21:45 -06:00
parent cc788056ea
commit 8552e2dd35
4 changed files with 33 additions and 17 deletions

View File

@@ -145,7 +145,7 @@ Prepares the menu's View Controller for a form of `name` and `formId` using the
* `validateConfigFields()`
### Date/Time Helpers
The following methods take a single input to specify style, defaulting to `short`:
The following methods take a single input to specify style, defaulting to `short`. If your menu or theme `config` block specifies a cooresponding value such as `dateFormat` or `dateTimeFormat`, that value will be used, else standard fallbacks apply:
* `getDateFormat()`
* `getTimeFormat()`
* `getDateTimeFormat()`
@@ -154,7 +154,7 @@ The following methods take a single input to specify style, defaulting to `short
* `promptForInput()`
`standardMCIReadyHandler()`: This is a standard and commonly used `mciReady()` implemenation:
`standardMCIReadyHandler()`: This is a standard and commonly used `mciReady()` implementation:
```javascript
mciReady(mciData, cb) {
@@ -162,6 +162,14 @@ mciReady(mciData, cb) {
}
```
Where `mciData` is a Object mapping [MCI codes](../art/mci.md) such as `TL2` to their properties:
* `SGR`: Graphics rendition
* `focusSGR` (Only present if art contained both, ie: `TL2^[0;mTL2`)
* `position` (Array of Number): Position in [Row, Column] order
* `args` (Array): Any arguments to the MCI code
* `code` (String): The code itself, such as `TL`
* `id` (Number): The MCI code's ID such as `1`
> :information_source: Search the code for the above methods to see how they are used in the base system!

View File

@@ -20,6 +20,12 @@ The system allows any user with the proper security to access the WFC / system o
> :information_source: Due to the above, the WFC screen is **disabled** by default as at a minimum, you'll need to add your user to the `wfc` group. See also [Security](../configuration/security.md) for more information on keeping your system secure!
Adding your user to the `wfc` group:
```bash
# Repalce USERNAME with your leet +op username
./oputil.js user group USERNAME "+wfc"
```
To change the ACS required, specify a alternative `acs` in the `config` block. For example:
```hjson
mainMenuWaitingForCaller: {
@@ -30,6 +36,8 @@ mainMenuWaitingForCaller: {
}
```
> :bulb: You can add additional co-ops by adjust the required ACS.
> :lock: ENiGMA½ will enforce ACS of at least `SC` (secure connection)
## Theming