mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-23 07:40:55 +01:00
c8e5d87268
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. |
||
---|---|---|
.. | ||
db | ||
eejs | ||
handler | ||
hooks | ||
utils | ||
easysync_tests.js | ||
padaccess.js | ||
README.md | ||
server.js | ||
stats.js |
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