From fac00be995654d4705552a97bb81752fff8e1efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 11 Aug 2024 22:10:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E7=A4=BE=E4=BA=A4?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/webui/ui/NapCat.ts | 15 +-------------- static/assets/renderer.js | 15 +-------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index 38beabdc..78ef21f7 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -174,17 +174,7 @@ async function onSettingWindowCreated(view: Element) { 'https://github.com/NapNeko/NapCatQQ', SettingButton('点个星星', 'open-github'), ), - SettingItem('NapCat 文档', '', SettingButton('看看文档', 'open-docs')), - SettingItem( - 'Telegram 群', - 'https://t.me/+nLZEnpne-pQ1OWFl', - SettingButton('进去逛逛', 'open-telegram'), - ), - SettingItem( - 'QQ 群', - '545402644', - SettingButton('我要进去', 'open-qq-group'), - ), + SettingItem('NapCat 文档', '', SettingButton('看看文档', 'open-docs')) ]), '', ].join(''), @@ -198,9 +188,6 @@ async function onSettingWindowCreated(view: Element) { doc.querySelector('#open-telegram')?.addEventListener('click', () => { window.open('https://t.me/+nLZEnpne-pQ1OWFl'); }); - doc.querySelector('#open-qq-group')?.addEventListener('click', () => { - window.open('https://qm.qq.com/q/bDnHRG38aI'); - }); doc.querySelector('#open-docs')?.addEventListener('click', () => { window.open('https://napneko.github.io/', '_blank'); }); diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 6ad4e27c..ed264804 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -305,17 +305,7 @@ async function onSettingWindowCreated(view) { "https://github.com/NapNeko/NapCatQQ", SettingButton("点个星星", "open-github") ), - SettingItem("NapCat 文档", "", SettingButton("看看文档", "open-docs")), - SettingItem( - "Telegram 群", - "https://t.me/+nLZEnpne-pQ1OWFl", - SettingButton("进去逛逛", "open-telegram") - ), - SettingItem( - "QQ 群", - "545402644", - SettingButton("我要进去", "open-qq-group") - ) + SettingItem("NapCat 文档", "", SettingButton("看看文档", "open-docs")) ]), "" ].join(""), @@ -327,9 +317,6 @@ async function onSettingWindowCreated(view) { doc.querySelector("#open-telegram")?.addEventListener("click", () => { window.open("https://t.me/+nLZEnpne-pQ1OWFl"); }); - doc.querySelector("#open-qq-group")?.addEventListener("click", () => { - window.open("https://qm.qq.com/q/bDnHRG38aI"); - }); doc.querySelector("#open-docs")?.addEventListener("click", () => { window.open("https://napneko.github.io/", "_blank"); });