close #575
This commit is contained in:
1 parent
d61af94917
commit
0e3d32360a
6 files changed
+34
-4
No files matched your search
@@ -418,5 +418,21 @@ namespace HandyControlDemo.Service
|
||||
|
||||
return resultList;
|
||||
}
|
||||
|
||||
public string GetDemoUrl(DemoInfoModel demoInfo, DemoItemModel demoItem)
|
||||
{
|
||||
var key = demoInfo.Key switch
|
||||
{
|
||||
"Styles" => "native_controls",
|
||||
"Controls" => "extend_controls",
|
||||
"Tools" => "tools",
|
||||
_ => string.Empty
|
||||
};
|
||||
|
||||
var domainName = LangProvider.Culture == null || LangProvider.Culture.Name.ToLower() == "zh-cn"
|
||||
? "handyorg"
|
||||
: "ghost1372";
|
||||
return $"https://{domainName}.github.io/handycontrol/{key}/{demoItem.Name[0].ToString().ToLower()}{demoItem.Name.Substring(1)}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user