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