From ded3b50405fa33ec1ba72aa18b93c3babf64a287 Mon Sep 17 00:00:00 2001 From: oeyoews Date: Sun, 24 Mar 2024 09:38:16 +0800 Subject: [PATCH] feat: support copy to clipboard --- entrypoints/popup/Popup.vue | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/entrypoints/popup/Popup.vue b/entrypoints/popup/Popup.vue index 55bf5d0..db1d7ff 100644 --- a/entrypoints/popup/Popup.vue +++ b/entrypoints/popup/Popup.vue @@ -8,6 +8,8 @@ import json from '../../package.json' // @ts-ignore import MdiSparklesOutline from '~icons/mdi/sparkles-outline?width=16px&height=16px'; // @ts-ignore +import MdiContentCopy from '~icons/mdi/content-copy?width=16px&height=16px'; +// @ts-ignore import EosIconsAi from '~icons/eos-icons/ai?width=16px&height=16px'; // @ts-ignore import CharmGithub from '~icons/charm/github?width=16px&height=16px'; @@ -56,6 +58,14 @@ chrome.storage.local.get(['tags'], function (result) { } }); +function copyMd() { + navigator.clipboard.writeText(md.value) + ElMessage({ + message: '倍刢成功', + type: "success" + }) +} + function saveGROQAPIKEY() { if (!GROQ_APIKEY.value) { ElMessage({ @@ -236,6 +246,13 @@ watch(port, (newValue) => { + + + + + + + diff --git a/package.json b/package.json index dcd1776..eb6a985 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "usewiki2", "description": "manifest.json description", "private": true, - "version": "1.1.0", + "version": "1.1.1", "type": "module", "scripts": { "dev": "wxt",