small changes

This commit is contained in:
Alireza Ahmadi
2024-06-15 23:22:23 +02:00
parent b5a2dd18f5
commit 7c127f07bb
7 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -143,6 +143,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { i18n } from '@/locales'
import { iTls, defaultInTls } from '@/types/inTls' import { iTls, defaultInTls } from '@/types/inTls'
export default { export default {
props: ['inbound', 'tlsConfigs', 'tls_id'], props: ['inbound', 'tlsConfigs', 'tls_id'],
@@ -183,7 +184,7 @@ export default {
return <iTls> this.$props.inbound.tls return <iTls> this.$props.inbound.tls
}, },
tlsItems(): any[] { tlsItems(): any[] {
return [ { title: '', value: 0 }, ...this.$props.tlsConfigs?.map((t:any) => { return { title: t.name, value: t.id } } )] return [ { title: i18n.global.t('none'), value: 0 }, ...this.$props.tlsConfigs?.map((t:any) => { return { title: t.name, value: t.id } } )]
}, },
tlsId: { tlsId: {
get() { return this.tls_id.value?? 0 }, get() { return this.tls_id.value?? 0 },
+3
View File
@@ -4,6 +4,9 @@ export default {
failed: "failed", failed: "failed",
enable: "Enable", enable: "Enable",
disable: "Disable", disable: "Disable",
none: "None",
all: "All",
filter: "Filter",
loading: "Loading...", loading: "Loading...",
confirm: "Are you sure ?", confirm: "Are you sure ?",
yes: "yes", yes: "yes",
+3
View File
@@ -4,6 +4,9 @@ export default {
failed: "خطا", failed: "خطا",
enable: "فعال", enable: "فعال",
disable: "غیرفعال", disable: "غیرفعال",
none: "هیچ",
all: "همه",
filter: "فیلتر",
loading: "در حال بارگذاری...", loading: "در حال بارگذاری...",
confirm: "آیا مطمئن هستید ؟", confirm: "آیا مطمئن هستید ؟",
yes: "بله", yes: "بله",
+3
View File
@@ -4,6 +4,9 @@ export default {
failed: "Thất bại", failed: "Thất bại",
enable: "Kích hoạt", enable: "Kích hoạt",
disable: "Vô hiệu hóa", disable: "Vô hiệu hóa",
none: "Không",
all: "Tất cả",
filter: "Bộ lọc",
loading: "Đang tải...", loading: "Đang tải...",
confirm: "Bạn chắc chắn chứ?", confirm: "Bạn chắc chắn chứ?",
yes: "có", yes: "có",
+3
View File
@@ -4,6 +4,9 @@ export default {
failed: "失败", failed: "失败",
enable: "启用", enable: "启用",
disable: "禁用", disable: "禁用",
none: "无",
all: "全部",
filter: "过滤器",
loading: "加载中...", loading: "加载中...",
confirm: "是否确定?", confirm: "是否确定?",
yes: "确认", yes: "确认",
+3
View File
@@ -5,6 +5,9 @@ export default {
failed: "失敗", failed: "失敗",
enable: "啟用", enable: "啟用",
disable: "禁用", disable: "禁用",
none: "無",
all: "全部",
filter: "過濾器",
loading: "加載中...", loading: "加載中...",
confirm: "是否確定?", confirm: "是否確定?",
yes: "確認", yes: "確認",
-1
View File
@@ -78,7 +78,6 @@ const loadData = async () => {
const msg = await HttpUtils.get('api/users') const msg = await HttpUtils.get('api/users')
loading.value = false loading.value = false
if (msg.success) { if (msg.success) {
console.log(msg.obj)
msg.obj.forEach((u:any) => { msg.obj.forEach((u:any) => {
const lastLogin = u.lastLogin.split(" ") const lastLogin = u.lastLogin.split(" ")
const localLastLogin = lastLogin.length > 2 ? dateFormatted(Date.parse(lastLogin[0] + " " + lastLogin[1])) : "- -" const localLastLogin = lastLogin.length > 2 ? dateFormatted(Date.parse(lastLogin[0] + " " + lastLogin[1])) : "- -"