refactor(svcs): 🔥 purge services

This commit is contained in:
Collin Barrett 2024-12-08 14:55:49 -06:00
parent 420fb73dcf
commit 2e1f4573cd
83 changed files with 0 additions and 678659 deletions

487
services/.gitignore vendored
View file

@ -1,487 +0,0 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
*.ncb
*.aps
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
##
## Get latest from https://raw.githubusercontent.com/github/gitignore/main/Global/JetBrains.gitignore
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
# just ignore all JetBrains cruft
.idea/

View file

@ -1,24 +0,0 @@
using Microsoft.AspNetCore.Cors.Infrastructure;
namespace FilterLists.Directory.Api;
internal static class CorsConfiguration
{
private const string ProductionClientOrigin = "https://filterlists.com";
private const string StagingClientOriginStart = "https://nice-water-05873140f";
private const string StagingClientOriginEnd = ".eastus2.5.azurestaticapps.net";
private const string NextJsStagingClientOrigin = "https://next.filterlists.com";
private const string LocalClientOrigin = "http://localhost:3000";
internal static readonly Action<CorsOptions> SetupAction = options => options.AddDefaultPolicy(policy =>
{
policy.SetIsOriginAllowed(origin => origin switch
{
ProductionClientOrigin or LocalClientOrigin or NextJsStagingClientOrigin => true,
_ => origin.StartsWith(StagingClientOriginStart, StringComparison.InvariantCulture) &&
origin.EndsWith(StagingClientOriginEnd, StringComparison.InvariantCulture)
})
.WithMethods("GET")
.AllowAnyHeader();
});
}

View file

@ -1,118 +0,0 @@
using FilterLists.Directory.Application.Queries;
using MediatR;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
using static FilterLists.Directory.Api.OpenApi.OpenApiTags;
using static FilterLists.Directory.Application.Queries.GetListDetails;
namespace FilterLists.Directory.Api;
internal static class Endpoints
{
internal static void MapEndpoints(this WebApplication app)
{
app.MapGet("/languages",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetLanguages.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [LanguagesTag],
Summary = "Gets the languages targeted by the FilterLists.",
OperationId = nameof(GetLanguages)
});
app.MapGet("/licenses",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetLicenses.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [LicensesTag],
Summary = "Gets the licenses applied to the FilterLists.",
OperationId = nameof(GetLicenses)
});
app.MapGet("/lists",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetLists.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [FilterListsTag],
Summary = "Gets the FilterLists.",
OperationId = nameof(GetLists)
});
app.MapGet("/lists/{id:int}", async Task<Results<Ok<Response>, NotFound>>
(int id, IMediator mediator, CancellationToken ct) =>
{
var list = await mediator.Send(new Request(id), ct);
return list is not null
? TypedResults.Ok(list)
: TypedResults.NotFound();
})
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [FilterListsTag],
Summary = "Gets the details of the FilterList.",
OperationId = nameof(GetListDetails),
Parameters =
[
new OpenApiParameter
{
Name = "id",
In = ParameterLocation.Path,
Description = "The identifier of the FilterList.",
Required = true,
Example = new OpenApiInteger(1)
}
]
});
app.MapGet("/maintainers",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetMaintainers.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [MaintainersTag],
Summary = "Gets the maintainers of the FilterLists.",
OperationId = nameof(GetMaintainers)
});
app.MapGet("/software",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetSoftware.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [SoftwareTag],
Summary = "Gets the software that subscribes to the FilterLists.",
OperationId = nameof(GetSoftware)
});
app.MapGet("/syntaxes",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetSyntaxes.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [SyntaxesTag],
Summary = "Gets the syntaxes of the FilterLists.",
OperationId = nameof(GetSyntaxes)
});
app.MapGet("/tags",
(IMediator mediator, CancellationToken ct) =>
mediator.CreateStream(new GetTags.Request(), ct)
)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
Tags = [TagsTag],
Summary = "Gets the tags of the FilterLists.",
OperationId = nameof(GetTags)
});
}
}

View file

@ -1,40 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AnalysisMode>Recommended</AnalysisMode>
</PropertyGroup>
<PropertyGroup>
<!-- Disabled GH Actions cache for Dependabot. https://github.com/dependabot/dependabot-core/issues/1303 -->
<!-- <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> -->
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
<ContainerBaseImage>mcr.microsoft.com/dotnet/runtime-deps:8.0-jammy-chiseled-extra</ContainerBaseImage>
<ContainerRuntimeIdentifier>linux-x64</ContainerRuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\FilterLists.ServiceDefaults\FilterLists.ServiceDefaults.csproj"/>
<ProjectReference Include="..\FilterLists.Directory.Application\FilterLists.Directory.Application.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.10"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0"/>
</ItemGroup>
<ItemGroup>
<ContainerLabel Include="org.opencontainers.image.source" Value="https://github.com/collinbarrett/FilterLists"/>
<ContainerLabel Include="org.opencontainers.image.description" Value="filterlists.com | github.com/collinbarrett/filterlists | An ASP.NET Core API serving the core FilterList information."/>
<ContainerLabel Include="org.opencontainers.image.licenses" Value="MIT"/>
</ItemGroup>
</Project>

View file

@ -1,38 +0,0 @@
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
using ConfigurationExtensions = FilterLists.Directory.Application.ConfigurationExtensions;
namespace FilterLists.Directory.Api.OpenApi;
internal static class OpenApiGenConfiguration
{
internal static readonly Action<SwaggerGenOptions> SetupAction = options =>
{
options.SwaggerDoc(
"v1",
new OpenApiInfo
{
Title = "FilterLists Directory API",
Description = "An ASP.NET Core API serving the core FilterList information.",
Version = "v1",
TermsOfService =
new Uri("https://github.com/collinbarrett/FilterLists/blob/main/.github/CODE_OF_CONDUCT.md"),
Contact = new OpenApiContact { Name = "FilterLists", Url = new Uri("https://filterlists.com") },
License = new OpenApiLicense
{
Name = "MIT License",
Url = new Uri("https://github.com/collinbarrett/FilterLists/blob/main/LICENSE")
}
});
// include view model xml comments
var xmlFilename = $"{typeof(ConfigurationExtensions).Assembly.GetName().Name}.xml";
options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, xmlFilename));
// include OpenApiTag Description and ExternalDocs
options.DocumentFilter<OpenApiTags.TagDescriptionsDocumentFilter>();
// allow re-using simple type names like "Response"
options.CustomSchemaIds(s => s.FullName?.Replace("+", "."));
};
}

View file

@ -1,106 +0,0 @@
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
using JetBrains.Annotations;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace FilterLists.Directory.Api.OpenApi;
internal static class OpenApiTags
{
internal static readonly OpenApiTag LanguagesTag = new()
{
Name = nameof(QueryDbContext.Languages),
Description = "A written form of communication used by sites targeted by a FilterList",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(Language)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(Language)}")
}
};
internal static readonly OpenApiTag LicensesTag = new()
{
Name = nameof(QueryDbContext.Licenses),
Description = "A legal document governing the use or redistribution of a FilterList",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(License)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(License)}")
}
};
internal static readonly OpenApiTag FilterListsTag = new()
{
Name = nameof(QueryDbContext.FilterLists),
Description = "A text file containing a list of rules for blocking or manipulating internet traffic",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(FilterList)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(FilterList)}")
}
};
internal static readonly OpenApiTag MaintainersTag = new()
{
Name = nameof(QueryDbContext.Maintainers),
Description = "An individual, group, or organization who maintains one or more FilterLists",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(Maintainer)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(Maintainer)}")
}
};
internal static readonly OpenApiTag SoftwareTag = new()
{
Name = nameof(QueryDbContext.Software),
Description = "An application, browser extension, or other utility that consumes FilterLists",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(Software)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(Software)}")
}
};
internal static readonly OpenApiTag SyntaxesTag = new()
{
Name = nameof(QueryDbContext.Syntaxes),
Description = "A named set of rules that govern the format of a FilterList",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(Syntax)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(Syntax)}")
}
};
internal static readonly OpenApiTag TagsTag = new()
{
Name = nameof(QueryDbContext.Tags),
Description =
"A generic taxonomy applied to a FilterList to provide information about its contents and/or purpose",
ExternalDocs = new OpenApiExternalDocs
{
Description = $"{nameof(FilterLists)} {nameof(Tag)} Wiki",
Url = new Uri($"https://github.com/collinbarrett/FilterLists/wiki/{nameof(Tag)}")
}
};
[UsedImplicitly]
internal sealed class TagDescriptionsDocumentFilter : IDocumentFilter
{
public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
{
swaggerDoc.Tags =
[
LanguagesTag,
LicensesTag,
FilterListsTag,
MaintainersTag,
SoftwareTag,
SyntaxesTag,
TagsTag
];
}
}
}

View file

@ -1,13 +0,0 @@
using Swashbuckle.AspNetCore.SwaggerUI;
namespace FilterLists.Directory.Api.OpenApi;
internal static class SwaggerUiConfiguration
{
internal static readonly Action<SwaggerUIOptions> SetupAction = options =>
{
options.DocumentTitle = "FilterLists API";
options.SwaggerEndpoint("/v1/openapi.json", "FilterLists Directory API v1");
options.RoutePrefix = string.Empty;
};
}

View file

@ -1,24 +0,0 @@
using FilterLists.Directory.Api;
using FilterLists.Directory.Api.OpenApi;
using FilterLists.Directory.Application;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(serverOptions => serverOptions.AddServerHeader = false);
builder.AddServiceDefaults();
builder.Services.AddCors(CorsConfiguration.SetupAction);
builder.Services.AddProblemDetails();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(OpenApiGenConfiguration.SetupAction);
builder.AddApplication();
var app = builder.Build();
app.UseExceptionHandler();
app.UseCors();
app.MapEndpoints();
app.MapDefaultEndpoints();
app.UseSwagger(o => o.RouteTemplate = "{documentName}/openapi.json");
app.UseSwaggerUI(SwaggerUiConfiguration.SetupAction);
app.Run();

View file

@ -1,25 +0,0 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "index.html",
"applicationUrl": "http://localhost:5444",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "index.html",
"applicationUrl": "https://localhost:7490;http://localhost:5444",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View file

@ -1,8 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

View file

@ -1,9 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

View file

@ -1,17 +0,0 @@
using FilterLists.Directory.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace FilterLists.Directory.Application;
public static class ConfigurationExtensions
{
public static void AddApplication(this IHostApplicationBuilder builder)
{
builder.AddInfrastructure();
builder.Services.AddMediatR(cfg =>
{
cfg.RegisterServicesFromAssembly(typeof(ConfigurationExtensions).Assembly);
});
}
}

View file

@ -1,28 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AnalysisMode>Recommended</AnalysisMode>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<NoWarn>1591;1701;1702</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<NoWarn>1591;1701;1702</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MediatR" Version="12.4.1"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FilterLists.Directory.Infrastructure.Migrations\FilterLists.Directory.Infrastructure.Migrations.csproj"/>
<ProjectReference Include="..\FilterLists.Directory.Infrastructure\FilterLists.Directory.Infrastructure.csproj"/>
</ItemGroup>
</Project>

View file

@ -1,50 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetLanguages
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.Languages
.Where(l => l.FilterListLanguages.Any())
.OrderBy(l => l.Iso6391)
.Select(l => new Response(
l.Id,
l.Iso6391,
l.Name,
l.FilterListLanguages
.OrderBy(fl => fl.FilterListId)
.Select(fl => fl.FilterListId)
))
.TagWith(nameof(GetLanguages))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var language in cache.GetOrCreateAsyncEnumerable(
nameof(GetLanguages),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return language;
}
}
/// <param name="Id" example="37">The identifier.</param>
/// <param name="Iso6391" example="en">The unique ISO 639-1 code.</param>
/// <param name="Name" example="English">The unique ISO name.</param>
/// <param name="FilterListIds" example="[ 114, 141 ]">The identifiers of the FilterLists targeted by this Language.</param>
[PublicAPI]
public sealed record Response(short Id, string Iso6391, string Name, IEnumerable<int> FilterListIds);
}

View file

@ -1,63 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetLicenses
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.Licenses
.Where(l => l.FilterLists.Any())
.OrderBy(l => l.Id)
.Select(l => new Response(
l.Id,
l.Name,
l.Url,
l.PermitsModification,
l.PermitsDistribution,
l.PermitsCommercialUse,
l.FilterLists
.OrderBy(f => f.Id)
.Select(f => f.Id)
))
.TagWith(nameof(GetLicenses))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var license in cache.GetOrCreateAsyncEnumerable(
nameof(GetLicenses),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return license;
}
}
/// <param name="Id" example="5">The identifier.</param>
/// <param name="Name" example="All Rights Reserved">The unique name.</param>
/// <param name="Url" example="https://en.wikipedia.org/wiki/All_rights_reserved">The URL of the home page.</param>
/// <param name="PermitsModification" example="false">If the License permits modification.</param>
/// <param name="PermitsDistribution" example="false">If the License permits distribution.</param>
/// <param name="PermitsCommercialUse" example="false">If the License permits commercial use.</param>
/// <param name="FilterListIds" example="[ 6, 31 ]">The identifiers of the FilterLists released under this License.</param>
[PublicAPI]
public sealed record Response(
int Id,
string Name,
Uri? Url,
bool PermitsModification,
bool PermitsDistribution,
bool PermitsCommercialUse,
IEnumerable<int> FilterListIds);
}

View file

