feat: 新增多项功能并添加新工具
- 私人剪贴板新增限时直通URL生成功能 - doc_cloud_keeper新增标题复制按钮 - 新增贪蛇出动游戏工具 - 新增OSS中转直链工具 - 添加批量抽帧测试脚本
This commit is contained in:
@@ -733,6 +733,7 @@ const dck = (() => {
|
||||
${parentFolderName ? `<span class="dck-doc-parent-tag" title="直属父目录:${esc(parentFolderName)}">${esc(parentFolderName)}</span>` : ''}
|
||||
<button type="button" class="dck-preview-btn" data-doc-id="${r.id}" title="快速查看 ${esc(r.filename)}">👁</button>
|
||||
<button type="button" class="dck-version-count-tag" data-doc-id="${r.id}" title="查看 ${esc(r.filename)} 的历史版本">${versionCount}</button>
|
||||
<button type="button" class="dck-copy-title-btn" data-doc-id="${r.id}" title="复制标题">📋</button>
|
||||
</span>
|
||||
`
|
||||
tr.innerHTML = `
|
||||
@@ -797,6 +798,23 @@ const dck = (() => {
|
||||
await openPreview(doc)
|
||||
}
|
||||
})
|
||||
Array.from(tb.querySelectorAll('.dck-copy-title-btn')).forEach(btn => {
|
||||
btn.onclick = async e => {
|
||||
e.stopPropagation()
|
||||
const docId = Number(btn.dataset.docId || 0)
|
||||
if (!docId) return
|
||||
const doc = docs.find(item => Number(item.id) === docId)
|
||||
if (!doc) return
|
||||
try {
|
||||
await copyText(doc.filename || '')
|
||||
btn.textContent = '✅'
|
||||
setTimeout(() => { btn.textContent = '📋' }, 1200)
|
||||
} catch (err) {
|
||||
btn.textContent = '⚠️'
|
||||
setTimeout(() => { btn.textContent = '📋' }, 1200)
|
||||
}
|
||||
}
|
||||
})
|
||||
renderBanner()
|
||||
updateActionButtonsState()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user