mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 13:38:43 +00:00
refactor(render): 解决国内可能存在的资源访问问题,新增大陆资源和海外资源可选项,允许用户根据服务器位置选择不同的资源策略,并且允许自定义资源镜像站
- Updated language attributes in HTML templates to dynamically set based on `t2i_font_source`. - Replaced hardcoded Google Fonts links with dynamic links using `t2i_google_fonts_mirror` and `t2i_gstatic_mirror`. - Adjusted font-family declarations to conditionally include 'Noto Sans SC' and 'Noto Sans TC' based on the `t2i_font_source`. - Ensured consistent formatting and style across various templates including image, quote, topic, and user title items. - Added missing newlines at the end of several files for consistency.
This commit is contained in:
@@ -215,6 +215,37 @@
|
||||
"step": 5000
|
||||
},
|
||||
"hint": "回退尝试通常针对复杂页面,建议设置更长的超时时间(如 100000ms+)。"
|
||||
},
|
||||
"t2i_font_source": {
|
||||
"type": "string",
|
||||
"description": "t2i 渲染环境切换",
|
||||
"options": ["Mainland", "Overseas"],
|
||||
"default": "Overseas",
|
||||
"hint": "切换环境会自动应用下方对应的镜像站地址、语言标识(zh-CN/zh-Hant)及字体优先级。"
|
||||
},
|
||||
"t2i_mainland_google_fonts": {
|
||||
"type": "string",
|
||||
"description": "[国内] Google Fonts 镜像",
|
||||
"default": "https://fonts.loli.net",
|
||||
"hint": "国内环境下推荐使用 loli.net 或其他可访问镜像。"
|
||||
},
|
||||
"t2i_mainland_gstatic": {
|
||||
"type": "string",
|
||||
"description": "[国内] Gstatic 镜像",
|
||||
"default": "https://gstatic.loli.net",
|
||||
"hint": "国内环境下推荐使用 loli.net 或其他可访问镜像。"
|
||||
},
|
||||
"t2i_overseas_google_fonts": {
|
||||
"type": "string",
|
||||
"description": "[国外] Google Fonts 官方",
|
||||
"default": "https://fonts.googleapis.com",
|
||||
"hint": "海外环境通常直接使用官方地址即可。"
|
||||
},
|
||||
"t2i_overseas_gstatic": {
|
||||
"type": "string",
|
||||
"description": "[国外] Gstatic 官方",
|
||||
"default": "https://fonts.gstatic.com",
|
||||
"hint": "海外环境通常直接使用官方地址即可。"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user