-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Jaewoook/docs/api-usage
Add example project implementation
- Loading branch information
Showing
17 changed files
with
1,519 additions
and
878 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "CI" | ||
name: "PDFium.js:CI" | ||
|
||
on: | ||
push: | ||
|
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,29 @@ | ||
name: "Example:CI" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache-dependency-path: "example/yarn.lock" | ||
node-version-file: ".tool-versions" | ||
- run: cd example | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache-dependency-path: "example/yarn.lock" | ||
node-version-file: ".tool-versions" | ||
- run: cd example | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn lint |
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,5 +1,5 @@ | ||
{ | ||
"printWidth": 120, | ||
"printWidth": 100, | ||
"singleQuote": false, | ||
"trailingComma": "es5", | ||
"semi": true | ||
|
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 +1 @@ | ||
nodejs 18.15.0 | ||
nodejs 20.17.0 |
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,14 @@ | ||
# PDFium.js Example Project | ||
|
||
This is an example project that utilizes `PDFium.js`. This project is built using Vite. | ||
By defaukt, this project downloads and installs the latest `PDFium.js` from npm, | ||
but you can change the version if you need. | ||
|
||
## How to run | ||
|
||
You can simply run the following commands to run this project. | ||
|
||
```sh | ||
yarn install | ||
yarn dev | ||
``` |
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
Binary file not shown.
Binary file not shown.
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,6 +1,49 @@ | ||
#root { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
text-align: center; | ||
width: 100vw; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
header { | ||
width: 100%; | ||
display: flex; | ||
padding: 1.25em 0.5em; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
} | ||
|
||
header > h1 { | ||
font-size: 2em; | ||
margin: 0; | ||
} | ||
|
||
#content { | ||
display: flex; | ||
} | ||
|
||
aside { | ||
padding: 1em 0.5em; | ||
} | ||
|
||
asdie button { | ||
margin: 0.5em; | ||
} | ||
|
||
main { | ||
display: flex; | ||
flex: 1; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
div.api-container { | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: 0.75em; | ||
} | ||
|
||
canvas { | ||
background: #e0e0e0; | ||
} |
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
Oops, something went wrong.