Skip to content

Commit 0af6092

Browse files
author
Anran Zhang
committed
使用 winui-kernel 重构部分代码
1 parent b0cbc78 commit 0af6092

File tree

575 files changed

+908
-4818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

575 files changed

+908
-4818
lines changed

Bili.Copilot.sln

-84
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Danmaku.Core", "src\Libs\Da
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connectors.WebDav", "src\Libs\Beta\Connectors.WebDav\Connectors.WebDav.csproj", "{8EE9B628-8DF6-4A3D-BEA4-555C0B5DD09D}"
2121
EndProject
22-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AI", "AI", "{5D8F912C-C45A-4E18-8477-24C5C55A0848}"
23-
EndProject
24-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BiliAgent.Models", "src\Libs\Beta\BiliAgent.Models\BiliAgent.Models.csproj", "{5D167F94-9802-49F8-9C23-2AC7F8723126}"
25-
EndProject
26-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BiliAgent.Interfaces", "src\Libs\Beta\BiliAgent.Interfaces\BiliAgent.Interfaces.csproj", "{CC540995-04F6-49AC-9B07-3EA8F6823593}"
27-
EndProject
28-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BiliAgent.Core", "src\Libs\Beta\BiliAgent.Core\BiliAgent.Core.csproj", "{A53A4E28-FB98-4B5A-9052-084157BC91C5}"
29-
EndProject
3022
Global
3123
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3224
Debug|Any CPU = Debug|Any CPU
@@ -199,78 +191,6 @@ Global
199191
{8EE9B628-8DF6-4A3D-BEA4-555C0B5DD09D}.Release|x64.Build.0 = Release|Any CPU
200192
{8EE9B628-8DF6-4A3D-BEA4-555C0B5DD09D}.Release|x86.ActiveCfg = Release|Any CPU
201193
{8EE9B628-8DF6-4A3D-BEA4-555C0B5DD09D}.Release|x86.Build.0 = Release|Any CPU
202-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
203-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|Any CPU.Build.0 = Debug|Any CPU
204-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|ARM64.ActiveCfg = Debug|Any CPU
205-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|ARM64.Build.0 = Debug|Any CPU
206-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|x64.ActiveCfg = Debug|Any CPU
207-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|x64.Build.0 = Debug|Any CPU
208-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|x86.ActiveCfg = Debug|Any CPU
209-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Debug|x86.Build.0 = Debug|Any CPU
210-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
211-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|Any CPU.Build.0 = Debug|Any CPU
212-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|ARM64.ActiveCfg = Release|Any CPU
213-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|ARM64.Build.0 = Release|Any CPU
214-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|x64.ActiveCfg = Release|Any CPU
215-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|x64.Build.0 = Release|Any CPU
216-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|x86.ActiveCfg = Debug|Any CPU
217-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Publish|x86.Build.0 = Debug|Any CPU
218-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|Any CPU.ActiveCfg = Release|Any CPU
219-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|Any CPU.Build.0 = Release|Any CPU
220-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|ARM64.ActiveCfg = Release|Any CPU
221-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|ARM64.Build.0 = Release|Any CPU
222-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|x64.ActiveCfg = Release|Any CPU
223-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|x64.Build.0 = Release|Any CPU
224-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|x86.ActiveCfg = Release|Any CPU
225-
{5D167F94-9802-49F8-9C23-2AC7F8723126}.Release|x86.Build.0 = Release|Any CPU
226-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
227-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|Any CPU.Build.0 = Debug|Any CPU
228-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|ARM64.ActiveCfg = Debug|Any CPU
229-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|ARM64.Build.0 = Debug|Any CPU
230-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|x64.ActiveCfg = Debug|Any CPU
231-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|x64.Build.0 = Debug|Any CPU
232-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|x86.ActiveCfg = Debug|Any CPU
233-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Debug|x86.Build.0 = Debug|Any CPU
234-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
235-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|Any CPU.Build.0 = Debug|Any CPU
236-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|ARM64.ActiveCfg = Release|Any CPU
237-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|ARM64.Build.0 = Release|Any CPU
238-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|x64.ActiveCfg = Release|Any CPU
239-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|x64.Build.0 = Release|Any CPU
240-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|x86.ActiveCfg = Debug|Any CPU
241-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Publish|x86.Build.0 = Debug|Any CPU
242-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|Any CPU.ActiveCfg = Release|Any CPU
243-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|Any CPU.Build.0 = Release|Any CPU
244-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|ARM64.ActiveCfg = Release|Any CPU
245-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|ARM64.Build.0 = Release|Any CPU
246-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|x64.ActiveCfg = Release|Any CPU
247-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|x64.Build.0 = Release|Any CPU
248-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|x86.ActiveCfg = Release|Any CPU
249-
{CC540995-04F6-49AC-9B07-3EA8F6823593}.Release|x86.Build.0 = Release|Any CPU
250-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
251-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
252-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|ARM64.ActiveCfg = Debug|Any CPU
253-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|ARM64.Build.0 = Debug|Any CPU
254-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|x64.ActiveCfg = Debug|Any CPU
255-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|x64.Build.0 = Debug|Any CPU
256-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|x86.ActiveCfg = Debug|Any CPU
257-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Debug|x86.Build.0 = Debug|Any CPU
258-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
259-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|Any CPU.Build.0 = Debug|Any CPU
260-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|ARM64.ActiveCfg = Release|Any CPU
261-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|ARM64.Build.0 = Release|Any CPU
262-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|x64.ActiveCfg = Release|Any CPU
263-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|x64.Build.0 = Release|Any CPU
264-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|x86.ActiveCfg = Debug|Any CPU
265-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Publish|x86.Build.0 = Debug|Any CPU
266-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
267-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|Any CPU.Build.0 = Release|Any CPU
268-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|ARM64.ActiveCfg = Release|Any CPU
269-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|ARM64.Build.0 = Release|Any CPU
270-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|x64.ActiveCfg = Release|Any CPU
271-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|x64.Build.0 = Release|Any CPU
272-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|x86.ActiveCfg = Release|Any CPU
273-
{A53A4E28-FB98-4B5A-9052-084157BC91C5}.Release|x86.Build.0 = Release|Any CPU
274194
EndGlobalSection
275195
GlobalSection(SolutionProperties) = preSolution
276196
HideSolutionNode = FALSE
@@ -282,10 +202,6 @@ Global
282202
{67663502-4741-4F7D-BDA2-9614B2D9D9B9} = {4AAF05CF-97F6-469D-BCB4-23802A4A0C6F}
283203
{015533ED-9DBC-4B08-9C71-7E766CE8C83A} = {4AAF05CF-97F6-469D-BCB4-23802A4A0C6F}
284204
{8EE9B628-8DF6-4A3D-BEA4-555C0B5DD09D} = {4AAF05CF-97F6-469D-BCB4-23802A4A0C6F}
285-
{5D8F912C-C45A-4E18-8477-24C5C55A0848} = {4AAF05CF-97F6-469D-BCB4-23802A4A0C6F}
286-
{5D167F94-9802-49F8-9C23-2AC7F8723126} = {5D8F912C-C45A-4E18-8477-24C5C55A0848}
287-
{CC540995-04F6-49AC-9B07-3EA8F6823593} = {5D8F912C-C45A-4E18-8477-24C5C55A0848}
288-
{A53A4E28-FB98-4B5A-9052-084157BC91C5} = {5D8F912C-C45A-4E18-8477-24C5C55A0848}
289205
EndGlobalSection
290206
GlobalSection(ExtensibilityGlobals) = postSolution
291207
SolutionGuid = {5A195D36-BD13-472D-B17E-5070E06D82C8}

