@victor-dklv/vue3-npm

```sh npm install --save @victor-dklv/vue3-npm ``` ### For global use


License
ISC
Install
npm install @victor-dklv/vue3-npm@0.1.55

Documentation

DKLV packages for vuejs 3

Installation

npm install --save @victor-dklv/vue3-npm

For global use

After installation go to your main.js and add the package:

import plugin from '@victor-dklv/vue3-npm'

Add the plugin to your app:

createApp(App).use(plugin)

For local use

After installation go to your vue component and add the package:

import /*component name*/ from '@victor-dklv/vue3-npm'

export default {
    components:{
        /*component name*/
    }
}

//Components are listed below

To update

npm update --save @victor-dklv/vue3-npm

Components

Links


Image slider

To use the image slider add the dklv-image-slider to your component.

Variables:

  • image1
    • Type: String
    • Expected: Url
    • Required: True
  • image2
    • Type: String
    • Expected: Url
    • Required: True

Example

 <dklv-image-slider :image1="rightImg" :image2="leftImg" />

Image carousel

To use the image carousel add the dklv-image-carousel to your component.

Variables:

  • images
    • Type: Array
    • Expected: Array of urls
    • Required: True
  • height
    • Type: Number
    • Expected: Height in px
    • Required: False
  • autoscroll
    • Type: Boolean
    • Expected: true or false
    • Required: False

Example

 <dklv-image-carousel :imagelist="imgList" :height="carouselHeight" />

To do

  • Add Autoscroll functionalities

Developing

For development enviroment

# Install dependencies
npm install

# Run development server
npm run dev

Login as npm user

# Check if user is logged in
npm whoami

# Login as authorized user
npm login

Update code from terminal

# Build the updates
npm run build; 

# Commit the changes to git
git add --all; 
$date = Get-Date -Format "dd/MM/yyy HH:mm"; 
git commit -m "Autocommit $date";

#Get new patch version and publish to npm
npm version patch;
npm publish --acces=public

#push all changes to git
git push;

Next features

Feature Status
Cards with title, subtitle, text, image and button Open