-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
9,803 additions
and
7,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const webpack = require("webpack"); | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: { | ||
resolve: { | ||
fallback: { | ||
process: require.resolve("process/browser"), | ||
zlib: require.resolve("browserify-zlib"), | ||
stream: require.resolve("stream-browserify"), | ||
util: require.resolve("util"), | ||
buffer: require.resolve("buffer"), | ||
asset: require.resolve("assert"), | ||
}, | ||
}, | ||
plugins: [ | ||
new webpack.ProvidePlugin({ | ||
Buffer: ["buffer", "Buffer"], | ||
process: "process/browser", | ||
}), | ||
], | ||
}, | ||
}, | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,22 +10,27 @@ | |
content="TextEdit is a text based utility which can be used to manipulate your text in the way you want" | ||
/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon" /> | ||
|
||
<!-- import 'bootstrap/dist/css/bootstrap.min.css'; --> | ||
|
||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" | ||
crossorigin="anonymous" | ||
/> | ||
|
||
<title>TextEdit</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<noscript>You need make sure to enable JavaScript to run this app</noscript> | ||
<div id="root"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> | ||
|
||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" | ||
crossorigin="anonymous" | ||
></script> | ||
</body> | ||
<!-- <script src="https://unpkg.com/react/umd/react.production.min.js" crossorigin></script> --> | ||
|
||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import React from "react"; | ||
import { Page, Text, Image, Document, StyleSheet } from "@react-pdf/renderer"; | ||
import Appletouch from "./photos/apple-touch-icon.png"; | ||
const styles = StyleSheet.create({ | ||
body: { | ||
paddingTop: 35, | ||
paddingBottom: 65, | ||
paddingHorizontal: 35, | ||
}, | ||
title: { | ||
fontSize: 24, | ||
textAlign: "center", | ||
}, | ||
text: { | ||
margin: 12, | ||
fontSize: 14, | ||
textAlign: "justify", | ||
fontFamily: "Times-Roman", | ||
}, | ||
image: { | ||
marginVertical: 15, | ||
marginHorizontal: 100, | ||
}, | ||
header: { | ||
fontSize: 12, | ||
marginBottom: 20, | ||
textAlign: "center", | ||
color: "grey", | ||
}, | ||
pageNumber: { | ||
position: "absolute", | ||
fontSize: 12, | ||
bottom: 30, | ||
left: 0, | ||
right: 0, | ||
textAlign: "center", | ||
color: "grey", | ||
}, | ||
}); | ||
|
||
const PDFfile = (props) => { | ||
return ( | ||
<Document> | ||
<Page style={styles.body}> | ||
<Text style={styles.header} fixed></Text> | ||
<Image style={styles.image} src={Appletouch} /> | ||
<Text style={styles.text}> | ||
{props.text} | ||
</Text> | ||
<Text | ||
style={styles.pageNumber} | ||
render={({ pageNumber, totalPages }) => | ||
`${pageNumber} / ${totalPages}` | ||
} | ||
/> | ||
</Page> | ||
</Document> | ||
); | ||
}; | ||
|
||
export default PDFfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters