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

@filerobot/progress-panel

v3.41.14

Published

A progress panel for Filerobot, handles upload, download, video transformation operation simultaneously

Downloads

4,029

Readme

@filerobot/progress-panel

Plugins Website Version Scaleflex team License CodeSandbox

A panel showing the progress of uploading, downloading, transforming with possibility to cancel/retry/show location in Filerobot Media Asset Widget.

Usage

NPM

npm install --save @filerobot/progress-panel

YARN

yarn add @filerobot/progress-panel

then

import ProgressPanel from '@filerobot/progress-panel'
...
...
...
filerobot.use(ProgressPanel, propertiesObject)

From CDN

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

const ProgressPanel = window.Filerobot.ProgressPanel
...
...
...
filerobot.use(ProgressPanel, propertiesObject)

If you are using @filerobot/explorer plugin you don't need to manually import this plugin as it is being imported automatically there with its styles and the default id ProgressPanel.

Plugin's styles

import "@filerobot/core/dist/style.css";

or if you prefer the minified version

import "@filerobot/core/dist/style.min.css";

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

Example

  const Filerobot = window.Filerobot;
  const demoContainer = "scaleflex-tests-v5a";
  const demoSecurityTemplateId = "......";

  const filerobot = Filerobot.Core({
    securityTemplateId: demoSecurityTemplateId,
    container: demoContainer,
    dev: false, // optional, default: false
   });

  const Explorer = Filerobot.Explorer;
  const ProgressPanel = Filerobot.ProgressPanel
  const XHRUpload = Filerobot.XHRUpload

  filerobot
    .use(Explorer, { target: "#filerobot-widget", inline: true })
    .use(ProgressPanel, {
      target: '#filerobot-progress-panel',
    });
    .use(XHRUpload)

Properties

target

Type: string

Default: undefined

The selector (ID, Class) of an HTML element or an existed HTML element that would be used for displaying the plugin.

NOTE If no target provided, it wll show inside Explorer.

locale

Type: object.

Default:

strings: {
  progressPanelProcessingHeaderLabel: 'Processing',
  progressPanelProcessedHeaderLabel: 'Processed',
  progressPanelHeaderItemsText: {
    0: 'item',
    1: 'items'
  },
  progressPanelEtaLeftText: '%{time} left',
  progressPanelActivityCompleteLabel: 'Uploaded',
  progressPanelActivityErrorLabel: 'Uploading failed',
  progressPanelActivityProgressLabel: 'Uploading',
  progressPanelCompleteActionTitle: 'Show file location',
  progressPanelVideoActivityCompleteActionTitle: 'Show link',
  progressPanelErrorActionTitle: 'Retry',
  progressPanelProgressActionTitle: 'Cancel',
  progressPanelPauseActionTitle: 'Pause',
  progressPanelResumeActionTitle: 'Resume',
  progressPanelAssetProcessingTitle: 'Asset is being processed',
  uploadDelayedHint: 'It takes few seconds to complete processing, after you can use your uploaded assets.',
  progressPanelArchiveCompleteLabel: 'Completed archive',
  progressPanelArchiveFailedLabel: 'Failed archive',
  progressPanelPreparingArchiveLabel: 'Preparing archive',
  progressPanelDownloadingArchiveLabel: 'Downloading archive',
  progressPanelDownloadingActivityLabel: 'Downloading',
  progressPanelDownloadingActivityErrorLabel: 'Downloading failed',
  progressPanelDownloadingActivityCompleteLabel: 'Downloaded',
  progressPanelTranscodeActivityLabel: 'Transcoding',
  progressPanelTranscodedActivityLabel: 'Transcoded',
  progressPanelTranscodeErrorActivityLabel: 'Transcoding failed',
  progressPanelCompressActivityLabel: 'Compressing',
  progressPanelCompressedActivityLabel: 'Compressed',
  progressPanelCompressErrorActivityLabel: 'Compressing failed',
  progressPanelConvertActivityLabel: 'Converting',
  progressPanelConvertedActivityLabel: 'Converted',
  progressPanelConvertErrorActivityLabel: 'Converting failed',
  progressPanelPreparingCsvActivityLabel: 'Preparing CSV',
  progressPanelProcessingCsvActivityLabel: 'Processing CSV',
  progressPanelProcessingCsvActivityErrorLabel: 'Processing CSV failed',
  progressPanelProcessedCsvActivityLabel: 'Processed CSV'
}

Customizing some of the translations or the language's strings and replace the default locale.

Events

The progress panel plugin emits different events that you could subscribe to or add your handler to be called with the provided arguments passed while emitting/firing the event, the events are listed below with examples show the parameters for handler:

progressPanel-minimize

Emitted when progress panel is minimized.

  • value: minimize value true/false.

progressPanel-toggle

Emitted when progress panel is opened/closed.

  • value: toggle value true/false.

activities-reset

Emitted when progress panel is closed.

activity-progress

Emitted when activity is on progress.

params: object:

  • id: activity id.
  • percentage: activity progress percentage.

activity-update

Emitted when activity is updated.

params: object:

  • id: activity id.
  • progress: activity progress details.

activity-action

Emitted when activity action button is clicked.

params: object:

  • id: activity id.
  • activity: whole activity details.
  • activityActionType: action type(locate, play, pause, embed).

activity-error

Emitted when activity has an error.

params: object:

  • id: activity id.
  • error: error details.

activity-retry

Emitted when activity is retried.

params: object:

  • id: activity id.

activity-cancel

Emitted when activity is cancelled.

params: object:

  • id: activity id.