|
@@ -23,14 +23,6 @@
|
|
|
title="恢复"
|
|
title="恢复"
|
|
|
>⊡</button>
|
|
>⊡</button>
|
|
|
</template>
|
|
</template>
|
|
|
- <button
|
|
|
|
|
- @click="copyPostTreeJson"
|
|
|
|
|
- class="btn btn-ghost btn-xs opacity-60 hover:opacity-100"
|
|
|
|
|
- :title="copyPostTreeSuccess ? '已复制' : '复制JSON'"
|
|
|
|
|
- >
|
|
|
|
|
- <span v-if="copyPostTreeSuccess">✓</span>
|
|
|
|
|
- <span v-else>📋</span>
|
|
|
|
|
- </button>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -61,17 +53,7 @@
|
|
|
<div class="flex flex-col h-1/2 border-b border-base-300">
|
|
<div class="flex flex-col h-1/2 border-b border-base-300">
|
|
|
<div class="px-3 py-2 bg-base-300 text-base-content/60 flex items-center justify-between shrink-0">
|
|
<div class="px-3 py-2 bg-base-300 text-base-content/60 flex items-center justify-between shrink-0">
|
|
|
<span>匹配列表</span>
|
|
<span>匹配列表</span>
|
|
|
- <div class="flex items-center gap-2">
|
|
|
|
|
- <span class="text-base-content/40">{{ sortedMatchEdges.length }}</span>
|
|
|
|
|
- <button
|
|
|
|
|
- @click="copyMatchListJson"
|
|
|
|
|
- class="btn btn-ghost btn-xs opacity-60 hover:opacity-100"
|
|
|
|
|
- :title="copyMatchListSuccess ? '已复制' : '复制JSON'"
|
|
|
|
|
- >
|
|
|
|
|
- <span v-if="copyMatchListSuccess">✓</span>
|
|
|
|
|
- <span v-else>📋</span>
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <span class="text-base-content/40">{{ sortedMatchEdges.length }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex-1 overflow-y-auto">
|
|
<div class="flex-1 overflow-y-auto">
|
|
|
<div
|
|
<div
|
|
@@ -242,28 +224,6 @@ function copyJson() {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 复制帖子树JSON
|
|
|
|
|
-const copyPostTreeSuccess = ref(false)
|
|
|
|
|
-function copyPostTreeJson() {
|
|
|
|
|
- const data = store.currentPostGraph
|
|
|
|
|
- if (!data) return
|
|
|
|
|
- navigator.clipboard.writeText(JSON.stringify(data, null, 2)).then(() => {
|
|
|
|
|
- copyPostTreeSuccess.value = true
|
|
|
|
|
- setTimeout(() => { copyPostTreeSuccess.value = false }, 1500)
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 复制匹配列表JSON
|
|
|
|
|
-const copyMatchListSuccess = ref(false)
|
|
|
|
|
-function copyMatchListJson() {
|
|
|
|
|
- const data = sortedMatchEdges.value
|
|
|
|
|
- if (!data || data.length === 0) return
|
|
|
|
|
- navigator.clipboard.writeText(JSON.stringify(data, null, 2)).then(() => {
|
|
|
|
|
- copyMatchListSuccess.value = true
|
|
|
|
|
- setTimeout(() => { copyMatchListSuccess.value = false }, 1500)
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// 当前选中的帖子索引
|
|
// 当前选中的帖子索引
|
|
|
const selectedPostIdx = ref(store.selectedPostIndex)
|
|
const selectedPostIdx = ref(store.selectedPostIndex)
|
|
|
|
|
|