mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-09 13:51:57 -04:00
refactor: reimplement realtime-communication
This commit refactors a lot of things that are not easy to separate. It replaces the binary protocol of y-protocols with json. It introduces event based message processing. It implements our own code mirror plugins for synchronisation of content and remote cursors Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
67cf1432b2
commit
3a06f84af1
110 changed files with 3920 additions and 2201 deletions
|
@ -6,6 +6,7 @@
|
|||
import { NoteLoadingBoundary } from '../../components/common/note-loading-boundary/note-loading-boundary'
|
||||
import { EditorPageContent } from '../../components/editor-page/editor-page-content'
|
||||
import { EditorToRendererCommunicatorContextProvider } from '../../components/editor-page/render-context/editor-to-renderer-communicator-context-provider'
|
||||
import { ResetRealtimeStateBoundary } from '../../components/editor-page/reset-realtime-state-boundary'
|
||||
import type { NextPage } from 'next'
|
||||
import React from 'react'
|
||||
|
||||
|
@ -14,11 +15,13 @@ import React from 'react'
|
|||
*/
|
||||
export const EditorPage: NextPage = () => {
|
||||
return (
|
||||
<NoteLoadingBoundary>
|
||||
<EditorToRendererCommunicatorContextProvider>
|
||||
<EditorPageContent />
|
||||
</EditorToRendererCommunicatorContextProvider>
|
||||
</NoteLoadingBoundary>
|
||||
<ResetRealtimeStateBoundary>
|
||||
<NoteLoadingBoundary>
|
||||
<EditorToRendererCommunicatorContextProvider>
|
||||
<EditorPageContent />
|
||||
</EditorToRendererCommunicatorContextProvider>
|
||||
</NoteLoadingBoundary>
|
||||
</ResetRealtimeStateBoundary>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue