mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
add setOptions={{useWorker:false}} to all <AceEditor instances - fixes localdev "worker" error
This commit is contained in:
@ -170,6 +170,7 @@ function DataBagDataEditor({title, dataBagId, data, closeCallback}: DataBagDataE
|
|||||||
theme="github"
|
theme="github"
|
||||||
name="editor"
|
name="editor"
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
onChange={updateCode}
|
onChange={updateCode}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
|
@ -111,6 +111,7 @@ function QDynamicFormField({
|
|||||||
{
|
{
|
||||||
setFieldValue(name, value, false);
|
setFieldValue(name, value, false);
|
||||||
}}
|
}}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="300px"
|
height="300px"
|
||||||
value={value}
|
value={value}
|
||||||
|
@ -55,6 +55,7 @@ function ScriptDocsForm({helpText, exampleCode, aceEditorHeight}: Props): JSX.El
|
|||||||
theme="github"
|
theme="github"
|
||||||
name={name}
|
name={name}
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
value={code}
|
value={code}
|
||||||
readOnly
|
readOnly
|
||||||
highlightActiveLine={false}
|
highlightActiveLine={false}
|
||||||
|
@ -232,6 +232,7 @@ function ScriptEditor({title, scriptId, contents, closeCallback, tableName, fiel
|
|||||||
name="editor"
|
name="editor"
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
setOptions={{
|
setOptions={{
|
||||||
|
useWorker: false,
|
||||||
enableBasicAutocompletion: true,
|
enableBasicAutocompletion: true,
|
||||||
enableLiveAutocompletion: true,
|
enableLiveAutocompletion: true,
|
||||||
}}
|
}}
|
||||||
|
@ -337,6 +337,7 @@ export default function DataBagViewer({dataBagId}: Props): JSX.Element
|
|||||||
name={"viewData"}
|
name={"viewData"}
|
||||||
readOnly
|
readOnly
|
||||||
highlightActiveLine={false}
|
highlightActiveLine={false}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="400px"
|
height="400px"
|
||||||
|
@ -416,6 +416,7 @@ export default function ScriptViewer({scriptId, associatedScriptTableName, assoc
|
|||||||
readOnly
|
readOnly
|
||||||
highlightActiveLine={false}
|
highlightActiveLine={false}
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="400px"
|
height="400px"
|
||||||
value={selectedVersionRecord?.values?.get("contents")}
|
value={selectedVersionRecord?.values?.get("contents")}
|
||||||
|
@ -172,6 +172,7 @@ function RecordDeveloperView({table}: Props): JSX.Element
|
|||||||
theme="github"
|
theme="github"
|
||||||
name="recordJSON"
|
name="recordJSON"
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
value={recordJSONString}
|
value={recordJSONString}
|
||||||
readOnly
|
readOnly
|
||||||
width="100%"
|
width="100%"
|
||||||
|
@ -457,6 +457,7 @@ function CodeViewer({name, mode, code}: {name: string; mode: string; code: strin
|
|||||||
theme="github"
|
theme="github"
|
||||||
name={name}
|
name={name}
|
||||||
editorProps={{$blockScrolling: true}}
|
editorProps={{$blockScrolling: true}}
|
||||||
|
setOptions={{useWorker: false}}
|
||||||
value={activeCode}
|
value={activeCode}
|
||||||
readOnly
|
readOnly
|
||||||
highlightActiveLine={false}
|
highlightActiveLine={false}
|
||||||
|
Reference in New Issue
Block a user