Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redesign AllApps.jsx file & add more functionality #110

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"react": "^18.2.0",
"react-ace": "^10.1.0",
"react-dom": "^18.2.0",
"react-head": "^3.4.2",
"react-helmet": "^6.1.0",
"react-helmet-async": "^1.3.0",
"react-icons": "^4.7.1",
"react-refresh": "^0.14.0",
"react-responsive": "^9.0.2",
Expand Down
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import PandasBasics from "./Python_Library_Pages/Pandas/Intro-to-Pandas";

import PlayGround from "./Python/PlayGround";


const App = () => {
return (
<RootLayout>
Expand Down
6 changes: 4 additions & 2 deletions src/Python/PlayGround.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React,{ useState } from 'react';
import Helmet from "react-helmet";
import Scripts from './Scripts';
import CodeEditor from './CodeEditor';
import "brace/mode/python";
import "brace/theme/monokai";
import { Helmet, HelmetProvider } from 'react-helmet-async';

let logs = [];

Expand Down Expand Up @@ -36,6 +36,7 @@ const PlayGround = () => {
window.console.log = handleConsoleLog;

return (
<HelmetProvider>
<div id="python-editor-container" className='flex max-md:flex-col -mt-10 gap-5'>
<Helmet>
<script
Expand All @@ -46,7 +47,7 @@ const PlayGround = () => {
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.7.1/brython_stdlib.js"
/>
</Helmet>
</Helmet>
<Scripts code={code} />
<div id="python-editor-input">
<div className='flex justify-between mb-2 p-2'>
Expand Down Expand Up @@ -78,6 +79,7 @@ const PlayGround = () => {
/>
</div>
</div>
</HelmetProvider>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const PythonBasics = () => {
);
};

export default PythonBasics;
export default PythonBasics;
98 changes: 96 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2060,16 +2060,28 @@
integrity sha512-xrO9OoVPqFuYyR/loIHjnbvvyRZREYKLjxV4+dY6v3FQR3stQ9ZxIGkaclF7YhI9hfjpuTbu14hZEy94qKLtOA==

"@types/react-dom@^18.0.10":
<<<<<<< HEAD
version "18.2.11"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.11.tgz#4332c315544698a0875dfdb6e320dda59e1b3d58"
integrity sha512-zq6Dy0EiCuF9pWFW6I6k6W2LdpUixLE4P6XjXU1QHLfak3GPACQfLwEuHzY5pOYa4hzj1d0GxX/P141aFjZsyg==
=======
version "18.0.11"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.11.tgz"
integrity sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw==
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.0.27":
<<<<<<< HEAD
version "18.2.25"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.25.tgz#99fa44154132979e870ff409dc5b6e67f06f0199"
integrity sha512-24xqse6+VByVLIr+xWaQ9muX1B4bXJKXBbjszbld/UEDslGLY53+ZucF44HCmLbMPejTzGG9XgR+3m2/Wqu1kw==
=======
version "18.0.28"
resolved "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz"
integrity sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down Expand Up @@ -2412,7 +2424,11 @@ accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8:

ace-builds@^1.4.14:
version "1.29.0"
<<<<<<< HEAD
resolved "https://registry.yarnpkg.com/ace-builds/-/ace-builds-1.29.0.tgz#01acf71e7248d598cf6ae7dc97d638ee171dfde5"
=======
resolved "https://registry.npmjs.org/ace-builds/-/ace-builds-1.29.0.tgz"
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
integrity sha512-TyTe22nW1rUi7bzbGwLwg/6EN88CJuxUO0193nv/6cQ8lMBV6XtfeQIAgU3dkr8wnCn2okycqHjCDlPGNcWqoQ==

acorn-globals@^6.0.0:
Expand Down Expand Up @@ -3112,10 +3128,17 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

<<<<<<< HEAD
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001541:
version "1.0.30001546"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001546.tgz#10fdad03436cfe3cc632d3af7a99a0fb497407f0"
integrity sha512-zvtSJwuQFpewSyRrI3AsftF6rM0X80mZkChIt1spBGEvRglCrjTniXvinc8JKRoqTwXAgvqTImaN9igfSMtUBw==
=======
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001541:
version "1.0.30001543"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001543.tgz"
integrity sha512-qxdO8KPWPQ+Zk6bvNpPeQIOH47qZSYdFZd6dXQzb2KzhnSXju4Kd7H1PkSJx6NICSMgo/IhRZRhhfPTHYpJUCA==
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7

case-sensitive-paths-webpack-plugin@^2.4.0:
version "2.4.0"
Expand Down Expand Up @@ -3556,7 +3579,11 @@ css-what@^6.0.1:

cssdb@^7.1.0:
version "7.8.0"
<<<<<<< HEAD
resolved "https://registry.yarnpkg.com/cssdb/-/cssdb-7.8.0.tgz#ac41fa025371b74eb2ccfe3d41f5c4dbd444fbe3"
=======
resolved "https://registry.npmjs.org/cssdb/-/cssdb-7.8.0.tgz"
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
integrity sha512-SkeezZOQr5AHt9MgJgSFNyiuJwg1p8AwoVln6JwaQJsyxduRW9QJ+HP/gAQzbsz8SIqINtYvpJKjxTRI67zxLg==

cssesc@^3.0.0:
Expand Down Expand Up @@ -3945,9 +3972,15 @@ ejs@^3.1.6:
jake "^10.8.5"

electron-to-chromium@^1.4.535:
<<<<<<< HEAD
version "1.4.544"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.544.tgz#fcb156d83f0ee6e4c9d030c6fedb2a37594f3abf"
integrity sha512-54z7squS1FyFRSUqq/knOFSptjjogLZXbKcYk3B0qkE1KZzvqASwRZnY2KzZQJqIYLVD38XZeoiMRflYSwyO4w==
=======
version "1.4.545"
resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.545.tgz"
integrity sha512-G1HKumUw+y5yxMjewGfKz0XrqG6O+Tb4zrlC/Vs1+9riRXBuFlO0hOEXP3xeI+ltlJkbVUuLkYdmjHYH6Jkiow==
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7

emittery@^0.10.2:
version "0.10.2"
Expand Down Expand Up @@ -5262,6 +5295,21 @@ internal-slot@^1.0.5:
has "^1.0.3"
side-channel "^1.0.4"

<<<<<<< HEAD
invariant@^2.2.4:
version "2.2.4"
resolved "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
dependencies:
loose-envify "^1.0.0"

[email protected]:
version "1.9.1"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==

=======
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
ipaddr.js@^2.0.1:
version "2.1.0"
resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz"
Expand Down Expand Up @@ -6072,7 +6120,11 @@ jest-worker@^28.0.2:

"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0"
<<<<<<< HEAD
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
=======
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==

js-yaml@^3.13.1:
Expand Down Expand Up @@ -6362,7 +6414,7 @@ lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0:
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

loose-envify@^1.1.0, loose-envify@^1.4.0:
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
version "1.4.0"
resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz"
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
Expand Down Expand Up @@ -7740,7 +7792,11 @@ react-dev-utils@^12.0.1:

react-dom@*, "react-dom@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0", react-dom@^18.0.0, react-dom@^18.2.0, react-dom@>=16.8:
version "18.2.0"
<<<<<<< HEAD
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
=======
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz"
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
dependencies:
loose-envify "^1.1.0"
Expand All @@ -7751,11 +7807,29 @@ react-error-overlay@^6.0.11:
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz"
integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==

react-fast-compare@^3.1.1:
react-fast-compare@^3.1.1, react-fast-compare@^3.2.0:
version "3.2.2"
resolved "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz"
integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==

react-head@^3.4.2:
version "3.4.2"
resolved "https://registry.npmjs.org/react-head/-/react-head-3.4.2.tgz#d4137ad7452d8484bba13ac84a2c6fe51c30e838"
integrity sha512-mnl6u7E0SSzY9w+mExKGVz8vW/oObUTnj+vpRaZF6jcdjFcCGs0vl8MRwlRws56dye3f1CpzU7C/hz3b3S2BBA==
dependencies:
"@babel/runtime" "^7.11.2"

react-helmet-async@^1.3.0:
version "1.3.0"
resolved "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-1.3.0.tgz#7bd5bf8c5c69ea9f02f6083f14ce33ef545c222e"
integrity sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==
dependencies:
"@babel/runtime" "^7.12.5"
invariant "^2.2.4"
prop-types "^15.7.2"
react-fast-compare "^3.2.0"
shallowequal "^1.1.0"

react-helmet@^6.1.0:
version "6.1.0"
resolved "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz"
Expand Down Expand Up @@ -7888,7 +7962,11 @@ react-simple-code-editor@^0.13.1:

react@*, "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.3.0 || ^17.0.0 || ^18.0.0", react@^18.0.0, react@^18.2.0, "react@>= 16", react@>=16.3.0, react@>=16.8, react@>=16.8.0:
version "18.2.0"
<<<<<<< HEAD
resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
=======
resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz"
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
dependencies:
loose-envify "^1.1.0"
Expand Down Expand Up @@ -8215,7 +8293,11 @@ saxes@^5.0.1:

scheduler@^0.23.0:
version "0.23.0"
<<<<<<< HEAD
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
=======
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz"
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
dependencies:
loose-envify "^1.1.0"
Expand Down Expand Up @@ -8394,6 +8476,11 @@ shallow-equal@^1.2.1:
resolved "https://registry.npmjs.org/shallow-equal/-/shallow-equal-1.2.1.tgz"
integrity sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==

shallowequal@^1.1.0:
version "1.1.0"
resolved "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==

shebang-command@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"
Expand Down Expand Up @@ -9230,10 +9317,17 @@ vary@~1.1.2:
resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz"
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==

<<<<<<< HEAD
vite@^4.1.0:
version "4.4.11"
resolved "https://registry.yarnpkg.com/vite/-/vite-4.4.11.tgz#babdb055b08c69cfc4c468072a2e6c9ca62102b0"
integrity sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==
=======
vite@^4.1.0, vite@^4.1.0-beta.0:
version "4.1.4"
resolved "https://registry.npmjs.org/vite/-/vite-4.1.4.tgz"
integrity sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==
>>>>>>> ec296f09265fdd16ff55c55c5109a4433f2d7ff7
dependencies:
esbuild "^0.16.14"
postcss "^8.4.21"
Expand Down