Socket
Socket
Sign inDemoInstall

@uppy/dashboard

Package Overview
Dependencies
Maintainers
5
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/dashboard - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

44

lib/components/AddFiles.js

@@ -96,31 +96,11 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

}, _this.props.i18n('browse'));
var renderDropFilesSubtitle = function renderDropFilesSubtitle(numberOfAcquirers) {
if (numberOfAcquirers > 0) {
return _this.props.i18nArray('dropPasteImport', {
browse: browse
});
}
return _this.props.i18nArray('dropPaste', {
browse: browse
});
};
return h("div", {
class: "uppy-Dashboard-dropFilesTitleGroup"
}, h("div", {
class: "uppy-Dashboard-dropFilesTitle"
}, renderDropFilesSubtitle(numberOfAcquirers)));
class: "uppy-Dashboard-AddFiles-title"
}, numberOfAcquirers > 0 ? _this.props.i18nArray('dropPasteImport', {
browse: browse
}) : _this.props.i18nArray('dropPaste', {
browse: browse
}));
};
_this.renderBrowseButton = function () {
return h("button", {
type: "button",
class: "uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-browseBtn",
onclick: _this.triggerFileInputClick,
"data-uppy-super-focusable": true
}, "Browse My Device");
};
_this.renderAcquirer = function (acquirer) {

@@ -152,3 +132,3 @@ return h("div", {

return h("div", {
class: "uppy-DashboardTabs-list",
class: "uppy-Dashboard-AddFiles-list",
role: "tablist"

@@ -200,10 +180,8 @@ }, _this.renderMyDeviceAcquirer(), acquirersWithoutLastTwo.map(function (acquirer) {

return h("div", {
class: "uppy-DashboardAddFiles"
}, this.renderHiddenFileInput(), h("div", {
class: "uppy-DashboardTabs"
}, this.renderDropPasteBrowseTagline(), this.props.acquirers.length > 0 && this.renderAcquirers(this.props.acquirers), h("div", {
class: "uppy-DashboardAddFiles-info"
class: "uppy-Dashboard-AddFiles"
}, this.renderHiddenFileInput(), this.renderDropPasteBrowseTagline(), this.props.acquirers.length > 0 && this.renderAcquirers(this.props.acquirers), h("div", {
class: "uppy-Dashboard-AddFiles-info"
}, this.props.note && h("div", {
class: "uppy-Dashboard-note"
}, this.props.note), this.props.proudlyDisplayPoweredByUppy && this.renderPoweredByUppy(this.props))));
}, this.props.note), this.props.proudlyDisplayPoweredByUppy && this.renderPoweredByUppy(this.props)));
};

@@ -210,0 +188,0 @@

@@ -1059,2 +1059,2 @@ var _class, _temp;

return Dashboard;
}(Plugin), _class.VERSION = "1.8.1", _temp);
}(Plugin), _class.VERSION = "1.8.2", _temp);
{
"name": "@uppy/dashboard",
"description": "Universal UI plugin for Uppy.",
"version": "1.8.1",
"version": "1.8.2",
"license": "MIT",

@@ -25,7 +25,7 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/informer": "^1.5.1",
"@uppy/provider-views": "^1.6.1",
"@uppy/status-bar": "^1.6.1",
"@uppy/thumbnail-generator": "^1.5.8",
"@uppy/utils": "^2.4.0",
"@uppy/informer": "^1.5.2",
"@uppy/provider-views": "^1.6.2",
"@uppy/status-bar": "^1.6.2",
"@uppy/thumbnail-generator": "^1.5.9",
"@uppy/utils": "^2.4.1",
"classnames": "^2.2.6",

@@ -44,3 +44,3 @@ "cuid": "^2.1.1",

},
"gitHead": "0481589f3bd589eabd78fd91af9e2688e356f4f9"
"gitHead": "5752662a93e22342f22464c8bb5bc7cb7c0ee7d7"
}

@@ -105,14 +105,9 @@ const { iconMyDevice } = require('./icons')

const renderDropFilesSubtitle = (numberOfAcquirers) => {
if (numberOfAcquirers > 0) {
return this.props.i18nArray('dropPasteImport', { browse })
}
return this.props.i18nArray('dropPaste', { browse })
}
return (
<div class="uppy-Dashboard-dropFilesTitleGroup">
<div class="uppy-Dashboard-dropFilesTitle">
{renderDropFilesSubtitle(numberOfAcquirers)}
</div>
<div class="uppy-Dashboard-AddFiles-title">
{
numberOfAcquirers > 0
? this.props.i18nArray('dropPasteImport', { browse })
: this.props.i18nArray('dropPaste', { browse })
}
</div>

@@ -122,15 +117,2 @@ )

renderBrowseButton = () => {
return (
<button
type="button"
class="uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-browseBtn"
onclick={this.triggerFileInputClick}
data-uppy-super-focusable
>
Browse My Device
</button>
)
}
renderAcquirer = (acquirer) => {

@@ -163,3 +145,3 @@ return (

return (
<div class="uppy-DashboardTabs-list" role="tablist">
<div class="uppy-Dashboard-AddFiles-list" role="tablist">
{this.renderMyDeviceAcquirer()}

@@ -176,11 +158,9 @@ {acquirersWithoutLastTwo.map((acquirer) => this.renderAcquirer(acquirer))}

return (
<div class="uppy-DashboardAddFiles">
<div class="uppy-Dashboard-AddFiles">
{this.renderHiddenFileInput()}
<div class="uppy-DashboardTabs">
{this.renderDropPasteBrowseTagline()}
{this.props.acquirers.length > 0 && this.renderAcquirers(this.props.acquirers)}
<div class="uppy-DashboardAddFiles-info">
{this.props.note && <div class="uppy-Dashboard-note">{this.props.note}</div>}
{this.props.proudlyDisplayPoweredByUppy && this.renderPoweredByUppy(this.props)}
</div>
{this.renderDropPasteBrowseTagline()}
{this.props.acquirers.length > 0 && this.renderAcquirers(this.props.acquirers)}
<div class="uppy-Dashboard-AddFiles-info">
{this.props.note && <div class="uppy-Dashboard-note">{this.props.note}</div>}
{this.props.proudlyDisplayPoweredByUppy && this.renderPoweredByUppy(this.props)}
</div>

@@ -187,0 +167,0 @@ </div>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc