pad.libre-service.eu-etherpad/src/node
Ray Bellis c8e5d87268 api: simplify version table
This commit vastly shortens (and simplifies) the version table within
handler/APIHandler.js by building each version's entry incrementally based off
the previous version.

The resulting table has been validated by comparing the "before" and "after"
output of the following loop on both versions of the code (albeit with an
intermediate "sort" step to account for the different insertion order)

  for (let v in version) {
    let m = version[v];
    for (let [k, a] of Object.entries(m)) {
      console.log(v, k, a);
    }
  }

The patch also fixes a few typos, and removes a duplicate definition of
getChatHistory which in each applicable version was defined with two different
parameter lists, but where only the second would be used.
2019-01-22 22:51:22 +01:00
..
db db/Pad: reversed truthy condition to make core logic evident 2018-08-29 03:03:34 +02:00
eejs use latest ejs 2015-04-11 09:53:27 +01:00
handler api: simplify version table 2019-01-22 22:51:22 +01:00
hooks padurlsanitize: early return, no functional changes 2018-08-29 01:38:55 +02:00
utils LibreOffice: add debugging log statements 2018-11-01 00:22:27 +01:00
easysync_tests.js Revert "51c14d994756e60333b0b60eccb7255cf0c86461 changed the return value of" 2015-02-16 06:22:49 +01:00
padaccess.js Use the cookie parser middleware 2015-05-07 18:35:21 +01:00
README.md Fix typos 2019-01-16 11:14:04 +01:00
server.js runtime: deprecate Node <= 7. From Etherpad 1.8.0 minimum Node version will be 8 2018-07-28 23:33:24 +02:00
stats.js runtime: polyfill Object.values() 2018-08-15 22:34:05 +02:00

About the folder structure

  • db - all modules that are accessing the data structure and are communicating directly to the database
  • handler - all modules that responds directly to requests/messages of the browser
  • utils - helper modules

Module name conventions

Module file names start with a capital letter and uses camelCase

Where does it start?

server.js is started directly