mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
test prod data seed
This commit is contained in:
parent
3ce6dda004
commit
aa95507f0a
14 changed files with 31 additions and 7410 deletions
|
|
@ -8,7 +8,29 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.Data", "src\Fil
|
|||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.Services", "src\FilterLists.Services\FilterLists.Services.csproj", "{9F296ECF-97C9-47E6-A794-5AD900ECFE6C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Web", "src\FilterLists.Web\FilterLists.Web.csproj", "{6B3E6765-5B8B-4A23-AD12-7E2BC5F4D2E6}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.Web", "src\FilterLists.Web\FilterLists.Web.csproj", "{6B3E6765-5B8B-4A23-AD12-7E2BC5F4D2E6}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "data", "data", "{8C3C7C63-F5EF-4E4E-B9BF-47F6EA7D2CBD}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
data\FilterList.json = data\FilterList.json
|
||||
data\FilterListLanguage.json = data\FilterListLanguage.json
|
||||
data\FilterListMaintainer.json = data\FilterListMaintainer.json
|
||||
data\Fork.json = data\Fork.json
|
||||
data\Language.json = data\Language.json
|
||||
data\License.json = data\License.json
|
||||
data\Maintainer.json = data\Maintainer.json
|
||||
data\Merge.json = data\Merge.json
|
||||
data\Software.json = data\Software.json
|
||||
data\SoftwareSyntax.json = data\SoftwareSyntax.json
|
||||
data\Syntax.json = data\Syntax.json
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{FCA7F77A-9EC6-4C6D-A80E-7DD27FF95673}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
scripts\build.sh = scripts\build.sh
|
||||
scripts\createMySqlDb.sql = scripts\createMySqlDb.sql
|
||||
scripts\deploy.sh = scripts\deploy.sh
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"HomeUrl": "https://280blocker.net",
|
||||
"IssuesUrl": null,
|
||||
"LicenseId": 1,
|
||||
"Name": "280 Blocker",
|
||||
"Name": "cbtest 280 Blocker",
|
||||
"SubmissionUrl": "https://docs.google.com/forms/d/e/1FAIpQLScNeZhFrFZt9GhIVGdThGz7oyepcNRKuOi5PJDnsC-awxTeOQ/viewform",
|
||||
"SyntaxId": 3,
|
||||
"ViewUrl": "https://280blocker.net/files/280blocker_adblock.txt"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,30 +0,0 @@
|
|||
[
|
||||
{
|
||||
"FilterListId": 20,
|
||||
"LanguageId": 44
|
||||
},
|
||||
{
|
||||
"FilterListId": 14,
|
||||
"LanguageId": 122
|
||||
},
|
||||
{
|
||||
"FilterListId": 1,
|
||||
"LanguageId": 141
|
||||
},
|
||||
{
|
||||
"FilterListId": 6,
|
||||
"LanguageId": 141
|
||||
},
|
||||
{
|
||||
"FilterListId": 15,
|
||||
"LanguageId": 154
|
||||
},
|
||||
{
|
||||
"FilterListId": 16,
|
||||
"LanguageId": 154
|
||||
},
|
||||
{
|
||||
"FilterListId": 12,
|
||||
"LanguageId": 163
|
||||
}
|
||||
]
|
||||
|
|
@ -1,170 +0,0 @@
|
|||
[
|
||||
{
|
||||
"FilterListId": 1,
|
||||
"MaintainerId": 2
|
||||
},
|
||||
{
|
||||
"FilterListId": 2,
|
||||
"MaintainerId": 3
|
||||
},
|
||||
{
|
||||
"FilterListId": 3,
|
||||
"MaintainerId": 4
|
||||
},
|
||||
{
|
||||
"FilterListId": 4,
|
||||
"MaintainerId": 5
|
||||
},
|
||||
{
|
||||
"FilterListId": 5,
|
||||
"MaintainerId": 6
|
||||
},
|
||||
{
|
||||
"FilterListId": 6,
|
||||
"MaintainerId": 8
|
||||
},
|
||||
{
|
||||
"FilterListId": 7,
|
||||
"MaintainerId": 9
|
||||
},
|
||||
{
|
||||
"FilterListId": 8,
|
||||
"MaintainerId": 9
|
||||
},
|
||||
{
|
||||
"FilterListId": 9,
|
||||
"MaintainerId": 9
|
||||
},
|
||||
{
|
||||
"FilterListId": 10,
|
||||
"MaintainerId": 10
|
||||
},
|
||||
{
|
||||
"FilterListId": 12,
|
||||
"MaintainerId": 11
|
||||
},
|
||||
{
|
||||
"FilterListId": 12,
|
||||
"MaintainerId": 12
|
||||
},
|
||||
{
|
||||
"FilterListId": 14,
|
||||
"MaintainerId": 12
|
||||
},
|
||||
{
|
||||
"FilterListId": 12,
|
||||
"MaintainerId": 13
|
||||
},
|
||||
{
|
||||
"FilterListId": 14,
|
||||
"MaintainerId": 13
|
||||
},
|
||||
{
|
||||
"FilterListId": 15,
|
||||
"MaintainerId": 18
|
||||
},
|
||||
{
|
||||
"FilterListId": 16,
|
||||
"MaintainerId": 18
|
||||
},
|
||||
{
|
||||
"FilterListId": 17,
|
||||
"MaintainerId": 19
|
||||
},
|
||||
{
|
||||
"FilterListId": 18,
|
||||
"MaintainerId": 20
|
||||
},
|
||||
{
|
||||
"FilterListId": 307,
|
||||
"MaintainerId": 20
|
||||
},
|
||||
{
|
||||
"FilterListId": 19,
|
||||
"MaintainerId": 21
|
||||
},
|
||||
{
|
||||
"FilterListId": 308,
|
||||
"MaintainerId": 21
|
||||
},
|
||||
{
|
||||
"FilterListId": 20,
|
||||
"MaintainerId": 22
|
||||
},
|
||||
{
|
||||
"FilterListId": 23,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 24,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 25,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 26,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 37,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 75,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 76,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 77,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 121,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 122,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 123,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 124,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 125,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 126,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 127,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 128,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 129,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 130,
|
||||
"MaintainerId": 23
|
||||
},
|
||||
{
|
||||
"FilterListId": 27,
|
||||
"MaintainerId": 24
|
||||
}
|
||||
]
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
[
|
||||
{
|
||||
"ForkFilterListId": 7,
|
||||
"UpstreamFilterListId": 9
|
||||
},
|
||||
{
|
||||
"ForkFilterListId": 8,
|
||||
"UpstreamFilterListId": 9
|
||||
},
|
||||
{
|
||||
"ForkFilterListId": 16,
|
||||
"UpstreamFilterListId": 59
|
||||
},
|
||||
{
|
||||
"ForkFilterListId": 16,
|
||||
"UpstreamFilterListId": 99
|
||||
},
|
||||
{
|
||||
"ForkFilterListId": 16,
|
||||
"UpstreamFilterListId": 278
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,79 +0,0 @@
|
|||
[
|
||||
{
|
||||
"Id": 1,
|
||||
"DescriptionUrl": "https://creativecommons.org/licenses/by-nc-nd/4.0/",
|
||||
"Name": "CC BY-NC-ND 4.0",
|
||||
"PermissiveAdaptation": 0,
|
||||
"PermissiveCommercial": 0
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"DescriptionUrl": "https://opensource.org/licenses/MIT",
|
||||
"Name": "The MIT License",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 1
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"DescriptionUrl": null,
|
||||
"Name": "Restricted (General)",
|
||||
"PermissiveAdaptation": 0,
|
||||
"PermissiveCommercial": 0
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"DescriptionUrl": "https://www.gnu.org/licenses/gpl-3.0.en.html",
|
||||
"Name": "GPLv3",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 1
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"DescriptionUrl": "https://en.wikipedia.org/wiki/All_rights_reserved",
|
||||
"Name": "All Rights Reserved (Default)",
|
||||
"PermissiveAdaptation": 0,
|
||||
"PermissiveCommercial": 0
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"DescriptionUrl": "https://creativecommons.org/licenses/by-nc-sa/3.0/",
|
||||
"Name": "CC BY-NC-SA 3.0",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 0
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"DescriptionUrl": null,
|
||||
"Name": "Permissive (General)",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 1
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"DescriptionUrl": "https://creativecommons.org/licenses/by-sa/4.0/",
|
||||
"Name": "CC BY-SA 4.0",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 1
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"DescriptionUrl": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
|
||||
"Name": "CC BY-NC-SA 4.0",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 0
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
"DescriptionUrl": "https://opensource.org/licenses/BSD-3-Clause",
|
||||
"Name": "BSD-3-Clause",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 1
|
||||
},
|
||||
{
|
||||
"Id": 11,
|
||||
"DescriptionUrl": "https://unlicense.org/",
|
||||
"Name": "The Unlicense",
|
||||
"PermissiveAdaptation": 1,
|
||||
"PermissiveCommercial": 1
|
||||
}
|
||||
]
|
||||
|
|
@ -1,163 +0,0 @@
|
|||
[
|
||||
{
|
||||
"Id": 2,
|
||||
"HomeUrl": null,
|
||||
"Name": "AppliliZ",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"HomeUrl": "https://bradconte.com/",
|
||||
"Name": "Brad Conte",
|
||||
"TwitterHandle": "bradconte",
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"HomeUrl": "https://forum.xda-developers.com/member.php?u=4877037",
|
||||
"Name": "BSDgeek_Jake",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"HomeUrl": "https://www.michaeltrimm.com/",
|
||||
"Name": "Michael Trimm",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"HomeUrl": "https://eyeo.com/",
|
||||
"Name": "eyeo GmbH",
|
||||
"TwitterHandle": "eyeo",
|
||||
"EmailAddress": "info@eyeo.com"
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"HomeUrl": "https://easylist.to/",
|
||||
"Name": "The EasyList Authors",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"HomeUrl": "https://github.com/mayve",
|
||||
"Name": "mayve",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"HomeUrl": "http://joxeankoret.com/",
|
||||
"Name": "Joxean Koret",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": "admin@oxeankoret.com"
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
"HomeUrl": "https://www.malwaredomainlist.com/",
|
||||
"Name": "Malware Domain List Community",
|
||||
"TwitterHandle": "_MDL_",
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 11,
|
||||
"HomeUrl": "https://forums.lanik.us/memberlist.php?mode=viewprofile&u=542",
|
||||
"Name": "Lian",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 12,
|
||||
"HomeUrl": "https://forums.lanik.us/memberlist.php?mode=viewprofile&u=2266",
|
||||
"Name": "Crits",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 13,
|
||||
"HomeUrl": "https://forums.lanik.us/memberlist.php?mode=viewprofile&u=1260",
|
||||
"Name": "smed79",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 14,
|
||||
"HomeUrl": "https://www.fanboy.co.nz/",
|
||||
"Name": "fanboy",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 15,
|
||||
"HomeUrl": "https://forums.lanik.us/memberlist.php?mode=viewprofile&u=333",
|
||||
"Name": "MonztA",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 16,
|
||||
"HomeUrl": "https://forums.lanik.us/memberlist.php?mode=viewprofile&u=1488",
|
||||
"Name": "Famlam",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 17,
|
||||
"HomeUrl": "https://forums.lanik.us/memberlist.php?mode=viewprofile&u=1400",
|
||||
"Name": "Khrin",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 18,
|
||||
"HomeUrl": "https://github.com/SlowMemory",
|
||||
"Name": "SlowMemory",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 19,
|
||||
"HomeUrl": "https://www.blogger.com/profile/09662737599549871224",
|
||||
"Name": "MVPS HOSTS Maintainer",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 20,
|
||||
"HomeUrl": "https://github.com/taylr",
|
||||
"Name": "Matt Taylor",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 21,
|
||||
"HomeUrl": "https://github.com/hoshsadiq/adblock-nocoin-list",
|
||||
"Name": "Hosh",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 22,
|
||||
"HomeUrl": "https://github.com/DandelionSprout",
|
||||
"Name": "Imre Kristoffer Eilertsen",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
},
|
||||
{
|
||||
"Id": 23,
|
||||
"HomeUrl": "https://abuse.ch/",
|
||||
"Name": "abuse.ch",
|
||||
"TwitterHandle": "abuse_ch",
|
||||
"EmailAddress": "contactme@abuse.ch"
|
||||
},
|
||||
{
|
||||
"Id": 24,
|
||||
"HomeUrl": "https://github.com/metaphoricgiraffe",
|
||||
"Name": "metaphoricgiraffe",
|
||||
"TwitterHandle": null,
|
||||
"EmailAddress": null
|
||||
}
|
||||
]
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
[
|
||||
{
|
||||
"MergeFilterListId": 11,
|
||||
"UpstreamFilterListId": 12
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 13,
|
||||
"UpstreamFilterListId": 12
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 13,
|
||||
"UpstreamFilterListId": 14
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 21,
|
||||
"UpstreamFilterListId": 23
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 24
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 120,
|
||||
"UpstreamFilterListId": 25
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 26
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 37
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 21,
|
||||
"UpstreamFilterListId": 75
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 120,
|
||||
"UpstreamFilterListId": 76
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 77
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 21,
|
||||
"UpstreamFilterListId": 121
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 122
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 21,
|
||||
"UpstreamFilterListId": 123
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 124
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 21,
|
||||
"UpstreamFilterListId": 125
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 126
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 120,
|
||||
"UpstreamFilterListId": 127
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 120,
|
||||
"UpstreamFilterListId": 128
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 22,
|
||||
"UpstreamFilterListId": 129
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 21,
|
||||
"UpstreamFilterListId": 130
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 11,
|
||||
"UpstreamFilterListId": 301
|
||||
},
|
||||
{
|
||||
"MergeFilterListId": 13,
|
||||
"UpstreamFilterListId": 301
|
||||
}
|
||||
]
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
[
|
||||
{
|
||||
"Id": 1,
|
||||
"DownloadUrl": "https://github.com/gorhill/uBlock#installation",
|
||||
"HomeUrl": "https://github.com/gorhill/uBlock",
|
||||
"Name": "uBlock Origin"
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"DownloadUrl": "https://adblockplus.org/",
|
||||
"HomeUrl": "https://adblockplus.org/",
|
||||
"Name": "Adblock Plus"
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"DownloadUrl": "https://adguard.com/en/download.html",
|
||||
"HomeUrl": "https://adguard.com/",
|
||||
"Name": "AdGuard"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
[
|
||||
{
|
||||
"SoftwareId": 2,
|
||||
"SyntaxId": 3
|
||||
},
|
||||
{
|
||||
"SoftwareId": 1,
|
||||
"SyntaxId": 4
|
||||
},
|
||||
{
|
||||
"SoftwareId": 3,
|
||||
"SyntaxId": 6
|
||||
}
|
||||
]
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
[
|
||||
{
|
||||
"Id": 1,
|
||||
"DefinitionUrl": "https://en.wikipedia.org/wiki/Hosts_(file)",
|
||||
"Name": "Hosts"
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"DefinitionUrl": null,
|
||||
"Name": "Domains"
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"DefinitionUrl": "https://adblockplus.org/filters",
|
||||
"Name": "Adblock Plus"
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"DefinitionUrl": "https://github.com/gorhill/uBlock/wiki/Static-filter-syntax",
|
||||
"Name": "uBlock Origin"
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"DefinitionUrl": "https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters",
|
||||
"Name": "AdGuard"
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"DefinitionUrl": null,
|
||||
"Name": "Exceptions (Whitelist)"
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"DefinitionUrl": null,
|
||||
"Name": "URLs"
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"DefinitionUrl": null,
|
||||
"Name": "IPs"
|
||||
}
|
||||
]
|
||||
|
|
@ -13,7 +13,7 @@ namespace FilterLists.Data
|
|||
{
|
||||
public static class FilterListsDbContextExtensions
|
||||
{
|
||||
private const string SeedDirectory = "Seed";
|
||||
private const string DataDirectory = "data";
|
||||
|
||||
public static bool AllMigrationsApplied(this FilterListsDbContext dbContext)
|
||||
{
|
||||
|
|
@ -68,8 +68,13 @@ private static string CreateValues<TEntityType>(IReadOnlyCollection<IProperty> p
|
|||
|
||||
private static List<TEntityType> GetSeedRows<TEntityType>()
|
||||
{
|
||||
#if DEBUG
|
||||
var path = Path.GetFullPath(Path.Combine(@"..\..\", DataDirectory));
|
||||
#else
|
||||
var path = Path.GetFullPath(SeedDirectory);
|
||||
#endif
|
||||
return JsonConvert.DeserializeObject<List<TEntityType>>(
|
||||
File.ReadAllText(SeedDirectory + Path.DirectorySeparatorChar + typeof(TEntityType).Name + ".json"));
|
||||
File.ReadAllText(path + Path.DirectorySeparatorChar + typeof(TEntityType).Name + ".json"));
|
||||
}
|
||||
|
||||
private static string CreateRowValues<TEntityType>(IEnumerable<IProperty> properties, TEntityType row)
|
||||
|
|
|
|||
Loading…
Reference in a new issue