-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from zurdi15/develop
v1.6.5
- Loading branch information
Showing
18 changed files
with
199 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VITE_ROMM_VERSION=1.6.4 | ||
VITE_ROMM_VERSION=1.6.5 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "romm", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite --host", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup> | ||
import { ref, inject } from "vue" | ||
import { views } from '@/utils/utils.js' | ||
// Event listeners bus | ||
const emitter = inject('emitter') | ||
const currentView = ref(JSON.parse(localStorage.getItem('currentView')) || 0) | ||
// Functions | ||
function changeView() { | ||
if(currentView.value == 2){currentView.value = 0} | ||
else{currentView.value = currentView.value + 1} | ||
emitter.emit('currentView', currentView.value) | ||
localStorage.setItem('currentView', currentView.value) | ||
} | ||
</script> | ||
|
||
<template> | ||
<v-app-bar-nav-icon | ||
@click="changeView()" | ||
class="ma-2" | ||
rounded="0"> | ||
<v-icon :icon="views[currentView]['icon']"/> | ||
</v-app-bar-nav-icon> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<script setup> | ||
import { ref, inject } from 'vue' | ||
import { useRouter } from 'vue-router' | ||
import { selectRom, downloadRom, downloadSave } from '@/utils/utils.js' | ||
// Props | ||
const props = defineProps(['rom']) | ||
const forceImgReload = Date.now() | ||
const router = useRouter() | ||
const saveFiles = ref(false) | ||
// Event listeners bus | ||
const emitter = inject('emitter') | ||
</script> | ||
|
||
<template> | ||
<v-list-item | ||
@:click="selectRom(rom, emitter, router)" | ||
:value="rom.file_name" | ||
:key="rom.file_name" | ||
class="pa-2"> | ||
<v-row class="text-subtitle-2"> | ||
<v-col md="3" lg="3"><p>{{ rom.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 }} MB</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-row> | ||
<template v-slot:prepend> | ||
<v-avatar :rounded="0" class="ml-3"> | ||
<v-img | ||
: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" | ||
size="x-small" | ||
variant="text"/> | ||
<v-btn | ||
@click="downloadSave(rom, emitter)" | ||
icon="mdi-content-save-all" | ||
size="x-small" | ||
variant="text" | ||
:disabled="!saveFiles"/> | ||
</v-col> | ||
<v-btn | ||
@click="" | ||
icon="mdi-dots-vertical" | ||
size="x-small" | ||
variant="text" | ||
class="mr-3" | ||
:disabled="!saveFiles"/> | ||
</template> | ||
</v-list-item> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<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> | ||
<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> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.