vue components refactoring

This commit is contained in:
Čarodej
2022-04-13 16:19:10 +02:00
parent 6a4bfa8bfe
commit 338f8664b7
251 changed files with 1068 additions and 1943 deletions

View File

@@ -0,0 +1,10 @@
<template>
<b class="mb-1.5 block text-xs text-gray-500">
<slot />
</b>
</template>
<script>
export default {
name: 'CategoryName',
}
</script>

View File

@@ -0,0 +1,18 @@
<template>
<div class="flex cursor-pointer items-center py-2">
<span
class="dark-text-theme rounded-lg bg-light-background py-1 px-2 text-sm font-bold dark:bg-4x-dark-foreground"
>
{{ keyword }} + {{ $t('space') }}
</span>
<p class="ml-3 text-sm font-semibold text-gray-500">
{{ description }}
</p>
</div>
</template>
<script>
export default {
name: 'FilterSuggestion',
props: ['keyword', 'description'],
}
</script>

View File

@@ -0,0 +1,35 @@
<template>
<div v-if="!$isMobile()" class="flex items-center px-5 pb-2">
<!--Arrow key navigation-->
<div class="mr-4 flex items-center">
<ArrowUpIcon size="12" class="vue-feather text-gray-400" />
<ArrowDownIcon size="12" class="vue-feather text-gray-400" />
<span class="ml-1.5 text-xs text-gray-400">
{{ $t('navigate') }}
</span>
</div>
<!--Submit key-->
<div class="flex items-center">
<CornerDownLeftIcon size="12" class="vue-feather text-gray-400" />
<span class="ml-1.5 text-xs text-gray-400">
{{ $t('go') }}
</span>
</div>
</div>
</template>
<script>
import { CornerDownLeftIcon, ArrowDownIcon, ArrowUpIcon } from 'vue-feather-icons'
export default {
name: 'KeyboardHints',
components: {
CornerDownLeftIcon,
ArrowDownIcon,
ArrowUpIcon,
},
}
</script>