Files
clash-proxy/src-tauri/src/utils/tmpl.rs

61 lines
1005 B
Rust
Raw Normal View History

2023-12-21 16:49:21 +08:00
//! Some config file template
2022-02-18 23:57:13 +08:00
/// template for new a profile item
2024-05-04 14:24:11 +08:00
pub const ITEM_LOCAL: &str = "# Profile Template for Clash Verge
2022-03-05 19:04:20 +08:00
2024-05-04 14:24:11 +08:00
proxies: []
2022-03-05 19:04:20 +08:00
2024-05-04 14:24:11 +08:00
proxy-groups: []
2022-03-05 19:04:20 +08:00
2024-05-04 14:24:11 +08:00
rules: []
2022-03-05 19:04:20 +08:00
";
/// enhanced profile
2024-05-04 14:24:11 +08:00
pub const ITEM_MERGE: &str = "# Profile Enhancement Merge Template for Clash Verge
2022-03-05 19:04:20 +08:00
2024-06-30 07:52:30 +08:00
profile:
store-selected: true
";
pub const ITEM_MERGE_EMPTY: &str = "# Profile Enhancement Merge Template for Clash Verge
2022-03-05 19:04:20 +08:00
";
/// enhanced profile
2024-05-04 14:24:11 +08:00
pub const ITEM_SCRIPT: &str = "// Define main function (script entry)
2022-11-18 07:59:53 +08:00
function main(config, profileName) {
2024-05-04 14:24:11 +08:00
return config;
2022-03-05 19:04:20 +08:00
}
2022-02-18 23:57:13 +08:00
";
2024-06-30 00:22:05 +08:00
/// enhanced profile
pub const ITEM_RULES: &str = "# Profile Enhancement Rules Template for Clash Verge
prepend: []
append: []
delete: []
";
/// enhanced profile
pub const ITEM_PROXIES: &str = "# Profile Enhancement Proxies Template for Clash Verge
prepend: []
append: []
delete: []
";
/// enhanced profile
pub const ITEM_GROUPS: &str = "# Profile Enhancement Groups Template for Clash Verge
prepend: []
append: []
delete: []
";