MCPcopy
hub / github.com/InkTimeRecord/TTime / textWriteShearPlate

Function textWriteShearPlate

src/renderer/src/utils/translate.ts:9–16  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

7 * 文字写入到剪贴板
8 */
9const textWriteShearPlate = (text): void => {
10 if (isNull(text)) {
11 ElMessageExtend.warning('复制的文本内容为空')
12 return
13 }
14 window.api.textWriteShearPlateEvent(text)
15 ElMessageExtend.success('复制成功')
16}
17
18/**
19 * 文字写入到剪贴板 - 驼峰格式

Callers 2

copyCamelCaseFunction · 0.85
copySnakeCaseFunction · 0.85

Calls 3

isNullFunction · 0.90
warningMethod · 0.80
successMethod · 0.80

Tested by

no test coverage detected