style: remove BOM

This commit is contained in:
Oliver Booth 2023-08-11 15:51:20 +01:00
parent 1a726b4962
commit 143131b413
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
61 changed files with 61 additions and 61 deletions

View File

@ -1,4 +1,4 @@
**/.dockerignore **/.dockerignore
**/.env **/.env
**/.git **/.git
**/.gitignore **/.gitignore

View File

@ -1,4 +1,4 @@
using Humanizer; using Humanizer;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using OliverBooth.Data.Blog; using OliverBooth.Data.Blog;
using OliverBooth.Services; using OliverBooth.Services;

View File

@ -1,4 +1,4 @@
@page "/blog/{year:int}/{month:int}/{day:int}/{slug}" @page "/blog/{year:int}/{month:int}/{day:int}/{slug}"
@using Humanizer @using Humanizer
@using OliverBooth.Data.Blog @using OliverBooth.Data.Blog
@using OliverBooth.Services @using OliverBooth.Services

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
using OliverBooth.Data.Blog; using OliverBooth.Data.Blog;
using OliverBooth.Services; using OliverBooth.Services;

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
using OliverBooth.Data.Blog; using OliverBooth.Data.Blog;
using OliverBooth.Services; using OliverBooth.Services;

View File

@ -1,2 +1,2 @@
@page "/blog/{year:int}/{month:int}/{day:int}/{slug}/raw" @page "/blog/{year:int}/{month:int}/{day:int}/{slug}/raw"
@model OliverBooth.Areas.Blog.Pages.RawArticle @model OliverBooth.Areas.Blog.Pages.RawArticle

View File

@ -1,4 +1,4 @@
using Cysharp.Text; using Cysharp.Text;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
using OliverBooth.Data.Blog; using OliverBooth.Data.Blog;

View File

@ -1,3 +1,3 @@
@{ @{
Layout = "_Layout"; Layout = "_Layout";
} }

View File

@ -1,4 +1,4 @@
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;

View File

@ -1,4 +1,4 @@
using SmartFormat; using SmartFormat;
namespace OliverBooth.Data.Blog; namespace OliverBooth.Data.Blog;

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace OliverBooth.Data.Blog.Configuration; namespace OliverBooth.Data.Blog.Configuration;

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace OliverBooth.Data.Blog.Configuration; namespace OliverBooth.Data.Blog.Configuration;

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using OliverBooth.Data.Blog; using OliverBooth.Data.Blog;
using OliverBooth.Data.Blog.Configuration; using OliverBooth.Data.Blog.Configuration;

View File

@ -1,4 +1,4 @@
using System.Xml.Serialization; using System.Xml.Serialization;
namespace OliverBooth.Data.Rss; namespace OliverBooth.Data.Rss;

View File

@ -1,4 +1,4 @@
using System.Xml.Serialization; using System.Xml.Serialization;
namespace OliverBooth.Data.Rss; namespace OliverBooth.Data.Rss;

View File

@ -1,4 +1,4 @@
using System.Xml.Serialization; using System.Xml.Serialization;
namespace OliverBooth.Data.Rss; namespace OliverBooth.Data.Rss;

View File

@ -1,4 +1,4 @@
using System.Xml.Serialization; using System.Xml.Serialization;
namespace OliverBooth.Data.Rss; namespace OliverBooth.Data.Rss;

View File

@ -1,4 +1,4 @@
namespace OliverBooth.Data.Web; namespace OliverBooth.Data.Web;
/// <summary> /// <summary>
/// Represents a MediaWiki-style template. /// Represents a MediaWiki-style template.

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace OliverBooth.Data.Web.Configuration; namespace OliverBooth.Data.Web.Configuration;

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace OliverBooth.Data.Web.Configuration; namespace OliverBooth.Data.Web.Configuration;

View File

@ -1,4 +1,4 @@
namespace OliverBooth.Data.Web; namespace OliverBooth.Data.Web;
/// <summary> /// <summary>
/// Represents a site configuration item. /// Represents a site configuration item.

View File

@ -1,4 +1,4 @@
using System.Globalization; using System.Globalization;
using SmartFormat.Core.Extensions; using SmartFormat.Core.Extensions;
namespace OliverBooth; namespace OliverBooth;

