mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
update list defaults
This commit is contained in:
@@ -771,7 +771,7 @@ const initialState: SettingsState = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
[LibraryItem.ALBUM]: {
|
[LibraryItem.ALBUM]: {
|
||||||
display: ListDisplayType.TABLE,
|
display: ListDisplayType.GRID,
|
||||||
grid: {
|
grid: {
|
||||||
itemGap: 'md',
|
itemGap: 'md',
|
||||||
itemsPerRow: 6,
|
itemsPerRow: 6,
|
||||||
@@ -819,7 +819,7 @@ const initialState: SettingsState = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
[LibraryItem.ALBUM_ARTIST]: {
|
[LibraryItem.ALBUM_ARTIST]: {
|
||||||
display: ListDisplayType.TABLE,
|
display: ListDisplayType.GRID,
|
||||||
grid: {
|
grid: {
|
||||||
itemGap: 'md',
|
itemGap: 'md',
|
||||||
itemsPerRow: 6,
|
itemsPerRow: 6,
|
||||||
@@ -840,14 +840,22 @@ const initialState: SettingsState = {
|
|||||||
pagination: ListPaginationType.INFINITE,
|
pagination: ListPaginationType.INFINITE,
|
||||||
table: {
|
table: {
|
||||||
autoFitColumns: false,
|
autoFitColumns: false,
|
||||||
columns: ALBUM_ARTIST_TABLE_COLUMNS.map((column) => ({
|
columns: pickTableColumns({
|
||||||
align: column.align,
|
autoSizeColumns: [TableColumn.TITLE],
|
||||||
autoSize: column.autoSize,
|
columns: ALBUM_ARTIST_TABLE_COLUMNS,
|
||||||
id: column.value,
|
enabledColumns: [
|
||||||
isEnabled: column.isEnabled,
|
TableColumn.ROW_INDEX,
|
||||||
pinned: column.pinned,
|
TableColumn.IMAGE,
|
||||||
width: column.width,
|
TableColumn.TITLE,
|
||||||
})),
|
TableColumn.ALBUM_COUNT,
|
||||||
|
TableColumn.SONG_COUNT,
|
||||||
|
TableColumn.PLAY_COUNT,
|
||||||
|
TableColumn.LAST_PLAYED,
|
||||||
|
TableColumn.USER_FAVORITE,
|
||||||
|
TableColumn.USER_RATING,
|
||||||
|
TableColumn.ACTIONS,
|
||||||
|
],
|
||||||
|
}),
|
||||||
enableAlternateRowColors: false,
|
enableAlternateRowColors: false,
|
||||||
enableHorizontalBorders: false,
|
enableHorizontalBorders: false,
|
||||||
enableRowHoverHighlight: true,
|
enableRowHoverHighlight: true,
|
||||||
@@ -856,7 +864,7 @@ const initialState: SettingsState = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
[LibraryItem.ARTIST]: {
|
[LibraryItem.ARTIST]: {
|
||||||
display: ListDisplayType.TABLE,
|
display: ListDisplayType.GRID,
|
||||||
grid: {
|
grid: {
|
||||||
itemGap: 'md',
|
itemGap: 'md',
|
||||||
itemsPerRow: 6,
|
itemsPerRow: 6,
|
||||||
@@ -877,14 +885,22 @@ const initialState: SettingsState = {
|
|||||||
pagination: ListPaginationType.INFINITE,
|
pagination: ListPaginationType.INFINITE,
|
||||||
table: {
|
table: {
|
||||||
autoFitColumns: true,
|
autoFitColumns: true,
|
||||||
columns: ALBUM_ARTIST_TABLE_COLUMNS.map((column) => ({
|
columns: pickTableColumns({
|
||||||
align: column.align,
|
autoSizeColumns: [TableColumn.TITLE],
|
||||||
autoSize: column.autoSize,
|
columns: ALBUM_ARTIST_TABLE_COLUMNS,
|
||||||
id: column.value,
|
enabledColumns: [
|
||||||
isEnabled: column.isEnabled,
|
TableColumn.ROW_INDEX,
|
||||||
pinned: column.pinned,
|
TableColumn.IMAGE,
|
||||||
width: column.width,
|
TableColumn.TITLE,
|
||||||
})),
|
TableColumn.ALBUM_COUNT,
|
||||||
|
TableColumn.SONG_COUNT,
|
||||||
|
TableColumn.PLAY_COUNT,
|
||||||
|
TableColumn.LAST_PLAYED,
|
||||||
|
TableColumn.USER_FAVORITE,
|
||||||
|
TableColumn.USER_RATING,
|
||||||
|
TableColumn.ACTIONS,
|
||||||
|
],
|
||||||
|
}),
|
||||||
enableAlternateRowColors: false,
|
enableAlternateRowColors: false,
|
||||||
enableHorizontalBorders: false,
|
enableHorizontalBorders: false,
|
||||||
enableRowHoverHighlight: true,
|
enableRowHoverHighlight: true,
|
||||||
@@ -920,7 +936,7 @@ const initialState: SettingsState = {
|
|||||||
itemsPerPage: 100,
|
itemsPerPage: 100,
|
||||||
pagination: ListPaginationType.INFINITE,
|
pagination: ListPaginationType.INFINITE,
|
||||||
table: {
|
table: {
|
||||||
autoFitColumns: true,
|
autoFitColumns: false,
|
||||||
columns: GENRE_TABLE_COLUMNS.map((column) => ({
|
columns: GENRE_TABLE_COLUMNS.map((column) => ({
|
||||||
align: column.align,
|
align: column.align,
|
||||||
autoSize: column.autoSize,
|
autoSize: column.autoSize,
|
||||||
@@ -952,15 +968,18 @@ const initialState: SettingsState = {
|
|||||||
itemsPerPage: 100,
|
itemsPerPage: 100,
|
||||||
pagination: ListPaginationType.INFINITE,
|
pagination: ListPaginationType.INFINITE,
|
||||||
table: {
|
table: {
|
||||||
autoFitColumns: true,
|
autoFitColumns: false,
|
||||||
columns: PLAYLIST_TABLE_COLUMNS.map((column) => ({
|
columns: pickTableColumns({
|
||||||
align: column.align,
|
autoSizeColumns: [TableColumn.TITLE],
|
||||||
autoSize: column.autoSize,
|
columns: PLAYLIST_TABLE_COLUMNS,
|
||||||
id: column.value,
|
enabledColumns: [
|
||||||
isEnabled: column.isEnabled,
|
TableColumn.ROW_INDEX,
|
||||||
pinned: column.pinned,
|
TableColumn.TITLE,
|
||||||
width: column.width,
|
TableColumn.DURATION,
|
||||||
})),
|
TableColumn.SONG_COUNT,
|
||||||
|
TableColumn.ACTIONS,
|
||||||
|
],
|
||||||
|
}),
|
||||||
enableAlternateRowColors: false,
|
enableAlternateRowColors: false,
|
||||||
enableHorizontalBorders: false,
|
enableHorizontalBorders: false,
|
||||||
enableRowHoverHighlight: true,
|
enableRowHoverHighlight: true,
|
||||||
@@ -1049,7 +1068,7 @@ const initialState: SettingsState = {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
itemsPerPage: 100,
|
itemsPerPage: 100,
|
||||||
pagination: ListPaginationType.INFINITE,
|
pagination: ListPaginationType.PAGINATED,
|
||||||
table: {
|
table: {
|
||||||
autoFitColumns: false,
|
autoFitColumns: false,
|
||||||
columns: SONG_TABLE_COLUMNS.map((column) => ({
|
columns: SONG_TABLE_COLUMNS.map((column) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user