├── public ├── _redirects └── images │ ├── c.png │ ├── go.png │ ├── cpp.png │ ├── java.png │ ├── logo.png │ ├── python.png │ ├── HomePage.png │ ├── javascript.png │ └── InterviewMode.png ├── .prettierrc ├── postcss.config.cjs ├── tailwind.config.cjs ├── src ├── data │ ├── languages.js │ └── boilerplate.js ├── styles │ ├── toastStyle.js │ ├── editorStyles.js │ └── selectStyle.js ├── components │ ├── Loading.jsx │ ├── InputTextArea.jsx │ ├── EditorComponent.jsx │ ├── ResetButton.jsx │ ├── SelectComponent.jsx │ ├── DownloadButton.jsx │ ├── OutputTextArea.jsx │ └── RunButton.jsx ├── main.jsx ├── hooks │ └── useLocalStorage.js ├── App.jsx ├── utils │ └── runCode.js ├── index.css └── pages │ └── Home.jsx ├── .gitignore ├── vercel.json ├── vite.config.js ├── .eslintrc.json ├── index.html ├── package.json └── README.md /public/_redirects: -------------------------------------------------------------------------------- 1 | /* /index.html 200 -------------------------------------------------------------------------------- /public/images/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/c.png -------------------------------------------------------------------------------- /public/images/go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/go.png -------------------------------------------------------------------------------- /public/images/cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/cpp.png -------------------------------------------------------------------------------- /public/images/java.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/java.png -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/logo.png -------------------------------------------------------------------------------- /public/images/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/python.png -------------------------------------------------------------------------------- /public/images/HomePage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/HomePage.png -------------------------------------------------------------------------------- /public/images/javascript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/javascript.png -------------------------------------------------------------------------------- /public/images/InterviewMode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdityaPote/RCE70/HEAD/public/images/InterviewMode.png -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "es5", 3 | "tabWidth": 4, 4 | "semi": false, 5 | "singleQuote": true 6 | } 7 | -------------------------------------------------------------------------------- /postcss.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /tailwind.config.cjs: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], 4 | theme: { 5 | extend: {}, 6 | }, 7 | plugins: [], 8 | } 9 | -------------------------------------------------------------------------------- /src/data/languages.js: -------------------------------------------------------------------------------- 1 | const languages = [ 2 | { value: 'javascript', label: 'JavaScript' }, 3 | { value: 'python', label: 'Python' }, 4 | { value: 'cpp', label: 'C++' }, 5 | { value: 'c', label: 'C' }, 6 | { value: 'java', label: 'Java' }, 7 | ] 8 | 9 | export default languages 10 | -------------------------------------------------------------------------------- /src/styles/toastStyle.js: -------------------------------------------------------------------------------- 1 | const toastStyles = { 2 | duration: 1500, 3 | style: { 4 | background: '#1c2333', 5 | padding: '0.75rem', 6 | color: '#fff', 7 | margin: '-0.25rem', 8 | height: '40px', 9 | borderRadius: '0.75rem', 10 | }, 11 | } 12 | 13 | export default toastStyles 14 | -------------------------------------------------------------------------------- /src/components/Loading.jsx: -------------------------------------------------------------------------------- 1 | import ClipLoader from 'react-spinners/ClipLoader' 2 | 3 | const Loading = () => { 4 | return ( 5 |
6 | 7 |
8 | ) 9 | } 10 | 11 | export default Loading 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | 26 | .env -------------------------------------------------------------------------------- /src/main.jsx: -------------------------------------------------------------------------------- 1 | import ReactDOM from 'react-dom/client' 2 | import App from './App' 3 | import { BrowserRouter } from 'react-router-dom' 4 | import './index.css' 5 | import { Analytics } from '@vercel/analytics/react' 6 | 7 | ReactDOM.createRoot(document.getElementById('root')).render( 8 | <> 9 | 10 | 11 | 12 | 13 | 14 | ) 15 | -------------------------------------------------------------------------------- /src/components/InputTextArea.jsx: -------------------------------------------------------------------------------- 1 | const InputTextArea = ({ input, setInput }) => { 2 | return ( 3 |