View File

@ -1,4 +1,4 @@
using System.Text; using System.Text;
using NLog; using NLog;
using NLog.Targets; using NLog.Targets;
using LogLevel = NLog.LogLevel; using LogLevel = NLog.LogLevel;

View File

@ -1,4 +1,4 @@
using System.Text; using System.Text;
using NLog; using NLog;
using NLog.Targets; using NLog.Targets;
using OliverBooth.Services; using OliverBooth.Services;

View File

@ -1,4 +1,4 @@
using Markdig; using Markdig;
using Markdig.Renderers; using Markdig.Renderers;
using OliverBooth.Services; using OliverBooth.Services;

View File

@ -1,4 +1,4 @@
using Markdig.Syntax.Inlines; using Markdig.Syntax.Inlines;
namespace OliverBooth.Markdown; namespace OliverBooth.Markdown;

View File

@ -1,4 +1,4 @@
using Cysharp.Text; using Cysharp.Text;
using Markdig.Helpers; using Markdig.Helpers;
using Markdig.Parsers; using Markdig.Parsers;

View File

@ -1,4 +1,4 @@
using Markdig.Renderers; using Markdig.Renderers;
using Markdig.Renderers.Html; using Markdig.Renderers.Html;
using OliverBooth.Services; using OliverBooth.Services;

View File

@ -1,4 +1,4 @@
using Markdig; using Markdig;
using Markdig.Renderers; using Markdig.Renderers;
namespace OliverBooth.Markdown.Timestamp; namespace OliverBooth.Markdown.Timestamp;

View File

@ -1,4 +1,4 @@
namespace OliverBooth.Markdown.Timestamp; namespace OliverBooth.Markdown.Timestamp;
/// <summary> /// <summary>
/// An enumeration of timestamp formats. /// An enumeration of timestamp formats.

View File

@ -1,4 +1,4 @@
using Markdig.Syntax.Inlines; using Markdig.Syntax.Inlines;
namespace OliverBooth.Markdown.Timestamp; namespace OliverBooth.Markdown.Timestamp;

View File

@ -1,4 +1,4 @@
using Markdig.Helpers; using Markdig.Helpers;
using Markdig.Parsers; using Markdig.Parsers;
namespace OliverBooth.Markdown.Timestamp; namespace OliverBooth.Markdown.Timestamp;

View File

@ -1,4 +1,4 @@
using System.ComponentModel; using System.ComponentModel;
using Humanizer; using Humanizer;
using Markdig.Renderers; using Markdig.Renderers;
using Markdig.Renderers.Html; using Markdig.Renderers.Html;

View File

