mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
roms table view improved
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
<template>
|
||||
<v-list-item class="pl-2 pr-2 pb-2 ml-3 mr-3 text-body-1">
|
||||
<v-row class="">
|
||||
<v-col cols="3"><p>Name</p></v-col>
|
||||
<v-col cols="4" class="hidden-sm-and-down"><p>File</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>Platform</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>Size</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>Region</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>Revision</p></v-col>
|
||||
</v-row>
|
||||
<template v-slot:prepend><v-avatar/></template>
|
||||
<template v-slot:append>
|
||||
<!-- TODO: remake this little trick -->
|
||||
<v-col class="pa-0 ml-1">
|
||||
<v-btn disabled size="x-small" variant="text"/>
|
||||
<v-btn size="x-small" variant="text" disabled/>
|
||||
</v-col>
|
||||
<v-btn size="x-small" variant="text" disabled/>
|
||||
</template>
|
||||
</v-list-item>
|
||||
<thead>
|
||||
<v-list-item>
|
||||
<v-row class="text-subtitle-2">
|
||||
<v-col cols="9" xs="9" sm="6" md="3" lg="3"><span>Name</span></v-col>
|
||||
<v-col md="4" lg="4" class="hidden-sm-and-down"><span>File</span></v-col>
|
||||
<v-col md="1" lg="1" class="hidden-sm-and-down"><span>Platform</span></v-col>
|
||||
<v-col xs="2" sm="2" md="2" lg="2" class="hidden-xs"><span>Size</span></v-col>
|
||||
<v-col xs="1" sm="1" md="1" lg="1" class="hidden-xs"><span>Region</span></v-col>
|
||||
<v-col xs="1" sm="1" md="1" lg="1" class="hidden-xs"><span>Revision</span></v-col>
|
||||
</v-row>
|
||||
<template v-slot:prepend>
|
||||
<v-avatar></v-avatar>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<v-btn size="x-small" variant="text"/>
|
||||
<v-btn size="x-small" variant="text"/>
|
||||
<v-btn size="x-small" variant="text" class="hidden-sm-and-down"/>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</thead>
|
||||
</template>
|
||||
@@ -15,26 +15,26 @@ const emitter = inject('emitter')
|
||||
<v-list-item
|
||||
:to="`/${$route.params.platform}/roms/${rom.file_name}`"
|
||||
:value="rom.file_name"
|
||||
:key="rom.file_name"
|
||||
class="pa-2">
|
||||
:key="rom.file_name">
|
||||
<v-row class="text-subtitle-2">
|
||||
<v-col md="3" lg="3"><p>{{ rom.r_name }}</p></v-col>
|
||||
<v-col md="3" lg="4" class="hidden-sm-and-down"><p>{{ rom.file_name }}</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>{{ rom.p_slug }}</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>{{ rom.file_size }} {{ rom.file_size_units }}</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>{{ rom.region }}</p></v-col>
|
||||
<v-col class="hidden-sm-and-down"><p>{{ rom.revision }}</p></v-col>
|
||||
<v-col cols="9" xs="9" sm="6" md="3" lg="3"><span>{{ rom.r_name }}</span></v-col>
|
||||
<v-col md="4" lg="4" class="hidden-sm-and-down"><span>{{ rom.file_name }}</span></v-col>
|
||||
<v-col md="1" lg="1" class="hidden-sm-and-down"><span>{{ rom.p_slug }}</span></v-col>
|
||||
<v-col xs="2" sm="2" md="2" lg="2" class="hidden-xs"><span>{{ rom.file_size }} {{ rom.file_size_units }}</span></v-col>
|
||||
<v-col xs="1" sm="1" md="1" lg="1" class="hidden-xs"><span>{{ rom.region }}</span></v-col>
|
||||
<v-col xs="1" sm="1" md="1" lg="1" class="hidden-xs"><span>{{ rom.revision }}</span></v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
<template v-slot:prepend>
|
||||
<v-avatar :rounded="0" class="ml-3">
|
||||
<v-avatar :rounded="0">
|
||||
<v-img
|
||||
:src="'/assets'+rom.path_cover_l+'?reload='+forceImgReload"
|
||||
:lazy-src="'/assets'+rom.path_cover_s+'?reload='+forceImgReload"
|
||||
min-height="100"/>
|
||||
:src="'/assets'+rom.path_cover_l+'?reload='+forceImgReload"
|
||||
:lazy-src="'/assets'+rom.path_cover_s+'?reload='+forceImgReload"
|
||||
min-height="100"/>
|
||||
</v-avatar>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<v-col class="pa-0 ml-1">
|
||||
<v-btn
|
||||
@click="downloadRom(rom, emitter)"
|
||||
icon="mdi-download"
|
||||
@@ -46,14 +46,14 @@ const emitter = inject('emitter')
|
||||
size="x-small"
|
||||
variant="text"
|
||||
:disabled="!saveFiles"/>
|
||||
</v-col>
|
||||
<v-btn
|
||||
@click=""
|
||||
icon="mdi-dots-vertical"
|
||||
size="x-small"
|
||||
variant="text"
|
||||
class="mr-3"
|
||||
class="hidden-sm-and-down"
|
||||
:disabled="!saveFiles"/>
|
||||
</template>
|
||||
|
||||
</v-list-item>
|
||||
</template>
|
||||
@@ -68,11 +68,14 @@ onBeforeRouteUpdate(async (to, from) => {
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-list v-show="currentView == 2" class="bg-secondary">
|
||||
|
||||
<v-table v-show="currentView == 2" class="bg-secondary">
|
||||
<game-list-header/>
|
||||
<v-divider class="border-opacity-100 ml-3 mb-4 mr-3" color="rommAccent1" :thickness="1"/>
|
||||
<game-list-item v-for="rom in romsFiltered" :key="rom.file_name" :rom="rom"/>
|
||||
</v-list>
|
||||
<v-divider class="border-opacity-100 ml-1 mb-4 mr-1" color="rommAccent1" :thickness="1"/>
|
||||
<tbody>
|
||||
<game-list-item v-for="rom in romsFiltered" :key="rom.file_name" :rom="rom"/>
|
||||
</tbody>
|
||||
</v-table>
|
||||
|
||||
<no-roms :noRoms="noRoms"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user