Skip to content

Commit

Permalink
minor: input粘贴禁止换行&&添加【执行历史】说明
Browse files Browse the repository at this point in the history
  • Loading branch information
ywywZhou committed Nov 8, 2023
1 parent d1dfd68 commit b29c54b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@
const clp = (e.originalEvent || e).clipboardData
if (clp === undefined || clp === null) {
text = window.clipboardData.getData('text') || ''
text = text.split('\n').join('')
if (text !== '') {
if (window.getSelection) {
const newNode = document.createElement('span')
Expand All @@ -495,6 +496,7 @@
}
} else {
text = clp.getData('text/plain') || ''
text = text.split('\n').join('')
text && document.execCommand('insertText', false, text)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@
</div>
<div
:class="['palette-item', 'entry-item', 'palette-with-menu']"
data-type="tasknode"
@mousedown="onNodeMouseDown('plugin', $event)">
data-type="tasknode">
<div class="node-type-icon common-icon-node-tasknode"></div>
</div>
<div
:class="['palette-item','entry-item', 'palette-with-menu']"
data-type="subflow"
@mousedown="onNodeMouseDown('subflow', $event)">
data-type="subflow">
<div class="node-type-icon common-icon-node-subflow"></div>
</div>
<div class="palette-item entry-item" data-config-name="" data-type="parallelgateway">
Expand Down
3 changes: 2 additions & 1 deletion frontend/desktop/src/config/i18n/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,8 @@ const cn = {
'节点输出型变量仅支持从节点"取消接收输出"来删除': '节点输出型变量仅支持从节点"取消接收输出"来删除',
'刷新': '刷新',
'exFailedText': '节点执行失败,请前往{0}查看错误原因',
'exFailedText_调用日志': '调用日志'
'exFailedText_调用日志': '调用日志',
'任务还未执行,暂无执行历史': '任务还未执行,暂无执行历史'
}

export default cn
3 changes: 2 additions & 1 deletion frontend/desktop/src/config/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,8 @@ const en = {
'节点输出型变量仅支持从节点"取消接收输出"来删除': 'Node output variables can only be deleted by the node "Cancel Receiving Output"',
'刷新': 'Refresh',
'exFailedText': 'Node execution failed. Please go to the {0} to check the error reason.',
'exFailedText_调用日志': 'call log'
'exFailedText_调用日志': 'call log',
'任务还未执行,暂无执行历史': 'Task not executed, no history available.'
}

export default en
2 changes: 1 addition & 1 deletion frontend/desktop/src/pages/task/ClockedList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
{{ $t('执行历史') }}
</router-link>
</template>
<span v-else class="empty-text">{{ $t('执行历史') }}</span>
<span v-else class="empty-text" v-bk-tooltips="$t('任务还未执行,暂无执行历史')">{{ $t('执行历史') }}</span>
</div>
</bk-table-column>
<bk-table-column type="setting">
Expand Down

0 comments on commit b29c54b

Please sign in to comment.