Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Nov 15, 2023
1 parent 25cdd88 commit 2dbc9fc
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/API/Controllers/LinkController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Elf.Api.Controllers;
public class LinkController(
ILinkVerifier linkVerifier,
IDistributedCache cache,
IFeatureManager featureManager,
IFeatureManager featureManager,
IMediator mediator) : ControllerBase
{
[HttpPost("create")]
Expand Down
4 changes: 2 additions & 2 deletions src/API/Features/CreateLinkCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace Elf.Api.Features;
public record CreateLinkCommand(LinkEditModel Payload) : IRequest;

public class CreateLinkCommandHandler(
ElfDbContext dbContext,
ITokenGenerator tokenGenerator,
ElfDbContext dbContext,
ITokenGenerator tokenGenerator,
ILogger<CreateLinkCommandHandler> logger) : IRequestHandler<CreateLinkCommand>
{
public async Task Handle(CreateLinkCommand request, CancellationToken ct)
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Components/Layout/MainLayout.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
namespace ElfAdmin.Components.Layout;

public partial class MainLayout : LayoutComponentBase
{
{
ElementReference container;
}
3 changes: 1 addition & 2 deletions src/Admin/Components/Pages/Links.razor.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

using System.Net.Http.Json;
using System.Text.Json;
using ElfAdmin.Models;
using Microsoft.AspNetCore.Components;
using Microsoft.FluentUI.AspNetCore.Components;
using Microsoft.JSInterop;
using System.Net.Http.Json;

namespace ElfAdmin.Components.Pages;

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Components/Pages/Report.razor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

using System.Net.Http.Json;
using ElfAdmin.Models;
using Microsoft.AspNetCore.Components;
using Microsoft.FluentUI.AspNetCore.Components;
using System.Net.Http.Json;

namespace ElfAdmin.Components.Pages;

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Components/Pages/Tags.razor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Net.Http.Json;
using ElfAdmin.Models;
using Microsoft.AspNetCore.Components;
using Microsoft.FluentUI.AspNetCore.Components;
using System.Net.Http.Json;

namespace ElfAdmin.Components.Pages;

Expand Down
4 changes: 1 addition & 3 deletions src/Admin/ElfAuthorizationMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Microsoft.AspNetCore.Components.Authorization;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using Microsoft.AspNetCore.Components.Authorization;

namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication;

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Models/LinkModels.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Elf.Shared;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Elf.Shared;

namespace ElfAdmin.Models;

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Models/ReportModels.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Elf.Shared;
using System.ComponentModel.DataAnnotations;

namespace ElfAdmin.Models;

Expand Down
4 changes: 2 additions & 2 deletions src/Admin/Program.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using ElfAdmin;
using ElfAdmin.Components;
using Microsoft.FluentUI.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using ElfAdmin;
using Microsoft.FluentUI.AspNetCore.Components;

var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
Expand Down

0 comments on commit 2dbc9fc

Please sign in to comment.