updated vuetify to 3.1.15

This commit is contained in:
zurdi zurdo
2023-04-24 15:48:58 +02:00
parent f568a6a081
commit 2d1bd82161
14 changed files with 54 additions and 54 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 46 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -18,7 +18,7 @@
"roboto-fontface": "*",
"vue": "^3.2.13",
"vue-router": "^4.0.0",
"vuetify": "^3.0.0",
"vuetify": "^3.1.15",
"webfontloader": "^1.0.0"
},
"devDependencies": {
@@ -6086,9 +6086,9 @@
}
},
"node_modules/vuetify": {
"version": "3.1.8",
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.1.8.tgz",
"integrity": "sha512-yODCnRxERSvcBwC6qPiySVhmZzNZ2Yme6b2lNLY1G8W/hbipAtbTCFVGB4ZY/qY7D7JNQBxzgVfZme7bDY9ZrQ==",
"version": "3.1.15",
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.1.15.tgz",
"integrity": "sha512-uxB4UCrP+hFyJaoSsVObAGBRD73qq5ga7HULepzGoMeUWap2H99mcqmMdN/a/Yp4ODK3gT8EcUeph3EgEcsArQ==",
"engines": {
"node": "^12.20 || >=14.13"
},

View File

@@ -19,7 +19,7 @@
"roboto-fontface": "*",
"vue": "^3.2.13",
"vue-router": "^4.0.0",
"vuetify": "^3.0.0",
"vuetify": "^3.1.15",
"webfontloader": "^1.0.0"
},
"devDependencies": {

View File

@@ -27,9 +27,9 @@ onMounted(() => {
<template>
<v-app>
<app-bar/>
<main-drawer :key="refresh"/>
<app-bar/>
<v-main>
<v-container fluid>

View File

@@ -15,19 +15,16 @@ const scanning = storeScanning()
<v-progress-linear color="rommAccent1" :active="scanning.value" :indeterminate="true" absolute/>
<router-link to="/">
<v-avatar size="100" class="ml-7 home-btn hidden-sm-and-down"><v-img src="/assets/romm_complete.svg"></v-img></v-avatar>
</router-link>
<platforms-btn class="ml-5 hidden-lg-and-up"/>
<v-spacer class="hidden-xs-and-down"/>
<filter-bar class="mr-2 ml-2 hidden-xs"/>
<filter-btn class="ml-2 hidden-sm-and-up"/>
<v-avatar rounded="0" class="ml-5 hidden-lg-and-up">
<v-img v-if="$route.params.platform !== undefined" :src="'/assets/platforms/'+$route.params.platform+'.ico'"/>
</v-avatar>
<filter-bar class="mr-2 ml-2 hidden-md-and-down"/>
<template v-slot:append>
<filter-btn class="ml-2 hidden-lg-and-up"/>
<gallery-view-btn/>
</template>

View File

@@ -8,12 +8,11 @@ const emitter = inject('emitter')
<template>
<v-btn
@click="emitter.emit('togglePlatforms')"
rounded="0"
icon>
@click="emitter.emit('togglePlatforms')"
rounded="0"
icon>
<v-avatar rounded="0">
<v-img v-if="$route.params.platform !== undefined" :src="'/assets/platforms/'+$route.params.platform+'.ico'"/>
<v-icon v-else icon="mdi-menu"/>
<v-img src="/assets/isotipo.svg"/>
</v-avatar>
</v-btn>
</template>

View File

@@ -18,7 +18,7 @@ const forceImgReload = Date.now()
cover>
<template v-slot:placeholder>
<div class="d-flex align-center justify-center fill-height">
<v-progress-circular color="rommAccent1" indeterminate/>
<v-progress-circular color="rommAccent1" :width="2" indeterminate/>
</div>
</template>
<v-expand-transition>

View File

@@ -22,14 +22,12 @@ emitter.on('togglePlatformsRail', () => { rail.value = !rail.value; localStorage
<v-navigation-drawer v-model="platformsDrawer" :rail="rail" width="300" rail-width="145" elevation="0">
<v-list v-model:opened="open">
<router-link to="/" class="hidden-md-and-up">
<router-link to="/">
<v-row class="justify-center">
<v-img v-show="!rail" src="/assets/romm_complete.svg" class="home-btn justify-center"/>
<v-img v-show="rail" src="/assets/romm.svg" class="home-btn justify-center"/>
</v-row>
</router-link>
<v-divider class="border-opacity-25 hidden-md-and-up"/>
<v-list-group value="Platforms">
<template v-slot:activator="{ props }">

View File

@@ -102,7 +102,7 @@ onMounted(() => {
<v-img :src="'/assets'+rom.path_cover_l+'?reload='+Date.now()" :lazy-src="'/assets'+rom.path_cover_s+'?reload='+Date.now()" cover>
<template v-slot:placeholder>
<div class="d-flex align-center justify-center fill-height">
<v-progress-circular color="rommAccent1" :width="2" :size="20" indeterminate/>
<v-progress-circular color="rommAccent1" :width="2" indeterminate/>
</div>
</template>
</v-img>

View File

@@ -20,7 +20,7 @@ const roms = ref([])
const filter = storeFilter()
const romsFiltered = ref([])
const galleryView = storeGalleryView()
const { xs } = useDisplay()
const { mdAndDown } = useDisplay()
// Event listeners bus
const emitter = inject('emitter')
@@ -49,8 +49,8 @@ onBeforeRouteUpdate(async (to, _) => { getRoms(to.params.platform) })
<template>
<v-expand-transition>
<v-row v-if="xs && filter.hiddenBar" class="d-flex transition-fast-in-fast-out justify-center">
<filter-bar/>
<v-row v-if="mdAndDown && filter.hiddenBar" class="d-flex transition-fast-in-fast-out justify-center">
<filter-bar class="pa-2"/>
</v-row>
</v-expand-transition>

View File

@@ -45,13 +45,10 @@ async function scan() {
<v-checkbox
v-model="fullScan"
label="Complete scan"
label="Complete Rescan"
prepend-icon="mdi-cached"
hide-details/>
<div class="ml-10 text-caption font-weight-light font-italic">
<span>Re-scan every rom even if it is already scanned</span>
</div>
hint="Rescan every rom, including already scanned roms"
persistent-hint/>
<v-btn
title="scan"
@@ -59,12 +56,13 @@ async function scan() {
:disabled="scanning.value"
prepend-icon="mdi-magnify-scan"
rounded="0"
class="mt-5"
class="mt-7"
inset>
<p v-if="!scanning.value">Scan</p>
<v-progress-circular
v-show="scanning.value"
color="rommAccent1"
class="ml-3 mr-2"
:width="2"
:size="20"
indeterminate/>

View File

@@ -6,6 +6,7 @@ import { useTheme } from "vuetify"
const theme = useTheme()
const darkMode = (localStorage.getItem('theme') == 'rommLight') ? ref(false) : ref(true)
const ROMM_VERSION = import.meta.env.VITE_ROMM_VERSION
const tab = ref('ui')
// Functions
function toggleTheme() {
@@ -15,18 +16,31 @@ function toggleTheme() {
</script>
<template>
<div>
<v-switch
@change="toggleTheme()"
v-model="darkMode"
prepend-icon="mdi-theme-light-dark"
hide-details
inset/>
</div>
<v-divider class="border-opacity-25"/>
<v-tabs v-model="tab" slider-color="rommAccent1">
<v-tab value="ui">User Interface</v-tab>
<v-tab value="saves" disabled>General</v-tab>
</v-tabs>
<v-window v-model="tab" class="mt-2">
<v-window-item value="ui">
<v-row>
<v-col>
<v-switch
@change="toggleTheme()"
v-model="darkMode"
prepend-icon="mdi-theme-light-dark"
hide-details
inset/>
</v-col>
</v-row>
</v-window-item>
<v-window-item value="general">
</v-window-item>
</v-window>
<div class="mt-4">
<v-divider class="border-opacity-25 mt-2"/>
<div class="mt-4 text-caption">
<span class="text-rommAccent1">RomM</span><span> v{{ ROMM_VERSION }}</span>
</div>

6
package-lock.json generated
View File

@@ -1,6 +0,0 @@
{
"name": "romm",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}