mirror of
https://github.com/dnwSilver/tld.git
synced 2025-01-19 09:22:08 +00:00
✨ Add freeze tag for project.
This commit is contained in:
parent
1bc1af71c9
commit
8e518ee19e
@ -51,6 +51,11 @@ public class DependenciesContainer : ContainerBase
|
||||
title.StyleContext = new StyleContext(Palette.DisableColor);
|
||||
}
|
||||
|
||||
if (Project is not null && Project.Freeze)
|
||||
{
|
||||
title.StyleContext = new StyleContext(Palette.InfoColor);
|
||||
}
|
||||
|
||||
_dependencies.Add(title);
|
||||
}
|
||||
|
||||
@ -67,6 +72,11 @@ public class DependenciesContainer : ContainerBase
|
||||
stub.StyleContext = new StyleContext(Palette.DisableColor);
|
||||
}
|
||||
|
||||
if (Project is not null && Project.Freeze)
|
||||
{
|
||||
stub.StyleContext = new StyleContext(Palette.InfoColor);
|
||||
}
|
||||
|
||||
_dependencies.Add(stub);
|
||||
}
|
||||
|
||||
@ -83,6 +93,11 @@ public class DependenciesContainer : ContainerBase
|
||||
stub.StyleContext = new StyleContext(Palette.DisableColor);
|
||||
}
|
||||
|
||||
if (Project is not null && Project.Freeze)
|
||||
{
|
||||
stub.StyleContext = new StyleContext(Palette.InfoColor);
|
||||
}
|
||||
|
||||
_dependencies.Add(stub);
|
||||
}
|
||||
|
||||
@ -98,6 +113,11 @@ public class DependenciesContainer : ContainerBase
|
||||
version.StyleContext = new StyleContext(Palette.DisableColor);
|
||||
}
|
||||
|
||||
if (Project is not null && Project.Freeze)
|
||||
{
|
||||
version.StyleContext = new StyleContext(Palette.InfoColor);
|
||||
}
|
||||
|
||||
_dependencies.Add(version);
|
||||
}
|
||||
|
||||
|
@ -11,4 +11,6 @@ public record Project(int Id, string Name, IEnumerable<string> Tags, Hub Hub)
|
||||
public bool SeoDependent => Tags.Contains("seo");
|
||||
|
||||
public bool Legacy => Tags.Contains("legacy");
|
||||
|
||||
public bool Freeze => Tags.Contains("freeze");
|
||||
}
|
Loading…
Reference in New Issue
Block a user