-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added resume entry point and pdf view
- Loading branch information
1 parent
9d3c176
commit cda7d6b
Showing
8 changed files
with
76 additions
and
40 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
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,12 @@ | ||
import React from 'react' | ||
import { Document, Page } from 'react-pdf/dist/entry.webpack' | ||
|
||
export default class PdfView extends React.Component { | ||
render() { | ||
return ( | ||
<Document file="/assets/resume.pdf"> | ||
<Page pageNumber={1} scale={2} /> | ||
</Document> | ||
) | ||
} | ||
} |
This file was deleted.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<main role="main" class="container"> | ||
<div id="resume-root"></div> | ||
<%= javascript_pack_tag 'hello_react' %> | ||
<%= javascript_pack_tag 'resume' %> | ||
</main> |
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 |
---|---|---|
|
@@ -693,7 +693,7 @@ | |
"@babel/plugin-transform-react-jsx-self" "^7.0.0" | ||
"@babel/plugin-transform-react-jsx-source" "^7.0.0" | ||
|
||
"@babel/runtime@^7.4.2", "@babel/runtime@^7.4.5": | ||
"@babel/runtime@^7.0.0", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.5": | ||
version "7.5.5" | ||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.5.tgz#74fba56d35efbeca444091c7850ccd494fd2f132" | ||
integrity sha512-28QvEGyQyNkB0/m2B4FU7IEZGK2NUrcMtT6BZEFALTguLk+AUT6ofsHtPk5QyjAdUkpMJ+/Em+quwz4HOt30AQ== | ||
|
@@ -3869,7 +3869,7 @@ loader-runner@^2.4.0: | |
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" | ||
integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== | ||
|
||
[email protected], loader-utils@^1.0.1, loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3: | ||
[email protected], loader-utils@^1.0.0, loader-utils@^1.0.1, loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3: | ||
version "1.2.3" | ||
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.2.3.tgz#1ff5dc6911c9f0a062531a4c04b609406108c2c7" | ||
integrity sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA== | ||
|
@@ -3906,6 +3906,11 @@ lodash.memoize@^4.1.2: | |
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" | ||
integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= | ||
|
||
lodash.once@^4.1.1: | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" | ||
integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= | ||
|
||
lodash.template@^4.5.0: | ||
version "4.5.0" | ||
resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" | ||
|
@@ -3974,6 +3979,11 @@ make-dir@^2.0.0: | |
pify "^4.0.1" | ||
semver "^5.6.0" | ||
|
||
make-event-props@^1.1.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/make-event-props/-/make-event-props-1.2.0.tgz#96b87d88919533b8f8934b58b4c3d5679459a0cf" | ||
integrity sha512-BmWFkm/jZzVH9A0tEBdkjAARUz/eha+5IRyfOndeSMKRadkgR5DawoBHoRwLxkYmjJOI5bHkXKpaZocxj+dKgg== | ||
|
||
mamacro@^0.0.3: | ||
version "0.0.3" | ||
resolved "https://registry.yarnpkg.com/mamacro/-/mamacro-0.0.3.tgz#ad2c9576197c9f1abf308d0787865bd975a3f3e4" | ||
|
@@ -4060,6 +4070,11 @@ meow@^3.7.0: | |
redent "^1.0.0" | ||
trim-newlines "^1.0.0" | ||
|
||
merge-class-names@^1.1.1: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.2.0.tgz#cb30ecfc3bdbd96b6f76d0a98777907e5fbb3462" | ||
integrity sha512-ifHxhC8DojHT1rG3PHCaJYInUqPd0WO+PxsaYDMkgy7RzfyOFtnlpr/hbhki+m/3R/ujIRVnZkD/AHjgjb5uhg== | ||
|
||
[email protected]: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" | ||
|
@@ -4293,6 +4308,11 @@ nice-try@^1.0.4: | |
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" | ||
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== | ||
|
||
node-ensure@^0.0.0: | ||
version "0.0.0" | ||
resolved "https://registry.yarnpkg.com/node-ensure/-/node-ensure-0.0.0.tgz#ecae764150de99861ec5c810fd5d096b183932a7" | ||
integrity sha1-7K52QVDemYYexcgQ/V0Jaxg5Mqc= | ||
|
||
[email protected]: | ||
version "0.7.5" | ||
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.7.5.tgz#6c152c345ce11c52f465c2abd957e8639cd674df" | ||
|
@@ -4820,6 +4840,14 @@ pbkdf2@^3.0.3: | |
safe-buffer "^5.0.1" | ||
sha.js "^2.4.8" | ||
|
||
[email protected]: | ||
version "2.1.266" | ||
resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.1.266.tgz#cded02268b389559e807f410d2a729db62160026" | ||
integrity sha512-Jy7o1wE3NezPxozexSbq4ltuLT0Z21ew/qrEiAEeUZzHxMHGk4DUV1D7RuCXg5vJDvHmjX1YssN+we9QfRRgXQ== | ||
dependencies: | ||
node-ensure "^0.0.0" | ||
worker-loader "^2.0.0" | ||
|
||
performance-now@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" | ||
|
@@ -5721,6 +5749,18 @@ react-is@^16.8.1: | |
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.9.0.tgz#21ca9561399aad0ff1a7701c01683e8ca981edcb" | ||
integrity sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw== | ||
|
||
react-pdf@^4.1.0: | ||
version "4.1.0" | ||
resolved "https://registry.yarnpkg.com/react-pdf/-/react-pdf-4.1.0.tgz#fcb874f28050fe9593c4e04652c7bff94bb1acf9" | ||
integrity sha512-SYwkWc+vRQHfrpDls3DOgn4G+wT0mYGJRor20e28GPRW8VB+6o8WqZ4QZxsl50z+dKM7UscXFnK/02eN3NXi2g== | ||
dependencies: | ||
"@babel/runtime" "^7.0.0" | ||
lodash.once "^4.1.1" | ||
make-event-props "^1.1.0" | ||
merge-class-names "^1.1.1" | ||
pdfjs-dist "2.1.266" | ||
prop-types "^15.6.2" | ||
|
||
react@^16.9.0: | ||
version "16.9.0" | ||
resolved "https://registry.yarnpkg.com/react/-/react-16.9.0.tgz#40ba2f9af13bc1a38d75dbf2f4359a5185c4f7aa" | ||
|
@@ -6052,6 +6092,14 @@ scheduler@^0.15.0: | |
loose-envify "^1.1.0" | ||
object-assign "^4.1.1" | ||
|
||
schema-utils@^0.4.0: | ||
version "0.4.7" | ||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187" | ||
integrity sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ== | ||
dependencies: | ||
ajv "^6.1.0" | ||
ajv-keywords "^3.1.0" | ||
|
||
schema-utils@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770" | ||
|
@@ -7153,6 +7201,14 @@ worker-farm@^1.7.0: | |
dependencies: | ||
errno "~0.1.7" | ||
|
||
worker-loader@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/worker-loader/-/worker-loader-2.0.0.tgz#45fda3ef76aca815771a89107399ee4119b430ac" | ||
integrity sha512-tnvNp4K3KQOpfRnD20m8xltE3eWh89Ye+5oj7wXEEHKac1P4oZ6p9oTj8/8ExqoSBnk9nu5Pr4nKfQ1hn2APJw== | ||
dependencies: | ||
loader-utils "^1.0.0" | ||
schema-utils "^0.4.0" | ||
|
||
wrap-ansi@^2.0.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" | ||
|