release: new group

This commit is contained in:
手瓜一十雪
2024-08-12 18:22:06 +08:00
parent ffb08bb876
commit 3dc487507a
2 changed files with 17 additions and 0 deletions

View File

@@ -176,6 +176,16 @@ async function onSettingWindowCreated(view: Element) {
),
SettingItem('NapCat 文档', '', SettingButton('看看文档', 'open-docs'))
]),
SettingItem(
'Telegram 群',
'https://t.me/+nLZEnpne-pQ1OWFl',
SettingButton('进去逛逛', 'open-telegram')
),
SettingItem(
'QQ 群',
'518662028',
SettingButton('我要进去', 'open-qq-group')
),
'</div>',
].join(''),
'text/html',
@@ -188,6 +198,12 @@ async function onSettingWindowCreated(view: Element) {
doc.querySelector('#open-docs')?.addEventListener('click', () => {
window.open('https://napneko.github.io/', '_blank');
});
doc.querySelector('#open-telegram')?.addEventListener('click', () => {
window.open('https://t.me/+nLZEnpne-pQ1OWFl', '_blank');
});
doc.querySelector('#open-qq-group')?.addEventListener('click', () => {
window.open('https://qm.qq.com/q/VfjAq5HIMS', '_blank');
});
// 生成反向地址列表
const buildHostListItem = (
type: string,