All checks were successful
Build and publish the docker image / build (push) Successful in 1m16s
Signed-off-by: ngn <ngn@ngn.tf>
31 lines
682 B
Vue
31 lines
682 B
Vue
<script lang="ts">
|
|
export default {
|
|
setup() {
|
|
return {
|
|
searchInput: ''
|
|
}
|
|
},
|
|
methods: {
|
|
redirectToSearch() {
|
|
const query = this.searchInput
|
|
this.$router.push({ path: '/search/', query: { query } })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div class="relative md:block outline-none">
|
|
<label for="searchBar" class="hidden">{{ $t('main.search') }}</label>
|
|
<input
|
|
type="text"
|
|
id="searchBar"
|
|
name="searchBar"
|
|
:placeholder="$t('main.search')"
|
|
v-model="searchInput"
|
|
@keyup.enter="redirectToSearch"
|
|
class="rounded-md text-white bg-black placeholder:text-white w-full outline-none"
|
|
/>
|
|
</div>
|
|
</template>
|