diff --git a/frontend/src/components/Gallery/AppBar/Base.vue b/frontend/src/components/Gallery/AppBar/Base.vue index 8179dadfb..3717028d3 100644 --- a/frontend/src/components/Gallery/AppBar/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Base.vue @@ -5,6 +5,7 @@ import FilterDrawer from "@/components/Gallery/AppBar/common/FilterDrawer/Base.v import SelectingBtn from "@/components/Gallery/AppBar/common/SelectingBtn.vue"; import GalleryViewBtn from "@/components/Gallery/AppBar/common/GalleryViewBtn.vue"; import CharIndexBar from "@/components/Gallery/AppBar/common/CharIndexBar.vue"; +import ContextualRandomBtn from "@/components/Gallery/AppBar/common/ContextualRandomBtn.vue"; import { calculateMainLayoutWidth } from "@/utils"; // Props @@ -39,6 +40,7 @@ const { calculatedWidth } = calculateMainLayoutWidth(); diff --git a/frontend/src/components/Gallery/AppBar/Search/Base.vue b/frontend/src/components/Gallery/AppBar/Search/Base.vue index 69bf27972..3b38a54e5 100644 --- a/frontend/src/components/Gallery/AppBar/Search/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Search/Base.vue @@ -1,6 +1,7 @@ + diff --git a/frontend/src/components/Gallery/AppBar/common/ContextualRandomBtn.vue b/frontend/src/components/Gallery/AppBar/common/ContextualRandomBtn.vue new file mode 100644 index 000000000..96c4bc266 --- /dev/null +++ b/frontend/src/components/Gallery/AppBar/common/ContextualRandomBtn.vue @@ -0,0 +1,129 @@ + + + diff --git a/frontend/src/components/common/Navigation/RandomBtn.vue b/frontend/src/components/common/Navigation/RandomBtn.vue index 40172b3ab..15a19f039 100644 --- a/frontend/src/components/common/Navigation/RandomBtn.vue +++ b/frontend/src/components/common/Navigation/RandomBtn.vue @@ -77,7 +77,7 @@ async function goToRandomGame() { icon :block="block" variant="flat" - color="background" + color="text-white" :height="height" :class="{ rounded: rounded }" class="py-4 bg-background d-flex align-center justify-center" @@ -86,7 +86,9 @@ async function goToRandomGame() {
mdi-shuffle-variant - Random + + {{ $t("common.random") }} +
diff --git a/frontend/src/locales/de_DE/common.json b/frontend/src/locales/de_DE/common.json index f88aa4267..8e3a8db3c 100644 --- a/frontend/src/locales/de_DE/common.json +++ b/frontend/src/locales/de_DE/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Plattform | {n} Plattformen", "platforms-size": "Größe pro Plattform", "profile": "Profil", + "random": "Zufällig", "required": "Erforderlich", "invalid-name": "Ungültiger Name", "invalid-email": "Ungültige E-Mail", diff --git a/frontend/src/locales/en_GB/common.json b/frontend/src/locales/en_GB/common.json index 7252b7023..d8eabda8d 100644 --- a/frontend/src/locales/en_GB/common.json +++ b/frontend/src/locales/en_GB/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Platform | {n} Platforms", "platforms-size": "Size per platform", "profile": "Profile", + "random": "Random", "required": "Required", "invalid-name": "Invalid name", "invalid-email": "Invalid email", diff --git a/frontend/src/locales/en_US/common.json b/frontend/src/locales/en_US/common.json index 7252b7023..d8eabda8d 100644 --- a/frontend/src/locales/en_US/common.json +++ b/frontend/src/locales/en_US/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Platform | {n} Platforms", "platforms-size": "Size per platform", "profile": "Profile", + "random": "Random", "required": "Required", "invalid-name": "Invalid name", "invalid-email": "Invalid email", diff --git a/frontend/src/locales/es_ES/common.json b/frontend/src/locales/es_ES/common.json index 1f40afcd6..c31e57c48 100644 --- a/frontend/src/locales/es_ES/common.json +++ b/frontend/src/locales/es_ES/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Plataforma | {n} Plataformas", "platforms-size": "Tamaño por plataforma", "profile": "Perfil", + "random": "Aleatorio", "required": "Requerido", "invalid-name": "Nombre inválido", "invalid-email": "Correo electrónico inválido", diff --git a/frontend/src/locales/fr_FR/common.json b/frontend/src/locales/fr_FR/common.json index b53a2b073..e139261dd 100644 --- a/frontend/src/locales/fr_FR/common.json +++ b/frontend/src/locales/fr_FR/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Plateforme | {n} Plateformes", "platforms-size": "Taille par plateforme", "profile": "Profil", + "random": "Aléatoire", "required": "Requis", "invalid-name": "Nom invalide", "invalid-email": "E-mail invalide", diff --git a/frontend/src/locales/it_IT/common.json b/frontend/src/locales/it_IT/common.json index fdfa9bbba..d8916db65 100644 --- a/frontend/src/locales/it_IT/common.json +++ b/frontend/src/locales/it_IT/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Piattaforma | {n} Piattaforme", "platforms-size": "Dimensione per piattaforma", "profile": "Profilo", + "random": "Casuale", "required": "Obbligatorio", "invalid-name": "Nome non valido", "invalid-email": "Email non valida", diff --git a/frontend/src/locales/ja_JP/common.json b/frontend/src/locales/ja_JP/common.json index c69ea1b43..599a24bbc 100644 --- a/frontend/src/locales/ja_JP/common.json +++ b/frontend/src/locales/ja_JP/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} プラットフォーム | {n} プラットフォームs", "platforms-size": "プラットフォームごとのサイズ", "profile": "プロファイル", + "random": "ランダム", "required": "必須", "invalid-name": "無効な名前", "invalid-email": "無効なメールアドレス", diff --git a/frontend/src/locales/ko_KR/common.json b/frontend/src/locales/ko_KR/common.json index 29179a05a..4d7a7dccc 100644 --- a/frontend/src/locales/ko_KR/common.json +++ b/frontend/src/locales/ko_KR/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n}가지 플랫폼 | {n}가지 플랫폼", "platforms-size": "플랫폼별 크기", "profile": "프로필", + "random": "무작위", "required": "필수", "invalid-name": "유효하지 않은 이름", "invalid-email": "유효하지 않은 이메일", diff --git a/frontend/src/locales/pt_BR/common.json b/frontend/src/locales/pt_BR/common.json index 7a2a76f15..0967ff144 100644 --- a/frontend/src/locales/pt_BR/common.json +++ b/frontend/src/locales/pt_BR/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Plataforma | {n} Plataformas", "platforms-size": "Tamanho por plataforma", "profile": "Perfil", + "random": "Aleatório", "required": "Requerido", "invalid-name": "Nome inválido", "invalid-email": "Email inválido", diff --git a/frontend/src/locales/ro_RO/common.json b/frontend/src/locales/ro_RO/common.json index 8d14cfff3..cb46b14b3 100644 --- a/frontend/src/locales/ro_RO/common.json +++ b/frontend/src/locales/ro_RO/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Platformă | {n} Platforme", "platforms-size": "Dimensiune per platformă", "profile": "Profil", + "random": "Aleatoriu", "required": "Obligatoriu", "invalid-name": "Nume invalid", "invalid-email": "Email invalid", diff --git a/frontend/src/locales/ru_RU/common.json b/frontend/src/locales/ru_RU/common.json index 3f43c4d46..4232978af 100644 --- a/frontend/src/locales/ru_RU/common.json +++ b/frontend/src/locales/ru_RU/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} Платформа | {n} Платформы", "platforms-size": "Размер по платформе", "profile": "Профиль", + "random": "Случайный", "required": "Обязательное поле", "invalid-name": "Недопустимое имя", "invalid-email": "Недопустимый адрес электронной почты", diff --git a/frontend/src/locales/zh_CN/common.json b/frontend/src/locales/zh_CN/common.json index 101e4e1c3..c5b3926d2 100644 --- a/frontend/src/locales/zh_CN/common.json +++ b/frontend/src/locales/zh_CN/common.json @@ -23,6 +23,7 @@ "platforms-n": "{n} 平台 | {n} 平台", "platforms-size": "每个平台的大小", "profile": "简介", + "random": "随机", "required": "必填", "invalid-name": "无效的名称", "invalid-email": "无效的电子邮件",