-
Notifications
You must be signed in to change notification settings - Fork 1
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 #43 from Adyen/develop
Adyen Document Viewer v1.1.3
- Loading branch information
Showing
11 changed files
with
486 additions
and
33 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,41 @@ | ||
name: PR CI | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths-ignore: | ||
- README.md | ||
- LICENSE | ||
- .gitignore | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
|
||
- run: npm i | ||
- run: npm run check:all | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
|
||
- run: npm i | ||
- run: npm run build | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
|
||
- run: npm i | ||
- run: npx playwright install | ||
- run: npm run test |
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,25 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Adyen Document Viewer Example</title> | ||
|
||
<link rel="stylesheet" href="/adyen-document-viewer.min.css" /> | ||
</head> | ||
<body> | ||
<div id="document-viewer"></div> | ||
|
||
<script type="module"> | ||
import AdyenDocumentViewer from '/adyen-document-viewer.min.mjs?url'; | ||
import exampleDocument from './mock-data'; | ||
|
||
const documentViewer = new AdyenDocumentViewer('#document-viewer', { | ||
onExpandSection: (sectionTitle) => console.log(`${sectionTitle} expanded`), | ||
multiple: false, | ||
}); | ||
|
||
documentViewer.render(exampleDocument); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.