1.2.1 • Published 4 years ago
@superbrave/dok-search-vue v1.2.1
SuperBrave Frontend Search Component
Project setup
yarn add @superbrave/dok-search-vueWebpack Config
import Vue from "vue"; // Make sure to install Vue first
import { dokSearchHeader, dokSearchDetail } from "@superbrave/dok-search-vue"; // Import the componentsImport 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 moduleLints and fixes files
yarn lintServe the module
yarn serveRun tests
Unit test will always run before pushing to git
yarn test:unitCreate a new release
To create a new release you must run:
npm run releasePlease note that this uses NPM and you need to be logged in to NPM to publish a new version.
1.2.0
4 years ago
1.2.1
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.1
4 years ago
1.1.2
4 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.0
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.2.2
5 years ago
0.1.0
5 years ago