msc: translate front view

v0.6
rrr-marble 3 years ago
parent 335c032ef9
commit 686872fa4f

@ -3,13 +3,17 @@
<va-navbar shape color="#79589f" class="navbar">
<template #left>
<va-navbar-item class="top-icon">
<va-icon size="3rem" color="gray" name="public" @click="$router.push('/')" />
<va-popover message="Главная страница">
<va-icon size="3rem" color="gray" name="public" @click="$router.push('/')" />
</va-popover>
</va-navbar-item>
<slot></slot>
</template>
<template #right>
<va-navbar-item class="top-icon">
<va-icon size="3rem" color="gray" name="account_box" @click="$emit('accountClick')" />
<va-popover message="Аккаунт">
<va-icon size="3rem" color="gray" name="account_box" @click="$emit('accountClick')" />
</va-popover>
</va-navbar-item>
</template>
</va-navbar>

@ -6,10 +6,10 @@
</va-card>
<va-card class="content-container">
<va-data-table v-if="items.length" :items="items" :columns="columns" :hoverable="true" :clickable="true"
:per-page="perPage" :current-page="currentPage"
@row:click="(e) => $router.push(`/items/${e.item.id}`)" />
:per-page="perPage" :current-page="currentPage" @row:click="(e) => $router.push(`/items/${e.item.id}`)"
no-data-filtered-html="Не найдено образцов, соответствующих данному запросу" />
<va-pagination v-if="items.length" v-model="currentPage" :pages="pages" input style="margin: 0.5rem auto" />
<h1 v-else class="no-items">No items found</h1>
<h1 v-else class="no-items">Не найдено образцов, соответствующих данному запросу</h1>
</va-card>
</div>
</template>

@ -29,6 +29,7 @@ import {
VaSlider,
VaChip,
VaModal,
VaPopover,
} from 'vuestic-ui'
import 'vuestic-ui/dist/styles/essential.css'
import 'vuestic-ui/dist/styles/grid.css'
@ -72,6 +73,7 @@ app.use(createVuesticEssential({
VaSlider,
VaChip,
VaModal,
VaPopover,
}
}));

@ -1,6 +1,6 @@
<template>
<navbar @accountClick="$router.push('/admin/')">
<va-input v-model="searchQuery"></va-input>
<va-input placeholder="Начните вводить запрос" v-model="searchQuery"></va-input>
</navbar>
<div class="central-view">
<sidebar>

Loading…
Cancel
Save