This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@superbrave/dok-search-vue

1.2.1 • Public • Published

SuperBrave Frontend Search Component

Project setup

yarn add @superbrave/dok-search-vue

Webpack Config

import Vue from "vue"; // Make sure to install Vue first
import { dokSearchHeader, dokSearchDetail } from "@superbrave/dok-search-vue"; // Import the components

Import the CSS. This can be done in JS or CSS

import '@superbrave/dok-search-vue/dist/sbdoksearch.css'

Now you can create a new Vue instance and add the components

// For the Search Header
new Vue({
  el: "#dokSearchHeader",
  components: {
    SearchHeader: dokSearchHeader,
  },
});

// For the Detail page
new Vue({
  el: "#dokSearchDetail",
  components: {
    SearchDetail: dokSearchDetail,
  },
});

Example HTML:

<!-- For the Search Header -->
<div id="dokSearchHeader">
  <search-header env="dev" language="nl" detail-uri="/search" />
</div>

<!-- For the Detail page -->
<div id="dokSearchDetail">
  <search-detail env="dev" language="nl" />
</div>
Parameter Required Default Info
language Yes '' ISO 639-1 language code
env No production Options: dev, test, acceptance, production.
detail-uri No '' The URI of the search detail page. Example: /search Only available in the Search Header

* Please note that the combination of language and env wil determine the AppSearch engine so results may vary due to the chosen values.

Development

Build the CommonJS module

yarn module

Lints and fixes files

yarn lint

Serve the module

yarn serve

Run tests

Unit test will always run before pushing to git

yarn test:unit

Create a new release

To create a new release you must run:

npm run release

Please note that this uses NPM and you need to be logged in to NPM to publish a new version.

Readme

Keywords

none

Package Sidebar

Install

npm i @superbrave/dok-search-vue

Weekly Downloads

1

Version

1.2.1

License

GPL-3.0

Unpacked Size

3.92 MB

Total Files

16

Last publish

Collaborators

  • joelb95
  • jorik12345