refactor: renaming namespaces
This commit is contained in:
parent
7a42ce2f00
commit
d35410625a
191 changed files with 315 additions and 314 deletions
1
examples/.gitignore
vendored
Normal file
1
examples/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
artifacts/
|
|
@ -2,13 +2,13 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride;
|
||||
using Nitride.IO.Contents;
|
||||
using Nitride.IO.Directories;
|
||||
using Nitride.IO.Paths;
|
||||
using Nitride.Pipelines;
|
||||
using MfGames.Nitride;
|
||||
using MfGames.Nitride.IO.Contents;
|
||||
using MfGames.Nitride.IO.Directories;
|
||||
using MfGames.Nitride.IO.Paths;
|
||||
using MfGames.Nitride.Pipelines;
|
||||
|
||||
namespace CopyFiles;
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ using Autofac;
|
|||
|
||||
using MfGames.IO.Extensions;
|
||||
|
||||
using Nitride;
|
||||
using Nitride.IO;
|
||||
using MfGames.Nitride;
|
||||
using MfGames.Nitride.IO;
|
||||
|
||||
namespace CopyFiles;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using CliWrap;
|
|||
|
||||
using MfGames.IO.Extensions;
|
||||
|
||||
using Nitride.Tests;
|
||||
using MfGames.Nitride.Tests;
|
||||
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Calendar;
|
||||
namespace MfGames.Nitride.Calendar;
|
||||
|
||||
public class CreateCalendarValidator : AbstractValidator<CreateCalender>
|
||||
{
|
||||
|
|
|
@ -4,20 +4,20 @@ using System.Linq;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Ical.Net.CalendarComponents;
|
||||
using Ical.Net.DataTypes;
|
||||
using Ical.Net.Serialization;
|
||||
|
||||
using Nitride.Contents;
|
||||
using Nitride.Temporal;
|
||||
using MfGames.Nitride.Contents;
|
||||
using MfGames.Nitride.Temporal;
|
||||
|
||||
using NodaTime;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.Calendar;
|
||||
namespace MfGames.Nitride.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// Creates an iCalendar file from all the entities passed into the method
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Calendar;
|
||||
namespace MfGames.Nitride.Calendar;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component for identifying an entity that represents a calendar.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
<PackageReference Include="Ical.Net" Version="4.2.0" />
|
||||
<PackageReference Include="NodaTime" Version="3.1.0" />
|
||||
<PackageReference Include="Zio" Version="0.15.0" />
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using Autofac;
|
||||
|
||||
using Nitride.Temporal;
|
||||
using MfGames.Nitride.Temporal;
|
||||
|
||||
namespace Nitride.Calendar;
|
||||
namespace MfGames.Nitride.Calendar;
|
||||
|
||||
public static class NitrideCalendarBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Calendar;
|
||||
namespace MfGames.Nitride.Calendar;
|
||||
|
||||
public class NitrideCalendarModule : Module
|
||||
{
|
||||
|
|
|
@ -4,10 +4,10 @@ using System.Linq;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Contents;
|
||||
using Nitride.Feeds.Structure;
|
||||
using MfGames.Nitride.Contents;
|
||||
using MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
using NodaTime;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using Serilog;
|
|||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.Feeds;
|
||||
namespace MfGames.Nitride.Feeds;
|
||||
|
||||
/// <summary>
|
||||
/// Creates various feeds from the given input.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Feeds;
|
||||
namespace MfGames.Nitride.Feeds;
|
||||
|
||||
public class CreateAtomFeedValidator : AbstractValidator<CreateAtomFeed>
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Feeds;
|
||||
namespace MfGames.Nitride.Feeds;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component that indicates this entity has a feed associated with
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Feeds;
|
||||
namespace MfGames.Nitride.Feeds;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component that indicates this page is a feed.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
<PackageReference Include="NodaTime" Version="3.1.0" />
|
||||
<PackageReference Include="Zio" Version="0.15.0" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using Autofac;
|
||||
|
||||
using Nitride.Temporal;
|
||||
using MfGames.Nitride.Temporal;
|
||||
|
||||
namespace Nitride.Feeds;
|
||||
namespace MfGames.Nitride.Feeds;
|
||||
|
||||
public static class NitrideFeedsBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Feeds;
|
||||
namespace MfGames.Nitride.Feeds;
|
||||
|
||||
public class NitrideFeedsModule : Module
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Xml.Linq;
|
||||
|
||||
namespace Nitride.Feeds.Structure;
|
||||
namespace MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
/// <summary>
|
||||
/// The type-safe structure for an author element.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Nitride.Feeds.Structure;
|
||||
namespace MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
/// <summary>
|
||||
/// The type-safe structure for a entry's category element.
|
||||
|
|
|
@ -4,9 +4,9 @@ using System.Xml.Linq;
|
|||
|
||||
using NodaTime;
|
||||
|
||||
using static Nitride.Feeds.Structure.XmlConstants;
|
||||
using static MfGames.Nitride.Feeds.Structure.XmlConstants;
|
||||
|
||||
namespace Nitride.Feeds.Structure;
|
||||
namespace MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
/// <summary>
|
||||
/// The type-safe structure for an entry in the Atom feed.
|
||||
|
|
|
@ -3,9 +3,9 @@ using System.Xml.Linq;
|
|||
|
||||
using NodaTime;
|
||||
|
||||
using static Nitride.Feeds.Structure.XmlConstants;
|
||||
using static MfGames.Nitride.Feeds.Structure.XmlConstants;
|
||||
|
||||
namespace Nitride.Feeds.Structure;
|
||||
namespace MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
/// <summary>
|
||||
/// The type-safe structure of the top-level feed.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Xml.Linq;
|
||||
|
||||
namespace Nitride.Feeds.Structure;
|
||||
namespace MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
/// <summary>
|
||||
/// Helper methods for working with XML elements.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Xml.Linq;
|
||||
|
||||
namespace Nitride.Feeds.Structure;
|
||||
namespace MfGames.Nitride.Feeds.Structure;
|
||||
|
||||
/// <summary>
|
||||
/// Common constants used while generating feeds.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Gemtext;
|
||||
namespace MfGames.Nitride.Gemtext;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component for indicating that an entity is Gemtext, the format
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Gemtext;
|
||||
namespace MfGames.Nitride.Gemtext;
|
||||
|
||||
public static class NitrideGemtextBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Gemtext;
|
||||
namespace MfGames.Nitride.Gemtext;
|
||||
|
||||
public class NitrideGemtextModule : Module
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace Nitride.Generators;
|
||||
namespace MfGames.Nitride.Generators;
|
||||
|
||||
/// <summary>
|
||||
/// Various wrappers around the diagnostics to simplify generation.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Generators;
|
||||
namespace MfGames.Nitride.Generators;
|
||||
|
||||
/// <summary>
|
||||
/// All the error messages produced by the generators.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|||
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
|
||||
namespace Nitride.Generators;
|
||||
namespace MfGames.Nitride.Generators;
|
||||
|
||||
/// <summary>
|
||||
/// Internal class that consolidates all of the information needed to generate a
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis.CSharp;
|
|||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
|
||||
namespace Nitride.Generators;
|
||||
namespace MfGames.Nitride.Generators;
|
||||
|
||||
/// <summary>
|
||||
/// Implements a source generator that creates Set* methods for the various
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
|
||||
namespace Nitride.Generators;
|
||||
namespace MfGames.Nitride.Generators;
|
||||
|
||||
internal class WithPropertySyntaxReceiver : ISyntaxReceiver
|
||||
{
|
||||
|
|
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using HandlebarsDotNet;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that applies a common or shared template on the content of
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
public class ApplyStyleTemplateValidator : AbstractValidator<ApplyStyleTemplate>
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.IO;
|
|||
|
||||
using HandlebarsDotNet;
|
||||
|
||||
namespace Nitride.Handlebars.Configuration;
|
||||
namespace MfGames.Nitride.Handlebars.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Loads the templates from the given directory.
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
|
||||
using HandlebarsDotNet;
|
||||
|
||||
namespace Nitride.Handlebars.Configuration;
|
||||
namespace MfGames.Nitride.Handlebars.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using HandlebarsDotNet;
|
||||
|
||||
namespace Nitride.Handlebars.Configuration;
|
||||
namespace MfGames.Nitride.Handlebars.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Describes a block helper which can be registered.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using HandlebarsDotNet;
|
||||
|
||||
namespace Nitride.Handlebars.Configuration;
|
||||
namespace MfGames.Nitride.Handlebars.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Describes a dependency injected loader of templates or modules.
|
||||
|
|
|
@ -4,7 +4,7 @@ using HandlebarsDotNet;
|
|||
|
||||
using Open.Threading;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
/// <summary>
|
||||
/// Implements a cache for templates to prevent compiling the same template
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component that indicates that a given file with text component
|
||||
|
|
|
@ -4,9 +4,9 @@ using System.Linq;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that discovers which text files have a Handlebars template
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
public class IdentifyHandlebarsFromComponentValidator : AbstractValidator<IdentifyHandlebarsFromComponent>
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that discovers which text files have a Handlebars template
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Autofac" Version="6.4.0" />
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
<PackageReference Include="Handlebars.Net" Version="2.1.2" />
|
||||
<PackageReference Include="NodaTime.Testing" Version="3.1.0" />
|
||||
<PackageReference Include="Open.Threading" Version="2.2.0" />
|
||||
|
|
|
@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||
|
||||
using Autofac;
|
||||
|
||||
using Nitride.Handlebars.Configuration;
|
||||
using MfGames.Nitride.Handlebars.Configuration;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
public static class NitrideHandlebarsBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -4,9 +4,9 @@ using Autofac;
|
|||
|
||||
using HandlebarsDotNet;
|
||||
|
||||
using Nitride.Handlebars.Configuration;
|
||||
using MfGames.Nitride.Handlebars.Configuration;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
public class NitrideHandlebarsModule : Module
|
||||
{
|
||||
|
|
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using HandlebarsDotNet;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that uses the content to create a template that is then
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Handlebars;
|
||||
namespace MfGames.Nitride.Handlebars;
|
||||
|
||||
public class RenderContentTemplateValidator : AbstractValidator<RenderContentTemplate>
|
||||
{
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
namespace Nitride.Html;
|
||||
namespace MfGames.Nitride.Html;
|
||||
|
||||
/// <summary>
|
||||
/// Converts the text input that uses HTML entities and turns them into
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Html;
|
||||
namespace MfGames.Nitride.Html;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component that indicates that the entity is an HTML file.
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Html;
|
||||
namespace MfGames.Nitride.Html;
|
||||
|
||||
public static class NitrideHtmlBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Html;
|
||||
namespace MfGames.Nitride.Html;
|
||||
|
||||
public class NitrideHtmlModule : Module
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
using System.IO;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Contents;
|
||||
namespace MfGames.Nitride.IO.Contents;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a wrapper around a file entry to retrieve the binary data.
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Contents;
|
||||
namespace MfGames.Nitride.IO.Contents;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a wrapper around a file entry to retrieve text data.
|
||||
|
|
|
@ -7,13 +7,13 @@ using DotNet.Globbing;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Contents;
|
||||
namespace MfGames.Nitride.IO.Contents;
|
||||
|
||||
/// <summary>
|
||||
/// A module that reads files from the file system and wraps them in an
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Contents;
|
||||
namespace MfGames.Nitride.IO.Contents;
|
||||
|
||||
public class ReadFilesValidator : AbstractValidator<ReadFiles>
|
||||
{
|
||||
|
|
|
@ -6,15 +6,15 @@ using System.Text;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
using Serilog;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Contents;
|
||||
namespace MfGames.Nitride.IO.Contents;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that writes out entities to a file system.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Contents;
|
||||
namespace MfGames.Nitride.IO.Contents;
|
||||
|
||||
public class WriteFilesValidator : AbstractValidator<WriteFiles>
|
||||
{
|
||||
|
|
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Serilog;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Directories;
|
||||
namespace MfGames.Nitride.IO.Directories;
|
||||
|
||||
/// <summary>
|
||||
/// A Nitride operation that removes the contents of a directory but not
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Directories;
|
||||
namespace MfGames.Nitride.IO.Directories;
|
||||
|
||||
public class ClearDirectoryValidator : AbstractValidator<ClearDirectory>
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO;
|
||||
namespace MfGames.Nitride.IO;
|
||||
|
||||
public abstract class FileSystemOperationBase : IOperation
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.IO;
|
||||
namespace MfGames.Nitride.IO;
|
||||
|
||||
public enum IfFoundOutput
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<PackageReference Include="Autofac" Version="6.4.0" />
|
||||
<PackageReference Include="DotNet.Glob" Version="3.1.3" />
|
||||
<PackageReference Include="FluentValidation" Version="11.1.0" />
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
<PackageReference Include="MAB.DotIgnore" Version="3.0.2" />
|
||||
<PackageReference Include="Serilog" Version="2.11.0" />
|
||||
<PackageReference Include="Zio" Version="0.15.0" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.IO;
|
||||
namespace MfGames.Nitride.IO;
|
||||
|
||||
public static class NitrideIOBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using MAB.DotIgnore;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO;
|
||||
namespace MfGames.Nitride.IO;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for working with paths.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.IO;
|
||||
namespace MfGames.Nitride.IO;
|
||||
|
||||
public class NitrideIOModule : Module
|
||||
{
|
||||
|
|
|
@ -2,11 +2,11 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
[WithProperties]
|
||||
public partial class AddPathPrefix : OperationBase
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
public class AddPathPrefixValidator : AbstractValidator<AddPathPrefix>
|
||||
{
|
||||
|
|
|
@ -2,11 +2,11 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// Changes the extension of the paths given.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
public class ChangePathExtensionValidator : AbstractValidator<ChangePathExtension>
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// A wrapper around List<Entity> for handling direct children lists.
|
||||
|
|
|
@ -2,13 +2,13 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Entities;
|
||||
using MfGames.Nitride.Entities;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// Implements a scanner that gathers up all the direct child files
|
||||
|
|
|
@ -3,15 +3,15 @@ using System.Linq;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Entities;
|
||||
using MfGames.Nitride.Entities;
|
||||
|
||||
using Serilog;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
[WithProperties]
|
||||
public partial class LinkDirectChildren : CreateOrUpdateIndex
|
||||
|
|
|
@ -3,11 +3,11 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// Moves various files to indexes of a direction with the base filename.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
public class MoveToIndexPathValidator : AbstractValidator<MoveToIndexPath>
|
||||
{
|
||||
|
|
|
@ -2,11 +2,11 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that removes a path prefix from the input.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
public class RemovePathPrefixValidator : AbstractValidator<RemovePathPrefix>
|
||||
{
|
||||
|
|
|
@ -3,11 +3,11 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// A pipeline operation that replaces the UPath of the given entity
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
public class ReplacePathValidator : AbstractValidator<ReplacePath>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Zio;
|
||||
|
||||
namespace Nitride.IO.Paths;
|
||||
namespace MfGames.Nitride.IO.Paths;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for the UPath class.
|
||||
|
|
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Markdig;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
[WithProperties]
|
||||
public abstract partial class ConvertMarkdownToBase : IOperation
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
public class ConvertMarkdownToBaseValidator : AbstractValidator<ConvertMarkdownToBase>
|
||||
{
|
||||
|
|
|
@ -2,16 +2,16 @@ using System;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Markdig;
|
||||
|
||||
using MfGames.Markdown.Gemtext;
|
||||
|
||||
using Nitride.Contents;
|
||||
using Nitride.Gemtext;
|
||||
using MfGames.Nitride.Contents;
|
||||
using MfGames.Nitride.Gemtext;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
/// <summary>
|
||||
/// Converts the input Markdown files into Gemtext using Markdig and
|
||||
|
|
|
@ -2,14 +2,14 @@ using System;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Markdig;
|
||||
|
||||
using Nitride.Contents;
|
||||
using Nitride.Html;
|
||||
using MfGames.Nitride.Contents;
|
||||
using MfGames.Nitride.Html;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
/// <summary>
|
||||
/// Converts the input Markdown files into HTML using Markdig. This only
|
||||
|
|
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
|||
|
||||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Nitride.Contents;
|
||||
using MfGames.Nitride.Contents;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
/// <summary>
|
||||
/// An operation that identifies Markdown files by their common extensions
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
using FluentValidation;
|
||||
|
||||
using Gallium;
|
||||
using MfGames.Gallium;
|
||||
|
||||
using Zio;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
public class IdentifyMarkdownFromPath : IdentifyMarkdown
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using FluentValidation;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
public class IdentifyMarkdownValidator : AbstractValidator<IdentifyMarkdown>
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
/// <summary>
|
||||
/// A marker class that indicates that the file is a Markdown file.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Gallium" Version="1.4.0" />
|
||||
<PackageReference Include="MfGames.Gallium" Version="0.2.0" />
|
||||
<PackageReference Include="Markdig" Version="0.30.2" />
|
||||
<PackageReference Include="MfGames.Markdown.Gemtext" Version="1.2.1" />
|
||||
<PackageReference Include="Zio" Version="0.15.0" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
public static class NitrideMarkdownBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Markdown;
|
||||
namespace MfGames.Nitride.Markdown;
|
||||
|
||||
public class NitrideMarkdownModule : Module
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Slugs;
|
||||
namespace MfGames.Nitride.Slugs;
|
||||
|
||||
/// <summary>
|
||||
/// An interface that provides slugs for various paths.
|
||||
|
|
|
@ -2,7 +2,7 @@ using System;
|
|||
|
||||
using Autofac;
|
||||
|
||||
namespace Nitride.Slugs;
|
||||
namespace MfGames.Nitride.Slugs;
|
||||
|
||||
public static class NitrideSlugsBuilderExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Autofac;
|
||||
|
||||
namespace Nitride.Slugs;
|
||||
namespace MfGames.Nitride.Slugs;
|
||||
|
||||
public class NitrideSlugsModule : Module
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
|
||||
using Slugify;
|
||||
|
||||
namespace Nitride.Slugs;
|
||||
namespace MfGames.Nitride.Slugs;
|
||||
|
||||
/// <summary>
|
||||
/// A default implementation of ISlugProvider.
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Globalization;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Nitride.Slugs;
|
||||
namespace MfGames.Nitride.Slugs;
|
||||
|
||||
/// <summary>
|
||||
/// Extends the slug provider to strip out accented characters for
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Nitride.Temporal;
|
||||
namespace MfGames.Nitride.Temporal;
|
||||
|
||||
/// <summary>
|
||||
/// A marker component for identifying a post that can expire.
|
||||
|
|
|
@ -3,14 +3,14 @@ using System.CommandLine;
|
|||
using System.CommandLine.Invocation;
|
||||
using System.Globalization;
|
||||
|
||||
using Nitride.Commands;
|
||||
using MfGames.Nitride.Commands;
|
||||
|
||||
using NodaTime;
|
||||
using NodaTime.Testing;
|
||||
|
||||
using Serilog;
|
||||
|
||||
namespace Nitride.Temporal.Cli;
|
||||
namespace MfGames.Nitride.Temporal.Cli;
|
||||
|
||||
/// <summary>
|
||||
/// A factory to inject the "--date=XXXX-XX-XX" argument into the build
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.CommandLine;
|
|||
using System.CommandLine.Invocation;
|
||||
using System.Globalization;
|
||||
|
||||
using Nitride.Commands;
|
||||
using MfGames.Nitride.Commands;
|
||||
|
||||
using NodaTime;
|
||||
|
||||
|
@ -10,7 +10,7 @@ using Serilog;
|
|||
|
||||
using TimeSpanParserUtil;
|
||||
|
||||
namespace Nitride.Temporal.Cli;
|
||||
namespace MfGames.Nitride.Temporal.Cli;
|
||||
|
||||
/// <summary>
|
||||
/// A factory to inject the "--expires=XXXX" argument into the build
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue