Skip to content

Commit

Permalink
Restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ParagRaut committed Nov 15, 2021
1 parent 7d810ca commit dc5736a
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/Client/Pages/GarfieldComicsViewer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
_isLoading = true;
_fileResult = await Http.GetStringAsync("Comics/garfield");
_imageList.Add(_fileResult);
_imageList?.Add(_fileResult);
_isLoading = false;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using HtmlAgilityPack;

namespace ComicsApp.Server.ComicsService.ComicSources.CalvinAndHobbes;
namespace ComicsApp.Server.ComicsService.CalvinAndHobbes;

public static class CalvinAndHobbesService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace ComicsApp.Server.ComicsService.ComicSources;
namespace ComicsApp.Server.ComicsService;

public enum ComicEnum
{
Garfield,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using HtmlAgilityPack;

namespace ComicsApp.Server.ComicsService.ComicSources.Dilbert;
namespace ComicsApp.Server.ComicsService.Dilbert;

public static class DilbertService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using HtmlAgilityPack;

namespace ComicsApp.Server.ComicsService.ComicSources.Garfield;
namespace ComicsApp.Server.ComicsService.Garfield;

public static class GarfieldService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// regenerated.
// </auto-generated>

namespace ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated;
namespace ComicsApp.Server.ComicsService.XKCD.Generated;

using Microsoft.Rest;
using Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// regenerated.
// </auto-generated>

namespace ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated.Models;
namespace ComicsApp.Server.ComicsService.XKCD.Generated.Models;

using Newtonsoft.Json;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// regenerated.
// </auto-generated>

namespace ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated;
namespace ComicsApp.Server.ComicsService.XKCD.Generated;

using Microsoft.Rest;
using Microsoft.Rest.Serialization;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// regenerated.
// </auto-generated>

namespace ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated;
namespace ComicsApp.Server.ComicsService.XKCD.Generated;

using Models;
using System.Threading;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ComicsApp.Server.ComicsService.ComicSources.XKCD
namespace ComicsApp.Server.ComicsService.XKCD
{
public interface IXKCDService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Diagnostics;
using ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated;
using ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated.Models;
using ComicsApp.Server.ComicsService.XKCD.Generated;
using ComicsApp.Server.ComicsService.XKCD.Generated.Models;

namespace ComicsApp.Server.ComicsService.ComicSources.XKCD;
namespace ComicsApp.Server.ComicsService.XKCD;

public class XKCDService : IXKCDService
{
Expand Down
10 changes: 5 additions & 5 deletions src/Server/Controllers/ComicsController.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using ComicsApp.Server.ComicsService.ComicSources;
using ComicsApp.Server.ComicsService.ComicSources.CalvinAndHobbes;
using ComicsApp.Server.ComicsService.ComicSources.Dilbert;
using ComicsApp.Server.ComicsService.ComicSources.Garfield;
using ComicsApp.Server.ComicsService.ComicSources.XKCD;
using ComicsApp.Server.ComicsService;
using ComicsApp.Server.ComicsService.CalvinAndHobbes;
using ComicsApp.Server.ComicsService.Dilbert;
using ComicsApp.Server.ComicsService.Garfield;
using ComicsApp.Server.ComicsService.XKCD;
using Microsoft.AspNetCore.Mvc;

namespace ComicsApp.Server.Controllers;
Expand Down
4 changes: 2 additions & 2 deletions src/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ComicsApp.Server.ComicsService.ComicSources.XKCD;
using ComicsApp.Server.ComicsService.ComicSources.XKCD.Generated;
using ComicsApp.Server.ComicsService.XKCD;
using ComicsApp.Server.ComicsService.XKCD.Generated;

var builder = WebApplication.CreateBuilder(args);

Expand Down

0 comments on commit dc5736a

Please sign in to comment.