npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ispa.io/vimage

v1.0.3

Published

vimage is a plugin for Vue.js that allows you to show images in full-screen gallery by adding only one directive to the tag.

Downloads

3

Readme

v-image is a plugin for Vue.js that allows you to show images in full-screen gallery by adding only one directive to the tag. This project created and used for iSPA CMS, so if you used this package, please noted that we may not check your issue or request.

Table of contents

Milestone

  • [ ] srcSet attributes support
  • [ ] Custom download buttons group for srcSet
  • [ ] Custom Icons (Download, Arrows, Close)
  • [ ] Video support
  • [ ] Picture tag support
  • [ ] Gallery Auto play
  • [ ] Integrate with el-image (Element UI)

Getting started

Install

npm i @ispa.io/vimage     // npm

Usage

import Vue from 'vue';
import vImage from '@ispa.io/vimage';

Vue.use(vImage);

Optional configurations

In this snippet all settings has its default value. Don't specify them unless you want to change default behavior.

const vImageConfig = {
  //  Global title
  'title': null,
  //  Show download button
  'download': false,
  //  Show thumbnails
  'thumbnails': false,
  //  on Event to show image
  'openOn': 'click',
}
Vue.use(vImage, vImageConfig);

Example

Grouping images list

<div v-image data-thumbnails title="global title">
  <img data-group="group-1" data-download src="..." data-src="..." alt="image 1">
  <img data-group="group-1" data-download src="..." data-src="..." alt="image 2">
  <img data-group="group-2" src="..." data-src="..." alt="image 3">
  <img data-group="group-2" src="..." data-src="..." alt="image 4">
</div>

OR

<div v-image="{
  'group': 'group-name',
  'download': true,
  'thumbnails': true
}">
  <img src="..." data-src="..." alt="image 1">
  <img src="..." data-src="..." alt="image 2">
</div>

OR

<img v-image data-group="group-1" data-download src="..." data-src="..." alt="image 1">
<img v-image data-group="group-1" data-download src="..." data-src="..." alt="image 2">
<img v-image data-group="group-2" src="..." data-src="..." alt="image 3">
<img v-image data-group="group-2" src="..." data-src="..." alt="image 4">

Only one image

<img v-image data-download src="...">

OR

<img v-image src="..." data-src="...">

Options

| Option | Description | Default value | Data type | | :----: | :---------: | :-----------: | :-------: | | group | Group name | null | String | | data-src | Image source that will be displayed in gallery | data-src attribute | String | | src | Image thumbnails | src attribute | String | | title | Caption that will be displayed | empty String or value of the alt attribute | String | | openOn | Event listener to open gallery will be applied to tagName. Available options are all native JS events. | click/dblclick/mouseover... | String | | data-download | Download button show | false | Boolean | | data-thumbnails | Small thumbnails show (this thumb will be show by the src attribute) | false | Boolean |

This plugins has more options and will be available at next versions.

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Malayvuong

Invite me a cup of coffee

If you like this project and want to contribute us, then you can send us a cup of coffee by this ways below:

| PAYPAL.ME | MOMO App (Vietnam) | |:--------------------:|:------------------:| | | |

⬆ back to top