mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 23:47:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -2,16 +2,19 @@ namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public static class StartPageExtensions
|
||||
{
|
||||
public static string ToRoute(this StartPage startPage) => startPage switch
|
||||
extension(StartPage startPage)
|
||||
{
|
||||
StartPage.HOME => string.Empty,
|
||||
StartPage.CHAT => Routes.CHAT,
|
||||
StartPage.ASSISTANTS => Routes.ASSISTANTS,
|
||||
StartPage.INFORMATION => Routes.ABOUT,
|
||||
StartPage.PLUGINS => Routes.PLUGINS,
|
||||
StartPage.SUPPORTERS => Routes.SUPPORTERS,
|
||||
StartPage.SETTINGS => Routes.SETTINGS,
|
||||
public string ToRoute() => startPage switch
|
||||
{
|
||||
StartPage.HOME => string.Empty,
|
||||
StartPage.CHAT => Routes.CHAT,
|
||||
StartPage.ASSISTANTS => Routes.ASSISTANTS,
|
||||
StartPage.INFORMATION => Routes.ABOUT,
|
||||
StartPage.PLUGINS => Routes.PLUGINS,
|
||||
StartPage.SUPPORTERS => Routes.SUPPORTERS,
|
||||
StartPage.SETTINGS => Routes.SETTINGS,
|
||||
|
||||
_ => string.Empty,
|
||||
};
|
||||
_ => string.Empty,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user