Skip to content

Commit 0e3bc9b

Browse files
committed
Coderpad revamp from Marlin project.
1 parent c3300c2 commit 0e3bc9b

29 files changed

+12071
-15830
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# Coderpad
2-
This project serves as the front-end for the coderpad project (https://github.com/dannyhp1/coderpad).
1+
# The Marlin Project
2+
###### Production
3+
[![Netlify Status](https://api.netlify.com/api/v1/badges/dc8fca23-569d-424e-8825-c9ff323b2472/deploy-status)](https://app.netlify.com/sites/marlin-dannyhp/deploys)
4+
5+
## What is it?
6+
The Marlin Project is a collection of personal projects I've created throughout the years. The goal is to continually add new projects to this page as I continue to innovate. Feel free to drop
7+
me a suggestion if you want me to bring your idea to life.
8+
9+
## What does the Marlin Project contain?
10+
A variety of applications.
11+
### Coderpad
12+
The coderpad is an experimental project that allows individuals to write and run snippets of code.
13+
The application currently only supports Python. An interactive version of the coderpad is in
14+
development and will be released under the name _Code with Me_.
15+
### Pastebin
16+
Coming soon!

package-lock.json

Lines changed: 0 additions & 15186 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
{
2-
"name": "client",
2+
"name": "core",
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"@babel/helper-builder-react-jsx": "^7.12.13",
7+
"@babel/helper-call-delegate": "^7.12.13",
8+
"@babel/helper-define-map": "^7.12.13",
9+
"@babel/helper-regex": "^7.10.5",
10+
"@material-ui/core": "^4.9.5",
11+
"@material-ui/icons": "^5.0.0-alpha.24",
12+
"@testing-library/jest-dom": "^4.2.4",
13+
"@testing-library/react": "^9.3.2",
14+
"@testing-library/user-event": "^7.1.2",
15+
"aphrodite": "^2.4.0",
16+
"axios": "^0.19.2",
617
"copy-to-clipboard": "^3.3.1",
7-
"react": "^16.12.0",
8-
"react-dom": "^16.12.0",
9-
"react-notifications-component": "^2.3.0",
18+
"eslint": "^6.8.0",
19+
"react": "^16.13.0",
20+
"react-ace": "^8.1.0",
21+
"react-dom": "^16.13.0",
22+
"react-notifications-component": "^3.0.3",
1023
"react-router-dom": "^5.1.2",
11-
"react-scripts": "^3.4.0"
24+
"react-scripts": "3.4.0",
25+
"typescript": "^3.8.3"
1226
},
1327
"scripts": {
1428
"start": "react-scripts start",
@@ -30,10 +44,5 @@
3044
"last 1 firefox version",
3145
"last 1 safari version"
3246
]
33-
},
34-
"devDependencies": {
35-
"@material-ui/core": "^4.6.1",
36-
"axios": "^0.19.0",
37-
"react-ace": "^8.0.0"
3847
}
3948
}

public/_redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/* /index.html 200
1+
/* /index.html 200

public/index.html

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<!-- Global site tag (gtag.js) - Google Analytics -->
5-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-129689668-4"></script>
6-
<script>
7-
window.dataLayer = window.dataLayer || [];
8-
function gtag(){dataLayer.push(arguments);}
9-
gtag('js', new Date());
10-
11-
gtag('config', 'UA-129689668-4');
12-
</script>
13-
144
<meta charset="utf-8" />
155
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
166
<meta name="viewport" content="width=device-width, initial-scale=1" />
177
<meta name="theme-color" content="#000000" />
188
<meta
19-
name="Coderpad by Danny Pham"
20-
content="Coderpad to execute code snippets."
9+
name="The Marlin Project"
10+
content="Personal projects by Danny Pham"
2111
/>
22-
<link rel="apple-touch-icon" href="logo.png" />
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon.ico" />
2313
<!--
2414
manifest.json provides metadata used when your web app is installed on a
2515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
2616
-->
2717
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
28-
2918
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
3019
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
3120
<!--
@@ -37,7 +26,7 @@
3726
work correctly both with client-side routing and a non-root public URL.
3827
Learn how to configure a non-root public URL by running `npm run build`.
3928
-->
40-
<title>Coderpad - Danny Pham</title>
29+
<title>The Marlin Project</title>
4130
</head>
4231
<body>
4332
<noscript>You need to enable JavaScript to run this app.</noscript>

public/logo.png

-156 KB
Binary file not shown.

public/robots.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# https://www.robotstxt.org/robotstxt.html
22
User-agent: *
3+
Disallow:

src/App/App.css

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
1-
.App {
1+
body {
22
background-color: #282c34;
3-
color: #ffffff;
43
}
54

65
.App-logo {
76
height: 40vmin;
7+
pointer-events: none;
8+
}
9+
10+
@media (prefers-reduced-motion: no-preference) {
11+
.App-logo {
12+
animation: App-logo-spin infinite 20s linear;
13+
}
814
}
915

1016
.App-header {
1117
background-color: #282c34;
12-
min-height: 100vh;
18+
min-height: 80vh;
1319
display: flex;
1420
flex-direction: column;
1521
align-items: center;
1622
justify-content: center;
1723
font-size: calc(10px + 2vmin);
1824
color: white;
25+
text-align: center;
1926
}
2027

2128
.App-link {
22-
color: #09d3ac;
29+
color: #61dafb;
30+
}
31+
32+
@keyframes App-logo-spin {
33+
from {
34+
transform: rotate(0deg);
35+
}
36+
to {
37+
transform: rotate(360deg);
38+
}
2339
}

src/App/App.js

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,43 @@
1-
import React, { Component } from 'react';
1+
import React from 'react';
2+
import routes from '../routes/routes';
23
import { BrowserRouter as Router, Route } from 'react-router-dom';
3-
import Header from '../components/Header';
4-
import CoderpadWrapper from '../components/CoderpadWrapper';
54
import ReactNotification from 'react-notifications-component';
5+
import NavigationBar from '../components/navigation/NavigationBar';
6+
import CoderpadWrapper from '../components/coderpad/CoderpadWrapper';
67
import 'react-notifications-component/dist/theme.css'
78
import './App.css';
89

9-
class App extends Component {
10-
render() {
11-
return (
12-
<div className="App">
13-
<ReactNotification />
14-
<Header />
15-
<Router>
16-
<Route
17-
exact
18-
path='/'
19-
render={(props) => <CoderpadWrapper {...props} />}
20-
/>
21-
<Route
22-
exact
23-
path='/:id'
24-
render={(props) => <CoderpadWrapper {...props} />}
25-
/>
26-
</Router>
27-
</div>
28-
);
29-
}
10+
function App() {
11+
return (
12+
<div className="App">
13+
<ReactNotification />
14+
<Router>
15+
<NavigationBar />
16+
<Route
17+
exact
18+
path={routes['default']}
19+
render={(props) => <CoderpadWrapper {...props} />}
20+
/>
21+
<Route
22+
exact
23+
path={routes['coderpad']}
24+
render={(props) => <CoderpadWrapper {...props} />}
25+
/>
26+
<Route
27+
exact
28+
path={routes['coderpadId']}
29+
render={(props) => <CoderpadWrapper {...props} />}
30+
/>
31+
<Route
32+
exact
33+
path={routes['sourceCode']}
34+
component={() => {
35+
window.location.href = 'https://github.com/dannyhp1/coderpad'
36+
}}
37+
/>
38+
</Router>
39+
</div>
40+
);
3041
}
3142

3243
export default App;

src/App/App.test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)