Data handling for settings in editor left menu react migration (#10470)

- Importing SettingsController from the angular code, which enables post requests for every select menu and socket handler for compiler, texlive version, and main document select option
 - New context for the data handling infrastructure between react and angular. The data is still located in the angular version, and I use the context only as a proxy to fetch/post new data.

GitOrigin-RevId: 59009bceb128d82969a2318e90036aacf79f9887
This commit is contained in:
M Fahru
2022-11-30 09:04:32 +00:00
committed by Copybot
parent 079a0dcae4
commit f27562eb12
34 changed files with 753 additions and 83 deletions
+33
View File
@@ -0,0 +1,33 @@
import { OverallTheme } from '../modules/source-editor/frontend/js/extensions/theme'
export type AllowedImageName = {
imageDesc: string
imageName: string
}
export type MainDocument = {
doc: {
name: string
id: string
type: string
selected: boolean
}
path: string
}
export type ProjectCompiler = 'pdflatex' | 'latex' | 'xelatex' | 'lualatex'
export type Keybindings = 'default' | 'vim' | 'emacs'
export type OverallThemeMeta = {
name: string
path: string
val: OverallTheme
}
export type PdfViewer = 'pdfjs' | 'native'
export type SpellCheckLanguage = {
name: string
code: string
}