pcjs/modules/shared/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeff Parsons 1ca377fb68 Updated MarkOut and HTMLOut components to use embedPC() with the new 'parms' parameter instead of the old 'state' parameter.
This allows us to continue using the Node web server to debug machines that are launched using new YAML-based Markdown machines settings, the most important being 'automount' (otherwise those machines might not be loaded with the correct disks)
2016-01-19 11:49:30 -08:00
..
component.js Changed the last embedPC() parameter from sStateFile to sParms, although for backward compatibility, if sParms is not a JSON object definition (ie, beginning with a brace), it continues to be treated as a state filename. 2016-01-18 16:11:08 -08:00
defines.js Updated Computer constants 2016-01-16 14:37:39 -08:00
diskapi.js Updated Computer constants 2016-01-16 14:37:39 -08:00
dumpapi.js Updated Computer constants 2016-01-16 14:37:39 -08:00
embed.js Updated MarkOut and HTMLOut components to use embedPC() with the new 'parms' parameter instead of the old 'state' parameter. 2016-01-19 11:49:30 -08:00
externs.js Updated Computer constants 2016-01-16 14:37:39 -08:00
netlib.js Updated Computer constants 2016-01-16 14:37:39 -08:00
nodebug.js Updated Computer constants 2016-01-16 14:37:39 -08:00
proclib.js Updated Computer constants 2016-01-16 14:37:39 -08:00
README.md Last of the link fixes (I hope) 2015-07-19 09:07:50 -07:00
reportapi.js Updated Computer constants 2016-01-16 14:37:39 -08:00
sockets.js Updated Computer constants 2016-01-16 14:37:39 -08:00
strlib.js Updated Computer constants 2016-01-16 14:37:39 -08:00
userapi.js Updated Computer constants 2016-01-16 14:37:39 -08:00
usrlib.js Updated Computer constants 2016-01-16 14:37:39 -08:00
weblib.js Updated Computer constants 2016-01-16 14:37:39 -08:00

Shared Sources

This folder contains a mix of shared code, with some files used only by Node (server) modules, some used only by Browser (client) modules, and others used by both.

At the moment, only a few files are completely agnostic; eg: strlib.js and usrlib.js. One give-away is that neither contain references to any globals (although references to each other would be fine).

netlib.js is appropriate only for Node modules, because it contains code that relies on Node's global Buffer object, as indicated by:

/* global Buffer: false */

weblib.js is appropriate only for client modules, because it contains code that relies on the browser's global window object, as indicated by:

/* global window: true */

We declare window modifiable (true) so that defines.js can set global.window to false when running within Node, allowing any other code to test the existence of window with a simple:

if (window) {...}

instead of:

if (typeof window !== "undefined") {...}