Socket
Book a DemoInstallSign in
Socket

m24-gallery

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m24-gallery

A simple vuejs gallery component in use by Media24(.si)

0.3.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

M24 Article Gallery

Installation

npm install m24-gallery

Usage

Inside your main vue file:

import Vue from 'vue'

Vue.component('article-gallery', require('./../../../m24-gallery').default)

Inside your css or similar be sure to include the gallery css located at node_modules/m24-gallery/dist/m24-gallery.min.css

If you're using PurgeCSS be sure to whitelist the m24g- pattern inside the config, for example:

whitelistPatterns: [
  /^m24g-/
],

Customization

You can customize the color of the arrows and borders via

:root {
  --mainGalleryColor: grey; /* Color of navigation buttons and thumb borders */
  --secondaryGalleryColor: #292727; /* Color of the gallery background */
  --mainGalleryFontColor: white;
  --mainGalleryIconColor: white;
  --expandedGalleryBackground: rgba(0, 0, 0, 0.6); /* Color of the opaque background when expanding the gallery */
}

Props

PropRequiredDefault
imagestrue[]
titlefalse'Image Gallery'
imageSizesfalse{ wMax: 1200, wMin: 800, hMax: 'X', hMin: 500 }
thumbSizesfalse{ wMax: 400, wMin: 200, hMax: 240, hMin: 120 }

The imageSizes and thumbSizes are only valid when your URL strings contain dynamic size values (##WIDTH## and ##HEIGHT##)

Images values

The images array should contain items with the following properties...

[
  {
    "id": 123213,
    "title": "image.jpg",
    "description": "A custom image example",
    "author": "Author name goes here",
    "url": "http://image-location.com/image-##WIDTH##x##HEIGHT##.jpeg"
  }
]

FAQs

Package last updated on 28 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.