n6g7 / httpdf Goto Github PK
View Code? Open in Web Editor NEWPDF as React components, props over HTTP
Home Page: https://hub.docker.com/r/n6g7/httpdf/
License: MIT License
PDF as React components, props over HTTP
Home Page: https://hub.docker.com/r/n6g7/httpdf/
License: MIT License
Dependabot couldn't find a package.json for this project.
Dependabot requires a package.json to evaluate your project's current JavaScript dependencies. It had expected to find one at the path: /lib/js/package.json
.
If this isn't a JavaScript project, or if it is a library, you may wish to disable updates for it from within Dependabot.
You can mention @dependabot in the comments below to contact the Dependabot team.
Components are rendered synchronously which means we can't do any async processing before rendering a file.
We could support a pre-render async method in the component class which could return initial props (ร la getInitialProps
).
class Test extends PureComponent {
static document = true
static async getInitialProps(props) {
return {
...props,
api: await myApi()
}
}
render() {
...
}
}
Hi,
This is a fantastic microservice. I have been trying to setup my own docker but am having issues with CORS. Things I have attempt:
Add cors npm package and follow setup process
-I would have thought this would solve any issues, but Im not sure if there is something odd happening during the indexing process that creates the routes.
Using Moseif CORS extension on chrome, this works but I cant ask people to download it =)
Any tips to get rid of "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."?
The docker container crashes on me, with the node process being killed
.
This happened while running v0.0.6 on AWS ECS using 256 MB of memory.
Users can't add custom node dependencies (eg. moment, luxon, etc).
Current solution: add a yarn add
command to Dockerfile.
Goal: to make designing files easier.
Adding ?debug
to a url would return HTML instead of a pdf.
With inline css, etc.
Bonus: hot reloading?
Do images work out of the box? ๐ค
Thanks for providing the container! I have a question about one httpd config:AuthnCacheContext
.
It seems the official document recommends to change the default directory
, which is conservative and not optimal. A better policy is to name the AuthnCacheContext
for the password provider: for example a htpasswd file or database table.
Maybe it's better to set that to specify a context string for use in the cache keyin the comfig file? Thanks.
For faster development (no need to rebuild image when changing files).
Ideas:
HTTPDF_DEBUG
env var. following behaviour only applies when set to true (defaults to false)$HTTPDF_DOCUMENTS_SRC
for changesresolver.buildIndex()
Provide example of tests to test validity of JS files before babel transpilation.
Don't want to provide an URL to render every component in the tree.
Return array of errors for each prop instead of strings.
Hi,
I cloned your project, did 'yarn install' and then 'yarn dev' and I am getting errors like this:
Error: Cannot find module './../.build/asyncProps.js'
Error: Cannot find module './../.build/broken.js'
Error: Cannot find module './../.build/demo.js'
Error: Cannot find module './../.build/components/index.js'
Could you help me to fix this problem and make it work?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.