2018-05-02 02:05:36 +02:00
|
|
|
{#if $isUserLoggedIn}
|
2018-03-14 01:14:57 +01:00
|
|
|
<div class="search-page">
|
|
|
|
<Search></Search>
|
|
|
|
</div>
|
2018-05-02 02:05:36 +02:00
|
|
|
{:else}
|
2018-03-14 01:14:57 +01:00
|
|
|
<HiddenFromSSR>
|
|
|
|
<FreeTextLayout>
|
2020-11-29 23:13:27 +01:00
|
|
|
<h1>{intl.search}</h1>
|
2018-03-14 01:14:57 +01:00
|
|
|
|
2020-11-29 23:13:27 +01:00
|
|
|
<p>{intl.searchNotLoggedIn}</p>
|
2018-03-14 01:14:57 +01:00
|
|
|
</FreeTextLayout>
|
|
|
|
</HiddenFromSSR>
|
2020-09-03 03:01:46 +02:00
|
|
|
<div style="display: none">
|
|
|
|
<!-- TODO: this is just a hack so that `sapper export` knows to crawl these files -->
|
|
|
|
<!-- Note that these links have to be spread out or else they result in ECONNRESET errors during crawling -->
|
|
|
|
<!-- See also community/index.html -->
|
2020-11-29 23:13:27 +01:00
|
|
|
<a href="/local">{intl.local}</a>
|
|
|
|
<a href="/federated">{intl.federated}</a>
|
|
|
|
<a href="/favorites">{intl.favorites}</a>
|
|
|
|
<a href="/direct">{intl.directMessages}</a>
|
|
|
|
<a href="/bookmarks">{intl.bookmarks}</a>
|
2020-09-03 03:01:46 +02:00
|
|
|
</div>
|
2018-05-02 02:05:36 +02:00
|
|
|
{/if}
|
2018-03-14 01:14:57 +01:00
|
|
|
<style>
|
|
|
|
.search-page {
|
|
|
|
padding: 20px 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
.search-page {
|
|
|
|
padding: 20px 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
2018-12-11 16:31:48 +01:00
|
|
|
import FreeTextLayout from '../_components/FreeTextLayout.html'
|
|
|
|
import { store } from '../_store/store.js'
|
2021-07-05 05:19:04 +02:00
|
|
|
import HiddenFromSSR from '../_components/HiddenFromSSR.html'
|
2018-12-11 16:31:48 +01:00
|
|
|
import Search from '../_components/search/Search.html'
|
2018-03-14 01:14:57 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
store: () => store,
|
|
|
|
components: {
|
|
|
|
Search,
|
|
|
|
FreeTextLayout,
|
|
|
|
HiddenFromSSR
|
|
|
|
}
|
|
|
|
}
|
2018-12-11 16:31:48 +01:00
|
|
|
</script>
|