feat: Web UI

update: 校验Rule-Provider是否有重名
modify: 修改meta默认模板
modify: 根据Clash筛选返回配置中的节点类型
This commit is contained in:
2023-09-16 21:46:59 +08:00
parent 918521682c
commit d38d5bcb70
6 changed files with 313 additions and 8 deletions

View File

@ -8,7 +8,7 @@ import (
)
// LoadTemplate 加载模板
// template 模板文件名
// templates 模板文件名
func LoadTemplate(template string) ([]byte, error) {
tPath := filepath.Join("templates", template)
if _, err := os.Stat(tPath); err == nil {