Skip to content

Commit

Permalink
Implement portrait capture view with 1.4 aspect ratio (#25)
Browse files Browse the repository at this point in the history
* Implement portrait capture.

* Add eslint.

* Change NATIONAL_ID_DOC to GREEN_BOOK.

* Add an observer for the document type attribute.

* Add logs for QA.

* Update log.

* Cleanups.

* Use inline JS inside the markup template.

* Update package version.

* Use a combination of observer and static get.

* Add logs for QA.

* Update HTML markup when the document type attribute changes.

* Cleanups.

* Include previous change.

* Constrain view within fixed sized area.

* Add extra padding.

* Add left spacing.

* Adjust button width.
  • Loading branch information
nii-mants3 authored May 24, 2023
1 parent c33f30f commit 113183e
Show file tree
Hide file tree
Showing 11 changed files with 5,489 additions and 1,691 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: 'airbnb-base',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'max-len': 'off',
indent: ['error', 2],
'no-underscore-dangle': 'off',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: false }],
},
env: {
'cypress/globals': true,
},
};
Loading

0 comments on commit 113183e

Please sign in to comment.