pad.pub0.org/src/node
John McLear ce83181ac3
Lgtm bugfixes (#4838)
* code tidy up: always evaluates

* tidy up: is always true

* tidy up: remove unused code

* always true/false variables

* unused variable

* tidy up: remove unused code in caretPosition.js

* for squash: Revert "tidy up: remove unused code in caretPosition.js"

The `if` condition was previously always true, so the body should be
preserved. If the body is preserved, other logic can be deleted. I
opened PR #4845 to clean it all up.

This reverts commit 75b03e5a7d.

* for squash: simplify

* for squash: Explain that the getter is used for its side effects

It's very weird to call a getter without using its return value. Add a
comment explaining why this is done so that the reader doesn't get
confused.

* for squash: Revert "tidy up: remove unused code"

The exception test was the purpose of the code.

This reverts commit 85153b1676.

* for squash: Log the tsort results

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
2021-02-22 08:26:35 +00:00
..
db Lgtm bugfixes (#4838) 2021-02-22 08:26:35 +00:00
eejs lint: eejs/index.js 2021-02-21 21:06:38 -05:00
handler lint: SocketIORouter.js 2021-02-21 21:06:38 -05:00
hooks lint: i18n.js 2021-02-21 21:09:02 -05:00
utils Lgtm bugfixes (#4838) 2021-02-22 08:26:35 +00:00
README.md minor typo fix 2019-08-08 21:58:30 +02:00
easysync_tests.js lint: src/node/easysync_tests.js 2021-01-25 22:53:10 -05:00
padaccess.js lint: padaccess.js 2021-02-21 21:09:02 -05:00
server.js plugins: Use `npm` CLI to install/uninstall plugins 2021-02-18 19:18:59 +00:00
stats.js lint: Fix some straightforward ESLint errors 2020-12-23 16:18:28 -05:00

README.md

About the folder structure

  • db - all modules that are accessing the data structure and are communicating directly to the database
  • handler - all modules that respond 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