mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Added support for comment 2
This commit is contained in:
1 parent
90beeef226
commit
eccd352ae5
9 files changed
+65
-5
No files matched your search
+3
-1
@@ -11,6 +11,8 @@ export interface Track {
|
||||
producer: string | null
|
||||
mix: string | null
|
||||
comment: string | null
|
||||
/** A second free-text comment (Traktor's "Comment 2"). */
|
||||
comment2: string | null
|
||||
bpm: number | null
|
||||
/** The platform's own display string, shown verbatim: "10m", "8A", "Am". */
|
||||
key: string | null
|
||||
@@ -116,7 +118,7 @@ export type MediaKind = 'audio' | 'stem' | 'video'
|
||||
export type PlaylistKind = 'folder' | 'playlist' | 'smart'
|
||||
export type TrackField =
|
||||
| 'title' | 'artist' | 'album' | 'genre' | 'label' | 'remixer'
|
||||
| 'producer' | 'mix' | 'release_date' | 'comment' | 'rating'
|
||||
| 'producer' | 'mix' | 'release_date' | 'comment' | 'comment2' | 'rating'
|
||||
|
||||
export interface CuePoint {
|
||||
name: string | null
|
||||
|
||||
@@ -26,6 +26,7 @@ const TEXT_FIELDS: { key: keyof Track; label: string; textarea?: boolean }[] = [
|
||||
{ key: 'mix', label: 'Mix' },
|
||||
{ key: 'release_date', label: 'Release date' },
|
||||
{ key: 'comment', label: 'Comment', textarea: true },
|
||||
{ key: 'comment2', label: 'Comment 2', textarea: true },
|
||||
]
|
||||
|
||||
export function EditTagsDialog({ track, onClose, onApplied, onError }: Props) {
|
||||
|
||||
@@ -179,6 +179,7 @@ export const TRACK_COLUMNS: ColumnDef<Track, any>[] = [
|
||||
col.accessor('producer', { id: 'producer', header: 'Producer', size: 140, cell: editable('producer') }),
|
||||
col.accessor('mix', { id: 'mix', header: 'Mix', size: 120, cell: editable('mix') }),
|
||||
col.accessor('comment', { id: 'comment', header: 'Comment', size: 200, cell: editable('comment') }),
|
||||
col.accessor('comment2', { id: 'comment2', header: 'Comment 2', size: 200, cell: editable('comment2') }),
|
||||
col.accessor('bpm', {
|
||||
id: 'bpm',
|
||||
header: 'BPM',
|
||||
|
||||
Reference in new issue
Block a user