Gigantic Update

* Migrated manual tests to jest and started working on better coverage
* Added a bookmarklet and push key generation tool allowing URL pushing from bookmarklets
* Updated web scraping with tons of bug fixes
* Updated attachments page to handle new push links
* Aggressive note change checking, if patches get out of sync, server overwrites bad updates.
This commit is contained in:
Max committed 2023-10-17 19:46:14 +00:00
1 parent b5ef64485f
commit 276a72b4ce
25 files changed
+7442 -245

No files matched your search

+3 -12
View File
@@ -35,11 +35,6 @@ router.post('/textsearch', function (req, res) {
.then( data => res.send(data) )
})
router.post('/get', function (req, res) {
Attachment.forNote(userId, req.body.noteId)
.then( data => res.send(data) )
})
router.post('/update', function (req, res) {
Attachment.update(userId, req.body.attachmentId, req.body.updatedText, req.body.noteId)
.then( result => {
@@ -67,12 +62,13 @@ router.post('/upload', upload.single('file'), function (req, res, next) {
//
// Push URL to attachments
// push action on - public controller
//
// get push key
router.get('/getpushkey', function (req, res) {
router.post('/getbookmarklet', function (req, res) {
Attachment.delete(userId, req.body.attachmentId)
Attachment.getPushkeyBookmarklet(userId)
.then( data => res.send(data) )
})
@@ -86,9 +82,4 @@ router.post('/deletepushkey', function (req, res) {
})
// push url to attchments
router.get('/pushurl', function (req, res) {
})
module.exports = router