@ -1,4 +1,4 @@
namespace OliverBooth.Middleware; namespace OliverBooth.Middleware;
internal static class RssEndpointExtensions internal static class RssEndpointExtensions
{ {

View File

@ -1,4 +1,4 @@
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Xml.Serialization; using System.Xml.Serialization;
using OliverBooth.Data.Blog; using OliverBooth.Data.Blog;
using OliverBooth.Data.Rss; using OliverBooth.Data.Rss;

View File

@ -1,4 +1,4 @@
@page "/contact/open-source" @page "/contact/open-source"
@{ @{
ViewData["Title"] = "Contact"; ViewData["Title"] = "Contact";
} }

View File

@ -1,4 +1,4 @@
@page @page
@{ @{
ViewData["Title"] = "Contact"; ViewData["Title"] = "Contact";
} }

View File

@ -1,4 +1,4 @@
@page "/contact/privacy/{which?}" @page "/contact/privacy/{which?}"
@model OliverBooth.Pages.Contact.Privacy @model OliverBooth.Pages.Contact.Privacy
@{ @{
ViewData["Title"] = "Contact"; ViewData["Title"] = "Contact";

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OliverBooth.Pages.Contact; namespace OliverBooth.Pages.Contact;

View File

@ -1,4 +1,4 @@
@page "/contact/technical-help" @page "/contact/technical-help"
@{ @{
ViewData["Title"] = "Contact"; ViewData["Title"] = "Contact";
} }

View File

@ -1,4 +1,4 @@
@page @page
@{ @{
ViewData["Title"] = "Donate"; ViewData["Title"] = "Donate";
} }

View File

@ -1,4 +1,4 @@
@page "/error/{code:int?}" @page "/error/{code:int?}"
@model OliverBooth.Pages.ErrorModel @model OliverBooth.Pages.ErrorModel
@{ @{
ViewData["Title"] = "Error"; ViewData["Title"] = "Error";

View File

@ -1,4 +1,4 @@
@page "/privacy/google-play" @page "/privacy/google-play"
@model OliverBooth.Pages.Privacy.GooglePlay @model OliverBooth.Pages.Privacy.GooglePlay
@{ @{
ViewData["Title"] = "Google Play Privacy Policy"; ViewData["Title"] = "Google Play Privacy Policy";

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OliverBooth.Pages.Privacy; namespace OliverBooth.Pages.Privacy;

View File

@ -1,4 +1,4 @@
@page @page
@model OliverBooth.Pages.Privacy.Index @model OliverBooth.Pages.Privacy.Index
@{ @{
ViewData["Title"] = "Privacy Policy"; ViewData["Title"] = "Privacy Policy";

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OliverBooth.Pages.Privacy; namespace OliverBooth.Pages.Privacy;

View File

@ -1,4 +1,4 @@
<div id="blog-loading-spinner" class="d-flex justify-content-center"> <div id="blog-loading-spinner" class="d-flex justify-content-center">
<div class="spinner-border text-light" role="status"> <div class="spinner-border text-light" role="status">
<p class="text-center sr-only">Loading...</p> <p class="text-center sr-only">Loading...</p>
</div> </div>

View File

@ -1,2 +1,2 @@
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script> <script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script> <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>

View File

@ -1,2 +1,2 @@
@namespace OliverBooth.Pages @namespace OliverBooth.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -1,3 +1,3 @@
@{ @{
Layout = "_Layout"; Layout = "_Layout";
} }

View File

@ -1,4 +1,4 @@
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using Humanizer; using Humanizer;
using Markdig; using Markdig;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using OliverBooth.Data; using OliverBooth.Data;
namespace OliverBooth.Services; namespace OliverBooth.Services;

View File

@ -1,4 +1,4 @@
using System.IO.Compression; using System.IO.Compression;
using NLog; using NLog;
using NLog.Config; using NLog.Config;
using NLog.Layouts; using NLog.Layouts;

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using OliverBooth.Data; using OliverBooth.Data;
using OliverBooth.Data.Web; using OliverBooth.Data.Web;
using OliverBooth.Markdown; using OliverBooth.Markdown;

View File

@ -1,4 +1,4 @@
$background: #1E1E1E; $background: #1E1E1E;
$foreground: #DCDCDA; $foreground: #DCDCDA;
// C# // C#

View File

@ -1,4 +1,4 @@
import BlogPost from "./BlogPost"; import BlogPost from "./BlogPost";
import Author from "./Author"; import Author from "./Author";
class API { class API {

View File

@ -1,4 +1,4 @@
class Author { class Author {
private readonly _name: string; private readonly _name: string;
private readonly _avatarHash: string; private readonly _avatarHash: string;

View File

@ -1,4 +1,4 @@
class BlogPost { class BlogPost {
private readonly _id: number; private readonly _id: number;
private readonly _commentsEnabled: boolean; private readonly _commentsEnabled: boolean;
private readonly _title: string; private readonly _title: string;

View File

@ -1,4 +1,4 @@
class Input { class Input {
public static readonly KONAMI_CODE = [ public static readonly KONAMI_CODE = [
"ArrowUp", "ArrowUp",
"ArrowUp", "ArrowUp",

View File

@ -1,4 +1,4 @@
class TimeUtility { class TimeUtility {
public static formatRelativeTimestamp(timestamp: Date) { public static formatRelativeTimestamp(timestamp: Date) {
const now = new Date(); const now = new Date();
// @ts-ignore // @ts-ignore

View File

@ -1,4 +1,4 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": ["ES2022", "DOM"], "lib": ["ES2022", "DOM"],
"target": "ES2022", "target": "ES2022",