Skip to content

Commit

Permalink
doc(streamAcl): IP address -> host + tip
Browse files Browse the repository at this point in the history
  • Loading branch information
0721Betty authored and Kinplemelon committed Dec 13, 2024
1 parent 54ae2c2 commit 2970ef4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/components/streaming/StreamingACLForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
</el-input>
</el-form-item>
<el-form-item prop="host" :label="tl('host')">
<template #label>
{{ tl('host') }}
<component v-if="tipComponent" :is="tipComponent" :content="tl('hostTip')" />
</template>
<el-input v-model="record.host" :disabled="matchAllHost">
<template #prepend>
<el-select class="prepend-select" v-model="record.host_type" @change="changeHostType">
Expand Down Expand Up @@ -103,6 +107,7 @@ interface StreamACL {
}
const props = defineProps<{
tipComponent?: Component
modelValue: StreamACL
isEdit: boolean
// TODO: try to optimize
Expand Down
4 changes: 3 additions & 1 deletion packages/i18n/lib/enStreaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const enStreaming = {
streamTypeTip:
'The default type Stream is associated with an MQTT topic filter, and MQTT messages matching the topic filter are saved to the Stream. The free type Stream is not associated with an MQTT topic filter.',
authType: 'Authentication Mechanism',
host: 'IP Address',
host: 'Host',
hostTip:
'Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.',
aclResourceType: 'Resource Type',
aclResourceName: 'Resource Selector',
aclOperation: 'Operation',
Expand Down
5 changes: 4 additions & 1 deletion packages/i18n/lib/jaStreaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export const jaStreaming = {
streamTypeTip:
'「Default」タイプのストリームは MQTT トピックフィルターと関連付けられており、そのフィルターに一致する MQTT メッセージがストリームに保存されます。Kafka クライアントからの「Free」タイプのストリームのは MQTT トピックフィルターと関連付けられていません。',
authType: '認証方式',
host: 'IP アドレス',
// TODO: ja
host: 'Host',
hostTip:
'Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.',
aclResourceType: 'リソースタイプ',
aclResourceName: 'リソース値',
aclOperation: '操作',
Expand Down
4 changes: 3 additions & 1 deletion packages/i18n/lib/zhStreaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const zhStreaming = {
streamTypeTip:
'Default 类型的 Stream 关联 MQTT 主题过滤器,且匹配主题过滤器的 MQTT 消息会被保存到 Stream 中。Free 类型的 Stream 不关联 MQTT 主题过滤器。',
authType: '认证方式',
host: 'IP 地址',
host: 'Host',
hostTip:
'填写 Host IP 地址或者使用 <code>*</code> 匹配所有 Host。<br/>如果您选择了 <code>精确匹配</code> 模式,则应提供一个 Host IP 地址。',
aclResourceType: '资源类型',
aclResourceName: '目标值',
aclOperation: '操作类型',
Expand Down

0 comments on commit 2970ef4

Please sign in to comment.