このコミットが含まれているのは:
@@ -226,11 +226,6 @@ export const buildNextEditedRow = (
|
|||||||
? 'manual'
|
? 'manual'
|
||||||
: (editingRow.provenance[field] ?? 'automatic')
|
: (editingRow.provenance[field] ?? 'automatic')
|
||||||
})
|
})
|
||||||
if (nextProvenance.duration === 'manual')
|
|
||||||
{
|
|
||||||
nextAttributes.videoMs = ''
|
|
||||||
nextProvenance.videoMs = 'manual'
|
|
||||||
}
|
|
||||||
nextAttributes.tags = draft.tags
|
nextAttributes.tags = draft.tags
|
||||||
if (isManualChange (editingRow.attributes.tags, draft.tags))
|
if (isManualChange (editingRow.attributes.tags, draft.tags))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ const emptyAttributes = () => ({
|
|||||||
originalCreatedFrom: '',
|
originalCreatedFrom: '',
|
||||||
originalCreatedBefore: '',
|
originalCreatedBefore: '',
|
||||||
duration: '',
|
duration: '',
|
||||||
videoMs: '',
|
|
||||||
tags: '',
|
tags: '',
|
||||||
parentPostIds: '' })
|
parentPostIds: '' })
|
||||||
|
|
||||||
@@ -120,7 +119,6 @@ const emptyProvenance = () => ({
|
|||||||
originalCreatedFrom: 'automatic',
|
originalCreatedFrom: 'automatic',
|
||||||
originalCreatedBefore: 'automatic',
|
originalCreatedBefore: 'automatic',
|
||||||
duration: 'automatic',
|
duration: 'automatic',
|
||||||
videoMs: 'automatic',
|
|
||||||
tags: 'automatic',
|
tags: 'automatic',
|
||||||
parentPostIds: 'automatic' }) as const
|
parentPostIds: 'automatic' }) as const
|
||||||
|
|
||||||
@@ -294,7 +292,6 @@ const buildDryRunFormData = (row: PostImportRow): FormData => {
|
|||||||
formData.append (
|
formData.append (
|
||||||
'original_created_before',
|
'original_created_before',
|
||||||
String (row.attributes.originalCreatedBefore ?? ''))
|
String (row.attributes.originalCreatedBefore ?? ''))
|
||||||
formData.append ('video_ms', String (row.attributes.videoMs ?? ''))
|
|
||||||
formData.append ('duration', String (row.attributes.duration ?? ''))
|
formData.append ('duration', String (row.attributes.duration ?? ''))
|
||||||
if (!(hasThumbnailBaseValue (row.attributes.thumbnailBase)) && row.thumbnailFile != null)
|
if (!(hasThumbnailBaseValue (row.attributes.thumbnailBase)) && row.thumbnailFile != null)
|
||||||
formData.append ('thumbnail', row.thumbnailFile)
|
formData.append ('thumbnail', row.thumbnailFile)
|
||||||
@@ -321,7 +318,6 @@ const mergeDryRunRow = (
|
|||||||
originalCreatedFrom: result.originalCreatedFrom ?? '',
|
originalCreatedFrom: result.originalCreatedFrom ?? '',
|
||||||
originalCreatedBefore: result.originalCreatedBefore ?? '',
|
originalCreatedBefore: result.originalCreatedBefore ?? '',
|
||||||
duration: result.duration ?? '',
|
duration: result.duration ?? '',
|
||||||
videoMs: result.videoMs ?? '',
|
|
||||||
tags: result.tags ?? '',
|
tags: result.tags ?? '',
|
||||||
parentPostIds: String (
|
parentPostIds: String (
|
||||||
result.parentPostIds ?? currentRow.attributes.parentPostIds ?? '') },
|
result.parentPostIds ?? currentRow.attributes.parentPostIds ?? '') },
|
||||||
@@ -355,7 +351,6 @@ const buildPreviewResetSnapshot = (
|
|||||||
originalCreatedFrom: preview.originalCreatedFrom ?? '',
|
originalCreatedFrom: preview.originalCreatedFrom ?? '',
|
||||||
originalCreatedBefore: preview.originalCreatedBefore ?? '',
|
originalCreatedBefore: preview.originalCreatedBefore ?? '',
|
||||||
duration: preview.duration ?? '',
|
duration: preview.duration ?? '',
|
||||||
videoMs: preview.videoMs ?? '',
|
|
||||||
tags: preview.tags ?? '',
|
tags: preview.tags ?? '',
|
||||||
parentPostIds: String (preview.parentPostIds ?? '') },
|
parentPostIds: String (preview.parentPostIds ?? '') },
|
||||||
displayTags: cloneDisplayTags (preview.displayTags),
|
displayTags: cloneDisplayTags (preview.displayTags),
|
||||||
@@ -489,8 +484,6 @@ const mergePreviewRow = (
|
|||||||
nextRow.tagSources.automatic = preview.tags ?? ''
|
nextRow.tagSources.automatic = preview.tags ?? ''
|
||||||
if (currentRow.provenance.parentPostIds !== 'manual')
|
if (currentRow.provenance.parentPostIds !== 'manual')
|
||||||
nextRow.attributes.parentPostIds = String (preview.parentPostIds ?? '')
|
nextRow.attributes.parentPostIds = String (preview.parentPostIds ?? '')
|
||||||
if (currentRow.provenance.videoMs !== 'manual')
|
|
||||||
nextRow.attributes.videoMs = preview.videoMs ?? ''
|
|
||||||
if (currentRow.provenance.duration !== 'manual')
|
if (currentRow.provenance.duration !== 'manual')
|
||||||
nextRow.attributes.duration = preview.duration ?? ''
|
nextRow.attributes.duration = preview.duration ?? ''
|
||||||
|
|
||||||
@@ -526,7 +519,6 @@ const buildBulkFormData = (rows: PostImportRow[]): FormData => {
|
|||||||
parent_post_ids: row.attributes.parentPostIds ?? '',
|
parent_post_ids: row.attributes.parentPostIds ?? '',
|
||||||
original_created_from: row.attributes.originalCreatedFrom ?? '',
|
original_created_from: row.attributes.originalCreatedFrom ?? '',
|
||||||
original_created_before: row.attributes.originalCreatedBefore ?? '',
|
original_created_before: row.attributes.originalCreatedBefore ?? '',
|
||||||
video_ms: row.attributes.videoMs ?? '',
|
|
||||||
duration: row.attributes.duration ?? '' }))))
|
duration: row.attributes.duration ?? '' }))))
|
||||||
rows.forEach ((row, index) => {
|
rows.forEach ((row, index) => {
|
||||||
if (!(hasThumbnailBaseValue (row.attributes.thumbnailBase)) && row.thumbnailFile != null)
|
if (!(hasThumbnailBaseValue (row.attributes.thumbnailBase)) && row.thumbnailFile != null)
|
||||||
|
|||||||
新しい課題から参照
ユーザをブロックする