i18n strings
This commit is contained in:
parent
7e1e42bc47
commit
5dd106e956
|
@ -5,6 +5,7 @@ introMisskey: "Welcome! Calckey is an open source, decentralized social media pl
|
|||
\ that's free forever! \U0001F680"
|
||||
monthAndDay: "{month}/{day}"
|
||||
search: "Search"
|
||||
search_placeholder: "Enter search terms..."
|
||||
notifications: "Notifications"
|
||||
username: "Username"
|
||||
password: "Password"
|
||||
|
@ -1548,6 +1549,10 @@ _widgets:
|
|||
userList: "User list"
|
||||
_userList:
|
||||
chooseList: "Select a list"
|
||||
meiliStatus: "Server Status"
|
||||
meiliSize: "Index size"
|
||||
meiliIndexCount: "Indexed posts"
|
||||
|
||||
_cw:
|
||||
hide: "Hide"
|
||||
show: "Show content"
|
||||
|
|
|
@ -5,7 +5,7 @@ import { mainRouter } from "@/router";
|
|||
export async function search() {
|
||||
const { canceled, result: query } = await os.inputText({
|
||||
title: i18n.ts.search,
|
||||
placeholder: "Enter search terms...",
|
||||
placeholder: i18n.ts.search_placeholder,
|
||||
text:
|
||||
"Advanced search operators\n" +
|
||||
"from:user => filter by user\n" +
|
||||
|
|
|
@ -1,46 +1,47 @@
|
|||
<template>
|
||||
<div class="ms_stats">
|
||||
<div>
|
||||
<p><i class="ph-file-search ph-bold ph-lg"></i>MeiliSearch</p>
|
||||
<p>Server Status: {{ available }}</p>
|
||||
<p>Total: {{ bytes(total_size, 2) }}</p>
|
||||
<p>Posts Indexed: {{ index_count }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {} from "vue";
|
||||
import bytes from "@/filters/bytes";
|
||||
|
||||
const props = defineProps<{
|
||||
meta: any; // TODO
|
||||
}>();
|
||||
|
||||
const total_size = $computed(() => props.meta.meilisearch.size);
|
||||
const index_count = $computed(() => props.meta.meilisearch.indexed_count);
|
||||
const available = $computed(() => props.meta.meilisearch.health);
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ms_stats {
|
||||
padding: 16px;
|
||||
|
||||
> div {
|
||||
> p {
|
||||
margin: 0;
|
||||
font-size: 0.8em;
|
||||
|
||||
&:first-child {
|
||||
font-weight: bold;
|
||||
margin-bottom: 4px;
|
||||
|
||||
> i {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<div class="ms_stats">
|
||||
<div>
|
||||
<p><i class="ph-file-search ph-bold ph-lg"></i>MeiliSearch</p>
|
||||
<p>{{ i18n.ts._widgets.meiliStatus }}: {{ available }}</p>
|
||||
<p>{{ i18n.ts._widgets.meiliSize }}: {{ bytes(total_size, 2) }}</p>
|
||||
<p>{{ i18n.ts._widgets.meiliIndexCount }}: {{ index_count }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {} from "vue";
|
||||
import bytes from "@/filters/bytes";
|
||||
import {i18n} from "@/i18n";
|
||||
|
||||
const props = defineProps<{
|
||||
meta: any; // TODO
|
||||
}>();
|
||||
|
||||
const total_size = $computed(() => props.meta.meilisearch.size);
|
||||
const index_count = $computed(() => props.meta.meilisearch.indexed_count);
|
||||
const available = $computed(() => props.meta.meilisearch.health);
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ms_stats {
|
||||
padding: 16px;
|
||||
|
||||
> div {
|
||||
> p {
|
||||
margin: 0;
|
||||
font-size: 0.8em;
|
||||
|
||||
&:first-child {
|
||||
font-weight: bold;
|
||||
margin-bottom: 4px;
|
||||
|
||||
> i {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue