mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
feat: some link on setting ui
This commit is contained in:
parent
9427377f30
commit
063b2460f8
@ -136,9 +136,36 @@ async function onSettingWindowCreated(view: Element) {
|
||||
SettingButton('打开', 'config-open-log-path'),
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem(
|
||||
'GitHub',
|
||||
`https://github.com/LLOneBot/LLOneBot`,
|
||||
SettingButton('点个Star', 'open-github'),
|
||||
),
|
||||
SettingItem(
|
||||
'Telegram 群',
|
||||
`https://t.me/+nLZEnpne-pQ1OWFl`,
|
||||
SettingButton('进去逛逛', 'open-telegram'),
|
||||
),
|
||||
SettingItem(
|
||||
'QQ 群',
|
||||
`545402644`,
|
||||
SettingButton('我要进去', 'open-qq-group'),
|
||||
),
|
||||
]),
|
||||
'</div>',
|
||||
].join(''), "text/html");
|
||||
|
||||
// 外链按钮
|
||||
doc.querySelector('#open-github').addEventListener('click', () => {
|
||||
window.LiteLoader.api.openExternal('https://github.com/LLOneBot/LLOneBot')
|
||||
})
|
||||
doc.querySelector('#open-telegram').addEventListener('click', () => {
|
||||
window.LiteLoader.api.openExternal('https://t.me/+nLZEnpne-pQ1OWFl')
|
||||
})
|
||||
doc.querySelector('#open-qq-group').addEventListener('click', () => {
|
||||
window.LiteLoader.api.openExternal('https://qm.qq.com/q/bDnHRG38aI')
|
||||
})
|
||||
// 生成反向地址列表
|
||||
const buildHostListItem = (type: string, host: string, index: number) => {
|
||||
const dom = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user