Merge pull request #15056 from overleaf/td-ide-connection-load

IDE page: connection manager and loading screen

GitOrigin-RevId: 2cbc8c09aeb36a14eae66da78b267c7a830fb71a
This commit is contained in:
Tim Down
2023-10-17 08:03:13 +00:00
committed by Copybot
parent 22531969f6
commit 719da5fbd8
19 changed files with 672 additions and 37 deletions
@@ -0,0 +1,6 @@
export function secondsUntil(timestamp: number | null) {
if (!timestamp) return 0
const seconds = Math.ceil((timestamp - performance.now()) / 1000)
if (seconds > 0) return seconds
return 0
}