Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dummy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
<li><a href="/debug-uploads.html">debug uploads</a></li>
<li><a href="/live.html">live</a></li>
<li><a href="/nft.html">nft</a></li>
<li><a href="/unsplash.html">unsplash</a></li>
<li><a href="/logout.html">logout</a></li>
</ul>
15 changes: 15 additions & 0 deletions dummy/unsplash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<meta charset="UTF-8" />
<meta content="width=device-width,initial-scale=1" name="viewport"/>
<script>
UPLOADCARE_PUBLIC_KEY = 'demopublickey'
UPLOADCARE_TABS = 'preview unsplash'
UPLOADCARE_DEBUG_UPLOADS = true
</script>
<script src="./uploadcare.full.js"></script>

<input
type="hidden"
role="uploadcare-uploader"
data-crop="4:5"
preview-step=""
/>
3 changes: 2 additions & 1 deletion src/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const translations = {
onedrive: 'OneDrive',
flickr: 'Flickr',
huddle: 'Huddle',
nft: 'NFT'
nft: 'NFT',
unsplash: 'Unsplash'
},
file: {
drag: 'drag & drop<br>any files',
Expand Down
2 changes: 1 addition & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ constraints = {
}
presets = {
tabs: {
all: 'file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle',
all: 'file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle unsplash',
default: defaults.tabs
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/svgs/icon-unsplash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/widget/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ registerTab('box', RemoteTab)
registerTab('onedrive', RemoteTab)
registerTab('huddle', RemoteTab)
registerTab('nft', RemoteTab)
registerTab('unsplash', RemoteTab)
registerTab('empty-pubkey', function (tabPanel, _1, _2, settings) {
return tabPanel.append(emptyKeyText)
})
Expand Down