From e19061d513b8c4fb2207b4a553a96ea086089612 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 4 May 2026 13:20:24 +0200 Subject: TLS: Remove ECH Force Query --- web/html/component/aClientTable.html | 87 ++++++++++++++++++++---------- web/html/component/aCustomStatistic.html | 18 ++++--- web/html/component/aPersianDatepicker.html | 5 +- web/html/component/aSettingListItem.html | 4 +- web/html/component/aSidebar.html | 7 ++- web/html/component/aTableSortable.html | 19 +++---- web/html/component/aThemeSwitch.html | 6 ++- 7 files changed, 92 insertions(+), 54 deletions(-) (limited to 'web/html/component') diff --git a/web/html/component/aClientTable.html b/web/html/component/aClientTable.html index 0e32d45c..6e525396 100644 --- a/web/html/component/aClientTable.html +++ b/web/html/component/aClientTable.html @@ -2,30 +2,39 @@ @@ -34,7 +43,7 @@ @@ -165,7 +184,8 @@ {{ i18n "delete"}} - + {{ i18n "enable"}} @@ -179,9 +199,11 @@ {{ i18n "pages.inbounds.traffic" }} - [[ SizeFormatter.sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] + [[ + SizeFormatter.sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] - + @@ -197,11 +219,14 @@ - + - + @@ -216,14 +241,16 @@ - [[ IntlUtil.formatRelativeTime(client.expiryTime) ]] + [[ + IntlUtil.formatRelativeTime(client.expiryTime) ]] - + - + @@ -248,7 +280,8 @@ - + @@ -271,4 +304,4 @@ - -{{end}} +{{end}} \ No newline at end of file diff --git a/web/html/component/aCustomStatistic.html b/web/html/component/aCustomStatistic.html index 0bff128d..e9bfe83b 100644 --- a/web/html/component/aCustomStatistic.html +++ b/web/html/component/aCustomStatistic.html @@ -1,13 +1,13 @@ {{define "component/customStatistic"}} {{end}} @@ -16,9 +16,11 @@ .dark .ant-statistic-content { color: var(--dark-color-text-primary) } + .dark .ant-statistic-title { color: rgba(255, 255, 255, 0.55) } + .ant-statistic-content { font-size: 16px; } diff --git a/web/html/component/aPersianDatepicker.html b/web/html/component/aPersianDatepicker.html index ebd85a08..e8b09b92 100644 --- a/web/html/component/aPersianDatepicker.html +++ b/web/html/component/aPersianDatepicker.html @@ -42,7 +42,7 @@ }; }, watch: { - value: function (date) { + value: function(date) { this.date = this.convertToJalalian(date) } }, @@ -52,7 +52,8 @@ }, methods: { convertToGregorian(date) { - return date ? moment(moment(date, 'jYYYY/jMM/jDD HH:mm:ss').format('YYYY-MM-DD HH:mm:ss')) : null + return date ? moment(moment(date, 'jYYYY/jMM/jDD HH:mm:ss').format('YYYY-MM-DD HH:mm:ss')) : + null }, convertToJalalian(date) { return date && moment.isMoment(date) ? date.format('jYYYY/jMM/jDD HH:mm:ss') : null diff --git a/web/html/component/aSettingListItem.html b/web/html/component/aSettingListItem.html index 27a7abac..7ad13456 100644 --- a/web/html/component/aSettingListItem.html +++ b/web/html/component/aSettingListItem.html @@ -26,7 +26,7 @@ type: String, required: false, defaultValue: "default", - validator: function (value) { + validator: function(value) { return ['small', 'default'].includes(value) } } @@ -46,4 +46,4 @@ } }) -{{end}} +{{end}} \ No newline at end of file diff --git a/web/html/component/aSidebar.html b/web/html/component/aSidebar.html index b69c8f3f..9c89a96d 100644 --- a/web/html/component/aSidebar.html +++ b/web/html/component/aSidebar.html @@ -43,8 +43,7 @@ Vue.component('a-sidebar', { data() { return { - tabs: [ - { + tabs: [{ key: '{{ .base_path }}panel/', icon: 'dashboard', title: '{{ i18n "menu.dashboard"}}' @@ -79,8 +78,8 @@ }, methods: { openLink(key) { - return key.startsWith('http') ? - window.open(key) : + return key.startsWith('http') ? + window.open(key) : location.href = key }, closeDrawer() { diff --git a/web/html/component/aTableSortable.html b/web/html/component/aTableSortable.html index 4abad8ef..b3606527 100644 --- a/web/html/component/aTableSortable.html +++ b/web/html/component/aTableSortable.html @@ -1,6 +1,6 @@ {{define "component/sortableTableTrigger"}} - + {{end}} {{define "component/aTableSortable"}} @@ -49,7 +49,7 @@ sortable, } }, - render: function (createElement) { + render: function(createElement) { return createElement('a-table', { class: { 'ant-table-is-sorting': this.isDragging(), @@ -64,12 +64,12 @@ drop: (e) => this.dropHandler(e), }, scopedSlots: this.$scopedSlots, - locale: { - filterConfirm: `{{ i18n "confirm" }}`, - filterReset: `{{ i18n "reset" }}`, - emptyText: `{{ i18n "noData" }}` + locale: { + filterConfirm: `{{ i18n "confirm" }}`, + filterReset: `{{ i18n "reset" }}`, + emptyText: `{{ i18n "noData" }}` } - }, this.$slots.default,) + }, this.$slots.default, ) }, created() { this.$memoSort = {}; @@ -148,7 +148,8 @@ class: { ...(parentMethodResult?.class || {}), [DRAGGABLE_ROW_CLASS]: true, - ['dragging']: this.isDragging() ? (newIndex === null ? index === currentIndex : index === newIndex) : false, + ['dragging']: this.isDragging() ? (newIndex === null ? index === currentIndex : index === newIndex) : + false, }, }; } diff --git a/web/html/component/aThemeSwitch.html b/web/html/component/aThemeSwitch.html index ca340da3..2107e5a8 100644 --- a/web/html/component/aThemeSwitch.html +++ b/web/html/component/aThemeSwitch.html @@ -24,9 +24,11 @@ {{define "component/themeSwitchTemplateLogin"}}