mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 23:44:11 +01:00
Add fallback for homepage when library is empty
This commit is contained in:
13
frontend/src/components/Home/EmptyHome.vue
Normal file
13
frontend/src/components/Home/EmptyHome.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-empty-state
|
||||
:headline="t('emptyStates.home-headline')"
|
||||
:title="t('emptyStates.home-title')"
|
||||
:text="t('emptyStates.home-text')"
|
||||
/>
|
||||
</template>
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "Die Seite, die Sie suchen, existiert nicht",
|
||||
"404-title": "Seite nicht gefunden",
|
||||
"search-for-games": "Suche nach Spielen auf allen Plattformen",
|
||||
"manual-match": "Suche nach Spielen bei allen Metadatenanbietern"
|
||||
"manual-match": "Suche nach Spielen bei allen Metadatenanbietern",
|
||||
"home-headline": "Keine Spiele in Ihrer Bibliothek",
|
||||
"home-title": "Führen Sie einen Schnellscan durch, um Spiele auf Ihrem System automatisch zu erkennen",
|
||||
"home-text": "Bereit zum Spielen?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "The page you are looking for does not exist",
|
||||
"404-title": "Page not found",
|
||||
"search-for-games": "Search for games across all platforms",
|
||||
"manual-match": "Search for games across all metadata providers"
|
||||
"manual-match": "Search for games across all metadata providers",
|
||||
"home-headline": "No games in your library",
|
||||
"home-title": "Run a quick scan to automatically detect games on your system",
|
||||
"home-text": "Ready to play?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "The page you are looking for does not exist",
|
||||
"404-title": "Page not found",
|
||||
"search-for-games": "Search for games across all platforms",
|
||||
"manual-match": "Search for games across all metadata providers"
|
||||
"manual-match": "Search for games across all metadata providers",
|
||||
"home-headline": "No games in your library",
|
||||
"home-title": "Run a quick scan to automatically detect games on your system",
|
||||
"home-text": "Ready to play?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "La página que buscas no existe",
|
||||
"404-title": "Página no encontrada",
|
||||
"search-for-games": "Busca juegos en todas las plataformas",
|
||||
"manual-match": "Busca juegos en todos los proveedores de metadatos"
|
||||
"manual-match": "Busca juegos en todos los proveedores de metadatos",
|
||||
"home-headline": "No hay juegos en tu biblioteca",
|
||||
"home-title": "Ejecuta un escaneo rápido para detectar juegos en tu sistema automáticamente",
|
||||
"home-text": "¿Listo para jugar?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "La page que vous recherchez n'existe pas",
|
||||
"404-title": "Page introuvable",
|
||||
"search-for-games": "Recherchez des jeux sur toutes les plateformes",
|
||||
"manual-match": "Recherchez des jeux auprès de tous les fournisseurs de métadonnées"
|
||||
"manual-match": "Recherchez des jeux auprès de tous les fournisseurs de métadonnées",
|
||||
"home-headline": "Aucun jeu dans votre bibliothèque",
|
||||
"home-title": "Effectuez une analyse rapide pour détecter automatiquement les jeux sur votre système",
|
||||
"home-text": "Prêt à jouer ?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "La pagina che stai cercando non esiste",
|
||||
"404-title": "Pagina non trovata",
|
||||
"search-for-games": "Cerca giochi su tutte le piattaforme",
|
||||
"manual-match": "Cerca giochi su tutti i fornitori di metadati"
|
||||
"manual-match": "Cerca giochi su tutti i fornitori di metadati",
|
||||
"home-headline": "Nessun gioco nella tua libreria",
|
||||
"home-title": "Esegui una scansione rapida per rilevare automaticamente i giochi sul tuo sistema",
|
||||
"home-text": "Pronto a giocare?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "表示しようとしたページは見つかりませんでした",
|
||||
"404-title": "ページが見つかりませんでした",
|
||||
"search-for-games": "全てのプラットフォームから検索",
|
||||
"manual-match": "全てのメタデータプロバイダーから検索"
|
||||
"manual-match": "全てのメタデータプロバイダーから検索",
|
||||
"home-headline": "ライブラリにゲームがありません",
|
||||
"home-title": "システム上のゲームを自動的に検出するためにクイックスキャンを実行します",
|
||||
"home-text": "プレイする準備はできましたか?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "찾으려고 하는 페이지가 존재하지 않습니다",
|
||||
"404-title": "페이지 찾을 수 없음",
|
||||
"search-for-games": "모든 기종에서 게임 찾기",
|
||||
"manual-match": "모든 메타데이터 제공업체에서 게임 찾기"
|
||||
"manual-match": "모든 메타데이터 제공업체에서 게임 찾기",
|
||||
"home-headline": "라이브러리에 게임이 없습니다",
|
||||
"home-title": "시스템에서 게임을 자동으로 감지하기 위해 빠른 스캔을 실행하세요",
|
||||
"home-text": "게임을 할 준비가 되셨나요?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "A página que você está procurando não existe",
|
||||
"404-title": "Página não encontrada",
|
||||
"search-for-games": "Pesquisar jogos em todas as plataformas",
|
||||
"manual-match": "Pesquisar jogos em todos os provedores de metadados"
|
||||
"manual-match": "Pesquisar jogos em todos os provedores de metadados",
|
||||
"home-headline": "Nenhum jogo na sua biblioteca",
|
||||
"home-title": "Execute uma varredura rápida para detectar jogos no seu sistema automaticamente",
|
||||
"home-text": "Pronto para jogar?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "Pagina pe care o căutați nu există",
|
||||
"404-title": "Pagină negăsită",
|
||||
"search-for-games": "Căutați jocuri pe toate platformele",
|
||||
"manual-match": "Căutați jocuri la toți furnizorii de metadate"
|
||||
"manual-match": "Căutați jocuri la toți furnizorii de metadate",
|
||||
"home-headline": "Nu există jocuri în biblioteca dvs.",
|
||||
"home-title": "Rulați o scanare rapidă pentru a detecta automat jocurile de pe sistemul dvs.",
|
||||
"home-text": "Sunteți gata de joacă?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "Страница, которую вы ищете, не существует",
|
||||
"404-title": "Страница не найдена",
|
||||
"search-for-games": "Искать игры на всех платформах",
|
||||
"manual-match": "Искать игры у всех поставщиков метаданных"
|
||||
"manual-match": "Искать игры у всех поставщиков метаданных",
|
||||
"home-headline": "В вашей библиотеке нет игр",
|
||||
"home-title": "Запустите быструю проверку, чтобы автоматически обнаружить игры на вашей системе",
|
||||
"home-text": "Готовы играть?"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"404-subtitle": "找不到页面",
|
||||
"404-title": "页面未找到",
|
||||
"search-for-games": "搜索游戏",
|
||||
"manual-match": "在所有元数据提供商中搜索游戏"
|
||||
"manual-match": "在所有元数据提供商中搜索游戏",
|
||||
"home-headline": "您的库中没有游戏",
|
||||
"home-title": "运行快速扫描以自动检测系统上的游戏",
|
||||
"home-text": "准备好游戏了吗?"
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import Platforms from "@/components/Home/Platforms.vue";
|
||||
import RecentSkeletonLoader from "@/components/Home/RecentSkeletonLoader.vue";
|
||||
import RecentAdded from "@/components/Home/RecentAdded.vue";
|
||||
import ContinuePlaying from "@/components/Home/ContinuePlaying.vue";
|
||||
import EmptyHome from "@/components/Home/EmptyHome.vue";
|
||||
import romApi from "@/services/api/rom";
|
||||
import storeCollections from "@/stores/collections";
|
||||
import storePlatforms from "@/stores/platforms";
|
||||
@@ -106,4 +107,14 @@ onMounted(async () => {
|
||||
class="ma-2"
|
||||
v-if="virtualCollections.length > 0 && showVirtualCollections"
|
||||
/>
|
||||
<empty-home
|
||||
v-if="
|
||||
recentRoms.length === 0 &&
|
||||
recentPlayedRoms.length === 0 &&
|
||||
filledPlatforms.length === 0 &&
|
||||
allCollections.length === 0 &&
|
||||
virtualCollections.length === 0
|
||||
"
|
||||
class="ma-2"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user