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"`
Down int64 `json:"down" form:"down"`
Up int64 `json:"up" form:"up"`
Desc string `json:"desc" from:"desc"`
}
type Stats struct {
+2
View File
@@ -30,5 +30,7 @@ const isMobile = computed( ():boolean =>{
.v-card-subtitle {
text-align: center;
border-bottom: 1px solid gray;
min-height: 20px;
margin-top: -20px;
}
</style>
+3
View File
@@ -26,6 +26,9 @@
<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-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-col cols="12" sm="6" md="4">
+1 -8
View File
@@ -125,11 +125,4 @@ export default {
},
components: { Listen, InTls, Hysteria2, Naive, Direct, Shadowsocks, Users, Hysteria, ShadowTls, TProxy, InMulitiplex, Tuic, Transport }
}
</script>
<style>
.v-card-subtitle {
text-align: center;
border-bottom: 1px solid gray;
}
</style>
</script>
+1
View File
@@ -111,6 +111,7 @@ export default {
},
client: {
name: "Name",
desc: "Description",
inboundTags: "Inbound Tags",
basics: "Basics",
config: "Config",
+1
View File
@@ -111,6 +111,7 @@ export default {
},
client: {
name: "نام",
desc: "شرح",
inboundTags: "برچسب‌های ورودی",
basics: "پایه",
config: "تنظیم",
+1
View File
@@ -111,6 +111,7 @@ export default {
},
client: {
name: "Tên",
desc: "Mô tả",
inboundTags: "Thẻ đầu vào",
basics: "Cơ bản",
config: "Cấu hình",
+1
View File
@@ -111,6 +111,7 @@ export default {
},
client: {
name: "名称",
desc: "描述",
inboundTags: "入站标签",
basics: "基础",
config: "配置",
+1
View File
@@ -111,6 +111,7 @@ export default {
},
client: {
name: "名稱",
desc: "描述",
inboundTags: "入站標簽",
basics: "基礎",
config: "配置",
+2
View File
@@ -11,6 +11,7 @@ export interface Client {
expiry: number
up: number
down: number
desc: string
}
const defaultClient: Client = {
@@ -23,6 +24,7 @@ const defaultClient: Client = {
expiry: 0,
up: 0,
down: 0,
desc: "",
}
type Config = {
+5 -1
View File
@@ -40,7 +40,11 @@
</v-col>
</v-row>
</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-row>
<v-col>{{ $t('pages.inbounds') }}</v-col>