-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce parser service and interfaces, parser executor,
- Loading branch information
1 parent
4439746
commit 3b43b3f
Showing
57 changed files
with
1,235 additions
and
763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
C:\Users\nwoulfe1\AppData\Local\Temp\Temporary ASP.NET Files\vs\3f510f17\6a0262c9\App_Web_all.generated.cs.8f9494c4.thjsv7f5.dll | ||
C:\Users\nwoulfe1\AppData\Local\Temp\Temporary ASP.NET Files\vs\3f510f17\6a0262c9\App_Web_all.generated.cs.8f9494c4.qdu7a-xv.dll |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
namespace Preflight.Constants | ||
namespace Preflight | ||
{ | ||
public static class KnownSettings | ||
{ | ||
public const string BindSaveHandler = "Run Preflight on save"; | ||
public const string EnsureSafeLinks = "Ensure safe links"; | ||
public const string CancelSaveOnFail = "Cancel save when Preflight tests fail"; | ||
public const string ReadabilityMin = "Readability target - minimum"; | ||
public const string ReadabilityMax = "Readability target - maximum"; | ||
public const string LongWordSyllables = "Long word syllable count"; | ||
public const string NiceList = "Nice words"; | ||
public const string NaughtyList = "Naughty words"; | ||
public const string AutocorrectTerms = "Autocorrect terms"; | ||
public const string GoogleApiKey = "Google SafeBrowsing API key"; | ||
public const string UserGroupOptIn = "User group opt in/out"; | ||
public const string PropertiesToTest = "Properties to test"; | ||
// guid strings are used to identify the setting and for storing the related value | ||
public const string BindSaveHandler = "a5b02d88-4555-4c81-8973-6119feb3da20"; | ||
public const string EnsureSafeLinks = "2f1f3b0f-f6c6-45ea-a9fa-f342372c4208"; | ||
public const string CancelSaveOnFail = "0483a065-9504-48e4-861d-6149b2e37cd3"; | ||
public const string ReadabilityMin = "ad1ac044-5a44-45aa-86a8-ab1a1fedada2"; | ||
public const string ReadabilityMax = "f3ab7fe3-0d29-4450-b07c-92a61a23e123"; | ||
public const string LongWordSyllables = "a62b0522-88d8-4b80-b3e9-ef1e81ec7baa"; | ||
public const string NiceList = "1a465035-41d4-44a4-bf64-87ede0cea3be"; | ||
public const string NaughtyList = "edb82950-9d0b-4d1d-b727-96915014db4b"; | ||
public const string AutocorrectTerms = "9e94c320-b1bf-4318-a331-00d35eb762fc"; | ||
public const string GoogleApiKey = "bc6dff82-beac-4c5d-8d4e-e33559c78666"; | ||
public const string UserGroupOptIn = "d1e534d6-cc35-4cba-bb14-dc4afeada605"; | ||
public const string PropertiesToTest = "0e210e54-6936-444f-af8e-ae9e29cfb6eb"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,28 @@ | ||
namespace Preflight.Constants | ||
namespace Preflight | ||
{ | ||
public static class KnownStrings | ||
{ | ||
public const string Name = "Preflight"; | ||
public const string Alias = "preflight"; | ||
public const string Icon = "icon-paper-plane"; | ||
public const string AppSettingKey = "PreflightInstalled"; | ||
public const string SettingsTable = "PreflightSettings"; | ||
|
||
public const string ContentFailedChecks = "Content failed Preflight checks"; | ||
public const string GridRteJsonPath = "$..controls[?(@.editor.view == 'rte' || @.editor.view == 'textstring' || @.editor.view == 'textarea' || @.editor.alias == 'rte' || @.editor.alias == 'headline' || @.editor.alias == 'quote')]"; | ||
public const string GridValueJsonPath = "$..value"; | ||
|
||
public const string NcAlias = "ncContentTypeAlias"; | ||
|
||
public const string Comma = ","; | ||
public const string One = "1"; | ||
public const string Zero = "0"; | ||
|
||
public const string CORE = "CORE"; | ||
public const string FRAMEWORK = "FRAMEWORK"; | ||
|
||
public const string GridTextstringJsonPath = "$..controls[?(@.editor.alias == 'textstring')]"; | ||
|
||
public const string ClosingHtmlTags = @"(<\/li>|<\/h[1-6]{1}>)"; | ||
public const string CharsToRemove = @"(<.*?>|\(|\)|\[|\]|,|\w'|'\w|\w""|""\w)"; | ||
public const string DuplicateSpaces = @"\s+"; | ||
public const string NewLine = "\n"; | ||
|
||
public const string HrefXPath = "//a[@href]"; | ||
|
||
public const string CacheKey = "Preflight_SafeBrowsing_"; | ||
public const string SettingsCacheKey = "Preflight_Settings_"; | ||
|
||
public const string SafeBrowsingUrl = "https://safebrowsing.googleapis.com/v4/threatMatches:find?key="; | ||
public const string PropertiesToTestSuffix = "PropertiesToTest"; | ||
} | ||
|
||
public static readonly char[] Vowels = { 'a', 'e', 'i', 'o', 'u', 'y' }; | ||
public static readonly char[] WordDelimiters = { '.', '!', '?', ':', ';' }; | ||
public static readonly string[] Endings = { "es", "ed" }; | ||
public static partial class Constants | ||
{ | ||
|
||
public static readonly string SettingsFilePath = "~/App_Plugins/Preflight/Backoffice/settings.json"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Preflight | ||
{ | ||
public static partial class Constants | ||
{ | ||
public class Readability | ||
{ | ||
public static readonly char[] Vowels = { 'a', 'e', 'i', 'o', 'u', 'y' }; | ||
public static readonly char[] WordDelimiters = { '.', '!', '?', ':', ';' }; | ||
public static readonly string[] Endings = { "es", "ed" }; | ||
|
||
public const string ClosingHtmlTags = @"(<\/li>|<\/h[1-6]{1}>)"; | ||
public const string CharsToRemove = @"(<.*?>|\(|\)|\[|\]|,|\w'|'\w|\w""|""\w)"; | ||
public const string DuplicateSpaces = @"\s+"; | ||
public const string Ied = "ied"; | ||
public const string Space = " "; | ||
public const string Period = "."; | ||
public const string Ampersand = "&"; | ||
public const string AmpersandEntity = "&"; | ||
|
||
public const char l = 'l'; | ||
public const char e = 'e'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
namespace Preflight.Constants | ||
namespace Preflight | ||
{ | ||
public static class SettingType | ||
{ | ||
public const string Boolean = "views/propertyeditors/boolean/boolean.html"; | ||
public const string Slider = "views/propertyeditors/slider/slider.html"; | ||
public const string String = "views/propertyeditors/textbox/textbox.html"; | ||
public const string MultipleTextbox = "views/propertyeditors/multipletextbox/multipletextbox.html"; | ||
public const string CheckboxList = "views/propertyeditors/checkboxlist/checkboxlist.html"; | ||
public const string Boolean = "boolean"; | ||
public const string Slider = "slider"; | ||
public const string String = "textbox"; | ||
public const string MultipleTextbox = "multipletextbox"; | ||
public const string CheckboxList = "checkboxlist"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.