├── 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 |