Skip to content

Commit

Permalink
improve dir strcuture
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAd01 committed Jan 26, 2023
1 parent afcb091 commit bf7568f
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useContext } from 'react';
import '../Style.css';
import PropTypes from 'prop-types';
import { Button } from '@material/react-button';
import AceEditorContext from '../../../Contexts/AceEditorContext';
import AceEditorContext from '../../../../Contexts/AceEditorContext';

const Run = ({ loading, setLoading, lang, input, setMessageType, setMessage, setOutput }) => {
const { editorConfig } = useContext(AceEditorContext);
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import Select from '@material/react-select';
import { Cell, Row } from '@material/react-layout-grid';
import React, { useState, useEffect } from 'react';
import { useLazyQuery } from '@apollo/client';
import AceEditorContext from '../../../Contexts/AceEditorContext';
import { languageOptions } from '../../drawer/contests/status/options';
import AceEditorContext from '../../../../Contexts/AceEditorContext';
import { languageOptions } from '../../../drawer/contests/status/options';
import languageDefaults from '../defaults/languages';
import Editor from '../index';
import Menu from '../menu';
import MessageCard from '../../common/MessageCard';
import { GET_EDITOR_SHARE } from '../../../graphql/queries';
import MessageCard from '../../MessageCard';
import { GET_EDITOR_SHARE } from '../../../../graphql/queries';
import Run from '../common/Run';
import Input from '../common/Input';
import Output from '../common/Output';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'ace-builds/src-noconflict/theme-github';
import 'ace-builds/src-noconflict/ext-language_tools';

import optionToextLanguages from './defaults/extLanguages';
import AceEditorContext from '../../Contexts/AceEditorContext';
import AceEditorContext from '../../../Contexts/AceEditorContext';

const Editor = () => {
const { editorConfig, setEditorConfig } = useContext(AceEditorContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import MaterialIcon from '@material/react-material-icon';
import * as ace from 'ace-builds/src-noconflict/ace';
import { useApolloClient } from '@apollo/client';
import themes from '../defaults/themes';
import AceEditorContext from '../../../Contexts/AceEditorContext';
import { SAVE_CODE } from '../../../graphql/mutations';
import MessageCard from '../../common/MessageCard';
import AceEditorContext from '../../../../Contexts/AceEditorContext';
import { SAVE_CODE } from '../../../../graphql/mutations';
import MessageCard from '../../MessageCard';
import '../Style.css';

ace.config.set('basePath', '/assets/ui/');
Expand Down
14 changes: 7 additions & 7 deletions src/Components/drawer/contests/common/SubmitOnProblemPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import { languageOptions } from '../status/options';
import Uploading from '../submit/Uploading';
import useSessionExpired from '../../../../customHooks/useSessionExpired';
import AceEditorContext from '../../../../Contexts/AceEditorContext';
import Menu from '../../../editor/menu';
import Editor from '../../../editor';
import languageDefaults from '../../../editor/defaults/languages';
import Menu from '../../../common/Editor/menu';
import Editor from '../../../common/Editor';
import languageDefaults from '../../../common/Editor/defaults/languages';
import { GET_CONTEST_DASHBOARD } from '../../../../graphql/queries';
import Spinner from '../../../common/Spinner';
import SomethingWentWrong from '../../../common/SomethingWentWrong';
import Run from '../../../editor/common/Run';
import Input from '../../../editor/common/Input';
import Output from '../../../editor/common/Output';
import Run from '../../../common/Editor/common/Run';
import Input from '../../../common/Editor/common/Input';
import Output from '../../../common/Editor/common/Output';
import './Style.css';
import initialState from '../../../editor/defaults/initialState';
import initialState from '../../../common/Editor/defaults/initialState';

const SubmitOnProblemPage = ({ setEditorOpen }) => {
const isMobile = window.innerWidth <= 768;
Expand Down
2 changes: 1 addition & 1 deletion src/Routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const SuperuserAnnouncementsContainer = lazy(() =>
);
const SuperuserManage = lazy(() => import('./Components/superuser/manageSuperusers/index'));
const PageNotFound = lazy(() => import('./Components/common/PageNotFound/index'));
const Editor = lazy(() => import('./Components/editor/global/index'));
const Editor = lazy(() => import('./Components/common/Editor/global/index'));
const Routes = () => {
const path = window.location.pathname;
const { loading, error, data } = useQuery(GET_LOGGED_IN_USER);
Expand Down

0 comments on commit bf7568f

Please sign in to comment.