@ -1,243 +0,0 @@
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetListDetails
{
private static readonly Func<QueryDbContext, int, Task<Response?>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx, int id) =>
ctx.FilterLists
.Select(f => new Response
{
Id = f.Id,
Name = f.Name,
Description = f.Description,
LicenseId = f.LicenseId,
SyntaxIds = f.FilterListSyntaxes
.OrderBy(fs => fs.SyntaxId)
.Select(fs => fs.SyntaxId),
LanguageIds = f.FilterListLanguages
.OrderBy(fl => fl.LanguageId)
.Select(fl => fl.LanguageId),
TagIds = f.FilterListTags
.OrderBy(ft => ft.TagId)
.Select(ft => ft.TagId),
ViewUrls = f.ViewUrls
.OrderBy(u => u.SegmentNumber)
.ThenBy(u => u.Primariness)
.Select(u => new ViewUrlResponse
(
u.SegmentNumber,
u.Primariness,
u.Url
)),
HomeUrl = f.HomeUrl,
OnionUrl = f.OnionUrl,
PolicyUrl = f.PolicyUrl,
SubmissionUrl = f.SubmissionUrl,
IssuesUrl = f.IssuesUrl,
ForumUrl = f.ForumUrl,
ChatUrl = f.ChatUrl,
EmailAddress = f.EmailAddress,
DonateUrl = f.DonateUrl,
MaintainerIds = f.FilterListMaintainers
.OrderBy(fm => fm.MaintainerId)
.Select(fm => fm.MaintainerId),
UpstreamFilterListIds = f.UpstreamFilterLists
.OrderBy(ff => ff.UpstreamFilterListId)
.Select(ff => ff.UpstreamFilterListId),
ForkFilterListIds = f.ForkFilterLists
.OrderBy(ff => ff.ForkFilterListId)
.Select(ff => ff.ForkFilterListId),
IncludedInFilterListIds = f.IncludedInFilterLists
.OrderBy(fm => fm.IncludedInFilterListId)
.Select(fm => fm.IncludedInFilterListId),
IncludesFilterListIds = f.IncludesFilterLists
.OrderBy(fm => fm.IncludesFilterListId)
.Select(fm => fm.IncludesFilterListId),
DependencyFilterListIds = f.DependencyFilterLists
.OrderBy(fd => fd.DependencyFilterListId)
.Select(fd => fd.DependencyFilterListId),
DependentFilterListIds = f.DependentFilterLists
.OrderBy(fd => fd.DependentFilterListId)
.Select(fd => fd.DependentFilterListId)
})
.TagWith(nameof(GetListDetails))
.SingleOrDefault(f => f.Id == id));
public sealed record Request(int Id) : IRequest<Response?>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IRequestHandler<Request, Response?>
{
public Task<Response?> Handle(Request request, CancellationToken _)
{
return cache.GetOrCreateAsync($"{nameof(GetListDetails)}_{request.Id}", entry => Query(ctx, request.Id));
}
}
// TODO: refactor to primary ctor syntax while allowing EF Core query compilation to succeed
[PublicAPI]
public sealed record Response
{
/// <summary>
/// The identifier.
/// </summary>
/// <example>301</example>
public int Id { get; init; }
/// <summary>
/// The unique name in title case.
/// </summary>
/// <example>EasyList</example>
public required string Name { get; init; }
/// <summary>
/// The brief description in English (preferably quoted from the project).
/// </summary>
/// <example>
/// EasyList is the primary filter list that removes most adverts from international web pages, including unwanted
/// frames, images, and objects. It is the most popular list used by many ad blockers and forms the basis of over a
/// dozen combination and supplementary filter lists.
/// </example>
public string? Description { get; init; }
/// <summary>
/// The identifier of the License under which this FilterList is released.
/// </summary>
/// <example>4</example>
public int LicenseId { get; init; }
/// <summary>
/// The identifiers of the Syntaxes implemented by this FilterList.
/// </summary>
/// <example>[ 3 ]</example>
public IEnumerable<short> SyntaxIds { get; init; } = [];
/// <summary>
/// The identifiers of the Languages targeted by this FilterList.
/// </summary>
/// <example>[ 37 ]</example>
public IEnumerable<short> LanguageIds { get; init; } = [];
/// <summary>
/// The identifiers of the Tags applied to this FilterList.
/// </summary>
/// <example>[ 2 ]</example>
public IEnumerable<int> TagIds { get; init; } = [];
/// <summary>
/// The view URLs.
/// </summary>
public IEnumerable<ViewUrlResponse> ViewUrls { get; init; } = [];
/// <summary>
/// The URL of the home page.
/// </summary>
/// <example>https://easylist.to/</example>
public Uri? HomeUrl { get; init; }
/// <summary>
/// The URL of the Tor / Onion page.
/// </summary>
/// <example>null</example>
public Uri? OnionUrl { get; init; }
/// <summary>
/// The URL of the policy/guidelines for the types of rules this FilterList includes.
/// </summary>
/// <example>null</example>
public Uri? PolicyUrl { get; init; }
/// <summary>
/// The URL of the submission/contact form for adding rules to this FilterList.
/// </summary>
/// <example>null</example>
public Uri? SubmissionUrl { get; init; }
/// <summary>
/// The URL of the GitHub Issues page.
/// </summary>
/// <example>https://github.com/easylist/easylist/issues</example>
public Uri? IssuesUrl { get; init; }
/// <summary>
/// The URL of the forum page.
/// </summary>
/// <example>https://forums.lanik.us/viewforum.php?f=23</example>
public Uri? ForumUrl { get; init; }
/// <summary>
/// The URL of the chat room.
/// </summary>
/// <example>null</example>
public Uri? ChatUrl { get; init; }
/// <summary>
/// The email address at which the project can be contacted.
/// </summary>
/// <example>easylist@protonmail.com</example>
public string? EmailAddress { get; init; }
/// <summary>
/// The URL at which donations to the project can be made.
/// </summary>
/// <example>null</example>
public Uri? DonateUrl { get; init; }
/// <summary>
/// The identifiers of the Maintainers of this FilterList.
/// </summary>
/// <example>[ 7 ]</example>
public IEnumerable<int> MaintainerIds { get; init; } = [];
/// <summary>
/// The identifiers of the FilterLists from which this FilterList was forked.
/// </summary>
/// <example>[]</example>
public IEnumerable<int> UpstreamFilterListIds { get; init; } = [];
/// <summary>
/// The identifiers of the FilterLists that have been forked from this FilterList.
/// </summary>
/// <example>[ 166, 565 ]</example>
public IEnumerable<int> ForkFilterListIds { get; init; } = [];
/// <summary>
/// The identifiers of the FilterLists that include this FilterList.
/// </summary>
/// <example>[]</example>
public IEnumerable<int> IncludedInFilterListIds { get; init; } = [];
/// <summary>
/// The identifiers of the FilterLists that this FilterList includes.
/// </summary>
/// <example>[ 11, 13, 168 ]</example>
public IEnumerable<int> IncludesFilterListIds { get; init; } = [];
/// <summary>
/// The identifiers of the FilterLists that this FilterList depends upon.
/// </summary>
/// <example>[]</example>
public IEnumerable<int> DependencyFilterListIds { get; init; } = [];
/// <summary>
/// The identifiers of the FilterLists dependent upon this FilterList.
/// </summary>
/// <example>[]</example>
public IEnumerable<int> DependentFilterListIds { get; init; } = [];
}
/// <param name="SegmentNumber" example="1">The segment number of the URL for the FilterList (for multi-part lists).</param>
/// <param name="Primariness" example="1">
/// How primary the URL is for the FilterList segment (1 is original, 2+ is a mirror;
/// unique per SegmentNumber)
/// </param>
/// <param name="Url" example="https://easylist.to/easylist/easylist.txt">The view URL.</param>
[PublicAPI]
public sealed record ViewUrlResponse(short SegmentNumber, short Primariness, Uri Url);
}

View file

@ -1,82 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetLists
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.FilterLists
.OrderBy(f => f.Id)
.Select(f => new Response
(
f.Id,
f.Name,
f.Description,
f.LicenseId,
f.FilterListSyntaxes
.OrderBy(fs => fs.SyntaxId)
.Select(fs => fs.SyntaxId),
f.FilterListLanguages
.OrderBy(fl => fl.LanguageId)
.Select(fl => fl.LanguageId),
f.FilterListTags
.OrderBy(ft => ft.TagId)
.Select(ft => ft.TagId),
f.ViewUrls
.OrderBy(u => u.SegmentNumber)
.ThenBy(u => u.Primariness)
.Select(u => u.Url)
.FirstOrDefault(),
f.FilterListMaintainers
.OrderBy(fm => fm.MaintainerId)
.Select(fm => fm.MaintainerId)
))
.TagWith(nameof(GetLists))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var list in cache.GetOrCreateAsyncEnumerable(
nameof(GetLists),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return list;
}
}
/// <param name="Id" example="301">The identifier.</param>
/// <param name="Name" example="EasyList">The unique name in title case.</param>
/// <param name="Description"
/// example="EasyList is the primary filter list that removes most adverts from international web pages...">
/// The brief description in English (preferably quoted from the project).
/// </param>
/// <param name="LicenseId" example="4">The identifier of the License under which this FilterList is released.</param>
/// <param name="SyntaxIds" example="[ 3 ]">The identifiers of the Syntaxes implemented by this FilterList.</param>
/// <param name="LanguageIds" example="[ 37 ]">The identifiers of the Languages targeted by this FilterList.</param>
/// <param name="TagIds" example="[ 2 ]">The identifiers of the Tags applied to this FilterList.</param>
/// <param name="PrimaryViewUrl" example="https://easylist.to/easylist/easylist.txt">The primary view URL.</param>
/// <param name="MaintainerIds" example="[ 7 ]">The identifiers of the Maintainers of this FilterList.</param>
[PublicAPI]
public sealed record Response(
int Id,
string Name,
string? Description,
int LicenseId,
IEnumerable<short> SyntaxIds,
IEnumerable<short> LanguageIds,
IEnumerable<int> TagIds,
Uri? PrimaryViewUrl,
IEnumerable<int> MaintainerIds);
}

View file

@ -1,60 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetMaintainers
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.Maintainers
.Where(m => m.FilterListMaintainers.Any())
.OrderBy(m => m.Id)
.Select(m => new Response(
m.Id,
m.Name,
m.Url,
m.EmailAddress,
m.TwitterHandle,
m.FilterListMaintainers
.OrderBy(fm => fm.FilterListId)
.Select(fm => fm.FilterListId)
))
.TagWith(nameof(GetMaintainers))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var maintainer in cache.GetOrCreateAsyncEnumerable(
nameof(GetMaintainers),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return maintainer;
}
}
/// <param name="Id" example="7">The identifier.</param>
/// <param name="Name" example="The EasyList Authors">The unique name.</param>
/// <param name="Url" example="https://easylist.to/">The URL of the home page.</param>
/// <param name="EmailAddress" example="null">The email address.</param>
/// <param name="TwitterHandle" example="null">The Twitter handle.</param>
/// <param name="FilterListIds" example="[ 11, 13, 301 ]">The identifiers of the FilterLists maintained by this Maintainer.</param>
[PublicAPI]
public sealed record Response(
int Id,
string Name,
Uri? Url,
string? EmailAddress,
string? TwitterHandle,
IEnumerable<int> FilterListIds);
}

View file

@ -1,70 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetSoftware
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.Software
.Where(s => s.SoftwareSyntaxes
.Any(ss => ss.Syntax.FilterListSyntaxes.Any()))
.OrderBy(s => s.Id)
.Select(s => new Response
(
s.Id,
s.Name,
s.Description,
s.HomeUrl,
s.DownloadUrl,
s.SupportsAbpUrlScheme,
s.SoftwareSyntaxes
.OrderBy(ss => ss.SyntaxId)
.Select(ss => ss.SyntaxId)
))
.TagWith(nameof(GetSoftware))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var software in cache.GetOrCreateAsyncEnumerable(
nameof(GetSoftware),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return software;
}
}
/// <param name="Id" example="2">The identifier.</param>
/// <param name="Name" example="Adblock Plus">The unique name.</param>
/// <param name="Description"
/// example="Adblock Plus is a free extension that allows you to customize your web experience...">
/// The description.
/// </param>
/// <param name="HomeUrl" example="https://adblockplus.org/">The URL of the home page.</param>
/// <param name="DownloadUrl" example="https://adblockplus.org/">The URL of the Software download.</param>
/// <param name="SupportsAbpUrlScheme" example="true">
/// If the Software supports the abp: URL scheme to click-to-subscribe to a FilterList.
/// </param>
/// <param name="SyntaxIds" example="[ 3, 28, 38, 48 ]">The identifiers of the Syntaxes that this Software supports.</param>
[PublicAPI]
public sealed record Response(
long Id,
string Name,
string? Description,
Uri? HomeUrl,
Uri? DownloadUrl,
bool SupportsAbpUrlScheme,
IEnumerable<short> SyntaxIds);
}

View file

@ -1,63 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetSyntaxes
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.Syntaxes
.Where(s => s.FilterListSyntaxes.Any())
.OrderBy(s => s.Id)
.Select(s => new Response
(
s.Id,
s.Name,
s.Description,
s.Url,
s.FilterListSyntaxes
.OrderBy(fs => fs.FilterListId)
.Select(fs => fs.FilterListId),
s.SoftwareSyntaxes
.OrderBy(ss => ss.SoftwareId)
.Select(ss => ss.SoftwareId)
))
.TagWith(nameof(GetSyntaxes))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var syntax in cache.GetOrCreateAsyncEnumerable(
nameof(GetSyntaxes),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return syntax;
}
}
/// <param name="Id" example="3">The identifier.</param>
/// <param name="Name" example="Adblock Plus">The unique name.</param>
/// <param name="Description" example="null">The description.</param>
/// <param name="Url" example="https://adblockplus.org/filters">The URL of the home page.</param>
/// <param name="FilterListIds" example="[ 2, 6, 11 ]">The identifiers of the FilterLists implementing this Syntax.</param>
/// <param name="SoftwareIds" example="[ 1, 2, 3 ]">The identifiers of the Software that supports this Syntax.</param>
[PublicAPI]
public sealed record Response(
short Id,
string Name,
string? Description,
Uri? Url,
IEnumerable<int> FilterListIds,
IEnumerable<short> SoftwareIds);
}

View file

@ -1,51 +0,0 @@
using System.Runtime.CompilerServices;
using FilterLists.Directory.Infrastructure;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using JetBrains.Annotations;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Application.Queries;
public static class GetTags
{
private static readonly Func<QueryDbContext, IAsyncEnumerable<Response>> Query =
EF.CompileAsyncQuery((QueryDbContext ctx) =>
ctx.Tags
.Where(t => t.FilterListTags.Any())
.OrderBy(t => t.Id)
.Select(t => new Response
(
t.Id,
t.Name,
t.Description,
t.FilterListTags
.OrderBy(flt => flt.FilterListId)
.Select(flt => flt.FilterListId)
))
.TagWith(nameof(GetTags))
);
public sealed record Request : IStreamRequest<Response>;
[UsedImplicitly]
private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IStreamRequestHandler<Request, Response>
{
public async IAsyncEnumerable<Response> Handle(Request request, [EnumeratorCancellation] CancellationToken ct)
{
await foreach (var tag in cache.GetOrCreateAsyncEnumerable(
nameof(GetTags),
Query(ctx).WithCancellation(ct))
.WithCancellation(ct))
yield return tag;
}
}
/// <param name="Id" example="2">The identifier.</param>
/// <param name="Name" example="ads">The unique name.</param>
/// <param name="Description" example="Blocks advertisements">The description.</param>
/// <param name="FilterListIds" example="[ 1, 3, 6 ]">The identifiers of the FilterLists to which this Tag is applied.</param>
[PublicAPI]
public sealed record Response(int Id, string Name, string? Description, IEnumerable<int> FilterListIds);
}

View file

@ -1,13 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\FilterLists.Directory.Infrastructure\FilterLists.Directory.Infrastructure.csproj"/>
</ItemGroup>
</Project>

View file

@ -1,668 +0,0 @@
// <auto-generated />
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
[DbContext(typeof(QueryDbContext))]
[Migration("20240606164416_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.UseCollation("Latin1_General_100_CI_AS_SC")
.HasAnnotation("ProductVersion", "8.0.6")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Dependent", b =>
{
b.Property<int>("DependencyFilterListId")
.HasColumnType("int");
b.Property<int>("DependentFilterListId")
.HasColumnType("int");
b.HasKey("DependencyFilterListId", "DependentFilterListId");
b.HasIndex("DependentFilterListId");
b.ToTable("Dependent");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ChatUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DonateUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("EmailAddress")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("ForumUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("HomeUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("IssuesUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<int>("LicenseId")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasDefaultValue(5);
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("OnionUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("PolicyUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("SubmissionUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.HasKey("Id");
b.HasIndex("LicenseId");
b.HasIndex("Name")
.IsUnique();
b.ToTable("FilterList");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListLanguage", b =>
{
b.Property<int>("FilterListId")
.HasColumnType("int");
b.Property<short>("LanguageId")
.HasColumnType("smallint");
b.HasKey("FilterListId", "LanguageId");
b.HasIndex("LanguageId");
b.ToTable("FilterListLanguage");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListMaintainer", b =>
{
b.Property<int>("FilterListId")
.HasColumnType("int");
b.Property<int>("MaintainerId")
.HasColumnType("int");
b.HasKey("FilterListId", "MaintainerId");
b.HasIndex("MaintainerId");
b.ToTable("FilterListMaintainer");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListSyntax", b =>
{
b.Property<int>("FilterListId")
.HasColumnType("int");
b.Property<short>("SyntaxId")
.HasColumnType("smallint");
b.HasKey("FilterListId", "SyntaxId");
b.HasIndex("SyntaxId");
b.ToTable("FilterListSyntax");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListTag", b =>
{
b.Property<int>("FilterListId")
.HasColumnType("int");
b.Property<int>("TagId")
.HasColumnType("int");
b.HasKey("FilterListId", "TagId");
b.HasIndex("TagId");
b.ToTable("FilterListTag");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Fork", b =>
{
b.Property<int>("UpstreamFilterListId")
.HasColumnType("int");
b.Property<int>("ForkFilterListId")
.HasColumnType("int");
b.HasKey("UpstreamFilterListId", "ForkFilterListId");
b.HasIndex("ForkFilterListId");
b.ToTable("Fork");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Language", b =>
{
b.Property<short>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("smallint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<short>("Id"));
b.Property<string>("Iso6391")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nchar(2)")
.IsFixedLength();
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Iso6391")
.IsUnique();
b.HasIndex("Name")
.IsUnique();
b.ToTable("Language");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<bool>("PermitsCommercialUse")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<bool>("PermitsDistribution")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<bool>("PermitsModification")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<string>("Url")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("License");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Maintainer", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("EmailAddress")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("TwitterHandle")
.HasMaxLength(32)
.HasColumnType("nvarchar(32)");
b.Property<string>("Url")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("Maintainer");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Merge", b =>
{
b.Property<int>("IncludedInFilterListId")
.HasColumnType("int");
b.Property<int>("IncludesFilterListId")
.HasColumnType("int");
b.HasKey("IncludedInFilterListId", "IncludesFilterListId");
b.HasIndex("IncludesFilterListId");
b.ToTable("Merge");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Software", b =>
{
b.Property<short>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("smallint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<short>("Id"));
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DownloadUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("HomeUrl")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<bool>("SupportsAbpUrlScheme")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("Software");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.SoftwareSyntax", b =>
{
b.Property<short>("SoftwareId")
.HasColumnType("smallint");
b.Property<short>("SyntaxId")
.HasColumnType("smallint");
b.HasKey("SoftwareId", "SyntaxId");
b.HasIndex("SyntaxId");
b.ToTable("SoftwareSyntax");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Syntax", b =>
{
b.Property<short>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("smallint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<short>("Id"));
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Url")
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("Syntax");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Tag", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("nvarchar(32)");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("Tag");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Dependent", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "DependencyFilterList")
.WithMany("DependentFilterLists")
.HasForeignKey("DependencyFilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "DependentFilterList")
.WithMany("DependencyFilterLists")
.HasForeignKey("DependentFilterListId")
.OnDelete(DeleteBehavior.NoAction)
.IsRequired();
b.Navigation("DependencyFilterList");
b.Navigation("DependentFilterList");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", "License")
.WithMany("FilterLists")
.HasForeignKey("LicenseId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.OwnsMany("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListViewUrl", "ViewUrls", b1 =>
{
b1.Property<int>("FilterListId")
.HasColumnType("int");
b1.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<int>("Id"));
b1.Property<short>("Primariness")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)1);
b1.Property<short>("SegmentNumber")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)1);
b1.Property<string>("Url")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b1.HasKey("FilterListId", "Id");
b1.HasIndex("FilterListId", "SegmentNumber", "Primariness")
.IsUnique();
b1.ToTable("FilterListViewUrl");
b1.WithOwner("FilterList")
.HasForeignKey("FilterListId");
b1.Navigation("FilterList");
});
b.Navigation("License");
b.Navigation("ViewUrls");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListLanguage", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "FilterList")
.WithMany("FilterListLanguages")
.HasForeignKey("FilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Language", "Language")
.WithMany("FilterListLanguages")
.HasForeignKey("LanguageId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("FilterList");
b.Navigation("Language");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListMaintainer", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "FilterList")
.WithMany("FilterListMaintainers")
.HasForeignKey("FilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Maintainer", "Maintainer")
.WithMany("FilterListMaintainers")
.HasForeignKey("MaintainerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("FilterList");
b.Navigation("Maintainer");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListSyntax", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "FilterList")
.WithMany("FilterListSyntaxes")
.HasForeignKey("FilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Syntax", "Syntax")
.WithMany("FilterListSyntaxes")
.HasForeignKey("SyntaxId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("FilterList");
b.Navigation("Syntax");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListTag", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "FilterList")
.WithMany("FilterListTags")
.HasForeignKey("FilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Tag", "Tag")
.WithMany("FilterListTags")
.HasForeignKey("TagId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("FilterList");
b.Navigation("Tag");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Fork", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "ForkFilterList")
.WithMany("UpstreamFilterLists")
.HasForeignKey("ForkFilterListId")
.OnDelete(DeleteBehavior.NoAction)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "UpstreamFilterList")
.WithMany("ForkFilterLists")
.HasForeignKey("UpstreamFilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ForkFilterList");
b.Navigation("UpstreamFilterList");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Merge", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "IncludedInFilterList")
.WithMany("IncludesFilterLists")
.HasForeignKey("IncludedInFilterListId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", "IncludesFilterList")
.WithMany("IncludedInFilterLists")
.HasForeignKey("IncludesFilterListId")
.OnDelete(DeleteBehavior.NoAction)
.IsRequired();
b.Navigation("IncludedInFilterList");
b.Navigation("IncludesFilterList");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.SoftwareSyntax", b =>
{
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Software", "Software")
.WithMany("SoftwareSyntaxes")
.HasForeignKey("SoftwareId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Syntax", "Syntax")
.WithMany("SoftwareSyntaxes")
.HasForeignKey("SyntaxId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Software");
b.Navigation("Syntax");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", b =>
{
b.Navigation("DependencyFilterLists");
b.Navigation("DependentFilterLists");
b.Navigation("FilterListLanguages");
b.Navigation("FilterListMaintainers");
b.Navigation("FilterListSyntaxes");
b.Navigation("FilterListTags");
b.Navigation("ForkFilterLists");
b.Navigation("IncludedInFilterLists");
b.Navigation("IncludesFilterLists");
b.Navigation("UpstreamFilterLists");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Language", b =>
{
b.Navigation("FilterListLanguages");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", b =>
{
b.Navigation("FilterLists");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Maintainer", b =>
{
b.Navigation("FilterListMaintainers");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Software", b =>
{
b.Navigation("SoftwareSyntaxes");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Syntax", b =>
{
b.Navigation("FilterListSyntaxes");
b.Navigation("SoftwareSyntaxes");
});
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Tag", b =>
{
b.Navigation("FilterListTags");
});
#pragma warning restore 612, 618
}
}
}

View file

@ -1,499 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class InitialCreate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Language",
columns: table => new
{
Id = table.Column<short>(type: "smallint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Iso6391 = table.Column<string>(type: "nchar(2)", fixedLength: true, maxLength: 2, nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Language", x => x.Id);
});
migrationBuilder.CreateTable(
name: "License",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Url = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
PermitsModification = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
PermitsDistribution = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
PermitsCommercialUse = table.Column<bool>(type: "bit", nullable: false, defaultValue: false)
},
constraints: table =>
{
table.PrimaryKey("PK_License", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Maintainer",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Url = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
EmailAddress = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
TwitterHandle = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Maintainer", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Software",
columns: table => new
{
Id = table.Column<short>(type: "smallint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
HomeUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
DownloadUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
SupportsAbpUrlScheme = table.Column<bool>(type: "bit", nullable: false, defaultValue: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Software", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Syntax",
columns: table => new
{
Id = table.Column<short>(type: "smallint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
Url = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Syntax", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Tag",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Tag", x => x.Id);
});
migrationBuilder.CreateTable(
name: "FilterList",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
LicenseId = table.Column<int>(type: "int", nullable: false, defaultValue: 5),
HomeUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
OnionUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
PolicyUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
SubmissionUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
IssuesUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
ForumUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
ChatUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
EmailAddress = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
DonateUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_FilterList", x => x.Id);
table.ForeignKey(
name: "FK_FilterList_License_LicenseId",
column: x => x.LicenseId,
principalTable: "License",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "SoftwareSyntax",
columns: table => new
{
SoftwareId = table.Column<short>(type: "smallint", nullable: false),
SyntaxId = table.Column<short>(type: "smallint", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SoftwareSyntax", x => new { x.SoftwareId, x.SyntaxId });
table.ForeignKey(
name: "FK_SoftwareSyntax_Software_SoftwareId",
column: x => x.SoftwareId,
principalTable: "Software",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_SoftwareSyntax_Syntax_SyntaxId",
column: x => x.SyntaxId,
principalTable: "Syntax",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Dependent",
columns: table => new
{
DependencyFilterListId = table.Column<int>(type: "int", nullable: false),
DependentFilterListId = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Dependent", x => new { x.DependencyFilterListId, x.DependentFilterListId });
table.ForeignKey(
name: "FK_Dependent_FilterList_DependencyFilterListId",
column: x => x.DependencyFilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_Dependent_FilterList_DependentFilterListId",
column: x => x.DependentFilterListId,
principalTable: "FilterList",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "FilterListLanguage",
columns: table => new
{
FilterListId = table.Column<int>(type: "int", nullable: false),
LanguageId = table.Column<short>(type: "smallint", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FilterListLanguage", x => new { x.FilterListId, x.LanguageId });
table.ForeignKey(
name: "FK_FilterListLanguage_FilterList_FilterListId",
column: x => x.FilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_FilterListLanguage_Language_LanguageId",
column: x => x.LanguageId,
principalTable: "Language",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "FilterListMaintainer",
columns: table => new
{
FilterListId = table.Column<int>(type: "int", nullable: false),
MaintainerId = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FilterListMaintainer", x => new { x.FilterListId, x.MaintainerId });
table.ForeignKey(
name: "FK_FilterListMaintainer_FilterList_FilterListId",
column: x => x.FilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_FilterListMaintainer_Maintainer_MaintainerId",
column: x => x.MaintainerId,
principalTable: "Maintainer",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "FilterListSyntax",
columns: table => new
{
FilterListId = table.Column<int>(type: "int", nullable: false),
SyntaxId = table.Column<short>(type: "smallint", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FilterListSyntax", x => new { x.FilterListId, x.SyntaxId });
table.ForeignKey(
name: "FK_FilterListSyntax_FilterList_FilterListId",
column: x => x.FilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_FilterListSyntax_Syntax_SyntaxId",
column: x => x.SyntaxId,
principalTable: "Syntax",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "FilterListTag",
columns: table => new
{
FilterListId = table.Column<int>(type: "int", nullable: false),
TagId = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FilterListTag", x => new { x.FilterListId, x.TagId });
table.ForeignKey(
name: "FK_FilterListTag_FilterList_FilterListId",
column: x => x.FilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_FilterListTag_Tag_TagId",
column: x => x.TagId,
principalTable: "Tag",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "FilterListViewUrl",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
FilterListId = table.Column<int>(type: "int", nullable: false),
SegmentNumber = table.Column<short>(type: "smallint", nullable: false, defaultValue: (short)1),
Primariness = table.Column<short>(type: "smallint", nullable: false, defaultValue: (short)1),
Url = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FilterListViewUrl", x => new { x.FilterListId, x.Id });
table.ForeignKey(
name: "FK_FilterListViewUrl_FilterList_FilterListId",
column: x => x.FilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Fork",
columns: table => new
{
UpstreamFilterListId = table.Column<int>(type: "int", nullable: false),
ForkFilterListId = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Fork", x => new { x.UpstreamFilterListId, x.ForkFilterListId });
table.ForeignKey(
name: "FK_Fork_FilterList_ForkFilterListId",
column: x => x.ForkFilterListId,
principalTable: "FilterList",
principalColumn: "Id");
table.ForeignKey(
name: "FK_Fork_FilterList_UpstreamFilterListId",
column: x => x.UpstreamFilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Merge",
columns: table => new
{
IncludedInFilterListId = table.Column<int>(type: "int", nullable: false),
IncludesFilterListId = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Merge", x => new { x.IncludedInFilterListId, x.IncludesFilterListId });
table.ForeignKey(
name: "FK_Merge_FilterList_IncludedInFilterListId",
column: x => x.IncludedInFilterListId,
principalTable: "FilterList",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_Merge_FilterList_IncludesFilterListId",
column: x => x.IncludesFilterListId,
principalTable: "FilterList",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_Dependent_DependentFilterListId",
table: "Dependent",
column: "DependentFilterListId");
migrationBuilder.CreateIndex(
name: "IX_FilterList_LicenseId",
table: "FilterList",
column: "LicenseId");
migrationBuilder.CreateIndex(
name: "IX_FilterList_Name",
table: "FilterList",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_FilterListLanguage_LanguageId",
table: "FilterListLanguage",
column: "LanguageId");
migrationBuilder.CreateIndex(
name: "IX_FilterListMaintainer_MaintainerId",
table: "FilterListMaintainer",
column: "MaintainerId");
migrationBuilder.CreateIndex(
name: "IX_FilterListSyntax_SyntaxId",
table: "FilterListSyntax",
column: "SyntaxId");
migrationBuilder.CreateIndex(
name: "IX_FilterListTag_TagId",
table: "FilterListTag",
column: "TagId");
migrationBuilder.CreateIndex(
name: "IX_FilterListViewUrl_FilterListId_SegmentNumber_Primariness",
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "SegmentNumber", "Primariness" },
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Fork_ForkFilterListId",
table: "Fork",
column: "ForkFilterListId");
migrationBuilder.CreateIndex(
name: "IX_Language_Iso6391",
table: "Language",
column: "Iso6391",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Language_Name",
table: "Language",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_License_Name",
table: "License",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Maintainer_Name",
table: "Maintainer",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Merge_IncludesFilterListId",
table: "Merge",
column: "IncludesFilterListId");
migrationBuilder.CreateIndex(
name: "IX_Software_Name",
table: "Software",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_SoftwareSyntax_SyntaxId",
table: "SoftwareSyntax",
column: "SyntaxId");
migrationBuilder.CreateIndex(
name: "IX_Syntax_Name",
table: "Syntax",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Tag_Name",
table: "Tag",
column: "Name",
unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Dependent");
migrationBuilder.DropTable(
name: "FilterListLanguage");
migrationBuilder.DropTable(
name: "FilterListMaintainer");
migrationBuilder.DropTable(
name: "FilterListSyntax");
migrationBuilder.DropTable(
name: "FilterListTag");
migrationBuilder.DropTable(
name: "FilterListViewUrl");
migrationBuilder.DropTable(
name: "Fork");
migrationBuilder.DropTable(
name: "Merge");
migrationBuilder.DropTable(
name: "SoftwareSyntax");
migrationBuilder.DropTable(
name: "Language");
migrationBuilder.DropTable(
name: "Maintainer");
migrationBuilder.DropTable(
name: "Tag");
migrationBuilder.DropTable(
name: "FilterList");
migrationBuilder.DropTable(
name: "Software");
migrationBuilder.DropTable(
name: "Syntax");
migrationBuilder.DropTable(
name: "License");
}
}
}

View file

@ -1,32 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _4349 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 238, 362 },
column: "Url",
value: "https://www.rakuten.ca/static/cashback-shopping-whitelist?title=Rakuten Cash Back Shopping");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 238, 362 },
column: "Url",
value: "https://www.ebates.com/whitelist/ebates-cash-back-shopping.txt");
}
}
}

View file

@ -1,116 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _4451 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2669,
column: "DonateUrl",
value: "https://github.com/ukrainianfilters/lists#підтримати-проєкт");
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2670,
columns: new[] { "DonateUrl", "HomeUrl", "IssuesUrl" },
values: new object[] { "https://github.com/ukrainianfilters/lists#підтримати-проєкт", "https://github.com/ukrainianfilters/lists", "https://github.com/ukrainianfilters/lists/issues" });
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2671,
columns: new[] { "DonateUrl", "HomeUrl", "IssuesUrl" },
values: new object[] { "https://github.com/ukrainianfilters/lists#підтримати-проєкт", "https://github.com/ukrainianfilters/lists", "https://github.com/ukrainianfilters/lists/issues" });
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2672,
columns: new[] { "DonateUrl", "HomeUrl", "IssuesUrl" },
values: new object[] { "https://github.com/ukrainianfilters/lists#підтримати-проєкт", "https://github.com/ukrainianfilters/lists", "https://github.com/ukrainianfilters/lists/issues" });
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2670, 2954 },
column: "Url",
value: "https://raw.githubusercontent.com/ukrainianfilters/lists/main/ads/ads.txt");
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2671, 2955 },
column: "Url",
value: "https://raw.githubusercontent.com/ukrainianfilters/lists/main/annoyances/annoyances.txt");
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2672, 2956 },
column: "Url",
value: "https://raw.githubusercontent.com/ukrainianfilters/lists/main/privacy/privacy.txt");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2669,
column: "DonateUrl",
value: "https://github.com/serhiyguryev/ukrainian-filters?tab=readme-ov-file#підтримати-проект");
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2670,
columns: new[] { "DonateUrl", "HomeUrl", "IssuesUrl" },
values: new object[] { "https://github.com/serhiyguryev/ukrainian-filters?tab=readme-ov-file#підтримати-проект", "https://github.com/serhiyguryev/ukrainian-filters", "https://github.com/serhiyguryev/ukrainian-filters/issues" });
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2671,
columns: new[] { "DonateUrl", "HomeUrl", "IssuesUrl" },
values: new object[] { "https://github.com/serhiyguryev/ukrainian-filters?tab=readme-ov-file#підтримати-проект", "https://github.com/serhiyguryev/ukrainian-filters", "https://github.com/serhiyguryev/ukrainian-filters/issues" });
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2672,
columns: new[] { "DonateUrl", "HomeUrl", "IssuesUrl" },
values: new object[] { "https://github.com/serhiyguryev/ukrainian-filters?tab=readme-ov-file#підтримати-проект", "https://github.com/serhiyguryev/ukrainian-filters", "https://github.com/serhiyguryev/ukrainian-filters/issues" });
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2670, 2954 },
column: "Url",
value: "https://raw.githubusercontent.com/serhiyguryev/ukrainian-filters/main/filters/ads.txt");
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2671, 2955 },
column: "Url",
value: "https://raw.githubusercontent.com/serhiyguryev/ukrainian-filters/main/filters/annoyances.txt");
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2672, 2956 },
column: "Url",
value: "https://raw.githubusercontent.com/serhiyguryev/ukrainian-filters/main/filters/privacy.txt");
}
}
}

View file

@ -1,46 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _4458 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2603,
columns: new[] { "Description", "HomeUrl" },
values: new object[] { "Filters to bypass paywalls for news sites (supports less sites than the extension/add-on)", "https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters" });
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2603, 2867 },
column: "Url",
value: "https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=bpc-paywall-filter.txt");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2603,
columns: new[] { "Description", "HomeUrl" },
values: new object[] { "Filters for news sites (supports less sites than the extension/add-on)", "https://github.com/bpc-clone/bypass-paywalls-clean-filters" });
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2603, 2867 },
column: "Url",
value: "https://raw.githubusercontent.com/bpc-clone/bypass-paywalls-clean-filters/main/bpc-paywall-filter.txt");
}
}
}

View file

@ -1,29 +0,0 @@
using FilterLists.Directory.Infrastructure.Persistence.Queries;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace FilterLists.Directory.Infrastructure;
public static class ConfigurationExtensions
{
private const string MigrationsAssembly = "FilterLists.Directory.Infrastructure.Migrations";
public static void AddInfrastructure(this IHostApplicationBuilder builder)
{
// TODO: use different connection strings for migrations and queries (https://stackoverflow.com/q/78564037/2343739)
builder.AddSqlServerDbContext<QueryDbContext>("directorydb",
_ => { },
o => o.UseSqlServer(so =>
// retry on Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Undefined error: 0)
so.EnableRetryOnFailure([0])
.MigrationsAssembly(MigrationsAssembly))
.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking)
.EnableSensitiveDataLogging(string.Equals(
Environment.GetEnvironmentVariable("DOTNET_RUNNING_EF_CORE_TOOLS"), "true",
StringComparison.OrdinalIgnoreCase)));
builder.Services.AddHostedService<MigrationService>();
builder.Services.AddMemoryCache();
}
}

View file

@ -1,15 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AnalysisMode>Recommended</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="8.2.2"/>
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0"/>
</ItemGroup>
</Project>

View file

@ -1,30 +0,0 @@
using System.Runtime.CompilerServices;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Directory.Infrastructure;
public static class MemoryCacheExtension
{
public static async IAsyncEnumerable<TResponse> GetOrCreateAsyncEnumerable<TResponse>(
this IMemoryCache cache,
object key,
ConfiguredCancelableAsyncEnumerable<TResponse> query,
MemoryCacheEntryOptions? options = null) where TResponse : class
{
if (cache.TryGetValue(key, out List<TResponse>? cachedElements))
{
foreach (var element in cachedElements ?? []) yield return element;
}
else
{
var elementsToCache = new List<TResponse>();
await foreach (var element in query)
{
elementsToCache.Add(element);
yield return element;
}
cache.Set(key, elementsToCache, options);
}
}
}

View file

@ -1,48 +0,0 @@
using FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
using Microsoft.EntityFrameworkCore;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
public sealed class QueryDbContext(DbContextOptions<QueryDbContext> options) : DbContext(options)
{
private const string ReadOnlyErrorMessage = "This context is read-only and cannot save changes.";
public IQueryable<FilterList> FilterLists => Set<FilterList>();
public IQueryable<Language> Languages => Set<Language>();
public IQueryable<License> Licenses => Set<License>();
public IQueryable<Maintainer> Maintainers => Set<Maintainer>();
public IQueryable<Software> Software => Set<Software>();
public IQueryable<Syntax> Syntaxes => Set<Syntax>();
public IQueryable<Tag> Tags => Set<Tag>();
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.UseCollation("Latin1_General_100_CI_AS_SC");
modelBuilder.ApplyConfigurationsFromAssembly(
GetType().Assembly,
type => type.Namespace == typeof(FilterListTypeConfiguration).Namespace);
}
public override int SaveChanges()
{
throw new InvalidOperationException(ReadOnlyErrorMessage);
}
public override int SaveChanges(bool acceptAllChangesOnSuccess)
{
throw new InvalidOperationException(ReadOnlyErrorMessage);
}
public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)
{
throw new InvalidOperationException(ReadOnlyErrorMessage);
}
public override Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess,
CancellationToken cancellationToken = default)
{
throw new InvalidOperationException(ReadOnlyErrorMessage);
}
}

View file

@ -1,28 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Dependent
{
public int DependencyFilterListId { get; init; }
public FilterList DependencyFilterList { get; init; } = null!;
public int DependentFilterListId { get; init; }
public FilterList DependentFilterList { get; init; } = null!;
}
internal sealed class DependentTypeConfiguration : IEntityTypeConfiguration<Dependent>
{
public void Configure(EntityTypeBuilder<Dependent> builder)
{
builder.HasKey(d => new { d.DependencyFilterListId, d.DependentFilterListId });
builder.HasOne(d => d.DependencyFilterList)
.WithMany(fl => fl.DependentFilterLists)
.HasForeignKey(d => d.DependencyFilterListId);
builder.HasOne(d => d.DependentFilterList)
.WithMany(fl => fl.DependencyFilterLists)
.HasForeignKey(d => d.DependentFilterListId)
.OnDelete(DeleteBehavior.NoAction);
builder.HasDataJsonFile<Dependent>();
}
}

View file

@ -1,82 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record FilterList
{
public int Id { get; init; }
public string Name { get; init; } = null!;
public string? Description { get; init; }
public int LicenseId { get; init; }
public License License { get; init; } = null!;
public IEnumerable<FilterListSyntax> FilterListSyntaxes { get; init; } = new List<FilterListSyntax>();
public IEnumerable<FilterListLanguage> FilterListLanguages { get; init; } = new List<FilterListLanguage>();
public IEnumerable<FilterListTag> FilterListTags { get; init; } = new List<FilterListTag>();
public IEnumerable<FilterListViewUrl> ViewUrls { get; init; } = new List<FilterListViewUrl>();
public Uri? HomeUrl { get; init; }
public Uri? OnionUrl { get; init; }
public Uri? PolicyUrl { get; init; }
public Uri? SubmissionUrl { get; init; }
public Uri? IssuesUrl { get; init; }
public Uri? ForumUrl { get; init; }
public Uri? ChatUrl { get; init; }
public string? EmailAddress { get; init; }
public Uri? DonateUrl { get; init; }
public IEnumerable<FilterListMaintainer> FilterListMaintainers { get; init; } = new List<FilterListMaintainer>();
public IEnumerable<Fork> UpstreamFilterLists { get; init; } = new List<Fork>();
public IEnumerable<Fork> ForkFilterLists { get; init; } = new List<Fork>();
public IEnumerable<Merge> IncludedInFilterLists { get; init; } = new List<Merge>();
public IEnumerable<Merge> IncludesFilterLists { get; init; } = new List<Merge>();
public IEnumerable<Dependent> DependencyFilterLists { get; init; } = new List<Dependent>();
public IEnumerable<Dependent> DependentFilterLists { get; init; } = new List<Dependent>();
}
internal sealed class FilterListTypeConfiguration : IEntityTypeConfiguration<FilterList>
{
public void Configure(EntityTypeBuilder<FilterList> builder)
{
builder.Property(f => f.Name)
.HasMaxLength(256);
builder.HasIndex(f => f.Name)
.IsUnique();
builder.Property(f => f.LicenseId)
.HasDefaultValue(5);
builder.HasOne(f => f.License)
.WithMany(l => l.FilterLists)
.OnDelete(DeleteBehavior.Restrict);
builder.Property(f => f.HomeUrl)
.HasMaxLength(512);
builder.Property(f => f.OnionUrl)
.HasMaxLength(512);
builder.Property(f => f.PolicyUrl)
.HasMaxLength(512);
builder.Property(f => f.SubmissionUrl)
.HasMaxLength(512);
builder.Property(f => f.IssuesUrl)
.HasMaxLength(512);
builder.Property(f => f.ForumUrl)
.HasMaxLength(512);
builder.Property(f => f.ChatUrl)
.HasMaxLength(512);
builder.Property(f => f.EmailAddress)
.HasMaxLength(256);
builder.Property(f => f.DonateUrl)
.HasMaxLength(512);
builder.OwnsMany(
f => f.ViewUrls,
b =>
{
b.Property(u => u.SegmentNumber)
.HasDefaultValue(1);
b.Property(u => u.Primariness)
.HasDefaultValue(1);
b.Property(u => u.Url)
.HasMaxLength(512);
b.HasIndex(u => new { u.FilterListId, u.SegmentNumber, u.Primariness })
.IsUnique();
b.HasDataJsonFile<FilterListViewUrl>();
});
builder.HasDataJsonFile<FilterList>();
}
}

View file

@ -1,21 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record FilterListLanguage
{
public int FilterListId { get; init; }
public FilterList FilterList { get; init; } = null!;
public short LanguageId { get; init; }
public Language Language { get; init; } = null!;
}
internal sealed class FilterListLanguageTypeConfiguration : IEntityTypeConfiguration<FilterListLanguage>
{
public void Configure(EntityTypeBuilder<FilterListLanguage> builder)
{
builder.HasKey(fll => new { fll.FilterListId, fll.LanguageId });
builder.HasDataJsonFile<FilterListLanguage>();
}
}

View file

@ -1,21 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record FilterListMaintainer
{
public int FilterListId { get; init; }
public FilterList FilterList { get; init; } = null!;
public int MaintainerId { get; init; }
public Maintainer Maintainer { get; init; } = null!;
}
internal sealed class FilterListMaintainerTypeConfiguration : IEntityTypeConfiguration<FilterListMaintainer>
{
public void Configure(EntityTypeBuilder<FilterListMaintainer> builder)
{
builder.HasKey(flm => new { flm.FilterListId, flm.MaintainerId });
builder.HasDataJsonFile<FilterListMaintainer>();
}
}

View file

@ -1,21 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record FilterListSyntax
{
public int FilterListId { get; init; }
public FilterList FilterList { get; init; } = null!;
public short SyntaxId { get; init; }
public Syntax Syntax { get; init; } = null!;
}
internal sealed class FilterListSyntaxTypeConfiguration : IEntityTypeConfiguration<FilterListSyntax>
{
public void Configure(EntityTypeBuilder<FilterListSyntax> builder)
{
builder.HasKey(fls => new { fls.FilterListId, fls.SyntaxId });
builder.HasDataJsonFile<FilterListSyntax>();
}
}

View file

@ -1,21 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record FilterListTag
{
public int FilterListId { get; init; }
public FilterList FilterList { get; init; } = null!;
public int TagId { get; init; }
public Tag Tag { get; init; } = null!;
}
internal sealed class FilterListTagTypeConfiguration : IEntityTypeConfiguration<FilterListTag>
{
public void Configure(EntityTypeBuilder<FilterListTag> builder)
{
builder.HasKey(flt => new { flt.FilterListId, flt.TagId });
builder.HasDataJsonFile<FilterListTag>();
}
}

View file

@ -1,14 +0,0 @@
using JetBrains.Annotations;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
[PublicAPI]
public sealed record FilterListViewUrl
{
public int Id { get; init; }
public int FilterListId { get; init; }
public FilterList FilterList { get; init; } = null!;
public short SegmentNumber { get; init; }
public short Primariness { get; init; }
public Uri Url { get; init; } = null!;
}

View file

@ -1,28 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Fork
{
public int UpstreamFilterListId { get; init; }
public FilterList UpstreamFilterList { get; init; } = null!;
public int ForkFilterListId { get; init; }
public FilterList ForkFilterList { get; init; } = null!;
}
internal sealed class ForkTypeConfiguration : IEntityTypeConfiguration<Fork>
{
public void Configure(EntityTypeBuilder<Fork> builder)
{
builder.HasKey(f => new { f.UpstreamFilterListId, f.ForkFilterListId });
builder.HasOne(f => f.UpstreamFilterList)
.WithMany(fl => fl.ForkFilterLists)
.HasForeignKey(f => f.UpstreamFilterListId);
builder.HasOne(f => f.ForkFilterList)
.WithMany(fl => fl.UpstreamFilterLists)
.HasForeignKey(f => f.ForkFilterListId)
.OnDelete(DeleteBehavior.NoAction);
builder.HasDataJsonFile<Fork>();
}
}

View file

@ -1,29 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Language
{
public short Id { get; init; }
public string Iso6391 { get; init; } = null!;
public string Name { get; init; } = null!;
public IEnumerable<FilterListLanguage> FilterListLanguages { get; init; } = new List<FilterListLanguage>();
}
internal sealed class LanguageTypeConfiguration : IEntityTypeConfiguration<Language>
{
public void Configure(EntityTypeBuilder<Language> builder)
{
builder.Property(l => l.Iso6391)
.IsFixedLength()
.HasMaxLength(2);
builder.HasIndex(l => l.Iso6391)
.IsUnique();
builder.Property(l => l.Name)
.HasMaxLength(64);
builder.HasIndex(l => l.Name)
.IsUnique();
builder.HasDataJsonFile<Language>();
}
}

View file

@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record License
{
public int Id { get; init; }
public string Name { get; init; } = null!;
public Uri? Url { get; init; }
public bool PermitsModification { get; init; }
public bool PermitsDistribution { get; init; }
public bool PermitsCommercialUse { get; init; }
public IEnumerable<FilterList> FilterLists { get; init; } = new List<FilterList>();
}
internal sealed class LicenseTypeConfiguration : IEntityTypeConfiguration<License>
{
public void Configure(EntityTypeBuilder<License> builder)
{
builder.Property(l => l.Name)
.HasMaxLength(64);
builder.HasIndex(l => l.Name)
.IsUnique();
builder.Property(l => l.Url)
.HasMaxLength(512);
builder.Property(l => l.PermitsModification)
.HasDefaultValue(false);
builder.Property(l => l.PermitsDistribution)
.HasDefaultValue(false);
builder.Property(l => l.PermitsCommercialUse)
.HasDefaultValue(false);
builder.HasDataJsonFile<License>();
}
}

View file

@ -1,32 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Maintainer
{
public int Id { get; init; }
public string Name { get; init; } = null!;
public Uri? Url { get; init; }
public string? EmailAddress { get; init; }
public string? TwitterHandle { get; init; }
public IEnumerable<FilterListMaintainer> FilterListMaintainers { get; init; } = new List<FilterListMaintainer>();
}
internal sealed class MaintainerTypeConfiguration : IEntityTypeConfiguration<Maintainer>
{
public void Configure(EntityTypeBuilder<Maintainer> builder)
{
builder.Property(m => m.Name)
.HasMaxLength(64);
builder.HasIndex(m => m.Name)
.IsUnique();
builder.Property(m => m.Url)
.HasMaxLength(512);
builder.Property(m => m.EmailAddress)
.HasMaxLength(256);
builder.Property(m => m.TwitterHandle)
.HasMaxLength(32);
builder.HasDataJsonFile<Maintainer>();
}
}

View file

@ -1,28 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Merge
{
public int IncludedInFilterListId { get; init; }
public FilterList IncludedInFilterList { get; init; } = null!;
public int IncludesFilterListId { get; init; }
public FilterList IncludesFilterList { get; init; } = null!;
}
internal sealed class MergeTypeConfiguration : IEntityTypeConfiguration<Merge>
{
public void Configure(EntityTypeBuilder<Merge> builder)
{
builder.HasKey(m => new { m.IncludedInFilterListId, m.IncludesFilterListId });
builder.HasOne(m => m.IncludedInFilterList)
.WithMany(fl => fl.IncludesFilterLists)
.HasForeignKey(m => m.IncludedInFilterListId);
builder.HasOne(m => m.IncludesFilterList)
.WithMany(fl => fl.IncludedInFilterLists)
.HasForeignKey(m => m.IncludesFilterListId)
.OnDelete(DeleteBehavior.NoAction);
builder.HasDataJsonFile<Merge>();
}
}

View file

@ -1,33 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Software
{
public short Id { get; init; }
public string Name { get; init; } = null!;
public string? Description { get; init; }
public Uri? HomeUrl { get; init; }
public Uri? DownloadUrl { get; init; }
public bool SupportsAbpUrlScheme { get; init; }
public IEnumerable<SoftwareSyntax> SoftwareSyntaxes { get; init; } = new List<SoftwareSyntax>();
}
internal sealed class SoftwareTypeConfiguration : IEntityTypeConfiguration<Software>
{
public void Configure(EntityTypeBuilder<Software> builder)
{
builder.Property(s => s.Name)
.HasMaxLength(64);
builder.HasIndex(s => s.Name)
.IsUnique();
builder.Property(s => s.HomeUrl)
.HasMaxLength(512);
builder.Property(s => s.DownloadUrl)
.HasMaxLength(512);
builder.Property(s => s.SupportsAbpUrlScheme)
.HasDefaultValue(false);
builder.HasDataJsonFile<Software>();
}
}

View file

@ -1,21 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record SoftwareSyntax
{
public short SoftwareId { get; init; }
public Software Software { get; init; } = null!;
public short SyntaxId { get; init; }
public Syntax Syntax { get; init; } = null!;
}
internal sealed class SoftwareSyntaxTypeConfiguration : IEntityTypeConfiguration<SoftwareSyntax>
{
public void Configure(EntityTypeBuilder<SoftwareSyntax> builder)
{
builder.HasKey(ss => new { ss.SoftwareId, ss.SyntaxId });
builder.HasDataJsonFile<SoftwareSyntax>();
}
}

View file

@ -1,28 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Syntax
{
public short Id { get; init; }
public string Name { get; init; } = null!;
public string? Description { get; init; }
public Uri? Url { get; init; }
public IEnumerable<FilterListSyntax> FilterListSyntaxes { get; init; } = new List<FilterListSyntax>();
public IEnumerable<SoftwareSyntax> SoftwareSyntaxes { get; init; } = new List<SoftwareSyntax>();
}
internal sealed class SyntaxTypeConfiguration : IEntityTypeConfiguration<Syntax>
{
public void Configure(EntityTypeBuilder<Syntax> builder)
{
builder.Property(s => s.Name)
.HasMaxLength(64);
builder.HasIndex(s => s.Name)
.IsUnique();
builder.Property(s => s.Url)
.HasMaxLength(512);
builder.HasDataJsonFile<Syntax>();
}
}

View file

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities;
public sealed record Tag
{
public int Id { get; init; }
public string Name { get; init; } = null!;
public string? Description { get; init; }
public IEnumerable<FilterListTag> FilterListTags { get; init; } = new List<FilterListTag>();
}
internal sealed class TagTypeConfiguration : IEntityTypeConfiguration<Tag>
{
public void Configure(EntityTypeBuilder<Tag> builder)
{
builder.Property(t => t.Name)
.HasMaxLength(32);
builder.HasIndex(t => t.Name)
.IsUnique();
builder.HasDataJsonFile<Tag>();
}
}

View file

@ -1,63 +0,0 @@
using System.Diagnostics;
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenTelemetry.Trace;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries;
public sealed class MigrationService(IServiceProvider serviceProvider) : IHostedLifecycleService
{
private static readonly ActivitySource ActivitySource = new(nameof(MigrationService));
public Task StartAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
public Task StopAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
public async Task StartingAsync(CancellationToken cancellationToken)
{
using var activity = ActivitySource.StartActivity();
try
{
using var scope = serviceProvider.CreateScope();
await using var dbContext = scope.ServiceProvider.GetRequiredService<QueryDbContext>();
var dbCreator = dbContext.GetService<IRelationalDatabaseCreator>();
var strategy = dbContext.Database.CreateExecutionStrategy();
await strategy.ExecuteAsync(async () =>
{
if (!await dbCreator.ExistsAsync(cancellationToken)) await dbCreator.CreateAsync(cancellationToken);
});
await dbContext.Database.MigrateAsync(cancellationToken);
}
catch (Exception ex)
{
activity?.RecordException(ex);
throw;
}
}
public Task StartedAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
public Task StoppingAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
public Task StoppedAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
}

View file

@ -1,42 +0,0 @@
using System.Text.Json;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Directory.Infrastructure.Persistence.Queries;
internal static class SeedConfigurationExtensions
{
private static readonly JsonSerializerOptions CamelCaseJsonSerializerOptions =
new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
public static void HasDataJsonFile<TEntity>(this EntityTypeBuilder entityTypeBuilder) where TEntity : class
{
var entities = Deserialize<TEntity>();
if (entities.Count == 0) return;
entityTypeBuilder.HasData(entities);
}
public static void HasDataJsonFile<TEntity>(this OwnedNavigationBuilder ownedNavigationBuilder)
where TEntity : class
{
var entities = Deserialize<TEntity>();
if (entities.Count == 0) return;
ownedNavigationBuilder.HasData(entities);
}
private static List<TEntity> Deserialize<TEntity>()
{
// uncomment to short-circuit HasData() when adding a migration
// return new List<TEntity>();
var path = Path.Combine("../data", $"{typeof(TEntity).Name}.json");
if (!File.Exists(path)) return [];
var entitiesJson = File.ReadAllText(path);
var entities = JsonSerializer.Deserialize<IEnumerable<TEntity>>(
entitiesJson,
CamelCaseJsonSerializerOptions);
return entities is null ? [] : entities.ToList();
}
}

View file

@ -1,38 +0,0 @@
[
{
"dependencyFilterListId": 60,
"dependentFilterListId": 1816
},
{
"dependencyFilterListId": 97,
"dependentFilterListId": 819
},
{
"dependencyFilterListId": 97,
"dependentFilterListId": 852
},
{
"dependencyFilterListId": 97,
"dependentFilterListId": 853
},
{
"dependencyFilterListId": 224,
"dependentFilterListId": 2564
},
{
"dependencyFilterListId": 347,
"dependentFilterListId": 1817
},
{
"dependencyFilterListId": 2439,
"dependentFilterListId": 2440
},
{
"dependencyFilterListId": 2439,
"dependentFilterListId": 2441
},
{
"dependencyFilterListId": 2439,
"dependentFilterListId": 2442
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,54 +0,0 @@
[
{
"forkFilterListId": 350,
"upstreamFilterListId": 12
},
{
"forkFilterListId": 563,
"upstreamFilterListId": 16
},
{
"forkFilterListId": 16,
"upstreamFilterListId": 59
},
{
"forkFilterListId": 16,
"upstreamFilterListId": 99
},
{
"forkFilterListId": 158,
"upstreamFilterListId": 258
},
{
"forkFilterListId": 163,
"upstreamFilterListId": 262
},
{
"forkFilterListId": 16,
"upstreamFilterListId": 278
},
{
"forkFilterListId": 164,
"upstreamFilterListId": 293
},
{
"forkFilterListId": 167,
"upstreamFilterListId": 295
},
{
"forkFilterListId": 166,
"upstreamFilterListId": 301
},
{
"forkFilterListId": 565,
"upstreamFilterListId": 301
},
{
"forkFilterListId": 312,
"upstreamFilterListId": 311
},
{
"forkFilterListId": 313,
"upstreamFilterListId": 311
}
]

View file

@ -1,902 +0,0 @@
[
{
"id": 1,
"iso6391": "aa",
"name": "Afar"
},
{
"id": 2,
"iso6391": "ab",
"name": "Abkhaz"
},
{
"id": 3,
"iso6391": "ae",
"name": "Avestan"
},
{
"id": 4,
"iso6391": "af",
"name": "Afrikaans"
},
{
"id": 5,
"iso6391": "ak",
"name": "Akan"
},
{
"id": 6,
"iso6391": "am",
"name": "Amharic"
},
{
"id": 7,
"iso6391": "an",
"name": "Aragonese"
},
{
"id": 8,
"iso6391": "ar",
"name": "Arabic"
},
{
"id": 9,
"iso6391": "as",
"name": "Assamese"
},
{
"id": 10,
"iso6391": "av",
"name": "Avaric"
},
{
"id": 11,
"iso6391": "ay",
"name": "Aymara"
},
{
"id": 12,
"iso6391": "az",
"name": "Azerbaijani"
},
{
"id": 13,
"iso6391": "ba",
"name": "Bashkir"
},
{
"id": 14,
"iso6391": "be",
"name": "Belarusian"
},
{
"id": 15,
"iso6391": "bg",
"name": "Bulgarian"
},
{
"id": 16,
"iso6391": "bh",
"name": "Bihari"
},
{
"id": 17,
"iso6391": "bi",
"name": "Bislama"
},
{
"id": 18,
"iso6391": "bm",
"name": "Bambara"
},
{
"id": 19,
"iso6391": "bn",
"name": "Bengali"
},
{
"id": 20,
"iso6391": "bo",
"name": "Tibetan Standard"
},
{
"id": 21,
"iso6391": "br",
"name": "Breton"
},
{
"id": 22,
"iso6391": "ca",
"name": "Catalan"
},
{
"id": 23,
"iso6391": "ce",
"name": "Chechen"
},
{
"id": 24,
"iso6391": "ch",
"name": "Chamorro"
},
{
"id": 25,
"iso6391": "co",
"name": "Corsican"
},
{
"id": 26,
"iso6391": "cr",
"name": "Cree"
},
{
"id": 27,
"iso6391": "cs",
"name": "Czech"
},
{
"id": 28,
"iso6391": "cu",
"name": "Old Church Slavonic"
},
{
"id": 29,
"iso6391": "cv",
"name": "Chuvash"
},
{
"id": 30,
"iso6391": "cy",
"name": "Welsh"
},
{
"id": 31,
"iso6391": "da",
"name": "Danish"
},
{
"id": 32,
"iso6391": "de",
"name": "German"
},
{
"id": 33,
"iso6391": "dv",
"name": "Divehi"
},
{
"id": 34,
"iso6391": "dz",
"name": "Dzongkha"
},
{
"id": 35,
"iso6391": "ee",
"name": "Ewe"
},
{
"id": 36,
"iso6391": "el",
"name": "Greek"
},
{
"id": 37,
"iso6391": "en",
"name": "English"
},
{
"id": 38,
"iso6391": "eo",
"name": "Esperanto"
},
{
"id": 39,
"iso6391": "es",
"name": "Spanish"
},
{
"id": 40,
"iso6391": "et",
"name": "Estonian"
},
{
"id": 41,
"iso6391": "eu",
"name": "Basque"
},
{
"id": 42,
"iso6391": "fa",
"name": "Persian"
},
{
"id": 43,
"iso6391": "ff",
"name": "Fula"
},
{
"id": 44,
"iso6391": "fi",
"name": "Finnish"
},
{
"id": 45,
"iso6391": "fj",
"name": "Fijian"
},
{
"id": 46,
"iso6391": "fo",
"name": "Faroese"
},
{
"id": 47,
"iso6391": "fr",
"name": "French"
},
{
"id": 48,
"iso6391": "fy",
"name": "Western Frisian"
},
{
"id": 49,
"iso6391": "ga",
"name": "Irish"
},
{
"id": 50,
"iso6391": "gd",
"name": "Scottish Gaelic"
},
{
"id": 51,
"iso6391": "gl",
"name": "Galician"
},
{
"id": 52,
"iso6391": "gn",
"name": "Guaraní"
},
{
"id": 53,
"iso6391": "gu",
"name": "Gujarati"
},
{
"id": 54,
"iso6391": "gv",
"name": "Manx"
},
{
"id": 55,
"iso6391": "ha",
"name": "Hausa"
},
{
"id": 56,
"iso6391": "he",
"name": "Hebrew"
},
{
"id": 57,
"iso6391": "hi",
"name": "Hindi"
},
{
"id": 58,
"iso6391": "ho",
"name": "Hiri Motu"
},
{
"id": 59,
"iso6391": "ht",
"name": "Haitian"
},
{
"id": 60,
"iso6391": "hu",
"name": "Hungarian"
},
{
"id": 61,
"iso6391": "hy",
"name": "Armenian"
},
{
"id": 62,
"iso6391": "hz",
"name": "Herero"
},
{
"id": 63,
"iso6391": "ia",
"name": "Interlingua"
},
{
"id": 64,
"iso6391": "id",
"name": "Indonesian"
},
{
"id": 65,
"iso6391": "ie",
"name": "Interlingue"
},
{
"id": 66,
"iso6391": "ig",
"name": "Igbo"
},
{
"id": 67,
"iso6391": "ii",
"name": "Nuosu"
},
{
"id": 68,
"iso6391": "ik",
"name": "Inupiaq"
},
{
"id": 69,
"iso6391": "io",
"name": "Ido"
},
{
"id": 70,
"iso6391": "is",
"name": "Icelandic"
},
{
"id": 71,
"iso6391": "it",
"name": "Italian"
},
{
"id": 72,
"iso6391": "iu",
"name": "Inuktitut"
},
{
"id": 73,
"iso6391": "ja",
"name": "Japanese"
},
{
"id": 74,
"iso6391": "jv",
"name": "Javanese"
},
{
"id": 75,
"iso6391": "ka",
"name": "Georgian"
},
{
"id": 76,
"iso6391": "kg",
"name": "Kongo"
},
{
"id": 77,
"iso6391": "ki",
"name": "Kikuyu"
},
{
"id": 78,
"iso6391": "kj",
"name": "Kwanyama"
},
{
"id": 79,
"iso6391": "kk",
"name": "Kazakh"
},
{
"id": 80,
"iso6391": "kl",
"name": "Kalaallisut"
},
{
"id": 81,
"iso6391": "km",
"name": "Khmer"
},
{
"id": 82,
"iso6391": "kn",
"name": "Kannada"
},
{
"id": 83,
"iso6391": "ko",
"name": "Korean"
},
{
"id": 84,
"iso6391": "kr",
"name": "Kanuri"
},
{
"id": 85,
"iso6391": "ks",
"name": "Kashmiri"
},
{
"id": 86,
"iso6391": "ku",
"name": "Kurdish"
},
{
"id": 87,
"iso6391": "kv",
"name": "Komi"
},
{
"id": 88,
"iso6391": "kw",
"name": "Cornish"
},
{
"id": 89,
"iso6391": "ky",
"name": "Kyrgyz"
},
{
"id": 90,
"iso6391": "la",
"name": "Latin"
},
{
"id": 91,
"iso6391": "lb",
"name": "Luxembourgish"
},
{
"id": 92,
"iso6391": "lg",
"name": "Ganda"
},
{
"id": 93,
"iso6391": "li",
"name": "Limburgish"
},
{
"id": 94,
"iso6391": "ln",
"name": "Lingala"
},
{
"id": 95,
"iso6391": "lo",
"name": "Lao"
},
{
"id": 96,
"iso6391": "lt",
"name": "Lithuanian"
},
{
"id": 97,
"iso6391": "lu",
"name": "Luba-Katanga"
},
{
"id": 98,
"iso6391": "lv",
"name": "Latvian"
},
{
"id": 99,
"iso6391": "mg",
"name": "Malagasy"
},
{
"id": 100,
"iso6391": "mh",
"name": "Marshallese"
},
{
"id": 101,
"iso6391": "mi",
"name": "Māori"
},
{
"id": 102,
"iso6391": "mk",
"name": "Macedonian"
},
{
"id": 103,
"iso6391": "ml",
"name": "Malayalam"
},
{
"id": 104,
"iso6391": "mn",
"name": "Mongolian"
},
{
"id": 105,
"iso6391": "mr",
"name": "Marathi"
},
{
"id": 106,
"iso6391": "ms",
"name": "Malay"
},
{
"id": 107,
"iso6391": "mt",
"name": "Maltese"
},
{
"id": 108,
"iso6391": "my",
"name": "Burmese"
},
{
"id": 109,
"iso6391": "na",
"name": "Nauru"
},
{
"id": 110,
"iso6391": "nd",
"name": "Northern Ndebele"
},
{
"id": 111,
"iso6391": "ne",
"name": "Nepali"
},
{
"id": 112,
"iso6391": "ng",
"name": "Ndonga"
},
{
"id": 113,
"iso6391": "nl",
"name": "Dutch"
},
{
"id": 114,
"iso6391": "no",
"name": "Norwegian"
},
{
"id": 115,
"iso6391": "nr",
"name": "Southern Ndebele"
},
{
"id": 116,
"iso6391": "nv",
"name": "Navajo"
},
{
"id": 117,
"iso6391": "ny",
"name": "Chichewa"
},
{
"id": 118,
"iso6391": "oc",
"name": "Occitan"
},
{
"id": 119,
"iso6391": "oj",
"name": "Ojibwe"
},
{
"id": 120,
"iso6391": "om",
"name": "Oromo"
},
{
"id": 121,
"iso6391": "or",
"name": "Oriya"
},
{
"id": 122,
"iso6391": "os",
"name": "Ossetian"
},
{
"id": 123,
"iso6391": "pa",
"name": "Panjabi"
},
{
"id": 124,
"iso6391": "pi",
"name": "Pāli"
},
{
"id": 125,
"iso6391": "pl",
"name": "Polish"
},
{
"id": 126,
"iso6391": "ps",
"name": "Pashto"
},
{
"id": 127,
"iso6391": "pt",
"name": "Portuguese"
},
{
"id": 128,
"iso6391": "qu",
"name": "Quechua"
},
{
"id": 129,
"iso6391": "rm",
"name": "Romansh"
},
{
"id": 130,
"iso6391": "rn",
"name": "Kirundi"
},
{
"id": 131,
"iso6391": "ro",
"name": "Romanian"
},
{
"id": 132,
"iso6391": "ru",
"name": "Russian"
},
{
"id": 133,
"iso6391": "rw",
"name": "Kinyarwanda"
},
{
"id": 134,
"iso6391": "sa",
"name": "Sanskrit"
},
{
"id": 135,
"iso6391": "sc",
"name": "Sardinian"
},
{
"id": 136,
"iso6391": "sd",
"name": "Sindhi"
},
{
"id": 137,
"iso6391": "se",
"name": "Northern Sami"
},
{
"id": 138,
"iso6391": "sg",
"name": "Sango"
},
{
"id": 139,
"iso6391": "sh",
"name": "Serbo-Croatian"
},
{
"id": 140,
"iso6391": "si",
"name": "Sinhala"
},
{
"id": 141,
"iso6391": "sk",
"name": "Slovak"
},
{
"id": 142,
"iso6391": "sl",
"name": "Slovene"
},
{
"id": 143,
"iso6391": "sm",
"name": "Samoan"
},
{
"id": 144,
"iso6391": "sn",
"name": "Shona"
},
{
"id": 145,
"iso6391": "so",
"name": "Somali"
},
{
"id": 146,
"iso6391": "sq",
"name": "Albanian"
},
{
"id": 147,
"iso6391": "ss",
"name": "Swati"
},
{
"id": 148,
"iso6391": "st",
"name": "Southern Sotho"
},
{
"id": 149,
"iso6391": "su",
"name": "Sundanese"
},
{
"id": 150,
"iso6391": "sv",
"name": "Swedish"
},
{
"id": 151,
"iso6391": "sw",
"name": "Swahili"
},
{
"id": 152,
"iso6391": "ta",
"name": "Tamil"
},
{
"id": 153,
"iso6391": "te",
"name": "Telugu"
},
{
"id": 154,
"iso6391": "tg",
"name": "Tajik"
},
{
"id": 155,
"iso6391": "th",
"name": "Thai"
},
{
"id": 156,
"iso6391": "ti",
"name": "Tigrinya"
},
{
"id": 157,
"iso6391": "tk",
"name": "Turkmen"
},
{
"id": 158,
"iso6391": "tl",
"name": "Tagalog"
},
{
"id": 159,
"iso6391": "tn",
"name": "Tswana"
},
{
"id": 160,
"iso6391": "to",
"name": "Tonga"
},
{
"id": 161,
"iso6391": "tr",
"name": "Turkish"
},
{
"id": 162,
"iso6391": "ts",
"name": "Tsonga"
},
{
"id": 163,
"iso6391": "tt",
"name": "Tatar"
},
{
"id": 164,
"iso6391": "tw",
"name": "Twi"
},
{
"id": 165,
"iso6391": "ty",
"name": "Tahitian"
},
{
"id": 166,
"iso6391": "ug",
"name": "Uyghur"
},
{
"id": 167,
"iso6391": "uk",
"name": "Ukrainian"
},
{
"id": 168,
"iso6391": "ur",
"name": "Urdu"
},
{
"id": 169,
"iso6391": "uz",
"name": "Uzbek"
},
{
"id": 170,
"iso6391": "ve",
"name": "Venda"
},
{
"id": 171,
"iso6391": "vi",
"name": "Vietnamese"
},
{
"id": 172,
"iso6391": "vo",
"name": "Volapük"
},
{
"id": 173,
"iso6391": "wa",
"name": "Walloon"
},
{
"id": 174,
"iso6391": "wo",
"name": "Wolof"
},
{
"id": 175,
"iso6391": "xh",
"name": "Xhosa"
},
{
"id": 176,
"iso6391": "yi",
"name": "Yiddish"
},
{
"id": 177,
"iso6391": "yo",
"name": "Yoruba"
},
{
"id": 178,
"iso6391": "za",
"name": "Zhuang"
},
{
"id": 179,
"iso6391": "zh",
"name": "Chinese"
},
{
"id": 180,
"iso6391": "zu",
"name": "Zulu"
}
]

View file

@ -1,348 +0,0 @@
[
{
"id": 1,
"name": "CC BY-NC-ND 4.0",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": false,
"url": "https://creativecommons.org/licenses/by-nc-nd/4.0/"
},
{
"id": 2,
"name": "The MIT License",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://opensource.org/licenses/MIT"
},
{
"id": 3,
"name": "Restricted",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": false
},
{
"id": 4,
"name": "GPLv3",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.gnu.org/licenses/gpl-3.0.en.html"
},
{
"id": 5,
"name": "All Rights Reserved",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": false,
"url": "https://en.wikipedia.org/wiki/All_rights_reserved"
},
{
"id": 6,
"name": "CC BY-NC-SA 3.0",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-nc-sa/3.0/"
},
{
"id": 7,
"name": "Permissive",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true
},
{
"id": 8,
"name": "CC BY-SA 4.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-sa/4.0/"
},
{
"id": 9,
"name": "CC BY-NC-SA 4.0",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-nc-sa/4.0/"
},
{
"id": 10,
"name": "BSD-3-Clause",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://opensource.org/licenses/BSD-3-Clause"
},
{
"id": 11,
"name": "The Unlicense",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://unlicense.org/"
},
{
"id": 12,
"name": "CC BY-SA 3.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-sa/3.0/"
},
{
"id": 13,
"name": "CC BY-NC 4.0",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-nc/4.0/"
},
{
"id": 14,
"name": "WTFPL",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "http://www.wtfpl.net/"
},
{
"id": 15,
"name": "CC BY-ND 4.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": false,
"url": "https://creativecommons.org/licenses/by-nd/4.0/"
},
{
"id": 16,
"name": "CC BY 3.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by/3.0/"
},
{
"id": 17,
"name": "ISC",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://opensource.org/licenses/ISC"
},
{
"id": 18,
"name": "Apache 2.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.apache.org/licenses/LICENSE-2.0"
},
{
"id": 19,
"name": "GPLv2",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
},
{
"id": 20,
"name": "Public Domain",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true
},
{
"id": 21,
"name": "OSINT",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://osint.bambenekconsulting.com/license.txt"
},
{
"id": 22,
"name": "GoogleHosts",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": false,
"url": "https://raw.githubusercontent.com/googlehosts/hosts/master/LICENSE"
},
{
"id": 23,
"name": "\"Don't Be A Dick\" Public License",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://dbad-license.org/"
},
{
"id": 24,
"name": "CC BY 4.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by/4.0/"
},
{
"id": 25,
"name": "CC BY-NC-SA 2.5",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-nc-sa/2.5/"
},
{
"id": 26,
"name": "CC BY-NC-ND 3.0",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": false,
"url": "https://creativecommons.org/licenses/by-nc-nd/3.0/"
},
{
"id": 27,
"name": "BSD-2-Clause",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://opensource.org/licenses/BSD-2-Clause"
},
{
"id": 28,
"name": "CC0 1.0 Universal",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/publicdomain/zero/1.0/"
},
{
"id": 29,
"name": "The Beer-Ware License",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://spdx.org/licenses/Beerware.html"
},
{
"id": 30,
"name": "CC BY-SA 2.1 JP",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en"
},
{
"id": 31,
"name": "CC BY-NC 3.0",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://creativecommons.org/licenses/by-nc/3.0/"
},
{
"id": 32,
"name": "Permissive non-commercial",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true
},
{
"id": 33,
"name": "Mozilla Public License v2.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.mozilla.org/MPL/2.0/"
},
{
"id": 34,
"name": "Lesser GPL v3",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.gnu.org/licenses/lgpl-3.0.en.html"
},
{
"id": 35,
"name": "Dandelicence",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://github.com/DandelionSprout/Dandelicence/blob/master/DandelicenceNewestVersion.md"
},
{
"id": 36,
"name": "CC BY-ND 3.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": false,
"url": "https://creativecommons.org/licenses/by-nd/3.0/"
},
{
"id": 37,
"name": "Lesser GPL v2.1",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html"
},
{
"id": 38,
"name": "Generic copyfree",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true
},
{
"id": 39,
"name": "Generic copyleft",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true
},
{
"id": 40,
"name": "McRae General Public License",
"permitsCommercialUse": false,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://pgl.yoyo.org/license/"
},
{
"id": 41,
"name": "AGPLv1",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://directory.fsf.org/wiki/License:AGPL-1.0"
},
{
"id": 42,
"name": "AGPLv2",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.vicidial.com/?page_id=260"
},
{
"id": 43,
"name": "AGPLv3",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://www.gnu.org/licenses/agpl-3.0.html"
},
{
"id": 44,
"name": "CPAL-1.0",
"permitsCommercialUse": true,
"permitsDistribution": false,
"permitsModification": true,
"url": "https://opensource.org/licenses/CPAL-1.0"
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,266 +0,0 @@
[
{
"includedInFilterListId": 11,
"includesFilterListId": 12
},
{
"includedInFilterListId": 11,
"includesFilterListId": 301
},
{
"includedInFilterListId": 13,
"includesFilterListId": 12
},
{
"includedInFilterListId": 13,
"includesFilterListId": 14
},
{
"includedInFilterListId": 13,
"includesFilterListId": 301
},
{
"includedInFilterListId": 168,
"includesFilterListId": 157
},
{
"includedInFilterListId": 168,
"includesFilterListId": 159
},
{
"includedInFilterListId": 168,
"includesFilterListId": 162
},
{
"includedInFilterListId": 168,
"includesFilterListId": 166
},
{
"includedInFilterListId": 168,
"includesFilterListId": 242
},
{
"includedInFilterListId": 168,
"includesFilterListId": 301
},
{
"includedInFilterListId": 255,
"includesFilterListId": 564
},
{
"includedInFilterListId": 265,
"includesFilterListId": 564
},
{
"includedInFilterListId": 266,
"includesFilterListId": 564
},
{
"includedInFilterListId": 274,
"includesFilterListId": 275
},
{
"includedInFilterListId": 309,
"includesFilterListId": 17
},
{
"includedInFilterListId": 309,
"includesFilterListId": 32
},
{
"includedInFilterListId": 309,
"includesFilterListId": 54
},
{
"includedInFilterListId": 309,
"includesFilterListId": 80
},
{
"includedInFilterListId": 309,
"includesFilterListId": 81
},
{
"includedInFilterListId": 309,
"includesFilterListId": 99
},
{
"includedInFilterListId": 309,
"includesFilterListId": 170
},
{
"includedInFilterListId": 309,
"includesFilterListId": 177
},
{
"includedInFilterListId": 309,
"includesFilterListId": 179
},
{
"includedInFilterListId": 309,
"includesFilterListId": 206
},
{
"includedInFilterListId": 309,
"includesFilterListId": 226
},
{
"includedInFilterListId": 309,
"includesFilterListId": 255
},
{
"includedInFilterListId": 309,
"includesFilterListId": 276
},
{
"includedInFilterListId": 309,
"includesFilterListId": 282
},
{
"includedInFilterListId": 309,
"includesFilterListId": 316
},
{
"includedInFilterListId": 309,
"includesFilterListId": 317
},
{
"includedInFilterListId": 309,
"includesFilterListId": 324
},
{
"includedInFilterListId": 309,
"includesFilterListId": 325
},
{
"includedInFilterListId": 309,
"includesFilterListId": 329
},
{
"includedInFilterListId": 309,
"includesFilterListId": 340
},
{
"includedInFilterListId": 331,
"includesFilterListId": 199
},
{
"includedInFilterListId": 331,
"includesFilterListId": 330
},
{
"includedInFilterListId": 331,
"includesFilterListId": 332
},
{
"includedInFilterListId": 331,
"includesFilterListId": 333
},
{
"includedInFilterListId": 371,
"includesFilterListId": 110
},
{
"includedInFilterListId": 371,
"includesFilterListId": 232
},
{
"includedInFilterListId": 375,
"includesFilterListId": 2
},
{
"includedInFilterListId": 375,
"includesFilterListId": 18
},
{
"includedInFilterListId": 375,
"includesFilterListId": 19
},
{
"includedInFilterListId": 375,
"includesFilterListId": 27
},
{
"includedInFilterListId": 375,
"includesFilterListId": 38
},
{
"includedInFilterListId": 375,
"includesFilterListId": 70
},
{
"includedInFilterListId": 375,
"includesFilterListId": 71
},
{
"includedInFilterListId": 375,
"includesFilterListId": 97
},
{
"includedInFilterListId": 375,
"includesFilterListId": 99
},
{
"includedInFilterListId": 375,
"includesFilterListId": 183
},
{
"includedInFilterListId": 375,
"includesFilterListId": 184
},
{
"includedInFilterListId": 375,
"includesFilterListId": 214
},
{
"includedInFilterListId": 375,
"includesFilterListId": 232
},
{
"includedInFilterListId": 375,
"includesFilterListId": 247
},
{
"includedInFilterListId": 375,
"includesFilterListId": 279
},
{
"includedInFilterListId": 375,
"includesFilterListId": 307
},
{
"includedInFilterListId": 566,
"includesFilterListId": 569
},
{
"includedInFilterListId": 566,
"includesFilterListId": 570
},
{
"includedInFilterListId": 566,
"includesFilterListId": 573
},
{
"includedInFilterListId": 566,
"includesFilterListId": 574
},
{
"includedInFilterListId": 566,
"includesFilterListId": 575
},
{
"includedInFilterListId": 566,
"includesFilterListId": 583
},
{
"includedInFilterListId": 566,
"includesFilterListId": 585
},
{
"includedInFilterListId": 566,
"includesFilterListId": 586
},
{
"includedInFilterListId": 2657,
"includesFilterListId": 2658
}
]

View file

@ -1,298 +0,0 @@
[
{
"downloadUrl": "https://github.com/gorhill/uBlock#installation",
"homeUrl": "https://github.com/gorhill/uBlock",
"id": 1,
"name": "uBlock Origin",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://adblockplus.org/",
"homeUrl": "https://adblockplus.org/",
"id": 2,
"name": "Adblock Plus",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://adguard.com/en/download.html",
"homeUrl": "https://adguard.com/",
"id": 3,
"name": "AdGuard (free versions)",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://f-droid.org/packages/org.jak_linux.dns66/",
"homeUrl": "https://github.com/julian-klode/dns66",
"id": 4,
"name": "DNS66",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://getadblock.com/",
"homeUrl": "https://getadblock.com/",
"id": 6,
"name": "AdBlock",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://f-droid.org/packages/org.adaway/",
"homeUrl": "https://adaway.org/",
"id": 7,
"name": "AdAway",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://addons.mozilla.org/firefox/addon/personal-blocklist/",
"homeUrl": "https://addons.mozilla.org/firefox/addon/personal-blocklist/",
"id": 8,
"name": "Personal Blocklist for Firefox",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://einaregilsson.com/redirector/",
"homeUrl": "https://einaregilsson.com/redirector/",
"id": 10,
"name": "Redirector",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/scottlerch/HostsFileEditor/releases",
"homeUrl": "https://hostsfileeditor.com/",
"id": 11,
"name": "Hosts File Editor",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/2ndalpha/gasmask/releases",
"homeUrl": "https://github.com/2ndalpha/gasmask",
"id": 12,
"name": "Gas Mask",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/xd4rker/MinerBlock/releases",
"homeUrl": "https://github.com/xd4rker/MinerBlock",
"id": 13,
"name": "MinerBlock",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://pi-hole.net/",
"homeUrl": "https://pi-hole.net/",
"id": 14,
"name": "Pi-hole",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://support.microsoft.com/en-gb/help/18520/download-internet-explorer-11-offline-installer",
"homeUrl": "https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/hh273399(v=vs.85)",
"id": 16,
"name": "Internet Explorer (TPL)",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://greasyfork.org/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites",
"homeUrl": "https://www.jeffersonscher.com/gm/google-hit-hider/",
"id": 17,
"name": "Google Hit Hider by Domain",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://firehol.org/installing/",
"homeUrl": "https://firehol.org/",
"id": 18,
"name": "FireHOL",
"supportsAbpUrlScheme": false
},
{
"homeUrl": "https://www.samsungknox.com",
"id": 19,
"name": "Samsung Knox",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://www.obdev.at/products/littlesnitch/download.html",
"homeUrl": "https://www.obdev.at/products/littlesnitch/index.html",
"id": 20,
"name": "Little Snitch",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://www.privoxy.org/sf-download-mirror/",
"homeUrl": "https://www.privoxy.org/",
"id": 21,
"name": "Privoxy",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://diversion.ch/diversion/installation.html",
"homeUrl": "https://diversion.ch/",
"id": 22,
"name": "Diversion",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "http://www.thekelleys.org.uk/dnsmasq/",
"homeUrl": "http://www.thekelleys.org.uk/dnsmasq/doc.html",
"id": 23,
"name": "dnsmasq",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/gorhill/uMatrix#umatrix",
"homeUrl": "https://github.com/gorhill/uMatrix",
"id": 25,
"name": "uMatrix",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://f-droid.org/packages/org.blokada.alarm/",
"homeUrl": "https://blokada.org",
"id": 26,
"name": "Blokada",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/henrypp/hostsmgr/releases",
"homeUrl": "https://www.henrypp.org/product/hostsmgr",
"id": 27,
"name": "hostsmgr",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://zenz-solutions.de/personaldnsfilter/",
"homeUrl": "https://zenz-solutions.de/personaldnsfilter/",
"id": 28,
"name": "personalDNSfilter",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://nlnetlabs.nl/projects/unbound/download/",
"homeUrl": "https://nlnetlabs.nl/projects/unbound/about/",
"id": 29,
"name": "Unbound",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://www.isc.org/bind/",
"homeUrl": "https://www.isc.org/bind/",
"id": 30,
"name": "BIND",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/AdguardTeam/AdGuardHome/releases",
"homeUrl": "https://github.com/AdguardTeam/AdGuardHome",
"id": 31,
"name": "AdGuard Home",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://adnauseam.io/",
"homeUrl": "https://adnauseam.io/",
"id": 32,
"name": "AdNauseam",
"supportsAbpUrlScheme": true
},
{
"id": 33,
"name": "Legacy Unix derivatives",
"supportsAbpUrlScheme": false
},
{
"id": 34,
"name": "Windows command line",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://shadowsocks.org/en/download/clients.html",
"homeUrl": "https://shadowsocks.org/en/index.html",
"id": 35,
"name": "Shadowsocks",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/shadowsocksrr/shadowsocksr-csharp/releases",
"homeUrl": "https://github.com/shadowsocksrr/shadowsocksr-csharp",
"id": 36,
"name": "ShadowsocksR",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://apps.apple.com/app/shadowrocket/id932747118",
"homeUrl": "https://liguangming.com/Shadowrocket",
"id": 37,
"name": "Shadowrocket",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/fengyc/URLRedirector/#urlredirector",
"homeUrl": "https://github.com/fengyc/URLRedirector/",
"id": 38,
"name": "URLRedirector",
"supportsAbpUrlScheme": false
},
{
"homeUrl": "https://www.reddit.com/r/pfBlockerNG/",
"id": 39,
"name": "pfBlockerNG",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://www.opera.com/",
"homeUrl": "https://www.opera.com/",
"id": 40,
"name": "Opera's built-in adblocker",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://nssurge.com/mac/v3/Surge-latest.zip",
"homeUrl": "https://nssurge.com/",
"id": 41,
"name": "Surge",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/DNSCrypt/dnscrypt-proxy/releases/latest",
"homeUrl": "https://github.com/DNSCrypt/dnscrypt-proxy",
"id": 42,
"name": "dnscrypt-proxy",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://github.com/pymumu/smartdns/releases",
"homeUrl": "https://github.com/pymumu/smartdns",
"id": 43,
"name": "SmartDNS",
"supportsAbpUrlScheme": false
},
{
"downloadUrl": "https://adguard.com/en/download.html",
"homeUrl": "https://adguard.com/",
"id": 44,
"name": "AdGuard for Windows/macOS",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://adguard.com/adguard-android/overview.html",
"homeUrl": "https://adguard.com/adguard-android/overview.html",
"id": 45,
"name": "AdGuard for Android",
"supportsAbpUrlScheme": true
},
{
"downloadUrl": "https://vivaldi.com/",
"homeUrl": "https://vivaldi.com/",
"id": 46,
"name": "Vivaldi's Privacy settings",
"supportsAbpUrlScheme": true
},
{
"description": "Automatically accepts cookie policy/GDPR on websites.",
"downloadUrl": "https://github.com/FiltersHeroes/PolishCookieConsent/#how-to-install-it",
"homeUrl": "https://github.com/FiltersHeroes/PolishCookieConsent",
"id": 47,
"name": "Polish Cookie Consent",
"supportsAbpUrlScheme": false
}
]

View file

@ -1,842 +0,0 @@
[
{
"softwareId": 1,
"syntaxId": 1
},
{
"softwareId": 1,
"syntaxId": 2
},
{
"softwareId": 1,
"syntaxId": 3
},
{
"softwareId": 1,
"syntaxId": 4
},
{
"softwareId": 1,
"syntaxId": 6
},
{
"softwareId": 1,
"syntaxId": 7
},
{
"softwareId": 1,
"syntaxId": 8
},
{
"softwareId": 1,
"syntaxId": 9
},
{
"softwareId": 1,
"syntaxId": 13
},
{
"softwareId": 1,
"syntaxId": 16
},
{
"softwareId": 1,
"syntaxId": 17
},
{
"softwareId": 1,
"syntaxId": 21
},
{
"softwareId": 1,
"syntaxId": 28
},
{
"softwareId": 1,
"syntaxId": 36
},
{
"softwareId": 1,
"syntaxId": 39
},
{
"softwareId": 1,
"syntaxId": 46
},
{
"softwareId": 1,
"syntaxId": 47
},
{
"softwareId": 1,
"syntaxId": 48
},
{
"softwareId": 1,
"syntaxId": 53
},
{
"softwareId": 1,
"syntaxId": 54
},
{
"softwareId": 2,
"syntaxId": 3
},
{
"softwareId": 2,
"syntaxId": 28
},
{
"softwareId": 2,
"syntaxId": 38
},
{
"softwareId": 2,
"syntaxId": 48
},
{
"softwareId": 3,
"syntaxId": 2
},
{
"softwareId": 3,
"syntaxId": 3
},
{
"softwareId": 3,
"syntaxId": 4
},
{
"softwareId": 3,
"syntaxId": 6
},
{
"softwareId": 3,
"syntaxId": 8
},
{
"softwareId": 3,
"syntaxId": 16
},
{
"softwareId": 3,
"syntaxId": 21
},
{
"softwareId": 3,
"syntaxId": 28
},
{
"softwareId": 3,
"syntaxId": 46
},
{
"softwareId": 3,
"syntaxId": 47
},
{
"softwareId": 3,
"syntaxId": 48
},
{
"softwareId": 4,
"syntaxId": 1
},
{
"softwareId": 4,
"syntaxId": 2
},
{
"softwareId": 4,
"syntaxId": 22
},
{
"softwareId": 4,
"syntaxId": 48
},
{
"softwareId": 4,
"syntaxId": 50
},
{
"softwareId": 6,
"syntaxId": 3
},
{
"softwareId": 6,
"syntaxId": 28
},
{
"softwareId": 6,
"syntaxId": 38
},
{
"softwareId": 6,
"syntaxId": 48
},
{
"softwareId": 7,
"syntaxId": 1
},
{
"softwareId": 7,
"syntaxId": 14
},
{
"softwareId": 7,
"syntaxId": 36
},
{
"softwareId": 7,
"syntaxId": 37
},
{
"softwareId": 7,
"syntaxId": 54
},
{
"softwareId": 8,
"syntaxId": 2
},
{
"softwareId": 8,
"syntaxId": 48
},
{
"softwareId": 10,
"syntaxId": 11
},
{
"softwareId": 11,
"syntaxId": 1
},
{
"softwareId": 11,
"syntaxId": 14
},
{
"softwareId": 11,
"syntaxId": 36
},
{
"softwareId": 11,
"syntaxId": 37
},
{
"softwareId": 11,
"syntaxId": 54
},
{
"softwareId": 12,
"syntaxId": 1
},
{
"softwareId": 12,
"syntaxId": 14
},
{
"softwareId": 12,
"syntaxId": 36
},
{
"softwareId": 12,
"syntaxId": 37
},
{
"softwareId": 12,
"syntaxId": 54
},
{
"softwareId": 13,
"syntaxId": 13
},
{
"softwareId": 14,
"syntaxId": 1
},
{
"softwareId": 14,
"syntaxId": 2
},
{
"softwareId": 14,
"syntaxId": 14
},
{
"softwareId": 14,
"syntaxId": 30
},
{
"softwareId": 14,
"syntaxId": 36
},
{
"softwareId": 14,
"syntaxId": 48
},
{
"softwareId": 14,
"syntaxId": 50
},
{
"softwareId": 16,
"syntaxId": 10
},
{
"softwareId": 17,
"syntaxId": 2
},
{
"softwareId": 17,
"syntaxId": 48
},
{
"softwareId": 18,
"syntaxId": 9
},
{
"softwareId": 18,
"syntaxId": 15
},
{
"softwareId": 18,
"syntaxId": 34
},
{
"softwareId": 18,
"syntaxId": 39
},
{
"softwareId": 18,
"syntaxId": 41
},
{
"softwareId": 19,
"syntaxId": 2
},
{
"softwareId": 19,
"syntaxId": 16
},
{
"softwareId": 19,
"syntaxId": 48
},
{
"softwareId": 20,
"syntaxId": 18
},
{
"softwareId": 21,
"syntaxId": 19
},
{
"softwareId": 22,
"syntaxId": 1
},
{
"softwareId": 22,
"syntaxId": 2
},
{
"softwareId": 22,
"syntaxId": 36
},
{
"softwareId": 22,
"syntaxId": 48
},
{
"softwareId": 23,
"syntaxId": 20
},
{
"softwareId": 25,
"syntaxId": 1
},
{
"softwareId": 25,
"syntaxId": 2
},
{
"softwareId": 25,
"syntaxId": 7
},
{
"softwareId": 25,
"syntaxId": 48
},
{
"softwareId": 25,
"syntaxId": 51
},
{
"softwareId": 26,
"syntaxId": 1
},
{
"softwareId": 26,
"syntaxId": 2
},
{
"softwareId": 26,
"syntaxId": 16
},
{
"softwareId": 26,
"syntaxId": 22
},
{
"softwareId": 26,
"syntaxId": 48
},
{
"softwareId": 26,
"syntaxId": 50
},
{
"softwareId": 27,
"syntaxId": 1
},
{
"softwareId": 27,
"syntaxId": 2
},
{
"softwareId": 27,
"syntaxId": 36
},
{
"softwareId": 27,
"syntaxId": 48
},
{
"softwareId": 27,
"syntaxId": 54
},
{
"softwareId": 28,
"syntaxId": 1
},
{
"softwareId": 28,
"syntaxId": 2
},
{
"softwareId": 28,
"syntaxId": 22
},
{
"softwareId": 28,
"syntaxId": 48
},
{
"softwareId": 28,
"syntaxId": 52
},
{
"softwareId": 29,
"syntaxId": 24
},
{
"softwareId": 30,
"syntaxId": 25
},
{
"softwareId": 30,
"syntaxId": 26
},
{
"softwareId": 31,
"syntaxId": 1
},
{
"softwareId": 31,
"syntaxId": 2
},
{
"softwareId": 31,
"syntaxId": 9
},
{
"softwareId": 31,
"syntaxId": 14
},
{
"softwareId": 31,
"syntaxId": 16
},
{
"softwareId": 31,
"syntaxId": 22
},
{
"softwareId": 31,
"syntaxId": 28
},
{
"softwareId": 31,
"syntaxId": 34
},
{
"softwareId": 31,
"syntaxId": 36
},
{
"softwareId": 31,
"syntaxId": 37
},
{
"softwareId": 31,
"syntaxId": 39
},
{
"softwareId": 31,
"syntaxId": 41
},
{
"softwareId": 31,
"syntaxId": 46
},
{
"softwareId": 31,
"syntaxId": 47
},
{
"softwareId": 31,
"syntaxId": 48
},
{
"softwareId": 31,
"syntaxId": 50
},
{
"softwareId": 32,
"syntaxId": 1
},
{
"softwareId": 32,
"syntaxId": 2
},
{
"softwareId": 32,
"syntaxId": 3
},
{
"softwareId": 32,
"syntaxId": 4
},
{
"softwareId": 32,
"syntaxId": 6
},
{
"softwareId": 32,
"syntaxId": 7
},
{
"softwareId": 32,
"syntaxId": 8
},
{
"softwareId": 32,
"syntaxId": 9
},
{
"softwareId": 32,
"syntaxId": 13
},
{
"softwareId": 32,
"syntaxId": 16
},
{
"softwareId": 32,
"syntaxId": 17
},
{
"softwareId": 32,
"syntaxId": 21
},
{
"softwareId": 32,
"syntaxId": 28
},
{
"softwareId": 32,
"syntaxId": 39
},
{
"softwareId": 32,
"syntaxId": 46
},
{
"softwareId": 32,
"syntaxId": 47
},
{
"softwareId": 32,
"syntaxId": 48
},
{
"softwareId": 32,
"syntaxId": 53
},
{
"softwareId": 33,
"syntaxId": 23
},
{
"softwareId": 34,
"syntaxId": 27
},
{
"softwareId": 34,
"syntaxId": 44
},
{
"softwareId": 35,
"syntaxId": 29
},
{
"softwareId": 36,
"syntaxId": 29
},
{
"softwareId": 37,
"syntaxId": 29
},
{
"softwareId": 38,
"syntaxId": 31
},
{
"softwareId": 39,
"syntaxId": 1
},
{
"softwareId": 39,
"syntaxId": 2
},
{
"softwareId": 39,
"syntaxId": 3
},
{
"softwareId": 39,
"syntaxId": 9
},
{
"softwareId": 39,
"syntaxId": 28
},
{
"softwareId": 39,
"syntaxId": 34
},
{
"softwareId": 39,
"syntaxId": 39
},
{
"softwareId": 39,
"syntaxId": 41
},
{
"softwareId": 39,
"syntaxId": 47
},
{
"softwareId": 39,
"syntaxId": 48
},
{
"softwareId": 40,
"syntaxId": 3
},
{
"softwareId": 40,
"syntaxId": 28
},
{
"softwareId": 40,
"syntaxId": 48
},
{
"softwareId": 41,
"syntaxId": 29
},
{
"softwareId": 42,
"syntaxId": 2
},
{
"softwareId": 42,
"syntaxId": 16
},
{
"softwareId": 42,
"syntaxId": 48
},
{
"softwareId": 43,
"syntaxId": 49
},
{
"softwareId": 44,
"syntaxId": 2
},
{
"softwareId": 44,
"syntaxId": 3
},
{
"softwareId": 44,
"syntaxId": 4
},
{
"softwareId": 44,
"syntaxId": 6
},
{
"softwareId": 44,
"syntaxId": 8
},
{
"softwareId": 44,
"syntaxId": 16
},
{
"softwareId": 44,
"syntaxId": 22
},
{
"softwareId": 44,
"syntaxId": 28
},
{
"softwareId": 44,
"syntaxId": 46
},
{
"softwareId": 44,
"syntaxId": 47
},
{
"softwareId": 44,
"syntaxId": 48
},
{
"softwareId": 44,
"syntaxId": 55
},
{
"softwareId": 45,
"syntaxId": 1
},
{
"softwareId": 45,
"syntaxId": 2
},
{
"softwareId": 45,
"syntaxId": 3
},
{
"softwareId": 45,
"syntaxId": 4
},
{
"softwareId": 45,
"syntaxId": 6
},
{
"softwareId": 45,
"syntaxId": 8
},
{
"softwareId": 45,
"syntaxId": 14
},
{
"softwareId": 45,
"syntaxId": 16
},
{
"softwareId": 45,
"syntaxId": 22
},
{
"softwareId": 45,
"syntaxId": 28
},
{
"softwareId": 45,
"syntaxId": 36
},
{
"softwareId": 45,
"syntaxId": 37
},
{
"softwareId": 45,
"syntaxId": 46
},
{
"softwareId": 45,
"syntaxId": 47
},
{
"softwareId": 45,
"syntaxId": 48
},
{
"softwareId": 45,
"syntaxId": 50
},
{
"softwareId": 45,
"syntaxId": 55
},
{
"softwareId": 46,
"syntaxId": 1
},
{
"softwareId": 46,
"syntaxId": 2
},
{
"softwareId": 46,
"syntaxId": 3
},
{
"softwareId": 46,
"syntaxId": 13
},
{
"softwareId": 46,
"syntaxId": 16
},
{
"softwareId": 46,
"syntaxId": 28
},
{
"softwareId": 46,
"syntaxId": 38
},
{
"softwareId": 46,
"syntaxId": 47
},
{
"softwareId": 46,
"syntaxId": 48
},
{
"softwareId": 47,
"syntaxId": 56
}
]

View file

@ -1,216 +0,0 @@
[
{
"id": 1,
"name": "Hosts (localhost IPv4)",
"url": "https://en.wikipedia.org/wiki/Hosts_(file)"
},
{
"id": 2,
"name": "Domains"
},
{
"id": 3,
"name": "Adblock Plus",
"url": "https://adblockplus.org/filters"
},
{
"id": 4,
"name": "uBlock Origin Static",
"url": "https://github.com/gorhill/uBlock/wiki/Static-filter-syntax"
},
{
"id": 6,
"name": "AdGuard",
"url": "https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters"
},
{
"id": 7,
"name": "uMatrix/uBO lined dynamic rules",
"url": "https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-quick-guide"
},
{
"id": 8,
"name": "URLs"
},
{
"id": 9,
"name": "IPs (IPv4)"
},
{
"id": 10,
"name": "Tracking Protection List (IE)",
"url": "https://blogs.msdn.microsoft.com/ie/2010/12/07/ie9-and-privacy-introducing-tracking-protection/"
},
{
"id": 11,
"name": "Redirector"
},
{
"id": 13,
"name": "MinerBlock",
"url": "https://github.com/xd4rker/MinerBlock"
},
{
"id": 14,
"name": "Non-localhost hosts (IPv4)",
"url": "https://en.wikipedia.org/wiki/Hosts_(file)"
},
{
"id": 15,
"name": "IPs (Start-end-range)"
},
{
"id": 16,
"name": "Domains with wildcards"
},
{
"id": 17,
"name": "uBlock Origin scriptlet injection",
"url": "https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#scriptlet-injection"
},
{
"id": 18,
"name": "Little Snitch subscription rules",
"url": "https://help.obdev.at/littlesnitch/lsc-rule-group-subscriptions"
},
{
"id": 19,
"name": "Privoxy action file",
"url": "https://www.privoxy.org/user-manual/actions-file.html"
},
{
"id": 20,
"name": "dnsmasq domains list"
},
{
"id": 21,
"name": "!#include compilation",
"url": "https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#include-file-name"
},
{
"id": 22,
"name": "DNS servers"
},
{
"id": 23,
"name": "Unix-format hosts.deny file"
},
{
"id": 24,
"name": "Unbound"
},
{
"id": 25,
"name": "Response Policy Zones (RPZ)"
},
{
"id": 26,
"name": "BIND"
},
{
"id": 27,
"name": "Windows command line script"
},
{
"id": 28,
"name": "Adblocker-syntax domains",
"url": "https://help.eyeo.com/en/adblockplus/how-to-write-filters#basic"
},
{
"id": 29,
"name": "Socks5"
},
{
"id": 30,
"name": "Pi-hole RegEx",
"url": "https://docs.pi-hole.net/ftldns/regex/tutorial/"
},
{
"id": 31,
"name": "URLRedirector"
},
{
"id": 34,
"name": "CIDRs (IPv4)"
},
{
"id": 36,
"name": "Hosts (localhost IPv6)",
"url": "https://en.wikipedia.org/wiki/Hosts_(file)"
},
{
"id": 37,
"name": "Non-localhost hosts (IPv6)",
"url": "https://en.wikipedia.org/wiki/Hosts_(file)"
},
{
"id": 38,
"name": "Adblock Plus Advanced"
},
{
"id": 39,
"name": "IPs (IPv6)"
},
{
"id": 41,
"name": "CIDRs (IPv6)"
},
{
"id": 44,
"name": "PowerShell PKG file"
},
{
"id": 46,
"name": "''$important''/''$empty'' only"
},
{
"id": 47,
"name": "Adblocker-syntax domains w/o ABP tag"
},
{
"id": 48,
"name": "Domains with ABP tag"
},
{
"id": 49,
"name": "SmartDNS"
},
{
"id": 50,
"name": "Domains for whitelisting"
},
{
"id": 51,
"name": "uMatrix ruleset recipe",
"url": "https://github.com/gorhill/uMatrix/wiki/Ruleset-recipes"
},
{
"id": 52,
"name": "personalDNSfilter whitelisting"
},
{
"id": 53,
"name": "uBO lined dynamic rules w/ noop",
"url": "https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-quick-guide"
},
{
"id": 54,
"name": "Hosts (0)",
"url": "https://en.wikipedia.org/wiki/Hosts_(file)"
},
{
"id": 55,
"name": "AdGuard Superadvanced only",
"url": "https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters"
},
{
"id": 56,
"name": "Polish Cookie Consent",
"url": "https://polishannoyancefilters.netlify.app/en/PolishCookieConsent/syntax/"
},
{
"id": 57,
"name": "CSV",
"url": "https://en.wikipedia.org/wiki/Comma-separated_values"
}
]

View file

@ -1,207 +0,0 @@
[
{
"description": "Blocks cryptomining and/or cryptojacking",
"id": 1,
"name": "crypto"
},
{
"description": "Blocks advertisements",
"id": 2,
"name": "ads"
},
{
"description": "Blocks trackers and other privacy-invasive resources",
"id": 3,
"name": "privacy"
},
{
"description": "Blocks social media scripts, trackers, widgets, comment sections, etc.",
"id": 4,
"name": "social"
},
{
"description": "Blocks adblock detection scripts",
"id": 5,
"name": "anti-adblock"
},
{
"description": "Blocks malicious resources",
"id": 6,
"name": "malware"
},
{
"description": "Blocks phishing and/or scam resources",
"id": 7,
"name": "phishing"
},
{
"description": "Blocks cookie notices primarily in response to the EU Cookie Law and GDPR",
"id": 8,
"name": "cookies"
},
{
"description": "Blocks subjectively annoying resources",
"id": 9,
"name": "annoyances"
},
{
"description": "Unblocks categorical resources",
"id": 10,
"name": "allowlist"
},
{
"description": "Blocks adult, NSFW, pornographic, etc. resources",
"id": 11,
"name": "nsfw"
},
{
"description": "Redirects traffic through proxies to get around firewalls or service shutdowns",
"id": 12,
"name": "proxy"
},
{
"description": "Extends or blocks functionality from search engines",
"id": 13,
"name": "search"
},
{
"description": "Intended for research only",
"id": 14,
"name": "research"
},
{
"description": "Blocks specific topics/things",
"id": 15,
"name": "topical"
},
{
"description": "Removes obstructing or annoying overlays",
"id": 16,
"name": "overlay"
},
{
"description": "Blocks gambling resources",
"id": 17,
"name": "gambling"
},
{
"description": "Removes website-embedded fonts",
"id": 18,
"name": "fonts"
},
{
"description": "Blocks resources from certain companies",
"id": 19,
"name": "anti-corp"
},
{
"description": "Lists that are of special interest to IT admins",
"id": 20,
"name": "admin"
},
{
"description": "Lists that remove news stories of subjectively low quality",
"id": 21,
"name": "clickbait"
},
{
"description": "Blocks religious or superstitious content",
"id": 22,
"name": "religious"
},
{
"description": "Blocks pages from link-shortening services",
"id": 23,
"name": "shorteners"
},
{
"description": "Blocks piracy-focusing sites",
"id": 24,
"name": "piracy"
},
{
"description": "Blocks political content",
"id": 25,
"name": "politics"
},
{
"description": "Blocks software updates",
"id": 26,
"name": "updates"
},
{
"description": "Userstyles in adblocker syntax that change the appearance of sites",
"id": 27,
"name": "userstyle"
},
{
"description": "Blocks requests that ask you to subscribe to newsletters",
"id": 28,
"name": "newsletters"
},
{
"description": "Prevents \"How can I help you?\" prompts from popping up",
"id": 29,
"name": "helpprompt"
},
{
"description": "Blocks certain cultural content",
"id": 30,
"name": "cultural"
},
{
"description": "Removes empty boxes that remain after other things were blocked",
"id": 31,
"name": "empty-box"
},
{
"description": "Blocks prompts to subscribe to push notifications",
"id": 32,
"name": "push-notes"
},
{
"description": "Blocks promotions of websites' own mobile apps",
"id": 33,
"name": "app-download"
},
{
"description": "Lists designed for units that are neither PCs or phones, e.g. TVs, game consoles, smart-sticks, etc.",
"id": 34,
"name": "media-unit"
},
{
"description": "Lists that deal with specific sites or site groups only, without blocking them entirely",
"id": 35,
"name": "site-specific"
},
{
"description": "Lists known to be so big as to begin to cause loading/processing issues on weaker units, e.g. old phones",
"id": 36,
"name": "≥250K entries"
},
{
"description": "Blocks Dynamic DNS (DDNS) address providers and hosts",
"id": 37,
"name": "dynamic-domains"
},
{
"description": "Pre-stable lists where maintainers are extra interested in feedback",
"id": 38,
"name": "beta"
},
{
"description": "Replaces file and page sources to make them load faster",
"id": 39,
"name": "cdn-replacer"
},
{
"description": "Bypasses paywalls on websites",
"id": 40,
"name": "paywall"
},
{
"description": "Cleans up anime viewing websites to make them easier to use",
"id": 41,
"name": "anime"
}
]

View file

@ -1,50 +0,0 @@
#!/bin/bash
# Sorts json files by FilterLists conventions documented in Wiki.
jq -S ".|=sort_by(.dependencyFilterListId, .dependentFilterListId)" Dependent.json > Dependent.tmp
mv Dependent.tmp Dependent.json
jq -S ".|=sort_by(.id)" FilterList.json > FilterList.tmp
mv FilterList.tmp FilterList.json
jq -S ".|=sort_by(.filterListId, .languageId)" FilterListLanguage.json > FilterListLanguage.tmp
mv FilterListLanguage.tmp FilterListLanguage.json
jq -S ".|=sort_by(.filterListId, .maintainerId)" FilterListMaintainer.json > FilterListMaintainer.tmp
mv FilterListMaintainer.tmp FilterListMaintainer.json
jq -S ".|=sort_by(.filterListId, .syntaxId)" FilterListSyntax.json > FilterListSyntax.tmp
mv FilterListSyntax.tmp FilterListSyntax.json
jq -S ".|=sort_by(.filterListId, .tagId)" FilterListTag.json > FilterListTag.tmp
mv FilterListTag.tmp FilterListTag.json
jq -S ".|=sort_by(.id)" FilterListViewUrl.json > FilterListViewUrl.tmp
mv FilterListViewUrl.tmp FilterListViewUrl.json
jq -S ".|=sort_by(.upstreamFilterListId, .forkFilterListId)" Fork.json > Fork.tmp
mv Fork.tmp Fork.json
jq -S ".|=sort_by(.iso6391)" Language.json > Language.tmp
mv Language.tmp Language.json
jq -S ".|=sort_by(.id)" License.json > License.tmp
mv License.tmp License.json
jq -S ".|=sort_by(.id)" Maintainer.json > Maintainer.tmp
mv Maintainer.tmp Maintainer.json
jq -S ".|=sort_by(.includedInFilterListId, .includesFilterListId)" Merge.json > Merge.tmp
mv Merge.tmp Merge.json
jq -S ".|=sort_by(.id)" Software.json > Software.tmp
mv Software.tmp Software.json
jq -S ".|=sort_by(.softwareId, .syntaxId)" SoftwareSyntax.json > SoftwareSyntax.tmp
mv SoftwareSyntax.tmp SoftwareSyntax.json
jq -S ".|=sort_by(.id)" Syntax.json > Syntax.tmp
mv Syntax.tmp Syntax.json
jq -S ".|=sort_by(.id)" Tag.json > Tag.tmp
mv Tag.tmp Tag.json

View file

@ -1 +0,0 @@
.azure

View file

@ -1,22 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>c7967ef0-ced7-4e18-8282-7302b3c0002b</UserSecretsId>
<AnalysisMode>Recommended</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Directory\FilterLists.Directory.Api\FilterLists.Directory.Api.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.2.2"/>
<PackageReference Include="Aspire.Hosting.SqlServer" Version="8.2.2"/>
</ItemGroup>
</Project>

View file

@ -1,13 +0,0 @@
using Projects;
var builder = DistributedApplication.CreateBuilder(args);
var directoryDb = builder.AddSqlServer("directorysqlserver")
.WithDataVolume()
.AddDatabase("directorydb");
builder.AddProject<FilterLists_Directory_Api>("directoryapi")
.WithReference(directoryDb)
.WithExternalHttpEndpoints();
builder.Build().Run();

View file

@ -1,29 +0,0 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:17246;http://localhost:15280",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21069",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22035"
}
},
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:15280",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19157",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20152"
}
}
}
}

View file

@ -1,8 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

View file

@ -1,9 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Aspire.Hosting.Dcp": "Warning"
}
}
}

View file

@ -1,109 +0,0 @@
using Azure.Monitor.OpenTelemetry.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Logging;
using OpenTelemetry;
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;
// ReSharper disable All
namespace Microsoft.Extensions.Hosting;
// Adds common .NET Aspire services: service discovery, resilience, health checks, and OpenTelemetry.
// This project should be referenced by each service project in your solution.
// To learn more about using this project, see https://aka.ms/dotnet/aspire/service-defaults
public static class Extensions
{
public static IHostApplicationBuilder AddServiceDefaults(this IHostApplicationBuilder builder)
{
builder.ConfigureOpenTelemetry();
builder.AddDefaultHealthChecks();
builder.Services.AddServiceDiscovery();
builder.Services.ConfigureHttpClientDefaults(http =>
{
// Turn on resilience by default
http.AddStandardResilienceHandler();
// Turn on service discovery by default
http.AddServiceDiscovery();
});
return builder;
}
public static IHostApplicationBuilder ConfigureOpenTelemetry(this IHostApplicationBuilder builder)
{
builder.Logging.AddOpenTelemetry(logging =>
{
logging.IncludeFormattedMessage = true;
logging.IncludeScopes = true;
});
builder.Services.AddOpenTelemetry()
.WithMetrics(metrics =>
{
metrics.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddRuntimeInstrumentation();
})
.WithTracing(tracing =>
{
tracing.AddAspNetCoreInstrumentation()
// Uncomment the following line to enable gRPC instrumentation (requires the OpenTelemetry.Instrumentation.GrpcNetClient package)
//.AddGrpcClientInstrumentation()
.AddHttpClientInstrumentation();
});
builder.AddOpenTelemetryExporters();
return builder;
}
private static IHostApplicationBuilder AddOpenTelemetryExporters(this IHostApplicationBuilder builder)
{
var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
if (useOtlpExporter)
{
builder.Services.AddOpenTelemetry().UseOtlpExporter();
}
// Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package)
if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]))
{
builder.Services.AddOpenTelemetry()
.UseAzureMonitor();
}
return builder;
}
public static IHostApplicationBuilder AddDefaultHealthChecks(this IHostApplicationBuilder builder)
{
builder.Services.AddHealthChecks()
// Add a default liveness check to ensure app is responsive
.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
return builder;
}
public static WebApplication MapDefaultEndpoints(this WebApplication app)
{
// All health checks must pass for app to be considered ready to accept traffic after starting
app.MapHealthChecks("/health");
// Only health checks tagged with the "live" tag must pass for app to be considered alive
app.MapHealthChecks("/alive", new HealthCheckOptions
{
Predicate = r => r.Tags.Contains("live")
});
return app;
}
}

View file

@ -1,24 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireSharedProject>true</IsAspireSharedProject>
<AnalysisMode>Recommended</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App"/>
<PackageReference Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.2.0"/>
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="8.10.0"/>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" Version="8.2.2"/>
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0"/>
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.10.0"/>
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.9.0"/>
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.9.0"/>
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.9.0"/>
</ItemGroup>
</Project>

View file

@ -1,62 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.0.0
MinimumVisualStudioVersion = 17.8.0.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.AppHost", "FilterLists.AppHost\FilterLists.AppHost.csproj", "{275E279C-F3FB-4360-A138-536FEDE941F1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.ServiceDefaults", "FilterLists.ServiceDefaults\FilterLists.ServiceDefaults.csproj", "{472BCEAB-C845-4870-AC82-437B10CA9CDE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.Directory.Api", "Directory\FilterLists.Directory.Api\FilterLists.Directory.Api.csproj", "{85A14D07-5C37-458A-B74B-4EE67BBA7102}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Directory", "Directory", "{C4F6197D-9546-480E-AE92-1FC264D8E88F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Directory.Infrastructure.Migrations", "Directory\FilterLists.Directory.Infrastructure.Migrations\FilterLists.Directory.Infrastructure.Migrations.csproj", "{37170729-4BC9-412F-9ADF-97592A677E90}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Directory.Infrastructure", "Directory\FilterLists.Directory.Infrastructure\FilterLists.Directory.Infrastructure.csproj", "{02B4FF36-8012-42CD-BE3E-92475C091A4C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Directory.Application", "Directory\FilterLists.Directory.Application\FilterLists.Directory.Application.csproj", "{0D4420C3-283B-4C0A-88B4-D39E2033B80F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{275E279C-F3FB-4360-A138-536FEDE941F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{275E279C-F3FB-4360-A138-536FEDE941F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{275E279C-F3FB-4360-A138-536FEDE941F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{275E279C-F3FB-4360-A138-536FEDE941F1}.Release|Any CPU.Build.0 = Release|Any CPU
{472BCEAB-C845-4870-AC82-437B10CA9CDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{472BCEAB-C845-4870-AC82-437B10CA9CDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{472BCEAB-C845-4870-AC82-437B10CA9CDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{472BCEAB-C845-4870-AC82-437B10CA9CDE}.Release|Any CPU.Build.0 = Release|Any CPU
{85A14D07-5C37-458A-B74B-4EE67BBA7102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85A14D07-5C37-458A-B74B-4EE67BBA7102}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85A14D07-5C37-458A-B74B-4EE67BBA7102}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85A14D07-5C37-458A-B74B-4EE67BBA7102}.Release|Any CPU.Build.0 = Release|Any CPU
{37170729-4BC9-412F-9ADF-97592A677E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37170729-4BC9-412F-9ADF-97592A677E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37170729-4BC9-412F-9ADF-97592A677E90}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37170729-4BC9-412F-9ADF-97592A677E90}.Release|Any CPU.Build.0 = Release|Any CPU
{02B4FF36-8012-42CD-BE3E-92475C091A4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{02B4FF36-8012-42CD-BE3E-92475C091A4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{02B4FF36-8012-42CD-BE3E-92475C091A4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{02B4FF36-8012-42CD-BE3E-92475C091A4C}.Release|Any CPU.Build.0 = Release|Any CPU
{0D4420C3-283B-4C0A-88B4-D39E2033B80F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0D4420C3-283B-4C0A-88B4-D39E2033B80F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0D4420C3-283B-4C0A-88B4-D39E2033B80F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D4420C3-283B-4C0A-88B4-D39E2033B80F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {019F26B8-9430-4EAB-87B8-E8F52A739F4C}
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{85A14D07-5C37-458A-B74B-4EE67BBA7102} = {C4F6197D-9546-480E-AE92-1FC264D8E88F}
{37170729-4BC9-412F-9ADF-97592A677E90} = {C4F6197D-9546-480E-AE92-1FC264D8E88F}
{02B4FF36-8012-42CD-BE3E-92475C091A4C} = {C4F6197D-9546-480E-AE92-1FC264D8E88F}
{0D4420C3-283B-4C0A-88B4-D39E2033B80F} = {C4F6197D-9546-480E-AE92-1FC264D8E88F}
EndGlobalSection
EndGlobal