Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(streamAcl): IP address -> host + tip #80

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading