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

growi-plugin-attachment-refs

v2.0.2

Published

GROWI Plugin to add ref/refimg/refs/refsimg tags

Downloads

9

Readme

growi-plugin-attachment-refs

dependencies status devDependencies Status MIT License

Install

  1. install plugin

    yarn add growi-plugin-attachment-refs
    yarn add -D [email protected] react-motion
  2. build client app (see official documents)

Examples

List attachments

refs

Extract image attachments

refsimg

Image Carousel

lightbox

Usage

$ref tag

Syntax

$ref(file.txt)
$ref(file.txt, page=/somewhere/page)
$ref(5f17286fd7fbb1104fdbd111, page=/somewhere/page)

Options

  • file : File name of reference file (default: the first argument)
  • id : Attachment ID of reference file (default: the first argument)
  • page : Target page path of reference file (default: current page)

$refs tag

Syntax

$refs(/somewhere/page, regexp=/^file.*\.txt$/)

Options

  • page : Target page path to search attachments (default: the first argument || current page)
  • prefix : Page prefix to search attachments
  • depth : page depth to search attachments
  • regexp : Regular Expression to retrieve
  • (TBD) format : File format filtering

$refimg tag

Syntax

$refimg(pict.png, width=50%, alt=Pic)
$refimg(5f17286fd7fbb1104fdbd111, width=50%, alt=Pic)

Options

  • file : File name of reference file (default: the first argument)
  • id : Attachment ID of reference file (default: the first argument)
  • width : width
  • height : height
  • max-width : max-width
  • max-height : max-height
  • alt : alt text

$refsimg tag

Syntax

$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
$refsimg(prefix=/somewhere, grid=autofill, grid-gap=1px)

Options

  • page : Target page path to search attachments (default: the first argument || current page)
  • prefix : Page prefix to search attachments
  • depth : page depth to search attachments
  • regexp : Regular Expression to retrieve
  • (TBD) format : File format filtering
  • width : width
    • e.g. width=200px, width=50%
  • height : height
    • e.g. height=100px
  • max-width : max-width
    • e.g. max-width=200px, max-width=50%
  • max-height : max-height
    • e.g. max-height=100px
  • display : display property for image (use display: block when undefined)
    • This option is disabled when grid option is set.
  • grid : Grid layout settings
    • autofill : Grid layout with auto filling with 64px tracks
    • autofill-xs : Grid layout with auto filling with 32px tracks
    • autofill-sm : Grid layout with auto filling with 48px tracks
    • autofill-md : Grid layout with auto filling with 64px tracks
    • autofill-lg : Grid layout with auto filling with 128px tracks
    • autofill-xl : Grid layout with auto filling with 192px tracks
    • col-2 : Grid layout with 2 columns
    • col-3 : Grid layout with 3 columns
    • col-4 : Grid layout with 4 columns
    • col-5 : Grid layout with 5 columns
    • col-6 : Grid layout with 6 columns
  • grid-gap : Grid gap
    • e.g. grid-gap=1px
  • no-carousel : Omit carousel function and just show images

$gallery tag

gallery

Short-hand for $refsimg(grid=col4, grid-gap=1px).

Syntax

$gallery(prefix=/somewhere/page)

Options

See the options of refsimg

TODO

  • [ ] format option