Merge branch 'main' into dev

This commit is contained in:
linyuchen 2024-03-17 11:36:11 +08:00
commit 60e0c9e4ba

View File

@ -90,7 +90,7 @@ async function onSettingWindowCreated(view: Element) {
], 'ob11.messagePostFormat', config.ob11.messagePostFormat),
),
SettingItem(
'ffmpeg 路径, 发送语音、视频需要同时保证ffprobe和ffmpeg在一起', `<span id="config-ffmpeg-path-text">${!isEmpty(config.ffmpeg) ? config.ffmpeg : '未指定'}</span>`,
'ffmpeg 路径发送语音、视频需要同时保证ffprobe和ffmpeg在一起', `配置可参考 <a href="javascript:LiteLoader.api.openExternal(\'https://llonebot.github.io/zh-CN/guide/voice\');">官方文档</a> <span id="config-ffmpeg-path-text"> 路径:${!isEmpty(config.ffmpeg) ? config.ffmpeg : '未指定'}</span>`,
SettingButton('选择', 'config-ffmpeg-select'),
),
SettingItem(
@ -138,9 +138,14 @@ async function onSettingWindowCreated(view: Element) {
]),
SettingList([
SettingItem(
'GitHub和文档',
'GitHub 仓库',
`https://github.com/LLOneBot/LLOneBot`,
SettingButton('点个Star', 'open-github'),
SettingButton('点个星星', 'open-github'),
),
SettingItem(
'LLOneBot ',
`https://llonebot.github.io/`,
SettingButton('看看文档', 'open-docs'),
),
SettingItem(
'Telegram 群',
@ -166,6 +171,9 @@ async function onSettingWindowCreated(view: Element) {
doc.querySelector('#open-qq-group').addEventListener('click', () => {
window.LiteLoader.api.openExternal('https://qm.qq.com/q/bDnHRG38aI')
})
doc.querySelector('#open-docs').addEventListener('click', () => {
window.LiteLoader.api.openExternal('https://llonebot.github.io/')
})
// 生成反向地址列表
const buildHostListItem = (type: string, host: string, index: number, inputAttrs: any={}) => {
const dom = {