mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00

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>
27 lines
1 KiB
TypeScript
27 lines
1 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import type { ApplicationState } from './application-state'
|
|
import { ConfigReducer } from './config/reducers'
|
|
import { DarkModeConfigReducer } from './dark-mode/reducers'
|
|
import { EditorConfigReducer } from './editor/reducers'
|
|
import { HistoryReducer } from './history/reducers'
|
|
import { NoteDetailsReducer } from './note-details/reducer'
|
|
import { RealtimeStatusReducer } from './realtime/reducers'
|
|
import { RendererStatusReducer } from './renderer-status/reducers'
|
|
import { UserReducer } from './user/reducers'
|
|
import type { Reducer } from 'redux'
|
|
import { combineReducers } from 'redux'
|
|
|
|
export const allReducers: Reducer<ApplicationState> = combineReducers<ApplicationState>({
|
|
user: UserReducer,
|
|
config: ConfigReducer,
|
|
history: HistoryReducer,
|
|
editorConfig: EditorConfigReducer,
|
|
darkMode: DarkModeConfigReducer,
|
|
noteDetails: NoteDetailsReducer,
|
|
rendererStatus: RendererStatusReducer,
|
|
realtimeStatus: RealtimeStatusReducer
|
|
})
|