overleaf/services/web/frontend/js
Domagoj Kriskovic c931d90f34 Wait for "doc:saved" event before compiling (#16153)
* wait doc:saved before compiling

* Refactor DocumentCompiler class to handle pending operations before compilation

* add timeout for pending op

* Increase PENDING_OP_MAX_WAIT to 10000 milliseconds

* check if currentDoc exists

* check doc id on doc:saved

* Fix conditional statement

* Refactor to add and remove event listeners for doc:saved event

* check if getPendingOp exists

* typeof getPendingOp

* forgot to push updates

* add flush-changes event

* use promise for handling pending operations

* Remove console.logs

* add isAwaitingBufferedOps

* Revert "add isAwaitingBufferedOps"

This reverts commit 56b0bbc13caf6375d1cf50e8f65f599e7263c404.

* move _awaitBufferedOps in try block

* dont check for matching doc id

* add a todo comment

GitOrigin-RevId: 9225e7d1a7a69385dc1a26bf7663f89f59db6a8a
2024-01-16 09:04:05 +00:00
..
directives Remove unused Angular code from "main" and "ide" endpoints (#15868) 2023-12-06 09:04:45 +00:00
features Wait for "doc:saved" event before compiling (#16153) 2024-01-16 09:04:05 +00:00
ide Merge pull request #16397 from overleaf/mj-logparser-missed-error 2024-01-08 09:04:35 +00:00
infrastructure Filter out Angular iteration errors from Sentry reporting (#15751) 2023-11-28 09:04:23 +00:00
main Remove unused Angular code from "main" and "ide" endpoints (#15868) 2023-12-06 09:04:45 +00:00
modules Merge pull request #15129 from overleaf/mj-jpa-angular-parameters 2023-10-16 08:04:25 +00:00
pages Merge pull request #16448 from overleaf/mf-fix-animated-text-singular 2024-01-11 09:05:08 +00:00
services Remove unused Angular code from "main" and "ide" endpoints (#15868) 2023-12-06 09:04:45 +00:00
shared Update the CodeMirror language when the current file is renamed (#16342) 2024-01-15 09:04:27 +00:00
utils Merge pull request #15376 from overleaf/td-ide-page-working-editor 2023-10-27 08:03:07 +00:00
vendor/libs Merge pull request #16184 from overleaf/ae-sharejs-esm 2023-12-15 09:03:35 +00:00
base.js Merge pull request #15383 from overleaf/jpa-remove-unused-angular-deps 2023-10-25 08:04:08 +00:00
cdn-load-test.js
dev-toolbar.js Merge pull request #15808 from overleaf/ab-split-test-dev-toolbar 2023-11-24 09:04:40 +00:00
i18n.js Disable transSupportBasicHtmlNodes in react-i18next config (#15430) 2023-10-31 09:04:04 +00:00
ide-detached.js
ide.js [ide-react] Improve file tree and outline components in the editor sidebar (#16225) 2023-12-18 09:03:53 +00:00
libraries.js Merge pull request #15385 from overleaf/jpa-remove-fetch-polyfill 2023-10-25 08:04:12 +00:00
main.js Remove unused Angular code from "main" and "ide" endpoints (#15868) 2023-12-06 09:04:45 +00:00
marketing.js
tracing.js