mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
code style [skip ci]
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
namespace Snap.Hutao.Core.Annotation;
|
||||
// Copyright (c) DGP Studio. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
namespace Snap.Hutao.Core.Annotation;
|
||||
|
||||
/// <summary>
|
||||
/// 本地化键
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Enum)]
|
||||
internal class LocalizationKeyAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -146,6 +146,7 @@ internal class DailyNoteService : IDailyNoteService, IRecipient<UserRemovedMessa
|
||||
else
|
||||
{
|
||||
IInfoBarService infoBarService = scope.ServiceProvider.GetRequiredService<IInfoBarService>();
|
||||
|
||||
// special retcode handling for dailynote
|
||||
if (dailyNoteResponse.ReturnCode == (int)Web.Response.KnownReturnCode.CODE1034)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace Snap.Hutao.View.Dialog;
|
||||
public sealed partial class AdoptCalculatorDialog : ContentDialog
|
||||
{
|
||||
private readonly IServiceScope scope;
|
||||
[SuppressMessage("", "IDE0052")]
|
||||
private MiHoYoJSInterface? jsInterface;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -30,7 +30,6 @@ namespace Snap.Hutao.ViewModel.Achievement;
|
||||
/// 成就视图模型
|
||||
/// </summary>
|
||||
[Injection(InjectAs.Scoped)]
|
||||
[SuppressMessage("", "SA1124")]
|
||||
internal class AchievementViewModel : Abstraction.ViewModel, INavigationRecipient
|
||||
{
|
||||
private static readonly SortDescription IncompletedItemsFirstSortDescription = new(nameof(BindingAchievement.IsChecked), SortDirection.Ascending);
|
||||
|
||||
@@ -138,7 +138,6 @@ internal class WelcomeViewModel : ObservableObject
|
||||
/// </summary>
|
||||
/// <param name="serviceProvider">服务提供器</param>
|
||||
/// <param name="fileName">压缩文件名称</param>
|
||||
///
|
||||
public DownloadSummary(IServiceProvider serviceProvider, string fileName)
|
||||
{
|
||||
this.serviceProvider = serviceProvider;
|
||||
|
||||
@@ -353,6 +353,7 @@ public class MiHoYoJSInterface
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("", "CA2254")]
|
||||
private IJsResult? LogUnhandledMessage([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object?[] param)
|
||||
{
|
||||
logger.LogWarning(message, param);
|
||||
|
||||
@@ -46,7 +46,6 @@ internal class DynamicSecretCreationOptions
|
||||
public string DefaultBody
|
||||
{
|
||||
get => SaltType == SaltType.PROD ? "{}" : string.Empty;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user