Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@filerobot/explorer
Advanced tools
Filerobot explorer for the files uploaded on filerobot, handling them & upload new files.
@filerobot/explorer
The file explorer and media gallery plugin of the Filerobot Media Asset Widget.
The plugin can be installed from NPM as @filerobot/explorer
npm install --save @filerobot/explorer
then
import Explorer from '@filerobot/explorer'
...
...
...
filerobot.use(Explorer, optionsObject)
If installed via a CDN link, the plugin is inside the Filerobot
global object as Filerobot.Explorer
const Explorer = window.Filerobot.Explorer
...
...
...
filerobot.use(Explorer, optionsObject)
import '@filerobot/core/dist/style.css'
import '@filerobot/explorer/dist/style.css'
or via the minified versions
import '@filerobot/core/dist/style.min.css'
import '@filerobot/explorer/dist/style.min.css'
The plugin's css file should be imported after the Core's css file for having the styles shown correctly.
Multiple options are available in order to customize the plugin to address your use cases. A description of all options is available below. The required attributes for configuring the plugin are marked as (required) in the documentation below.
{
id: 'Explorer',
config: {
container: 'demo',
companyName: 'scaleflex',
apiEndpoint: 'api',
adminEndpoint: 'admin',
shareEndpoint: 'share',
sassKey: sassKey,
dev: false,
foldersLimit: 200,
filesLimit: 50,
folderPath: '/',
tagging: {
language: 'en',
confidence: 60,
key: '',
limit: 10,
provider: 'google',
suggestionList: [
'Alligator',
'Bask',
'Crocodilian',
'Death Roll'
]
}
},
inline: false,
target: '#filerobot-container',
trigger: '#filerobot-trigger-button',
width: 750,
height: 500,
floaty: false,
showBar: true,
thumbnailWidth: 280,
thumbnailHeight: 180,
waitForThumbnailsBeforeUpload: false,
showProgressDetails: true,
hideUploadButton: false,
hideRetryButton: false,
hideCancelButton: false,
note: null,
closeModalOnClickOutside: false,
closeAfterFinish: false,
disableStatusBar: false,
disableInformer: false,
disableThumbnailGenerator: false,
disablePageScrollWhenModalOpen: true,
animateOpenClose: true,
onRequestCloseModal: () => this.closeModal(),
locale: default,
browserBackButtonCloseModal: false,
theme: 'light',
noImgOperationsAndDownload: false,
disableSelectionActions: false,
topRightMenuComponentItem: undefined,
disableExportButton: false,
tagsInsideGeneral: false,
viewType: 'grid',
showFolderTree: false,
showDetailsView: false,
contextMenuSubTabs: {
fileMore: ['META', 'TAGS', 'EMBED', 'VISIBILITY', 'VERSIONING', 'VARIANTS'],
fileShare: ['SHARE_ASSETS', 'GET_LINK']
},
noItemsBrowser: false,
resetAfterClose: false,
useShareboxMode: false
shareboxPUID: null
}
config: object
(required)default: null
The config objects contains the main configuration for the plugin to interact with your Filerobot project:
scaleflex
200
50
/
60
10
google
inline: boolean
(optional)default: false
If set to true
, the plugin will be displayed as inline element in the element referred by the target property. Otherwise, it will pop up in a modal upon trigger, see below.
trigger: string
(optional)default: null
The selector used for triggering the display of the plugin modal, if passed to querySelectorAll
function. Available options:
body
#filerobot-trigger-button
or .filerobot-trigger-button
Multiple triggers are supported as click events.
required if
inline: false
target: string
(required)default: body
The selector used for displaying the plugin, if passed to querySelector
function. Options:
body
#filerobot-container
or .filerobot-container
width: integer|string
(optional)default: 700
Width of the plugin as a number if specified in pixels or a percentage, eg. '50%'
height: integer|string
(optional)default: 500
Height of the plugin as a number if specified in px
or a percentage eg. '35%'
floaty: boolean
(optional)default: false
Set to true
to configure the plugin to be floaty and stay in a fied position as you scroll the media library.
setting the
floaty
attribute totrue
has an impact on some styles and behavior, eg. bigger spacings for some elements, having close button instead of back for slided wrappers/modals, ...
showBar: boolean
(optional)default: true
If set to false
, hides the top bar with Upload button, refresh icon, create folder icon and view switcher icon as well as search input field.
thumbnailWidth: integer
(optional) no workingno working
default: 280
Pixel width of the asset thumbnails displayed in the gallery. Apect ratio of images is kept in case of image assets.
thumbnailHeight: integer
(optional) no workingdefault: 170
Pixel height of the asset thumbnails displayed in the gallery. Apect ratio of images is kept in case of image assets.
waitForThumbnailsBeforeUpload: boolean
(optional)default: false
If set to true
, delays the start of the upload process until the asset thumbnails are generated and displayed in the plugin.
showProgressDetails: boolean
(optional)default: true
If set to false
, hides the upload progress bar.
hideUploadButton: boolean
(optional)default: false
If set to true
, hides the Upload button at the top of the plugin.
hideRetryButton: boolean
(optional)default: false
If set to true
, hides the Retry button that can be used to retry an upload in case of failing upload.
hideCancelButton: boolean
(optional)default: false
If set to true
, hides the Cancel used to cancel an upload.
note: string
(optional)default: null
A custom note displayed in the upload sreen.
closeModalOnClickOutside: boolean
(optional)default: false
If set to true
, plugin modal will be closed when clicking outside of the modal.
only relevant if
inline: false
closeAfterFinish: boolean
(optional)default: false
If set to true
, modal will close after upload is finished.
only relevant if
inline: false
disableStatusBar: boolean
(optional)default: false
If set to true
, disables the status-bar plugin which shows the upload/download progress.
disableInformer: boolean
(optional)default: false
If set to true
, disables the informer plugin used to show warnings and errors.
disableThumbnailGenerator: boolean
(optional)default: false
If set to true
, disables the thumbnail-generator plugin that generates image thumbails.
disablePageScrollWhenModalOpen: boolean
(optional)default: true
If set to true
, disables scrolling for the document while the plugin modal is open.
only relevant if
inline: false
(optional)
onRequestCloseModal: () => undefined
default: closeModal
function
Specified a custom function to be executed when trying to close the modal.
default closing modal behavior is overriden
animateOpenClose: boolean
(optional)default: true
If set to false
, disable the modal's opening and closing.
only relevant if
inline: false
locale: object
(optional)default: default locale file is lib/defaultLocale.js
You can override the default labels and translations by specifying an alternative locale file path here.
theme: string
(optional)default: 'light'
browserBackButtonCloseModal: boolean
(optional)default: false
If set to true
, the browser Back button will close the modal, otherwise it will trigger the standard back browser behavior.
only relevant if
inline: false
noImgOperationsAndDownload: boolean
(optional)default: false
If set to true
, hides the options following options from the asset's right-click contextual menu:
disableSelectionActions: boolean
(optional)default: false
If set to true
, hides the action buttons for:
disableExportButton: boolean
(optional) no workingdefault: false
If set to true
, hides the Export button in the top bar do download a single or multiple assets.
****topRightMenuComponentItem: React.Component
(optional)default: undefined
A react component that would be added at the top right menu of the top bar for appending/expanding some functionality.
tagsInsideGeneral: boolean
(optional)default: false
If set to true
, the content of the Tags tab is moved to the General tab and the General tab renamed to General & Tags.
viewType: string
(optional)default: grid
Specified the default view for the asset list:
The user will be able to switch between views from the view selector icon in the top bar.
showFolderTree: boolean
(optional)default: false
If set to true
, shows the folder tree will in the left bar of the plugin for the user to navigate folders. The user can show / hide the folder tree from the view switcher icon in the top bar.
showDetailsView: boolean
(optional)default: false
If set to true
, shows the asset details view on the right bar of the plugin for the user to view various details about selected assets. The user can show / hide the details view switcher icon in the top bar.
contextMenuSubTabs: object
(optional)default:
{
fileMore: ['META', 'TAGS', 'EMBED', 'VISIBILITY', 'VERSIONING', 'VARIANTS'],
fileShare: ['SHARE_ASSETS', 'GET_LINK']
}
If you need to customize the sub tabs that are opened from the parent tabs of the context menu (the menu shown on clicking right click on the file/folder):
['META', 'TAGS', 'EMBED', 'VISIBILITY', 'VERSIONING', 'VARIANTS']
.['SHARE_ASSETS', 'GET_LINK']
.noItemsBrowser: boolean
(optional)default: false
If set to true
, hides the gallery view displaying files/folders and only allows the user to upload a single or multiple assets.
resetAfterClose: boolean
(optional) no workingdefault: false
If set to true
, resets the plugin state after closing the modal
only relevant if
inline: false
useShareboxMode: boolean
*no workingdefault: false
If set to true
, activates the Sharebox mode of the widget to share a gallery of files with external, non-Filerobot users.
The
shareboxPUID
property from the Filerobot Asset Hub is required for using the Sharebox mode, see below.
shareboxPUID: string
(optional)default: null
Identifies a Sharebox created in the Filerobot Asset Hub with selected files / folders to be shared as part of a Sharebox with external users.
shareboxPassword: string
(optional)default: null
If enabled, the Sharebox will require this password for users to access files / folders.
videoTranscoding: object
(optional)default:
{
resolution: 'auto',
protocol: 'HLS'
}
Video transcoding options for post-upload video transcoding:
auto
.HLS
.FAQs
Filerobot explorer for the files uploaded on filerobot, handling them & upload new files.
The npm package @filerobot/explorer receives a total of 1,495 weekly downloads. As such, @filerobot/explorer popularity was classified as popular.
We found that @filerobot/explorer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.