summaryrefslogtreecommitdiff
path: root/lib/realtime.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-15Linter: Fix all lint errorsPhilip Molares1-121/+124
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-10-03remove unused variable to pass ci testing - #58Amolith1-1/+0
Signed-off-by: Amolith <amolith@nixnet.xyz>
2019-10-03remove legacy code to solve #58Amolith1-10/+0
Signed-off-by: Amolith <amolith@nixnet.xyz>
2019-06-08Rework debug loggingSheogorath1-16/+14
We have various places with overly simple if statements that could be handled by our logging library. Also a lot of those logs are not marked as debug logs but as info logs, which can cause confusion during debugging. This patch removed unneeded if clauses around debug logging statements, reworks debug log messages towards ECMA templates and add some new logging statements which might be helpful in order to debug things like image uploads. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-14switching to eslint for code checkingClaudius Coenen1-1/+2
most rules degraded to WARN, so we don't go insane. This will change over time. The aim is to conform to a common style Signed-off-by: Claudius Coenen <opensource@amenthes.de>
2018-11-11Add full version stringSheogorath1-1/+1
Currently we only provide the version from `package.json`. This means that during updates of instances, e.g. the demo instance, which runs latest master instead of a stable release, changes are not reflected to the webclient. This patch adds a fullversion string that contains the current commit and this way makes that clients are notified about changes. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-25Fix requests for deleted usersSheogorath1-5/+7
When users are requested from the authorship which no longer exist, they shouldn't cause a 500. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-10Fix typos for `allowAnonymousEdits`Sheogorath1-1/+1
Looks like we lost some variables during the refactoring of the configs to camel case. This should fix it. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-25Change config to camel case with backwards compatibilitySheogorath1-6/+6
This refactors the configs a bit to now use camel case everywhere. This change should help to clean up the config interface and make it better understandable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-26Remove and replace all note id compression in LZString with base64urlMax Wu1-2/+1
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-05don't require referer to find note id in socket.io connections (fixes #623)Stefan Bühler1-6/+14
Signed-off-by: Stefan Bühler <buehler@cert.uni-stuttgart.de>
2018-01-20Add option to enable `freely` permission in closed instanceDario Ernst1-1/+1
Before, closed disallowed guest edits completely, by removing the `freely` permission. This makes it possible to explicitely bring back guest-editing, but not guest-note-creation, to closed instances. Signed-off-by: Dario Ernst <dario@kanojo.de>
2018-01-16Fix minor typosMax Wu1-3/+3
of wrong parameters passing order and wrong user object indexing in for each function
2017-05-08refactor(config.js): Extract config fileBoHong Li1-2/+3
* Separate different config source to each files * Freeze config object
2017-05-08refactor: Remove `require` extension filenameBoHong Li1-4/+4
2017-03-14Use strict mode in all backend filesBoHong Li1-0/+1
add ‘use strict’ in all backend file
2017-03-08Use JavaScript Standard StyleBoHong Li1-859/+846
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
2017-02-03Update realtime to use timer to avoid memory leaks on busy tickWu Cheng-Han1-5/+11
2017-02-03Update to remove history cache to lower application couplingWu Cheng-Han1-11/+14
2017-01-16Refactor checkViewPermission to fix limited & protected permission check bug ↵Wu Cheng-Han1-20/+28
and fix code style
2017-01-12Fix for limited and protected permissions should forbid guest in realtime eventsWu Cheng-Han1-2/+2
2017-01-12Fix author creation in operationCallback might cause unique constraint ↵Wu Cheng-Han1-11/+19
validation error
2017-01-10Fix syntax when use case蒼時弦也1-1/+1
2017-01-10Add limited and protected permission蒼時弦也1-10/+10
2017-01-02Remove LZString compression for data storageWu Cheng-Han1-6/+4
2017-01-02Remove manual LZString compression for partial socket io event dataWu Cheng-Han1-4/+0
2016-12-21Fixed typo: anonmyousFlorian Rhiem1-2/+2
2016-12-20Fix possible user is undefined in realtime eventsWu Cheng-Han1-17/+26
2016-12-18Try to fix when server have heavy loading cache might not update to db properlyWu Cheng-Han1-1/+1
2016-12-15Add support of allow anonymous config option with correspond modificationsWu Cheng-Han1-0/+1
2016-12-02Update to support optional email register and signinWu Cheng-Han1-5/+5
2016-11-16Revert "Add workers for notes to leverage CPU intensive work loading"Wu Cheng-Han1-71/+90
This reverts commit 4ccfdfa538d2fd7e9ee63e937435a7f6fc622c12.
2016-11-07Add workers for notes to leverage CPU intensive work loadingWu Cheng-Han1-90/+71
2016-10-14Fix socket disconnect might interrupt loop issueWu Cheng-Han1-3/+9
2016-10-12Fix to handle undefined document on update historyWu Cheng-Han1-2/+2
2016-10-10Try to fix memory leaks by clear OT server before disconnect noteWu Cheng-Han1-0/+3
2016-10-10Update to support delete noteWu Cheng-Han1-0/+29
2016-10-10Update to send note title on emit check and refresh eventWu Cheng-Han1-1/+4
2016-10-10Update to make note history count in server-side when user loggedWu Cheng-Han1-0/+14
2016-10-10Add more comments in the code and remove unused code fileWu Cheng-Han1-0/+3
2016-10-10Update to prevent duplicate socket push in queue in order to lower down ↵Wu Cheng-Han1-0/+12
server loading
2016-10-10Update to move authorship calculation code to note model and support update ↵Wu Cheng-Han1-100/+1
authorship after making revision of docs
2016-09-18Update to add revision saving policyWu Cheng-Han1-2/+2
2016-08-15Update to change the last change user saving strategyWu Cheng-Han1-2/+2
2016-08-02Update realtime check and refresh event, compress data using LZString UTF16 ↵Wu Cheng-Han1-2/+5
to minimize network delay
2016-07-30Update to make random color more discreteWu Cheng-Han1-7/+3
2016-07-30Fix user color is not following the author colorWu Cheng-Han1-0/+4
2016-07-30Add support of showing authorship in editor and adjust related stylesWu Cheng-Han1-1/+5
2016-07-30Add support of saving authors and authorshipWu Cheng-Han1-2/+154
2016-07-30Fix realtime on forbidden not clean up properly and handle on updating note ↵Wu Cheng-Han1-9/+18
which already been clean up