diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e89cb61b2418..29d3d8b9507f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -66,4 +66,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/teachertool/src/components/DebugInput.tsx b/teachertool/src/components/DebugInput.tsx index 6992e0870c39..ffd3da41c54e 100644 --- a/teachertool/src/components/DebugInput.tsx +++ b/teachertool/src/components/DebugInput.tsx @@ -13,6 +13,7 @@ interface IProps {} const DebugInput: React.FC = ({}) => { const [shareLink, setShareLink] = useState("https://arcade.makecode.com/S50644-45891-08403-36583"); const [rubric, setRubric] = useState(""); + const [bools, setBools] = useState(true); const evaluate = async () => { await loadProjectMetadataAsync(shareLink); diff --git a/teachertool/src/components/MakecodeFrame.tsx b/teachertool/src/components/MakecodeFrame.tsx index 7ded03807d80..e2622e3427ed 100644 --- a/teachertool/src/components/MakecodeFrame.tsx +++ b/teachertool/src/components/MakecodeFrame.tsx @@ -1,18 +1,21 @@ /// +import * as React from "react"; import { setEditorRef } from "../services/makecodeEditorService"; interface MakeCodeFrameProps { pageSourceUrl: string; tutorialEventHandler?: (event: pxt.editor.EditorMessageTutorialEventRequest) => void; } -export const MakeCodeFrame: React.FC = ({pageSourceUrl}) => { +export const MakeCodeFrame: React.FC = + ( { pageSourceUrl} ) => { + const handleIFrameRef = (el: HTMLIFrameElement | null) => { setEditorRef(el ?? undefined); - }; + } /* eslint-disable @microsoft/sdl/react-iframe-missing-sandbox */ return
- +
/* eslint-enable @microsoft/sdl/react-iframe-missing-sandbox */ }; diff --git a/teachertool/src/services/makecodeEditorService.ts b/teachertool/src/services/makecodeEditorService.ts index 8edc3b40f653..b91e8ea01ace 100644 --- a/teachertool/src/services/makecodeEditorService.ts +++ b/teachertool/src/services/makecodeEditorService.ts @@ -101,4 +101,4 @@ export async function runEvalInEditorAsync(serializedRubric: string): Promise