mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
[enhancement]: add codec column for tracks
This commit is contained in:
parent
9113c6cc2e
commit
860dd8b499
4 changed files with 16 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
||||||
"channel_other": "channels",
|
"channel_other": "channels",
|
||||||
"clear": "clear",
|
"clear": "clear",
|
||||||
"close": "close",
|
"close": "close",
|
||||||
|
"codec": "codec",
|
||||||
"collapse": "collapse",
|
"collapse": "collapse",
|
||||||
"comingSoon": "coming soon…",
|
"comingSoon": "coming soon…",
|
||||||
"configure": "configure",
|
"configure": "configure",
|
||||||
|
|
@ -592,6 +593,7 @@
|
||||||
"bitrate": "bitrate",
|
"bitrate": "bitrate",
|
||||||
"bpm": "bpm",
|
"bpm": "bpm",
|
||||||
"channels": "$t(common.channel_other)",
|
"channels": "$t(common.channel_other)",
|
||||||
|
"codec": "$t(common.codec)",
|
||||||
"comment": "comment",
|
"comment": "comment",
|
||||||
"dateAdded": "date added",
|
"dateAdded": "date added",
|
||||||
"discNumber": "disc",
|
"discNumber": "disc",
|
||||||
|
|
@ -626,6 +628,7 @@
|
||||||
"bitrate": "$t(common.bitrate)",
|
"bitrate": "$t(common.bitrate)",
|
||||||
"bpm": "$t(common.bpm)",
|
"bpm": "$t(common.bpm)",
|
||||||
"channels": "$t(common.channel_other)",
|
"channels": "$t(common.channel_other)",
|
||||||
|
"codec": "$t(common.codec)",
|
||||||
"dateAdded": "date added",
|
"dateAdded": "date added",
|
||||||
"discNumber": "disc number",
|
"discNumber": "disc number",
|
||||||
"duration": "$t(common.duration)",
|
"duration": "$t(common.duration)",
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,14 @@ const tableColumns: { [key: string]: ColDef } = {
|
||||||
params.data ? params.data.channels : undefined,
|
params.data ? params.data.channels : undefined,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
|
codec: {
|
||||||
|
cellRenderer: (params: ICellRendererParams) => GenericCell(params, { position: 'center' }),
|
||||||
|
colId: TableColumn.CODEC,
|
||||||
|
headerName: i18n.t('table.column.codec'),
|
||||||
|
valueGetter: (params: ValueGetterParams) =>
|
||||||
|
params.data ? params.data.container : undefined,
|
||||||
|
width: 60,
|
||||||
|
},
|
||||||
comment: {
|
comment: {
|
||||||
cellRenderer: NoteCell,
|
cellRenderer: NoteCell,
|
||||||
colId: TableColumn.COMMENT,
|
colId: TableColumn.COMMENT,
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,10 @@ export const SONG_TABLE_COLUMNS = [
|
||||||
label: i18n.t('table.config.label.bitrate', { postProcess: 'titleCase' }),
|
label: i18n.t('table.config.label.bitrate', { postProcess: 'titleCase' }),
|
||||||
value: TableColumn.BIT_RATE,
|
value: TableColumn.BIT_RATE,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: i18n.t('table.config.label.codec', { postProcess: 'titleCase' }),
|
||||||
|
value: TableColumn.CODEC,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('table.config.label.lastPlayed', { postProcess: 'titleCase' }),
|
label: i18n.t('table.config.label.lastPlayed', { postProcess: 'titleCase' }),
|
||||||
value: TableColumn.LAST_PLAYED,
|
value: TableColumn.LAST_PLAYED,
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,7 @@ export enum TableColumn {
|
||||||
BIT_RATE = 'bitRate',
|
BIT_RATE = 'bitRate',
|
||||||
BPM = 'bpm',
|
BPM = 'bpm',
|
||||||
CHANNELS = 'channels',
|
CHANNELS = 'channels',
|
||||||
|
CODEC = 'codec',
|
||||||
COMMENT = 'comment',
|
COMMENT = 'comment',
|
||||||
DATE_ADDED = 'dateAdded',
|
DATE_ADDED = 'dateAdded',
|
||||||
DISC_NUMBER = 'discNumber',
|
DISC_NUMBER = 'discNumber',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue