SkyeYoung commented on code in PR #3002:
URL: https://github.com/apache/apisix-dashboard/pull/3002#discussion_r2063157566


##########
src/components/form/Editor.tsx:
##########
@@ -0,0 +1,141 @@
+import { InputWrapper, Skeleton, type InputWrapperProps } from '@mantine/core';
+import { Editor, loader, useMonaco, type Monaco } from '@monaco-editor/react';
+
+import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
+import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker';
+import {
+  useController,
+  useFormContext,
+  useFormState,
+  type FieldValues,
+  type UseControllerProps,
+} from 'react-hook-form';
+import { genControllerProps } from './util';
+import type { editor } from 'monaco-editor';
+import { useEffect } from 'react';
+
+type SetupMonacoProps = {
+  monaco: Monaco;
+  setError?: (err: string | null) => void;
+};
+
+const setupMonaco = (props: SetupMonacoProps) => {

Review Comment:
   most local, but still have sth from cdn. I will check it, if I have time.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to