You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
namespace SiteServer.Utils
|
|
{
|
|
public static class CloudUtils
|
|
{
|
|
public static class Root
|
|
{
|
|
public const string Host = "https://sscms.com";
|
|
|
|
public static string IconUrl => $"{Host}/assets/images/favicon.png";
|
|
|
|
public static string DocsCliUrl => $"{Host}/docs/v6/cli/";
|
|
|
|
public static string GetDocsStlUrl(string tagName)
|
|
{
|
|
return $"{Host}/docs/v6/stl/{tagName}/";
|
|
}
|
|
|
|
public static string GetDocsStlUrl(string tagName, string fieldName, string attrTitle)
|
|
{
|
|
return $"{Host}/docs/v6/stl/{tagName}/#{fieldName.ToLower()}-{attrTitle.ToLower()}";
|
|
}
|
|
}
|
|
|
|
public static class Dl
|
|
{
|
|
private const string Host = "https://dl.sscms.com";
|
|
|
|
public static string GetTemplatesUrl(string fileName)
|
|
{
|
|
return $"{Host}/templates/{fileName}";
|
|
}
|
|
|
|
public static string GetPackagesUrl(string packageId, string version)
|
|
{
|
|
return $"{Host}/packages/{packageId}.{version}.nupkg";
|
|
}
|
|
}
|
|
}
|
|
}
|