mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
Remove uses of Props and Functions comments
This commit is contained in:
@@ -4,7 +4,6 @@ import { storeToRefs } from "pinia";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { locale } = useI18n();
|
||||
const storeLanguage = languageStore();
|
||||
const { defaultLanguage, languages } = storeToRefs(storeLanguage);
|
||||
|
||||
@@ -18,7 +18,6 @@ import type { Emitter } from "mitt";
|
||||
import { computed, inject, ref } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const downloadStore = storeDownload();
|
||||
const heartbeatStore = storeHeartbeat();
|
||||
@@ -47,7 +46,6 @@ const is3DSRom = computed(() => {
|
||||
return is3DSCIARom(props.rom);
|
||||
});
|
||||
|
||||
// Functions
|
||||
async function copyDownloadLink(rom: DetailedRom) {
|
||||
const downloadLink = getDownloadLink({
|
||||
rom,
|
||||
|
||||
@@ -4,7 +4,6 @@ import { getMissingCoverImage, getUnmatchedCoverImage } from "@/utils/covers";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { computed } from "vue";
|
||||
|
||||
// Props
|
||||
const romsStore = storeRoms();
|
||||
const { currentRom } = storeToRefs(romsStore);
|
||||
const missingCoverImage = computed(() =>
|
||||
|
||||
@@ -5,7 +5,6 @@ import type { DetailedRom } from "@/stores/roms";
|
||||
import { ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
defineProps<{ rom: DetailedRom }>();
|
||||
const tab = ref<"saves" | "states">("saves");
|
||||
const { mdAndDown } = useDisplay();
|
||||
|
||||
@@ -10,7 +10,6 @@ import { formatBytes } from "@/utils";
|
||||
import { ref, watch } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const downloadStore = storeDownload();
|
||||
@@ -22,7 +21,6 @@ const romInfo = ref([
|
||||
{ label: "CRC", value: props.rom.crc_hash },
|
||||
]);
|
||||
|
||||
// Functions
|
||||
async function toggleMainSibling() {
|
||||
romUser.value.is_main_sibling = !romUser.value.is_main_sibling;
|
||||
romApi.updateUserRomProps({
|
||||
|
||||
@@ -13,7 +13,6 @@ import { get } from "lodash";
|
||||
import storeHeartbeat from "@/stores/heartbeat";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const { t } = useI18n();
|
||||
const { xs } = useDisplay();
|
||||
@@ -94,7 +93,6 @@ const coverImageSource = computed(() => {
|
||||
}
|
||||
});
|
||||
|
||||
// Functions
|
||||
function onFilterClick(filter: FilterType, value: string) {
|
||||
router.push({
|
||||
name: "search",
|
||||
|
||||
@@ -3,7 +3,6 @@ import { useTheme, useDisplay } from "vuetify";
|
||||
import type { DetailedRom } from "@/stores/roms";
|
||||
import VuePdfApp from "vue3-pdf-app";
|
||||
|
||||
// Props
|
||||
defineProps<{ rom: DetailedRom }>();
|
||||
const { xs } = useDisplay();
|
||||
const theme = useTheme();
|
||||
|
||||
@@ -14,7 +14,6 @@ import { useDisplay, useTheme } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const tab = ref<"status" | "ra" | "notes">("status");
|
||||
@@ -35,7 +34,6 @@ const statusOptions = [
|
||||
"completed_100",
|
||||
];
|
||||
|
||||
// Functions
|
||||
function editNote() {
|
||||
if (editingNote.value) {
|
||||
romApi.updateUserRomProps({
|
||||
|
||||
@@ -6,7 +6,6 @@ import type { RAGameRomAchievement } from "@/__generated__/models/RAGameRomAchie
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { smAndDown } = useDisplay();
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const { t } = useI18n();
|
||||
@@ -20,7 +19,6 @@ const achievementsPercentageHardcore = ref(0);
|
||||
const showEarned = ref(false);
|
||||
const filteredAchievements = ref<RAGameRomAchievement[]>([]);
|
||||
|
||||
// Functions
|
||||
function toggleShowEarned() {
|
||||
showEarned.value = !showEarned.value;
|
||||
if (showEarned.value) {
|
||||
|
||||
@@ -11,7 +11,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const auth = storeAuth();
|
||||
const { scopes } = storeToRefs(auth);
|
||||
@@ -20,7 +19,6 @@ const selectedSaves = ref<SaveSchema[]>([]);
|
||||
const lastSelectedIndex = ref<number>(-1);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
// Functions
|
||||
async function downloasSaves() {
|
||||
selectedSaves.value.map((save) => {
|
||||
const a = document.createElement("a");
|
||||
|
||||
@@ -11,7 +11,6 @@ import { storeToRefs } from "pinia";
|
||||
import { getEmptyCoverImage } from "@/utils/covers";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const auth = storeAuth();
|
||||
const { scopes } = storeToRefs(auth);
|
||||
@@ -20,7 +19,6 @@ const selectedStates = ref<StateSchema[]>([]);
|
||||
const lastSelectedIndex = ref<number>(-1);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
// Functions
|
||||
async function downloasStates() {
|
||||
selectedStates.value.map((state) => {
|
||||
const a = document.createElement("a");
|
||||
|
||||
@@ -9,7 +9,6 @@ import { storeToRefs } from "pinia";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { computed } from "vue";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const { smAndDown } = useDisplay();
|
||||
const releaseDate = new Date(
|
||||
|
||||
@@ -3,12 +3,10 @@ import type { DetailedRom } from "@/stores/roms";
|
||||
import { ref } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{ rom: DetailedRom }>();
|
||||
const router = useRouter();
|
||||
const version = ref(props.rom.id);
|
||||
|
||||
// Functions
|
||||
function updateVersion() {
|
||||
router.push({
|
||||
name: "rom",
|
||||
|
||||
@@ -9,7 +9,6 @@ import CharIndexBar from "@/components/Gallery/AppBar/common/CharIndexBar.vue";
|
||||
import ContextualRandomBtn from "@/components/Gallery/AppBar/common/ContextualRandomBtn.vue";
|
||||
import { calculateMainLayoutWidth } from "@/utils";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
showPlayablesFilter?: boolean;
|
||||
|
||||
@@ -9,7 +9,6 @@ import { storeToRefs } from "pinia";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { computed } from "vue";
|
||||
|
||||
// Props
|
||||
const { xs } = useDisplay();
|
||||
const navigationStore = storeNavigation();
|
||||
const romsStore = storeRoms();
|
||||
|
||||
@@ -18,7 +18,6 @@ import { useI18n } from "vue-i18n";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { getCollectionCoverImage } from "@/utils/covers";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { smAndDown } = useDisplay();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
@@ -53,7 +52,6 @@ emitter?.on("updateUrlCover", (url_cover) => {
|
||||
setArtwork(url_cover);
|
||||
});
|
||||
|
||||
// Functions
|
||||
function showEditable() {
|
||||
updatedCollection.value = { ...currentCollection.value } as UpdatedCollection;
|
||||
imagePreviewUrl.value = "";
|
||||
|
||||
@@ -14,7 +14,6 @@ import { inject, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { smAndDown } = useDisplay();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
@@ -37,7 +36,6 @@ const collectionInfoFields = [
|
||||
const updating = ref(false);
|
||||
const isEditable = ref(false);
|
||||
|
||||
// Functions
|
||||
function showEditable() {
|
||||
isEditable.value = true;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ import storeNavigation from "@/stores/navigation";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { xs } = useDisplay();
|
||||
const romsStore = storeRoms();
|
||||
const navigationStore = storeNavigation();
|
||||
|
||||
@@ -3,7 +3,6 @@ import storeGalleryView from "@/stores/galleryView";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryViewStore = storeGalleryView();
|
||||
const { activeFirmwareDrawer } = storeToRefs(galleryViewStore);
|
||||
|
||||
@@ -14,7 +14,6 @@ import { inject, ref, computed } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { xs, mdAndUp } = useDisplay();
|
||||
const auth = storeAuth();
|
||||
@@ -36,7 +35,6 @@ const HEADERS = [
|
||||
] as const;
|
||||
const tabIndex = computed(() => (activeFirmwareDrawer.value ? 0 : -1));
|
||||
|
||||
// Functions
|
||||
function downloadSelectedFirmware() {
|
||||
selectedFirmware.value.map((firmware) => {
|
||||
const a = document.createElement("a");
|
||||
|
||||
@@ -20,7 +20,6 @@ import { useI18n } from "vue-i18n";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { identity } from "lodash";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
const { smAndDown } = useDisplay();
|
||||
@@ -80,7 +79,6 @@ const updating = ref(false);
|
||||
const updatedPlatform = ref({ ...currentPlatform.value });
|
||||
const isEditable = ref(false);
|
||||
|
||||
// Functions
|
||||
function showEditable() {
|
||||
updatedPlatform.value = { ...currentPlatform.value };
|
||||
isEditable.value = true;
|
||||
|
||||
@@ -8,7 +8,6 @@ import { storeToRefs } from "pinia";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
const romsStore = storeRoms();
|
||||
|
||||
@@ -8,7 +8,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject, watch, computed } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { smAndDown } = useDisplay();
|
||||
const romsStore = storeRoms();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
|
||||
@@ -3,7 +3,6 @@ import storeGalleryFilter from "@/stores/galleryFilter";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
const { activeFilterDrawer } = storeToRefs(galleryFilterStore);
|
||||
|
||||
@@ -22,7 +22,6 @@ import { useI18n } from "vue-i18n";
|
||||
import { useRouter } from "vue-router";
|
||||
import { debounce } from "lodash";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
showPlayablesFilter?: boolean;
|
||||
@@ -164,7 +163,6 @@ const filters = [
|
||||
},
|
||||
];
|
||||
|
||||
// Functions
|
||||
function resetFilters() {
|
||||
galleryFilterStore.resetFilters();
|
||||
nextTick(() => emitter?.emit("filterRoms", null));
|
||||
|
||||
@@ -7,7 +7,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const romsStore = storeRoms();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
|
||||
@@ -6,7 +6,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
const { filterFavourites } = storeToRefs(galleryFilterStore);
|
||||
|
||||
@@ -6,7 +6,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
const { filterMatched } = storeToRefs(galleryFilterStore);
|
||||
|
||||
@@ -6,7 +6,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
const { filterMissing } = storeToRefs(galleryFilterStore);
|
||||
|
||||
@@ -7,7 +7,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const romsStore = storeRoms();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
@@ -15,7 +14,6 @@ const { fetchTotalRoms } = storeToRefs(romsStore);
|
||||
const { filterPlayables } = storeToRefs(galleryFilterStore);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
// Functions
|
||||
function setPlayables() {
|
||||
galleryFilterStore.switchFilterPlayables();
|
||||
emitter?.emit("filterRoms", null);
|
||||
|
||||
@@ -7,7 +7,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const romsStore = storeRoms();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
@@ -15,7 +14,6 @@ const { fetchTotalRoms } = storeToRefs(romsStore);
|
||||
const { filterRA } = storeToRefs(galleryFilterStore);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
// Functions
|
||||
function setRA() {
|
||||
galleryFilterStore.switchFilterRA();
|
||||
emitter?.emit("filterRoms", null);
|
||||
|
||||
@@ -6,7 +6,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
const { filterUnmatched } = storeToRefs(galleryFilterStore);
|
||||
|
||||
@@ -6,7 +6,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryFilterStore = storeGalleryFilter();
|
||||
const { filterVerified } = storeToRefs(galleryFilterStore);
|
||||
|
||||
@@ -3,7 +3,6 @@ import storeGalleryView from "@/stores/galleryView";
|
||||
import { views } from "@/utils";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const galleryView = storeGalleryView();
|
||||
</script>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import storeRoms from "@/stores/roms";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const romsStore = storeRoms();
|
||||
</script>
|
||||
|
||||
@@ -3,7 +3,6 @@ import { inject, ref } from "vue";
|
||||
import type { Emitter } from "mitt";
|
||||
import type { Events } from "@/types/emitter";
|
||||
|
||||
// Props
|
||||
const showSortBar = ref(false);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
emitter?.on("sortBarShow", () => {
|
||||
|
||||
@@ -3,7 +3,6 @@ import type { Events } from "@/types/emitter";
|
||||
import type { Emitter } from "mitt";
|
||||
import { ref, inject } from "vue";
|
||||
|
||||
// Props
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
const isShowSortBar = ref(false);
|
||||
function showSortBar() {
|
||||
|
||||
@@ -15,7 +15,6 @@ import { inject, ref } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { smAndDown } = useDisplay();
|
||||
const romsStore = storeRoms();
|
||||
const galleryViewStore = storeGalleryView();
|
||||
@@ -33,7 +32,6 @@ const { favoriteCollection } = storeToRefs(collectionsStore);
|
||||
const route = useRoute();
|
||||
const heartbeat = storeHeartbeat();
|
||||
|
||||
// Functions
|
||||
function scrollToTop() {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
|
||||
@@ -3,7 +3,6 @@ import { views } from "@/utils";
|
||||
import { storeToRefs } from "pinia";
|
||||
import storeGalleryView from "@/stores/galleryView";
|
||||
|
||||
// Props
|
||||
const galleryViewStore = storeGalleryView();
|
||||
const { currentView } = storeToRefs(galleryViewStore);
|
||||
</script>
|
||||
|
||||
@@ -15,7 +15,6 @@ const props = defineProps<{
|
||||
| "gridSmartCollections";
|
||||
}>();
|
||||
|
||||
// Props
|
||||
const storedCollections = localStorage.getItem(`settings.${props.setting}`);
|
||||
const gridCollections = ref(
|
||||
isNull(storedCollections) ? false : storedCollections === "true",
|
||||
@@ -28,7 +27,6 @@ const visibleCollections = ref(72);
|
||||
const isHovering = ref(false);
|
||||
const hoveringCollectionId = ref();
|
||||
|
||||
// Functions
|
||||
function toggleGridCollections() {
|
||||
gridCollections.value = !gridCollections.value;
|
||||
localStorage.setItem(
|
||||
|
||||
@@ -8,7 +8,6 @@ import { isNull } from "lodash";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { ref } from "vue";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const romsStore = storeRoms();
|
||||
const { continuePlayingRoms } = storeToRefs(romsStore);
|
||||
@@ -27,7 +26,6 @@ const hoveringRomId = ref();
|
||||
const openedMenu = ref(false);
|
||||
const openedMenuRomId = ref();
|
||||
|
||||
// Functions
|
||||
function toggleGridContinuePlaying() {
|
||||
gridContinuePlayingRoms.value = !gridContinuePlayingRoms.value;
|
||||
localStorage.setItem(
|
||||
|
||||
@@ -8,7 +8,6 @@ import { useI18n } from "vue-i18n";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { ref } from "vue";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const platformsStore = storePlatforms();
|
||||
const { filledPlatforms } = storeToRefs(platformsStore);
|
||||
|
||||
@@ -8,7 +8,6 @@ import { isNull } from "lodash";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { ref } from "vue";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const romsStore = storeRoms();
|
||||
const { recentRoms } = storeToRefs(romsStore);
|
||||
@@ -25,7 +24,6 @@ const hoveringRomId = ref();
|
||||
const openedMenu = ref(false);
|
||||
const openedMenuRomId = ref();
|
||||
|
||||
// Functions
|
||||
function toggleGridRecentRoms() {
|
||||
gridRecentRoms.value = !gridRecentRoms.value;
|
||||
localStorage.setItem(
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import RSection from "@/components/common/RSection.vue";
|
||||
import { views } from "@/utils";
|
||||
|
||||
// Props
|
||||
defineProps<{ title: string }>();
|
||||
</script>
|
||||
<template>
|
||||
|
||||
@@ -4,7 +4,6 @@ import { formatBytes } from "@/utils";
|
||||
import { onBeforeMount, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const stats = ref({
|
||||
PLATFORMS: 0,
|
||||
@@ -15,7 +14,6 @@ const stats = ref({
|
||||
TOTAL_FILESIZE_BYTES: 0,
|
||||
});
|
||||
|
||||
// Functions
|
||||
onBeforeMount(() => {
|
||||
api.get("/stats").then(({ data }) => {
|
||||
stats.value = data;
|
||||
|
||||
@@ -7,7 +7,6 @@ import type { Events } from "@/types/emitter";
|
||||
import type { Emitter } from "mitt";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const heartbeatStore = storeHeartbeat();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
@@ -16,7 +15,6 @@ emitter?.on("showAboutDialog", () => {
|
||||
show.value = true;
|
||||
});
|
||||
|
||||
// Functions
|
||||
function closeDialog() {
|
||||
show.value = false;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import api from "@/services/api/index";
|
||||
import type { Emitter } from "mitt";
|
||||
import storeRunningTasks from "@/stores/runningTasks";
|
||||
|
||||
// Props
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
enabled?: boolean;
|
||||
@@ -34,7 +33,6 @@ const isTaskRunning = computed(() =>
|
||||
props.name ? runningTasksStore.isTaskRunning(props.name) : false,
|
||||
);
|
||||
|
||||
// Functions
|
||||
function run() {
|
||||
if (!props.name) return;
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import type { TaskInfo } from "@/__generated__/models/TaskInfo";
|
||||
import { convertCronExperssion } from "@/utils";
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
|
||||
// Props
|
||||
const tasks = ref<{
|
||||
watcher: TaskInfo[];
|
||||
scheduled: TaskInfo[];
|
||||
@@ -49,7 +48,6 @@ const manualTasks = computed(() =>
|
||||
})),
|
||||
);
|
||||
|
||||
// Functions
|
||||
const getAvailableTasks = async () => {
|
||||
await api.get("/tasks").then((response) => {
|
||||
tasks.value = response.data;
|
||||
|
||||
@@ -9,7 +9,6 @@ import { inject, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
emitter?.on("showCreateUserDialog", () => {
|
||||
show.value = true;
|
||||
@@ -26,7 +25,6 @@ const show = ref(false);
|
||||
const usersStore = storeUsers();
|
||||
const validForm = ref(false);
|
||||
|
||||
// Functions
|
||||
async function createUser() {
|
||||
await userApi
|
||||
.createUser(user.value)
|
||||
|
||||
@@ -9,7 +9,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const user = ref<UserItem | null>(null);
|
||||
const show = ref(false);
|
||||
const usersStore = storeUsers();
|
||||
@@ -20,7 +19,6 @@ emitter?.on("showDeleteUserDialog", (userToDelete) => {
|
||||
show.value = true;
|
||||
});
|
||||
|
||||
// Functions
|
||||
async function deleteUser() {
|
||||
if (!user.value) return;
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const user = ref<UserItem | null>(null);
|
||||
const { lgAndUp } = useDisplay();
|
||||
|
||||
@@ -8,7 +8,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { lgAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
|
||||
@@ -13,7 +13,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject, onMounted, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const userSearch = ref("");
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
enabled?: boolean;
|
||||
|
||||
@@ -8,7 +8,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp, smAndDown } = useDisplay();
|
||||
const show = ref(false);
|
||||
@@ -25,7 +24,6 @@ emitter?.on("showCreateExclusionDialog", ({ type, icon, title }) => {
|
||||
show.value = true;
|
||||
});
|
||||
|
||||
// Functions
|
||||
function addExclusion() {
|
||||
if (configStore.isExclusionType(exclusionType.value)) {
|
||||
configApi.addExclusion({
|
||||
|
||||
@@ -12,7 +12,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
|
||||
@@ -12,7 +12,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
@@ -50,7 +49,6 @@ emitter?.on(
|
||||
},
|
||||
);
|
||||
|
||||
// Functions
|
||||
function addVersionPlatform() {
|
||||
if (!selectedPlatform.value) return;
|
||||
configApi
|
||||
|
||||
@@ -8,7 +8,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { lgAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
@@ -8,7 +8,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { lgAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
@@ -21,7 +20,6 @@ emitter?.on("showDeletePlatformVersionDialog", ({ fsSlug, slug }) => {
|
||||
show.value = true;
|
||||
});
|
||||
|
||||
// Functions
|
||||
function deleteVersionPlatform() {
|
||||
configApi
|
||||
.deletePlatformVersionConfig({ fsSlug: fsSlugToDelete.value })
|
||||
|
||||
@@ -7,7 +7,6 @@ import storeConfig from "@/stores/config";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const configStore = storeConfig();
|
||||
const authStore = storeAuth();
|
||||
|
||||
@@ -6,7 +6,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
const props = defineProps<{
|
||||
@@ -18,7 +17,6 @@ const props = defineProps<{
|
||||
}>();
|
||||
const configStore = storeConfig();
|
||||
|
||||
// Functions
|
||||
function removeExclusion(exclusionValue: string) {
|
||||
if (configStore.isExclusionType(props.type)) {
|
||||
configApi.deleteExclusion({
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import PlatformIcon from "@/components/common/Platform/Icon.vue";
|
||||
|
||||
// Props
|
||||
const emit = defineEmits(["clickEdit", "clickDelete"]);
|
||||
defineProps<{
|
||||
slug: string;
|
||||
|
||||
@@ -12,7 +12,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
const authStore = storeAuth();
|
||||
|
||||
@@ -12,7 +12,6 @@ import { storeToRefs } from "pinia";
|
||||
import { inject, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
const authStore = storeAuth();
|
||||
|
||||
@@ -7,7 +7,6 @@ import { storeToRefs } from "pinia";
|
||||
import { ref, computed } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{
|
||||
total_filesize: number;
|
||||
}>();
|
||||
@@ -16,7 +15,6 @@ const platformsStore = storePlatforms();
|
||||
const { filteredPlatforms } = storeToRefs(platformsStore);
|
||||
const orderBy = ref<"name" | "size" | "count">("name");
|
||||
|
||||
// Functions
|
||||
const sortedPlatforms = computed(() => {
|
||||
const platforms = [...filteredPlatforms.value];
|
||||
if (orderBy.value === "size") {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useDisplay } from "vuetify";
|
||||
import { isNull } from "lodash";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
|
||||
const { t } = useI18n();
|
||||
const { smAndDown } = useDisplay();
|
||||
const collectionsStore = storeCollections();
|
||||
@@ -210,7 +210,7 @@ const galleryOptions = computed(() => [
|
||||
},
|
||||
]);
|
||||
|
||||
// Functions to update localStorage
|
||||
to update localStorage
|
||||
const setPlatformDrawerGroupBy = (value: string) => {
|
||||
platformsGroupByRef.value = value;
|
||||
localStorage.setItem("settings.platformsGroupBy", value);
|
||||
|
||||
@@ -3,7 +3,6 @@ import RSection from "@/components/common/RSection.vue";
|
||||
import LanguageSelector from "@/components/Settings/UserInterface/LanguageSelector.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
<template>
|
||||
|
||||
@@ -4,12 +4,10 @@ import { useI18n } from "vue-i18n";
|
||||
import languageStore from "@/stores/language";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
const { locale } = useI18n();
|
||||
const storeLanguage = languageStore();
|
||||
const { languages, selectedLanguage } = storeToRefs(storeLanguage);
|
||||
|
||||
// Functions
|
||||
function changeLanguage() {
|
||||
locale.value = selectedLanguage.value.value;
|
||||
localStorage.setItem("settings.locale", selectedLanguage.value.value);
|
||||
|
||||
@@ -7,7 +7,6 @@ import { computed, ref } from "vue";
|
||||
import { useTheme } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const theme = useTheme();
|
||||
const storedTheme = parseInt(localStorage.getItem("settings.theme") ?? "");
|
||||
@@ -26,7 +25,7 @@ const themeOptions = computed(() => [
|
||||
icon: "mdi-theme-light-dark",
|
||||
},
|
||||
]);
|
||||
// Functions
|
||||
|
||||
function toggleTheme() {
|
||||
localStorage.setItem("settings.theme", selectedTheme.value.toString());
|
||||
const mediaMatch = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { xs } = useDisplay();
|
||||
withDefaults(defineProps<{ text: string; icon: string }>(), {
|
||||
|
||||
@@ -8,7 +8,6 @@ import userApi from "@/services/api/user";
|
||||
import { watch } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const valid = ref(false);
|
||||
const auth = storeAuth();
|
||||
@@ -22,7 +21,6 @@ const rules = [
|
||||
},
|
||||
];
|
||||
|
||||
// Functions
|
||||
async function refreshRetroAchievements() {
|
||||
if (!auth.user) return;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ import { useDisplay } from "vuetify";
|
||||
import VanillaTilt from "vanilla-tilt";
|
||||
import { getCollectionCoverImage, getFavoriteCoverImage } from "@/utils/covers";
|
||||
|
||||
// Props
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
collection: CollectionType;
|
||||
|
||||
@@ -13,7 +13,6 @@ import { inject, ref, watch } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
|
||||
@@ -15,7 +15,6 @@ import { getMissingCoverImage } from "@/utils/covers";
|
||||
import { useRouter } from "vue-router";
|
||||
import { ROUTES } from "@/plugins/router";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp } = useDisplay();
|
||||
const router = useRouter();
|
||||
|
||||
@@ -11,7 +11,6 @@ import { useRouter } from "vue-router";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
const { lgAndUp } = useDisplay();
|
||||
@@ -24,7 +23,6 @@ emitter?.on("showDeleteCollectionDialog", (collectionToDelete) => {
|
||||
show.value = true;
|
||||
});
|
||||
|
||||
// Functions
|
||||
async function deleteCollection() {
|
||||
if (!collection.value) return;
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ import { useRouter } from "vue-router";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
const { lgAndUp } = useDisplay();
|
||||
@@ -24,7 +23,6 @@ emitter?.on("showDeleteSmartCollectionDialog", (smartCollectionToDelete) => {
|
||||
show.value = true;
|
||||
});
|
||||
|
||||
// Functions
|
||||
async function deleteSmartCollection() {
|
||||
if (!smartCollection.value) return;
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
|
||||
@@ -4,7 +4,6 @@ import RAvatar from "@/components/common/Collection/RAvatar.vue";
|
||||
import { ROUTES } from "@/plugins/router";
|
||||
import { computed } from "vue";
|
||||
|
||||
// Props
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
collection: CollectionType;
|
||||
|
||||
@@ -14,7 +14,6 @@ import { inject } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import romApi from "@/services/api/rom";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const props = defineProps<{ rom: SimpleRom }>();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
@@ -17,7 +17,6 @@ import type { Emitter } from "mitt";
|
||||
import { computed, inject, ref, watch } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{ rom: SimpleRom; sizeActionBar: number }>();
|
||||
const emit = defineEmits(["menu-open", "menu-close"]);
|
||||
const downloadStore = storeDownload();
|
||||
|
||||
@@ -17,7 +17,6 @@ import { isNull } from "lodash";
|
||||
import { useDisplay } from "vuetify";
|
||||
import VanillaTilt from "vanilla-tilt";
|
||||
|
||||
// Props
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
rom: SimpleRom | SearchRomSchema;
|
||||
|
||||
@@ -4,7 +4,6 @@ import storeGalleryView from "@/stores/galleryView";
|
||||
import { getMissingCoverImage } from "@/utils/covers";
|
||||
import { computed } from "vue";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{
|
||||
game: IGDBRelatedGame;
|
||||
}>();
|
||||
|
||||
@@ -9,7 +9,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { mdAndUp, smAndUp } = useDisplay();
|
||||
const romsStore = storeRoms();
|
||||
const show = ref(false);
|
||||
@@ -31,7 +30,6 @@ const HEADERS = [
|
||||
},
|
||||
] as const;
|
||||
|
||||
// Functions
|
||||
async function deleteSaves() {
|
||||
if (!savesRef.value) return;
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { mdAndUp, smAndUp } = useDisplay();
|
||||
const romsStore = storeRoms();
|
||||
const show = ref(false);
|
||||
@@ -31,7 +30,6 @@ const HEADERS = [
|
||||
},
|
||||
] as const;
|
||||
|
||||
// Functions
|
||||
async function deleteStates() {
|
||||
if (!statesRef.value) return;
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ import { useDisplay } from "vuetify";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const auth = storeAuth();
|
||||
const { scopes } = storeToRefs(auth);
|
||||
|
||||
@@ -12,7 +12,6 @@ import { useDisplay } from "vuetify";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const auth = storeAuth();
|
||||
const { scopes } = storeToRefs(auth);
|
||||
|
||||
@@ -8,7 +8,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, nextTick, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { xs, mdAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
const filesToUpload = ref<File[]>([]);
|
||||
|
||||
@@ -8,7 +8,6 @@ import type { Emitter } from "mitt";
|
||||
import { inject, nextTick, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { xs, mdAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
const filesToUpload = ref<File[]>([]);
|
||||
|
||||
@@ -6,7 +6,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { lgAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
|
||||
@@ -13,7 +13,6 @@ import { useRouter, useRoute } from "vue-router";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { mdAndUp } = useDisplay();
|
||||
const router = useRouter();
|
||||
|
||||
@@ -15,7 +15,6 @@ import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { getMissingCoverImage } from "@/utils/covers";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { lgAndUp, smAndDown } = useDisplay();
|
||||
const heartbeat = storeHeartbeat();
|
||||
@@ -51,7 +50,6 @@ const missingCoverImage = computed(() =>
|
||||
getMissingCoverImage(rom.value?.name || rom.value?.fs_name || ""),
|
||||
);
|
||||
|
||||
// Functions
|
||||
function triggerFileInput(id: string) {
|
||||
const fileInput = document.getElementById(id);
|
||||
fileInput?.click();
|
||||
|
||||
@@ -22,7 +22,6 @@ type MatchedSource = {
|
||||
logo_path: string;
|
||||
};
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { xs, lgAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
@@ -69,7 +68,6 @@ const missingCoverImage = computed(() =>
|
||||
getMissingCoverImage(rom.value?.name || rom.value?.fs_name || ""),
|
||||
);
|
||||
|
||||
// Functions
|
||||
function toggleSourceFilter(source: MatchedSource["name"]) {
|
||||
if (source == "IGDB" && heartbeat.value.METADATA_SOURCES.IGDB_API_ENABLED) {
|
||||
isIGDBFiltered.value = !isIGDBFiltered.value;
|
||||
|
||||
@@ -15,7 +15,6 @@ import { inject, ref } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const { xs, mdAndUp, smAndUp } = useDisplay();
|
||||
const show = ref(false);
|
||||
|
||||
@@ -9,7 +9,6 @@ import type { Emitter } from "mitt";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { inject } from "vue";
|
||||
|
||||
// Props
|
||||
const props = defineProps<{ rom: SimpleRom }>();
|
||||
const romsStore = storeRoms();
|
||||
const collectionsStore = storeCollections();
|
||||
@@ -17,7 +16,6 @@ const { favoriteCollection } = storeToRefs(collectionsStore);
|
||||
const auth = storeAuth();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
|
||||
// Functions
|
||||
async function switchFromFavourites() {
|
||||
if (!favoriteCollection.value) {
|
||||
await collectionApi
|
||||
|
||||
@@ -4,7 +4,6 @@ import RAvatarRom from "@/components/common/Game/RAvatar.vue";
|
||||
import { formatBytes } from "@/utils";
|
||||
import { ROUTES } from "@/plugins/router";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
rom: SimpleRom;
|
||||
|
||||
@@ -24,7 +24,6 @@ import { storeToRefs } from "pinia";
|
||||
import { computed } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
showPlatformIcon?: boolean;
|
||||
@@ -100,7 +99,6 @@ const HEADERS = [
|
||||
|
||||
const selectedRomIDs = computed(() => selectedRoms.value.map((rom) => rom.id));
|
||||
|
||||
// Functions
|
||||
function rowClick(_: Event, row: { item: SimpleRom }) {
|
||||
router.push({ name: ROUTES.ROM, params: { rom: row.item.id } });
|
||||
romsStore.resetSelection();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import storeNavigation from "@/stores/navigation";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
block?: boolean;
|
||||
|
||||
@@ -12,7 +12,6 @@ import { useDisplay } from "vuetify";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { isNull } from "lodash";
|
||||
|
||||
// Props
|
||||
const { t } = useI18n();
|
||||
const navigationStore = storeNavigation();
|
||||
const { mdAndUp, smAndDown } = useDisplay();
|
||||
|
||||
@@ -15,14 +15,12 @@ import storePlaying from "@/stores/playing";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
const { smAndDown } = useDisplay();
|
||||
const navigationStore = storeNavigation();
|
||||
const { mainBarCollapsed } = storeToRefs(navigationStore);
|
||||
const playingStore = storePlaying();
|
||||
const { playing, fullScreen } = storeToRefs(playingStore);
|
||||
|
||||
// Functions
|
||||
function collapse() {
|
||||
mainBarCollapsed.value = !mainBarCollapsed.value;
|
||||
localStorage.setItem(
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import storeNavigation from "@/stores/navigation";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
// Props
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
block?: boolean;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user