diff --git a/web/assets/js/model/dbinbound.js b/web/assets/js/model/dbinbound.js index d7c0946b..befc618e 100644 --- a/web/assets/js/model/dbinbound.js +++ b/web/assets/js/model/dbinbound.js @@ -10,7 +10,8 @@ class DBInbound { this.remark = ""; this.enable = true; this.expiryTime = 0; - this.periodicTrafficReset = "never"; + this.trafficReset = "never"; + this.lastTrafficResetTime = 0; this.listen = ""; this.port = 0; diff --git a/web/html/form/inbound.html b/web/html/form/inbound.html index b173c980..9dd76dcf 100644 --- a/web/html/form/inbound.html +++ b/web/html/form/inbound.html @@ -54,7 +54,7 @@ - + {{ i18n "pages.inbounds.periodicTrafficReset.never" }} {{ i18n "pages.inbounds.periodicTrafficReset.daily" }} {{ i18n "pages.inbounds.periodicTrafficReset.weekly" }} diff --git a/web/html/inbounds.html b/web/html/inbounds.html index 25bfce29..d88e482b 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -648,7 +648,7 @@ {{ i18n "pages.inbounds.periodicTrafficResetTitle" }} - [[ i18n("pages.inbounds.periodicTrafficReset." + dbInbound.periodicTrafficReset) ]] + [[ i18n("pages.inbounds.periodicTrafficReset." + dbInbound.trafficReset) ]] @@ -1097,7 +1097,8 @@ remark: dbInbound.remark + " - Cloned", enable: dbInbound.enable, expiryTime: dbInbound.expiryTime, - periodicTrafficReset: dbInbound.periodicTrafficReset, + trafficReset: dbInbound.trafficReset, + lastTrafficResetTime: dbInbound.lastTrafficResetTime, listen: '', port: RandomUtil.randomInteger(10000, 60000), @@ -1142,7 +1143,8 @@ remark: dbInbound.remark, enable: dbInbound.enable, expiryTime: dbInbound.expiryTime, - periodicTrafficReset: dbInbound.periodicTrafficReset, + trafficReset: dbInbound.trafficReset, + lastTrafficResetTime: dbInbound.lastTrafficResetTime, listen: inbound.listen, port: inbound.port, @@ -1166,7 +1168,8 @@ remark: dbInbound.remark, enable: dbInbound.enable, expiryTime: dbInbound.expiryTime, - periodicTrafficReset: dbInbound.periodicTrafficReset, + trafficReset: dbInbound.trafficReset, + lastTrafficResetTime: dbInbound.lastTrafficResetTime, listen: inbound.listen, port: inbound.port, diff --git a/web/html/modals/inbound_info_modal.html b/web/html/modals/inbound_info_modal.html index d2a3a93f..bca2c195 100644 --- a/web/html/modals/inbound_info_modal.html +++ b/web/html/modals/inbound_info_modal.html @@ -237,10 +237,10 @@ - + {{ i18n "pages.inbounds.periodicTrafficResetTitle" }} - [[ i18n("pages.inbounds.periodicTrafficReset." + infoModal.clientSettings.periodicTrafficReset) ]] + [[ i18n("pages.inbounds.periodicTrafficReset." + infoModal.clientSettings.trafficReset) ]]