2019-06-28 19:00:29 +02:00
|
|
|
// @flow
|
2020-06-30 07:51:15 +02:00
|
|
|
import React from 'react';
|
2019-06-28 19:00:29 +02:00
|
|
|
import FileSelector from 'component/common/file-selector';
|
2021-10-08 05:47:39 +02:00
|
|
|
import * as SPEECH_URLS from 'constants/speech_urls';
|
2020-06-30 07:51:15 +02:00
|
|
|
import { FormField, Form } from 'component/common/form';
|
|
|
|
import Button from 'component/button';
|
|
|
|
import Card from 'component/common/card';
|
|
|
|
import { generateThumbnailName } from 'util/generate-thumbnail-name';
|
|
|
|
import usePersistedState from 'effects/use-persisted-state';
|
2019-06-28 19:00:29 +02:00
|
|
|
|
2019-10-07 22:02:32 +02:00
|
|
|
const accept = '.png, .jpg, .jpeg, .gif';
|
2019-06-28 19:00:29 +02:00
|
|
|
const SPEECH_READY = 'READY';
|
|
|
|
const SPEECH_UPLOADING = 'UPLOADING';
|
2020-06-29 21:54:07 +02:00
|
|
|
|
2019-06-28 19:00:29 +02:00
|
|
|
type Props = {
|
|
|
|
assetName: string,
|
|
|
|
currentValue: ?string,
|
2022-07-14 02:09:11 +02:00
|
|
|
onUpdate: (string, boolean, ?string) => void,
|
2019-06-28 19:00:29 +02:00
|
|
|
recommended: string,
|
2020-06-30 07:51:15 +02:00
|
|
|
title: string,
|
|
|
|
onDone?: () => void,
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
inline?: boolean,
|
2022-07-14 02:09:11 +02:00
|
|
|
// When uploading pictures, the upload service
|
|
|
|
// can return success but the image isn't ready
|
|
|
|
// to be displayed yet. This is when a local preview
|
|
|
|
// comes in handy. The preview (base 64) will be
|
|
|
|
// passed to the onUpdate function after the
|
|
|
|
// upload service returns success.
|
|
|
|
buildImagePreview?: boolean,
|
2022-09-02 18:43:35 +02:00
|
|
|
// File extension filtering. Files can be filtered
|
|
|
|
// but the "All Files" options always shows up. To
|
|
|
|
// avoid that, you can use the filters property.
|
|
|
|
// For example, to only accept images pass the
|
|
|
|
// following filter:
|
|
|
|
// { name: 'Images', extensions: ['jpg', 'png', 'gif'] },
|
|
|
|
filters?: Array<{ name: string, extension: string[] }>,
|
|
|
|
type?: string,
|
2019-06-28 19:00:29 +02:00
|
|
|
};
|
|
|
|
|
2022-07-14 02:09:11 +02:00
|
|
|
function filePreview(file) {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
const reader = new FileReader();
|
|
|
|
reader.onload = () => {
|
|
|
|
resolve(reader.result.toString());
|
|
|
|
};
|
|
|
|
reader.onerror = () => {
|
|
|
|
resolve(undefined);
|
|
|
|
};
|
|
|
|
reader.readAsDataURL(file);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-06-28 19:00:29 +02:00
|
|
|
function SelectAsset(props: Props) {
|
2022-09-02 18:43:35 +02:00
|
|
|
const { onUpdate, onDone, assetName, currentValue, recommended, title, inline, buildImagePreview, filters, type } =
|
|
|
|
props;
|
2020-06-30 07:51:15 +02:00
|
|
|
const [pathSelected, setPathSelected] = React.useState('');
|
|
|
|
const [fileSelected, setFileSelected] = React.useState<any>(null);
|
|
|
|
const [uploadStatus, setUploadStatus] = React.useState(SPEECH_READY);
|
|
|
|
const [useUrl, setUseUrl] = usePersistedState('thumbnail-upload:mode', false);
|
2021-08-25 02:28:23 +02:00
|
|
|
const [url, setUrl] = React.useState(currentValue);
|
2020-06-30 07:51:15 +02:00
|
|
|
const [error, setError] = React.useState();
|
2019-06-28 19:00:29 +02:00
|
|
|
|
2020-06-30 07:51:15 +02:00
|
|
|
function doUploadAsset() {
|
2019-06-28 19:00:29 +02:00
|
|
|
const uploadError = (error = '') => {
|
2020-03-13 20:54:31 +01:00
|
|
|
setError(error);
|
2019-06-28 19:00:29 +02:00
|
|
|
};
|
|
|
|
|
2022-07-14 02:09:11 +02:00
|
|
|
const onSuccess = async (thumbnailUrl) => {
|
|
|
|
let preview;
|
2019-06-28 19:00:29 +02:00
|
|
|
setUploadStatus(SPEECH_READY);
|
2022-07-14 02:09:11 +02:00
|
|
|
|
|
|
|
if (buildImagePreview) {
|
|
|
|
preview = await filePreview(fileSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
onUpdate(thumbnailUrl, !useUrl, preview);
|
2020-06-30 07:51:15 +02:00
|
|
|
|
|
|
|
if (onDone) {
|
|
|
|
onDone();
|
|
|
|
}
|
2019-06-28 19:00:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
setUploadStatus(SPEECH_UPLOADING);
|
|
|
|
|
|
|
|
const data = new FormData();
|
2020-06-30 07:51:15 +02:00
|
|
|
const name = generateThumbnailName();
|
2019-06-28 19:00:29 +02:00
|
|
|
data.append('name', name);
|
2020-06-30 07:51:15 +02:00
|
|
|
data.append('file', fileSelected);
|
2019-06-28 19:00:29 +02:00
|
|
|
|
2019-10-07 22:02:32 +02:00
|
|
|
return fetch(SPEECH_URLS.SPEECH_PUBLISH, {
|
2019-06-28 19:00:29 +02:00
|
|
|
method: 'POST',
|
|
|
|
body: data,
|
|
|
|
})
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
.then((response) => response.json())
|
|
|
|
.then((json) => (json.success ? onSuccess(`${json.data.serveUrl}`) : uploadError(json.message)))
|
|
|
|
.catch((err) => {
|
2020-06-30 07:51:15 +02:00
|
|
|
uploadError(err.message);
|
2020-07-22 17:24:51 +02:00
|
|
|
setUploadStatus(SPEECH_READY);
|
2020-06-30 07:51:15 +02:00
|
|
|
});
|
2019-06-28 19:00:29 +02:00
|
|
|
}
|
2020-03-13 20:54:31 +01:00
|
|
|
|
2021-01-27 14:24:39 +01:00
|
|
|
// Note for translators: e.g. "Thumbnail (1:1)"
|
2021-06-19 00:39:58 +02:00
|
|
|
const label = `${__(assetName)} ${__(recommended)}`;
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
const selectFileLabel = __('Select File');
|
|
|
|
const selectedLabel = pathSelected ? __('URL Selected') : __('File Selected');
|
2021-01-27 14:24:39 +01:00
|
|
|
|
|
|
|
let fileSelectorLabel;
|
|
|
|
if (uploadStatus === SPEECH_UPLOADING) {
|
|
|
|
fileSelectorLabel = __('Uploading...');
|
|
|
|
} else {
|
|
|
|
// Include the same label/recommendation for both 'URL' and 'UPLOAD'.
|
2021-06-19 00:39:58 +02:00
|
|
|
fileSelectorLabel = `${label} ${fileSelected || pathSelected ? __(selectedLabel) : __(selectFileLabel)}`;
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
}
|
|
|
|
const formBody = (
|
|
|
|
<>
|
|
|
|
<fieldset-section>
|
|
|
|
{error && <div className="error__text">{error}</div>}
|
|
|
|
{useUrl ? (
|
|
|
|
<FormField
|
|
|
|
autoFocus
|
|
|
|
type={'text'}
|
|
|
|
name={'thumbnail'}
|
|
|
|
label={label}
|
|
|
|
placeholder={`https://example.com/image.png`}
|
|
|
|
value={url}
|
|
|
|
onChange={(e) => {
|
|
|
|
setUrl(e.target.value);
|
2021-08-25 02:28:23 +02:00
|
|
|
onUpdate(e.target.value, !useUrl);
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
) : (
|
|
|
|
<FileSelector
|
2022-09-02 18:43:35 +02:00
|
|
|
filters={filters}
|
|
|
|
type={type}
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
autoFocus
|
|
|
|
disabled={uploadStatus === SPEECH_UPLOADING}
|
|
|
|
label={fileSelectorLabel}
|
|
|
|
name="assetSelector"
|
|
|
|
currentPath={pathSelected}
|
2022-09-02 18:43:35 +02:00
|
|
|
onFileChosen={(fileWithPath) => {
|
|
|
|
if (fileWithPath.file.name) {
|
|
|
|
setFileSelected(fileWithPath.file);
|
|
|
|
setPathSelected(fileWithPath.path);
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
}
|
|
|
|
}}
|
|
|
|
accept={accept}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</fieldset-section>
|
2021-08-25 02:28:23 +02:00
|
|
|
|
|
|
|
<div className="section__actions">
|
|
|
|
{onDone && (
|
|
|
|
<Button
|
|
|
|
button="primary"
|
|
|
|
type="submit"
|
2021-10-28 21:15:47 +02:00
|
|
|
label={useUrl ? __('Done') : __('Upload')}
|
2021-10-08 05:47:39 +02:00
|
|
|
disabled={!useUrl && (uploadStatus === SPEECH_UPLOADING || !pathSelected || !fileSelected)}
|
2021-08-25 02:28:23 +02:00
|
|
|
onClick={() => doUploadAsset()}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
<FormField
|
|
|
|
name="toggle-upload"
|
|
|
|
type="checkbox"
|
|
|
|
label={__('Use a URL')}
|
|
|
|
checked={useUrl}
|
|
|
|
onChange={() => setUseUrl(!useUrl)}
|
|
|
|
/>
|
|
|
|
</div>
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
if (inline) {
|
|
|
|
return <fieldset-section>{formBody}</fieldset-section>;
|
2021-01-27 14:24:39 +01:00
|
|
|
}
|
|
|
|
|
2019-06-28 19:00:29 +02:00
|
|
|
return (
|
2020-06-30 07:51:15 +02:00
|
|
|
<Card
|
wip
wip
wip - everything but publish, autoplay, and styling
collection publishing
add channel to collection publish
cleanup
wip
bump
clear mass add after success
move collection item management controls
redirect replace to published collection id
bump
playlist selector on create
bump
use new collection add ui element
bump
wip
gitignore
add content json
wip
bump
context add to playlist
basic collections page style pass wip
wip: edits, buttons, styles...
change fileAuthor to claimAuthor
update, pending bugfixes, delete modal progress, collection header, other bugfixes
bump
cleaning
show page bugfix
builtin collection headers
no playlists, no grid title
wip
style tweaks
use normal looking claim previews for collection tiles
add collection changes
style library previews
collection menulist for delete/view on library
delete modal works for unpublished
rearrange collection publish tabs
clean up collection publishing and items
show on odysee
begin collectoin edit header and css renaming
better thumbnails
bump
fix collection publish redirect
view collection in menu does something
copy and thumbs
list previews, pending, context menus, list page
enter to add collection, lists page empty state
playable lists only, delete feature, bump
put fileListDownloaded back
better collection titles
improve collection claim details
fix horiz more icon
fix up channel page
style, copy, bump
refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons
bump
cleanup
cleaning, refactoring
bump
preview thumb styling, cleanup
support discover page lists search
sync, bump
bump, fix sync more
enforce builtin order for now
new lists page empty state
try to indicate unpublished edits in lists
bump
fix autoplay and linting
consts, fix autoplay
bugs
fixes
cleanup
fix, bump
lists experimental ui, fixes
refactor listIndex out
hack in collection fallback thumb
bump
2021-02-06 08:03:51 +01:00
|
|
|
title={title || __('Choose %asset%', { asset: __(`${assetName}`) })}
|
|
|
|
actions={<Form onSubmit={onDone}>{formBody}</Form>}
|
2020-06-30 07:51:15 +02:00
|
|
|
/>
|
2019-06-28 19:00:29 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SelectAsset;
|