0.1.18 • Published 4 years ago

@internetarchive/ia-book-search-results v0.1.18

Weekly downloads
1
License
AGPL-3.0-only
Repository
-
Last release
4 years ago

Build Status codecov

\

This webcomponent follows the open-wc recommendation.

Installation

npm i ia-book-search-results

or

yarn add @internetarchive/ia-menu-slider

Usage

<script type="module">
  import 'ia-book-search-results/ia-book-search-results.js';
</script>

<ia-book-search-results .query='bristol'></ia-book-search-results>

Supply the element with an optional array of search results to immediately render. Each result can have these properties:

{
  title: 'Book title', // The item's title
  cover: '//archive.org/img/cover.jpg', // The item's cover image
  hits: ['Hello {{{world}}}'], // Search results taken from the `matches` property in returned search results
}

Styling

ia-book-search-results {
  --primaryTextColor: #fff;
  --activeButtonBg: #282828;
  --searchResultText: #adaedc;
  --searchResultBg: #272958;
  --searchResultBorder: #fff;
}

Linting with ESLint

To scan the project for linting errors, run

npm run lint

Testing with Karma

To run the suite of karma tests, run

npm run test

To run the tests in watch mode (for TDD, for example), run

npm run test:watch

Tooling configs

For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo with es-dev-server

npm start

To run a local development server that serves the basic demo located in demo/index.html

0.1.18

4 years ago

0.1.17

4 years ago

0.1.17-alpha3

4 years ago

0.1.17-alpha2

4 years ago

0.1.17-alpha1

4 years ago

0.1.15-alpha-1

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.14-alpha1

4 years ago

0.1.13

4 years ago

0.1.13-alpha3

4 years ago

0.1.13-alpha2

4 years ago

0.1.13-alpha1

4 years ago

0.1.12

4 years ago

0.1.6-alpha1

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago