2018-11-14 11:29:45 -08:00
|
|
|
<template>
|
2018-11-28 08:24:19 -08:00
|
|
|
<div class="user-search panel panel-default">
|
2018-11-14 11:29:45 -08:00
|
|
|
<div class="panel-heading">
|
|
|
|
{{$t('nav.user_search')}}
|
|
|
|
</div>
|
2018-12-28 11:39:54 -08:00
|
|
|
<div class="user-search-input-container">
|
2019-02-21 11:20:46 -08:00
|
|
|
<input class="user-finder-input" ref="username" @keyup.enter="newQuery(username)" v-model="username" :placeholder="$t('finder.find_user')"/>
|
2018-12-28 11:39:54 -08:00
|
|
|
<button class="btn search-button" @click="newQuery(username)">
|
|
|
|
<i class="icon-search"/>
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-11-14 11:29:45 -08:00
|
|
|
<div class="panel-body">
|
|
|
|
<user-card v-for="user in users" :key="user.id" :user="user" :showFollows="true"></user-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./user_search.js"></script>
|
2018-12-28 11:39:54 -08:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.user-search-input-container {
|
|
|
|
margin: 0.5em;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.search-button {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|