diff --git a/package.json b/package.json index 5eaedbd..89313f0 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@fontsource/material-icons": "^4.5.4", "@fontsource/roboto": "^4.5.8", "@hookform/resolvers": "^2.9.11", + "@monaco-editor/react": "^4.4.6", "@mui/icons-material": "^5.11.11", "@mui/material": "^5.11.0", "@mui/system": "^5.11.1", diff --git a/src/api/liveCodingApi.ts b/src/api/liveCodingApi.ts new file mode 100644 index 0000000..b793dac --- /dev/null +++ b/src/api/liveCodingApi.ts @@ -0,0 +1,8 @@ +import { resultData } from '../types/liveCodingTypes'; +import { instance } from './Instance/instance'; + +export const resultApi = { + postResult() { + return instance.post(`result`); + }, +}; diff --git a/src/components/layout/header/FullHeader/FullHeader.tsx b/src/components/layout/header/FullHeader/FullHeader.tsx index 79c7750..71ef9c9 100644 --- a/src/components/layout/header/FullHeader/FullHeader.tsx +++ b/src/components/layout/header/FullHeader/FullHeader.tsx @@ -43,6 +43,11 @@ export const FullHeader = () => { {t('createTest')} + + + {!!token && ( + + + ( + + )} + /> + + + + + + + + + ); +}; + +export default MonacoEditor; diff --git a/src/pages/live-codding/index.tsx b/src/pages/live-codding/index.tsx new file mode 100644 index 0000000..04ef56b --- /dev/null +++ b/src/pages/live-codding/index.tsx @@ -0,0 +1,31 @@ +import { Box, Stack } from '@mui/material'; +import { useState } from 'react'; +import { StylizedPaper } from '../../components/common/StylizedPaper/StylizedPaper'; +import { Layout } from '../../components/layout/Layout'; +import DegreeLiveCodding from './DegreeLiveCodding'; +import CodeEditor from './SolutionLiveCodding'; + +const LiveCodding = () => ( + + + + + + + + + + + + + + +); + +export default LiveCodding; diff --git a/src/pages/registration/index.tsx b/src/pages/registration/index.tsx index 285be24..4bcb1be 100644 --- a/src/pages/registration/index.tsx +++ b/src/pages/registration/index.tsx @@ -51,7 +51,7 @@ const SignUpPage = () => {