Skip to content

Commit 6f36f33

Browse files
author
Bart Hazen
committed
First version of setup.py generator.
1 parent 509d680 commit 6f36f33

File tree

15 files changed

+1052
-162
lines changed

15 files changed

+1052
-162
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"dependencies": {
66
"@material-ui/core": "^4.9.8",
77
"@material-ui/icons": "^4.9.1",
8+
"@material-ui/lab": "^4.0.0-alpha.56",
89
"@testing-library/jest-dom": "^4.2.4",
910
"@testing-library/react": "^9.5.0",
1011
"@testing-library/user-event": "^7.2.1",
@@ -13,8 +14,10 @@
1314
"node-sass": "^4.14.1",
1415
"prop-types": "^15.7.2",
1516
"react": "^16.13.1",
17+
"react-copy-to-clipboard": "^5.0.2",
1618
"react-dom": "^16.13.1",
1719
"react-helmet": "^6.0.0",
20+
"react-markdown": "^4.3.1",
1821
"react-router-dom": "^5.1.2",
1922
"react-scripts": "3.4.1",
2023
"react-syntax-highlighter": "^12.2.1",

public/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"short_name": "Python Create",
3+
"name": "Python Create",
4+
"description": "Python Create supports you in developing Python projects"
5+
}

src/App.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import Routes from './routes';
55

66
import { createBrowserHistory } from 'history';
77

8-
import './App.scss';
9-
108
const browserHistory = createBrowserHistory();
119

1210
function App() {

src/App.scss

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

src/components/Header/index.js

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

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
33

4-
import "./index.scss";
54
import App from "./App";
65

6+
import CssBaseline from '@material-ui/core/CssBaseline';
7+
78
ReactDOM.render(
89
<React.StrictMode>
10+
<CssBaseline />
911
<App />
1012
</React.StrictMode>,
1113
document.getElementById('root')

src/index.scss

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

src/pages/Homepage/Homepage.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Welcome
2+
3+
Python Create helps you in bringing your Python skills to the next level. This is just a starting point,
4+
where we'll introduce you our one and only super helpful generator for `setup.py` files.
5+
6+
This website has been developed by Python-enthusiasts,
7+
lacking of serious web development skills,
8+
yet wanting to experiment a bit with React.

src/pages/Homepage/index.js

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
import React from "react";
2-
import Header from "components/Header";
2+
import ReactMarkdown from 'react-markdown'
33

4-
import "./style.scss";
4+
import { Paper } from "@material-ui/core";
5+
import markdownSource from "pages/Homepage/Homepage.md"
56

67
export default class Homepage extends React.Component {
8+
constructor(props) {
9+
super(props)
10+
11+
this.state = { markdown: null }
12+
}
13+
14+
componentWillMount() {
15+
fetch(markdownSource).then((response) => response.text()).then((text) => {
16+
this.setState({ markdown: text })
17+
})
18+
}
19+
720
render() {
821
return (
922
<React.Fragment>
10-
<Header
11-
onDrawerToggle={this.props.handleDrawerToggle}
12-
title="Python Create"
13-
/>
14-
1523
<main className={this.props.classes.main}>
16-
Homepage.
24+
<Paper className={this.props.classes.paper}>
25+
<div className={this.props.classes.contentWrapper}>
26+
<ReactMarkdown
27+
source={this.state.markdown}
28+
escapeHtml={false}
29+
/>
30+
</div>
31+
</Paper>
1732
</main>
1833
</React.Fragment>
1934
);

src/pages/Homepage/style.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)