-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use Newtonsoft.Json instead of System.Text.Json
fix: Better re-use the HTTPClient feat: Use Settings.settings for API keys
- Loading branch information
Samir Boulema
committed
Aug 4, 2023
1 parent
0cfe44c
commit d7837b2
Showing
10 changed files
with
109 additions
and
56 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,2 +1,3 @@ | ||
Mjml | ||
Vsix | ||
Newtonsoft |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using System.Text.Json.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
namespace MjmlVisualizer.Models | ||
{ | ||
public class ResponseBody | ||
{ | ||
[JsonPropertyName("mjml")] | ||
[JsonProperty("mjml")] | ||
public string MJML { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("html")] | ||
[JsonProperty("html")] | ||
public string HTML { get; set; } = string.Empty; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="MjmlVisualizer.Properties" GeneratedClassName="Settings"> | ||
<Profiles /> | ||
<Settings> | ||
<Setting Name="MJMLUserName" Type="System.String" Scope="Application"> | ||
<Value Profile="(Default)">#{MJML_USERNAME}#</Value> | ||
</Setting> | ||
<Setting Name="MJMLPassword" Type="System.String" Scope="Application"> | ||
<Value Profile="(Default)">#{MJML_PASSWORD}#</Value> | ||
</Setting> | ||
</Settings> | ||
</SettingsFile> |
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,12 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Bcl.AsyncInterfaces" version="7.0.0" targetFramework="net48" /> | ||
<package id="System.Buffers" version="4.5.1" targetFramework="net48" /> | ||
<package id="System.Memory" version="4.5.5" targetFramework="net48" /> | ||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" /> | ||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" /> | ||
<package id="System.Text.Encodings.Web" version="7.0.0" targetFramework="net48" /> | ||
<package id="System.Text.Json" version="7.0.3" targetFramework="net48" /> | ||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" /> | ||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net48" /> | ||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" /> | ||
</packages> |