This is becoming interactive enough where having it be in Vue would be helpful.
Steps (two separate PRs):
[ ] Update LazyBookCard so that after it fetches /isbn/..., it fetches https://openlibrary.org/search.json?q=edition_key:OL38222427M&fields=key,author_name in stead of making multiple requests for the author names.
[ ] Create a new BarcodeScanner Vue component. Most of the helper classes should remain the same and just be moved over (eg OCRScanner). LazyBookCard should be made into a Vue component. OLBarcodeScanner should be made into a vue component. Life the html from barcode-scanner.html, and replace it with a Vue app rendering (eg $:render_component('MergeUI', attrs=attrs))
This is becoming interactive enough where having it be in Vue would be helpful.
Steps (two separate PRs):
/isbn/...
, it fetcheshttps://openlibrary.org/search.json?q=edition_key:OL38222427M&fields=key,author_name
in stead of making multiple requests for the author names.OCRScanner
).LazyBookCard
should be made into a Vue component.OLBarcodeScanner
should be made into a vue component. Life the html frombarcode-scanner.html
, and replace it with a Vue app rendering (eg$:render_component('MergeUI', attrs=attrs)
)Stakeholders
@Eds-Dbug