0.2.2 • Published 3 years ago

vue-cookie-box v0.2.2

Weekly downloads
91
License
MIT
Repository
-
Last release
3 years ago

Status

Work in progress...

Usage

Installation

npm install vue-cookie-box --save

Component

<template>

<CookieBox />

<script>

import "vue-cookie-box/dist/vue-cookie-box.css"
import {CookieBox} from "vue-cookie-box"

export default {
  components: {
    CookieBox
  }
}

<style>

/* Or use CookieBox's bannerStyle property. */
.cookie-box-banner {
  background-color: blue;
}

paths (tsconfig)

Don't use path subsitution (e.g. import X from @/src/...) inside src. It breaks emitted typings when imported as npm package.

Ok to use in tests.

Styles

Don't scope styles of components which should accept overrides by consumer.

Todo

  • [] allow custom content via <slot>
  • [] i18n
  • [] make ConsentStoreSource string enum and export it

Contribution

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint
0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago