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
**/.git
**/.gitignore

View File

@ -1,4 +1,4 @@
using Humanizer;
using Humanizer;
using Microsoft.AspNetCore.Mvc;
using OliverBooth.Data.Blog;
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 OliverBooth.Data.Blog
@using OliverBooth.Services

View File

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

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using OliverBooth.Data.Blog;
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
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.Configuration;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
@page "/privacy/google-play"
@page "/privacy/google-play"
@model OliverBooth.Pages.Privacy.GooglePlay
@{
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;

View File

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

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Mvc.RazorPages;
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">
<p class="text-center sr-only">Loading...</p>
</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>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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