From d98875ebdc9b850ea406729c24d6cece3711051e Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 2 Mar 2024 01:04:42 +0000 Subject: [PATCH] refactor: remove unused ns imports --- OliverBooth/Controllers/Api/v1/BlogApiController.cs | 1 - OliverBooth/Controllers/Blog/RssController.cs | 1 - OliverBooth/Pages/Admin/BlogPosts.cshtml | 1 - OliverBooth/Pages/Admin/EditBlogPost.cshtml | 1 + OliverBooth/Pages/Admin/EditBlogPost.cshtml.cs | 1 - OliverBooth/Pages/Blog/Article.cshtml | 1 - OliverBooth/Pages/Blog/Article.cshtml.cs | 1 - OliverBooth/Pages/Blog/Index.cshtml.cs | 1 - OliverBooth/Pages/Blog/RawArticle.cshtml.cs | 1 - OliverBooth/Pages/Components/MarkdownEditor.razor | 4 ++-- OliverBooth/Pages/Shared/_AdminLayout.cshtml | 2 -- OliverBooth/Pages/Shared/_Layout.cshtml | 2 -- OliverBooth/Program.cs | 1 - 13 files changed, 3 insertions(+), 15 deletions(-) diff --git a/OliverBooth/Controllers/Api/v1/BlogApiController.cs b/OliverBooth/Controllers/Api/v1/BlogApiController.cs index 5e55a66..a6ccc67 100644 --- a/OliverBooth/Controllers/Api/v1/BlogApiController.cs +++ b/OliverBooth/Controllers/Api/v1/BlogApiController.cs @@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Mvc; using OliverBooth.Common.Data.Blog; using OliverBooth.Common.Data.Web.Users; using OliverBooth.Common.Services; -using OliverBooth.Services; namespace OliverBooth.Controllers.Api.v1; diff --git a/OliverBooth/Controllers/Blog/RssController.cs b/OliverBooth/Controllers/Blog/RssController.cs index 55d520c..04cd16d 100644 --- a/OliverBooth/Controllers/Blog/RssController.cs +++ b/OliverBooth/Controllers/Blog/RssController.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Mvc; using OliverBooth.Common.Data.Blog; using OliverBooth.Common.Services; using OliverBooth.Data.Blog.Rss; -using OliverBooth.Services; namespace OliverBooth.Controllers.Blog; diff --git a/OliverBooth/Pages/Admin/BlogPosts.cshtml b/OliverBooth/Pages/Admin/BlogPosts.cshtml index 0eeea07..f05082d 100644 --- a/OliverBooth/Pages/Admin/BlogPosts.cshtml +++ b/OliverBooth/Pages/Admin/BlogPosts.cshtml @@ -5,7 +5,6 @@ @using OliverBooth.Common.Data.Blog @using OliverBooth.Common.Data.Web.Users @using OliverBooth.Common.Services -@using OliverBooth.Services @model OliverBooth.Pages.Admin.BlogPosts @inject IBlogPostService BlogPostService @inject IUserService UserService diff --git a/OliverBooth/Pages/Admin/EditBlogPost.cshtml b/OliverBooth/Pages/Admin/EditBlogPost.cshtml index 66a858f..a8e7795 100644 --- a/OliverBooth/Pages/Admin/EditBlogPost.cshtml +++ b/OliverBooth/Pages/Admin/EditBlogPost.cshtml @@ -1,5 +1,6 @@ @page "/admin/blog-posts/edit/{id}" @using Markdig +@using Microsoft.AspNetCore.Mvc.TagHelpers @using OliverBooth.Common.Data.Blog @model OliverBooth.Pages.Admin.EditBlogPost @inject MarkdownPipeline MarkdownPipeline diff --git a/OliverBooth/Pages/Admin/EditBlogPost.cshtml.cs b/OliverBooth/Pages/Admin/EditBlogPost.cshtml.cs index 6906ba8..4b50c10 100644 --- a/OliverBooth/Pages/Admin/EditBlogPost.cshtml.cs +++ b/OliverBooth/Pages/Admin/EditBlogPost.cshtml.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using OliverBooth.Common.Data.Blog; using OliverBooth.Common.Data.Web.Users; using OliverBooth.Common.Services; -using OliverBooth.Services; namespace OliverBooth.Pages.Admin; diff --git a/OliverBooth/Pages/Blog/Article.cshtml b/OliverBooth/Pages/Blog/Article.cshtml index 6b46be8..6f95de2 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml +++ b/OliverBooth/Pages/Blog/Article.cshtml @@ -2,7 +2,6 @@ @using Humanizer @using OliverBooth.Common.Data.Blog @using OliverBooth.Common.Services -@using OliverBooth.Services @inject IBlogPostService BlogPostService @model Article diff --git a/OliverBooth/Pages/Blog/Article.cshtml.cs b/OliverBooth/Pages/Blog/Article.cshtml.cs index bdf873b..64d6cc8 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml.cs +++ b/OliverBooth/Pages/Blog/Article.cshtml.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Primitives; using OliverBooth.Common.Data.Blog; using OliverBooth.Common.Services; -using OliverBooth.Services; using BC = BCrypt.Net.BCrypt; namespace OliverBooth.Pages.Blog; diff --git a/OliverBooth/Pages/Blog/Index.cshtml.cs b/OliverBooth/Pages/Blog/Index.cshtml.cs index 3e93788..5fa0b34 100644 --- a/OliverBooth/Pages/Blog/Index.cshtml.cs +++ b/OliverBooth/Pages/Blog/Index.cshtml.cs @@ -2,7 +2,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using OliverBooth.Common.Data.Blog; using OliverBooth.Common.Services; -using OliverBooth.Services; namespace OliverBooth.Pages.Blog; diff --git a/OliverBooth/Pages/Blog/RawArticle.cshtml.cs b/OliverBooth/Pages/Blog/RawArticle.cshtml.cs index 4715971..73eb273 100644 --- a/OliverBooth/Pages/Blog/RawArticle.cshtml.cs +++ b/OliverBooth/Pages/Blog/RawArticle.cshtml.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using OliverBooth.Common.Data.Blog; using OliverBooth.Common.Services; -using OliverBooth.Services; namespace OliverBooth.Pages.Blog; diff --git a/OliverBooth/Pages/Components/MarkdownEditor.razor b/OliverBooth/Pages/Components/MarkdownEditor.razor index 59f7595..97b85bf 100644 --- a/OliverBooth/Pages/Components/MarkdownEditor.razor +++ b/OliverBooth/Pages/Components/MarkdownEditor.razor @@ -1,5 +1,5 @@ -@using OliverBooth.Services -@using OliverBooth.Data.Blog +@using OliverBooth.Common.Data.Blog +@using OliverBooth.Common.Services @implements IDisposable @inject IBlogPostService BlogPostService @inject IJSRuntime JsRuntime diff --git a/OliverBooth/Pages/Shared/_AdminLayout.cshtml b/OliverBooth/Pages/Shared/_AdminLayout.cshtml index 39e610b..4ec696b 100644 --- a/OliverBooth/Pages/Shared/_AdminLayout.cshtml +++ b/OliverBooth/Pages/Shared/_AdminLayout.cshtml @@ -1,5 +1,3 @@ -@using OliverBooth.Data.Blog -@using OliverBooth.Services @using OliverBooth.Common.Data.Web.Users @using OliverBooth.Common.Services @using OliverBooth.Common.Data.Blog diff --git a/OliverBooth/Pages/Shared/_Layout.cshtml b/OliverBooth/Pages/Shared/_Layout.cshtml index abc185c..16a6a2d 100644 --- a/OliverBooth/Pages/Shared/_Layout.cshtml +++ b/OliverBooth/Pages/Shared/_Layout.cshtml @@ -1,5 +1,3 @@ -@using OliverBooth.Data.Blog -@using OliverBooth.Services @using OliverBooth.Common.Data.Web.Users @using OliverBooth.Common.Services @using OliverBooth.Common.Data.Blog diff --git a/OliverBooth/Program.cs b/OliverBooth/Program.cs index 7050f46..7316a43 100644 --- a/OliverBooth/Program.cs +++ b/OliverBooth/Program.cs @@ -7,7 +7,6 @@ using Markdig; using OliverBooth.Common.Extensions; using OliverBooth.Common.Markdown.Template; using OliverBooth.Common.Services; -using OliverBooth.Data.Blog; using OliverBooth.Extensions; using OliverBooth.Markdown.Timestamp; using OliverBooth.Services;