Skip to content

Commit

Permalink
perf: delete scenario page
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraZiling committed Jul 3, 2024
1 parent 56ef624 commit b6bf529
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 73 deletions.
10 changes: 0 additions & 10 deletions src/PipManager.Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using PipManager.Windows.ViewModels.Pages.Lab;
using PipManager.Windows.ViewModels.Pages.Library;
using PipManager.Windows.ViewModels.Pages.Overlay;
using PipManager.Windows.ViewModels.Pages.Scenario;
using PipManager.Windows.ViewModels.Pages.Search;
using PipManager.Windows.ViewModels.Pages.Tools;
using PipManager.Windows.ViewModels.Windows;
Expand All @@ -31,17 +30,11 @@
using PipManager.Windows.Views.Pages.Lab;
using PipManager.Windows.Views.Pages.Library;
using PipManager.Windows.Views.Pages.Overlay;
using PipManager.Windows.Views.Pages.Scenario;
using PipManager.Windows.Views.Pages.Search;
using PipManager.Windows.Views.Pages.Settings;
using PipManager.Windows.Views.Pages.Tools;
using PipManager.Windows.Views.Windows;
using Wpf.Ui;
using AboutViewModel = PipManager.Windows.ViewModels.Pages.About.AboutViewModel;
using ActionViewModel = PipManager.Windows.ViewModels.Pages.Action.ActionViewModel;
using LibraryViewModel = PipManager.Windows.ViewModels.Pages.Library.LibraryViewModel;
using SearchViewModel = PipManager.Windows.ViewModels.Pages.Search.SearchViewModel;
using SettingsViewModel = PipManager.Windows.ViewModels.Pages.Settings.SettingsViewModel;

namespace PipManager.Windows;

Expand Down Expand Up @@ -120,9 +113,6 @@ public partial class App

services.AddSingleton<LabPage>();
services.AddSingleton<LabViewModel>();

services.AddSingleton<ScenarioPage>();
services.AddSingleton<ScenarioViewModel>();

services.AddSingleton<EnvironmentPage>();
services.AddSingleton<EnvironmentViewModel>();
Expand Down
9 changes: 0 additions & 9 deletions src/PipManager.Windows/Languages/Lang.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/PipManager.Windows/Languages/Lang.resx
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,4 @@
<data name="Library_Data_RefreshTimeUsage" xml:space="preserve">
<value>{0}s used</value>
</data>
<data name="MainWindow_NavigationContent_Scenario" xml:space="preserve">
<value>Scenario</value>
</data>
</root>
3 changes: 0 additions & 3 deletions src/PipManager.Windows/Languages/Lang.zh-cn.resx
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,4 @@
<data name="Library_Data_RefreshTimeUsage" xml:space="preserve">
<value>用时 {0} 秒</value>
</data>
<data name="MainWindow_NavigationContent_Scenario" xml:space="preserve">
<value>场景推荐</value>
</data>
</root>

This file was deleted.

20 changes: 0 additions & 20 deletions src/PipManager.Windows/Views/Pages/Scenario/ScenarioPage.xaml

This file was deleted.

17 changes: 0 additions & 17 deletions src/PipManager.Windows/Views/Pages/Scenario/ScenarioPage.xaml.cs

This file was deleted.

5 changes: 0 additions & 5 deletions src/PipManager.Windows/Views/Windows/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
xmlns:mask="clr-namespace:PipManager.Windows.Controls.Mask"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:overlay="clr-namespace:PipManager.Windows.Views.Pages.Overlay"
xmlns:scenario="clr-namespace:PipManager.Windows.Views.Pages.Scenario"
xmlns:search="clr-namespace:PipManager.Windows.Views.Pages.Search"
xmlns:settings="clr-namespace:PipManager.Windows.Views.Pages.Settings"
xmlns:tools="clr-namespace:PipManager.Windows.Views.Pages.Tools"
Expand Down Expand Up @@ -70,10 +69,6 @@
Content="{I18N {x:Static lang:LangKeys.MainWindow_NavigationContent_Search}}"
Icon="{ui:SymbolIcon BoxSearch24}"
TargetPageType="{x:Type search:SearchPage}" />
<ui:NavigationViewItem
Content="{I18N {x:Static lang:LangKeys.MainWindow_NavigationContent_Scenario}}"
Icon="{ui:SymbolIcon Backpack24}"
TargetPageType="{x:Type scenario:ScenarioPage}" />
<ui:NavigationViewItem
Content="{I18N {x:Static lang:LangKeys.MainWindow_NavigationContent_Tools}}"
Icon="{ui:SymbolIcon Toolbox24}"
Expand Down

0 comments on commit b6bf529

Please sign in to comment.