diff --git a/web/assets/css/custom.css b/web/assets/css/custom.css index 9277a48d..076c4e6d 100644 --- a/web/assets/css/custom.css +++ b/web/assets/css/custom.css @@ -257,6 +257,7 @@ body { .ant-card-dark .ant-progress-text, .ant-card-dark .ant-modal-close, .ant-card-dark i, +.ant-card-dark .ant-pagination-item a, .ant-card-dark .ant-select-dropdown-menu-item, .ant-card-dark .ant-calendar-day-select, .ant-card-dark .ant-calendar-month-select, @@ -290,6 +291,7 @@ body { .ant-card-dark .ant-input-number, .ant-card-dark .ant-input-number-handler-wrap, .ant-card-dark .ant-calendar-input, +.ant-card-dark .ant-pagination-item, .ant-card-dark .ant-select-dropdown-menu-item-selected, .ant-card-dark .ant-select-selection, .ant-card-dark .ant-calendar-picker-clear { @@ -315,6 +317,7 @@ body { } .ant-card-dark .ant-modal-content, +.ant-card-dark .ant-select-dropdown, .ant-card-dark .ant-modal-body, .ant-card-dark .ant-modal-header { color: hsla(0,0%,100%,.65); @@ -447,4 +450,8 @@ body { .ant-dark .ant-popover-placement-top>.ant-popover-content>.ant-popover-arrow { border-color: transparent #2e3b52 #2e3b52 transparent; +} + +.ant-table-pagination.ant-pagination { + float: left; } \ No newline at end of file diff --git a/web/assets/js/model/models.js b/web/assets/js/model/models.js index 49102a48..c59f9060 100644 --- a/web/assets/js/model/models.js +++ b/web/assets/js/model/models.js @@ -172,6 +172,7 @@ class AllSetting { this.webKeyFile = ""; this.webBasePath = "/"; this.sessionMaxAge = ""; + this.pageSize = 0; this.expireDiff = ""; this.trafficDiff = ""; this.tgBotEnable = false; diff --git a/web/controller/setting.go b/web/controller/setting.go index 51d10d65..c03910e2 100644 --- a/web/controller/setting.go +++ b/web/controller/setting.go @@ -66,6 +66,7 @@ func (a *SettingController) getDefaultSettings(c *gin.Context) { "subCertFile": func() (interface{}, error) { return a.settingService.GetSubCertFile() }, "subEncrypt": func() (interface{}, error) { return a.settingService.GetSubEncrypt() }, "subShowInfo": func() (interface{}, error) { return a.settingService.GetSubShowInfo() }, + "pageSize": func() (interface{}, error) { return a.settingService.GetPageSize() }, } result := make(map[string]interface{}) diff --git a/web/entity/entity.go b/web/entity/entity.go index 8d192ecb..9bb6f17a 100644 --- a/web/entity/entity.go +++ b/web/entity/entity.go @@ -24,6 +24,7 @@ type AllSetting struct { WebKeyFile string `json:"webKeyFile" form:"webKeyFile"` WebBasePath string `json:"webBasePath" form:"webBasePath"` SessionMaxAge int `json:"sessionMaxAge" form:"sessionMaxAge"` + PageSize int `json:"pageSize" form:"pageSize"` ExpireDiff int `json:"expireDiff" form:"expireDiff"` TrafficDiff int `json:"trafficDiff" form:"trafficDiff"` TgBotEnable bool `json:"tgBotEnable" form:"tgBotEnable"` diff --git a/web/html/xui/component/setting.html b/web/html/xui/component/setting.html index 741c7d9f..5e371187 100644 --- a/web/html/xui/component/setting.html +++ b/web/html/xui/component/setting.html @@ -15,7 +15,7 @@