add client description

This commit is contained in:
Alireza Ahmadi
2024-04-25 18:33:07 +02:00
parent fa922291ea
commit abb869c75b
11 changed files with 19 additions and 9 deletions
+1
View File
@@ -26,6 +26,7 @@ type Client struct {
Expiry int64 `json:"expiry" form:"expiry"` Expiry int64 `json:"expiry" form:"expiry"`
Down int64 `json:"down" form:"down"` Down int64 `json:"down" form:"down"`
Up int64 `json:"up" form:"up"` Up int64 `json:"up" form:"up"`
Desc string `json:"desc" from:"desc"`
} }
type Stats struct { type Stats struct {
+2
View File
@@ -30,5 +30,7 @@ const isMobile = computed( ():boolean =>{
.v-card-subtitle { .v-card-subtitle {
text-align: center; text-align: center;
border-bottom: 1px solid gray; border-bottom: 1px solid gray;
min-height: 20px;
margin-top: -20px;
} }
</style> </style>
+3
View File
@@ -26,6 +26,9 @@
<v-col cols="12" sm="6" md="4"> <v-col cols="12" sm="6" md="4">
<v-text-field v-model="client.name" :label="$t('client.name')" hide-details></v-text-field> <v-text-field v-model="client.name" :label="$t('client.name')" hide-details></v-text-field>
</v-col> </v-col>
<v-col cols="12" sm="6" md="4">
<v-text-field v-model="client.desc" :label="$t('client.desc')" hide-details></v-text-field>
</v-col>
</v-row> </v-row>
<v-row> <v-row>
<v-col cols="12" sm="6" md="4"> <v-col cols="12" sm="6" md="4">
-7
View File
@@ -126,10 +126,3 @@ export default {
components: { Listen, InTls, Hysteria2, Naive, Direct, Shadowsocks, Users, Hysteria, ShadowTls, TProxy, InMulitiplex, Tuic, Transport } components: { Listen, InTls, Hysteria2, Naive, Direct, Shadowsocks, Users, Hysteria, ShadowTls, TProxy, InMulitiplex, Tuic, Transport }
} }
</script> </script>
<style>
.v-card-subtitle {
text-align: center;
border-bottom: 1px solid gray;
}
</style>
+1
View File
@@ -111,6 +111,7 @@ export default {
}, },
client: { client: {
name: "Name", name: "Name",
desc: "Description",
inboundTags: "Inbound Tags", inboundTags: "Inbound Tags",
basics: "Basics", basics: "Basics",
config: "Config", config: "Config",
+1
View File
@@ -111,6 +111,7 @@ export default {
}, },
client: { client: {
name: "نام", name: "نام",
desc: "شرح",
inboundTags: "برچسب‌های ورودی", inboundTags: "برچسب‌های ورودی",
basics: "پایه", basics: "پایه",
config: "تنظیم", config: "تنظیم",
+1
View File
@@ -111,6 +111,7 @@ export default {
}, },
client: { client: {
name: "Tên", name: "Tên",
desc: "Mô tả",
inboundTags: "Thẻ đầu vào", inboundTags: "Thẻ đầu vào",
basics: "Cơ bản", basics: "Cơ bản",
config: "Cấu hình", config: "Cấu hình",
+1
View File
@@ -111,6 +111,7 @@ export default {
}, },
client: { client: {
name: "名称", name: "名称",
desc: "描述",
inboundTags: "入站标签", inboundTags: "入站标签",
basics: "基础", basics: "基础",
config: "配置", config: "配置",
+1
View File
@@ -111,6 +111,7 @@ export default {
}, },
client: { client: {
name: "名稱", name: "名稱",
desc: "描述",
inboundTags: "入站標簽", inboundTags: "入站標簽",
basics: "基礎", basics: "基礎",
config: "配置", config: "配置",
+2
View File
@@ -11,6 +11,7 @@ export interface Client {
expiry: number expiry: number
up: number up: number
down: number down: number
desc: string
} }
const defaultClient: Client = { const defaultClient: Client = {
@@ -23,6 +24,7 @@ const defaultClient: Client = {
expiry: 0, expiry: 0,
up: 0, up: 0,
down: 0, down: 0,
desc: "",
} }
type Config = { type Config = {
+5 -1
View File
@@ -40,7 +40,11 @@
</v-col> </v-col>
</v-row> </v-row>
</v-card-title> </v-card-title>
<v-divider></v-divider> <v-card-subtitle>
<v-row>
<v-col>{{ item.desc }}</v-col>
</v-row>
</v-card-subtitle>
<v-card-text> <v-card-text>
<v-row> <v-row>
<v-col>{{ $t('pages.inbounds') }}</v-col> <v-col>{{ $t('pages.inbounds') }}</v-col>