src/Desktop/BiliCopilot.UI/App.xaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
x:Class="BiliCopilot.UI.App"
44
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
55
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6-
xmlns:converters="using:Richasy.WinUI.Share.Converters"
6+
xmlns:converters="using:Richasy.WinUIKernel.Share.Converters"
77
xmlns:local="using:BiliCopilot.UI"
88
xmlns:localConverters="using:BiliCopilot.UI.Converters">
99
<Application.Resources>
1010
<ResourceDictionary>
1111
<ResourceDictionary.MergedDictionaries>
1212
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
13-
<ResourceDictionary Source="ms-appx:///Richasy.WinUI.Share/Base/CustomNavigationViewResources.xaml" />
13+
<ResourceDictionary Source="ms-appx:///Richasy.WinUIKernel.Share/Base/CustomNavigationViewResources.xaml" />
1414
<ResourceDictionary Source="ms-appx:///Styles/Overrides.xaml" />
1515
<ResourceDictionary Source="ms-appx:///Styles/TrayResources.xaml" />
1616
<ResourceDictionary Source="ms-appx:///Controls/Components/VideoCardControl/VideoCardControl.xaml" />

src/Desktop/BiliCopilot.UI/App.xaml.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial class App : Application
2424
{
2525
private const string Id = "Richasy.BiliCopilot";
2626
private readonly DispatcherQueue _dispatcherQueue;
27-
private readonly AppNotificationManager _notificationManager;
27+
private AppNotificationManager _notificationManager;
2828

2929
/// <summary>
3030
/// Initializes the singleton application object. This is the first line of authored code
@@ -140,6 +140,7 @@ private void ExitApp()
140140
TrayIcon?.Dispose();
141141
TrayIcon = null;
142142
_notificationManager?.Unregister();
143+
_notificationManager = null;
143144
Exit();
144145
}
145146

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)