From fb1aa68c4aeb70f7aba0c7897e163f798510ee82 Mon Sep 17 00:00:00 2001 From: Kinplemelon Date: Thu, 23 Jan 2025 15:12:42 +0800 Subject: [PATCH 1/4] refactor(retainer): adapt `max_publish_rate` --- src/i18n/Extension.js | 8 ++++++++ src/types/extension.d.ts | 1 + src/views/Config/BasicConfig/Retainer.vue | 13 +++++++++++++ 3 files changed, 22 insertions(+) diff --git a/src/i18n/Extension.js b/src/i18n/Extension.js index 0774ca83e..44b372e58 100644 --- a/src/i18n/Extension.js +++ b/src/i18n/Extension.js @@ -51,6 +51,14 @@ export default { zh: '派发保留消息的最大速率', en: 'The maximum rate of delivering retained messages', }, + maxPublishRate: { + zh: '最大发布速率', + en: 'Max Publish Rate', + }, + maxPublishRateDesc: { + zh: '发布保留消息的最大速率。超过限制发布的消息会被投递,但不会存储为保留消息。', + en: 'The maximum rate of publishing retained messages. Messages that are published over the limit are delivered but not stored as retained.', + }, storageMethod: { zh: '存储方式', en: 'Storage Method', diff --git a/src/types/extension.d.ts b/src/types/extension.d.ts index 68ca42661..d9d590003 100644 --- a/src/types/extension.d.ts +++ b/src/types/extension.d.ts @@ -19,6 +19,7 @@ export interface Retainer { allow_never_expire: boolean msg_clear_interval: string delivery_rate: string + max_publish_rate: string backend: { type: string storage_type: string diff --git a/src/views/Config/BasicConfig/Retainer.vue b/src/views/Config/BasicConfig/Retainer.vue index b899447da..e02f746c7 100644 --- a/src/views/Config/BasicConfig/Retainer.vue +++ b/src/views/Config/BasicConfig/Retainer.vue @@ -139,6 +139,18 @@ /> + + + + + +