2024-06-28 14:52:13: merge [main:483f760b403ae5c9d0cb5ace25a08bf0b5f41799];

This commit is contained in:
txix committed 2024-06-28 14:52:13 +03:00
1 parent 0dbf4b0b07
commit 2ebeb14f0e
32 files changed
+113 -72

No files matched your search

@@ -1,10 +1,12 @@
import { FC } from 'react'
import { FC, useContext } from 'react'
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage'
import Editor from '@monaco-editor/react'
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
import { message } from 'antd'
import { Context } from '@stores/index.tsx'
const ConfigurationEditorCode: FC<ConfigurationEditorPropsType> = ({setDisableBtn= () => {}, bufConfig, setBufConfig }) => {
const { changeTheme } = useContext(Context)
const debounce = (func: (...args: any[]) => void, wait: number) => {
let timeout: NodeJS.Timeout
return (...args: []) => {
@@ -44,7 +46,7 @@ const ConfigurationEditorCode: FC<ConfigurationEditorPropsType> = ({setDisableBt
width="auto"
height="100vh"
language="json"
theme="vs-white"
theme={changeTheme ? 'vs-dark' : 'vs-white'}
value={editorValue}
onChange={handleChange}
options={{