@filerobot/pixaforge

Import free images & icons from Pixaforge that has free gallery for both.

Usage no npm install needed!

<script type="module">
  import filerobotPixaforge from 'https://cdn.skypack.dev/@filerobot/pixaforge';
</script>

README

@filerobot/pixaforge

Import free images & icons from Pixaforge that has free gallery for both.

Usage

From NPM

The plugin is on NPM as @filerobot/pixaforge

npm install --save @filerobot/pixaforge

then

import Pixaforge from '@filerobot/pixaforge'
...
...
...
filerobot.use(Pixaforge, optionsObject)

From CDN

The plugin from CDN is found inside Filerobot global object Filerobot.Pixaforge

const Pixaforge = window.Filerobot.Pixaforge
...
...
...
filerobot.use(Pixaforge, optionsObject)

Plugin's styles

import '@filerobot/core/dist/style.css'
import '@filerobot/pixaforge/dist/style.css'

or if you prefer the minified version

import '@filerobot/core/dist/style.min.css'
import '@filerobot/pixaforge/dist/style.min.css'

The plugin's css file should be imported after the Core's css file for having the styles shown correctly.

Options

There are some few options for this plugin for helping in customization, as follow:

title: string

default: 'Pixaforge'

The title/label that would be shown & used for the plugin.

companionHeaders: null | object | object

default: null

If you need to pass additonal headers in companion requests then pass them in this property (used in importing the images from pixaforge).

locale: object (optional)

default: locales from filerobot's backend then default locale file with all labels is under lib/defaultLocale.js.

You can override some labels by specifying a translation object here, such as:

{
  strings: {
    standardPortraits: 'Standard verticals' // overrides the default Standard portraits value to standard verticals
  }
}