Skip to content

Commit

Permalink
adds puppeteer package and print query to url
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmullen committed Jul 20, 2020
1 parent 18a6d72 commit 9527a02
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"localforage": "^1.7.2",
"node-yaml": "^3.1.1",
"promise-throttle": "^1.0.0",
"puppeteer": "^5.2.0",
"react-ace": "^6.2.0",
"react-clipboard.js": "^2.0.7",
"react-sizeme": "^2.6.7",
Expand Down
6 changes: 5 additions & 1 deletion packages/cms/src/components/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ class Profile extends Component {
}

render() {
const {profile, formatters, locale} = this.props;
const {profile, formatters, locale, location} = this.props;
const {query} = location;

const print = query.print === "true";

if (profile.error) {
const {error, errorCode} = profile;
Expand All @@ -39,6 +42,7 @@ class Profile extends Component {
profile={profile}
formatters={formatters}
locale={locale}
print={print}
/>
);
}
Expand Down
120 changes: 120 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9527a02

Please sign in to comment.