A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Added a URL and HTML Encoder/Decoder (#67)
Etienne Baudoux89d74c03a35b
diff --git a/src/dev/impl/DevToys/DevToys.csproj b/src/dev/impl/DevToys/DevToys.csprojindex a6577c905..95a94de26 100644--- a/src/dev/impl/DevToys/DevToys.csproj+++ b/src/dev/impl/DevToys/DevToys.csproj@@ -21,6 +21,14 @@<Compile Include="..\..\shared\SharedAssemblyInfo.cs"><Link>Properties\SharedAssemblyInfo.cs</Link></Compile>+ <Compile Include="ViewModels\Tools\HtmlEncoderDecoder\HtmlEncoderDecoderToolProvider.cs" />+ <Compile Include="ViewModels\Tools\HtmlEncoderDecoder\HtmlEncoderDecoderToolViewModel.cs" />+ <Compile Include="Views\Tools\HtmlEncoderDecoder\HtmlEncoderDecoderToolPage.xaml.cs">+ <DependentUpon>HtmlEncoderDecoderToolPage.xaml</DependentUpon>+ </Compile>+ <Compile Include="Views\Tools\URLEncoderDecoder\UrlEncoderDecoderToolPage.xaml.cs">+ <DependentUpon>UrlEncoderDecoderToolPage.xaml</DependentUpon>+ </Compile><Content Include="..\..\DevToys.Startup\Assets\Logo-Prev\SplashScreen.scale-100.png"><Link>Assets\Logo\SplashScreen.scale-100.png</Link></Content>@@ -276,6 +284,8 @@<Compile Include="ViewModels\Tools\RegEx\RegExToolViewModel.cs" /><Compile Include="ViewModels\Tools\TextDiff\TextDiffToolProvider.cs" /><Compile Include="ViewModels\Tools\TextDiff\TextDiffToolViewModel.cs" />+ <Compile Include="ViewModels\Tools\UrlEncoderDecoder\UrlEncoderDecoderToolProvider.cs" />+ <Compile Include="ViewModels\Tools\UrlEncoderDecoder\UrlEncoderDecoderToolViewModel.cs" /><Compile Include="Views\MainPage.xaml.cs"><DependentUpon>MainPage.xaml</DependentUpon></Compile>@@ -423,6 +433,14 @@<Generator>MSBuild:Compile</Generator><SubType>Designer</SubType></Page>+ <Page Include="Views\Tools\HtmlEncoderDecoder\HtmlEncoderDecoderToolPage.xaml">+ <Generator>MSBuild:Compile</Generator>+ <SubType>Designer</SubType>+ </Page>+ <Page Include="Views\Tools\URLEncoderDecoder\UrlEncoderDecoderToolPage.xaml">+ <SubType>Designer</SubType>+ <Generator>MSBuild:Compile</Generator>+ </Page><PRIResource Include="Strings\*\*.resw" /></ItemGroup><ItemGroup>diff --git a/src/dev/impl/DevToys/LanguageManager.cs b/src/dev/impl/DevToys/LanguageManager.csindex b5eaa482f..a35383ef7 100644--- a/src/dev/impl/DevToys/LanguageManager.cs+++ b/src/dev/impl/DevToys/LanguageManager.cs@@ -28,6 +28,7 @@ namespace DevToysprivate readonly CommonStrings _common = new CommonStrings();private readonly GuidGeneratorStrings _guidgenerator = new GuidGeneratorStrings();private readonly HashGeneratorStrings _hashgenerator = new HashGeneratorStrings();+ private readonly HtmlEncoderDecoderStrings _htmlencoderdecoder = new HtmlEncoderDecoderStrings();private readonly JsonFormatterStrings _jsonformatter = new JsonFormatterStrings();private readonly JsonYamlStrings _jsonyaml = new JsonYamlStrings();private readonly JwtDecoderEncoderStrings _jwtdecoderencoder = new JwtDecoderEncoderStrings();@@ -37,6 +38,7 @@ namespace DevToysprivate readonly SettingsStrings _settings = new SettingsStrings();private readonly StringUtilitiesStrings _stringutilities = new StringUtilitiesStrings();private readonly TextDiffStrings _textdiff = new TextDiffStrings();+ private readonly UrlEncoderDecoderStrings _urlencoderdecoder = new UrlEncoderDecoderStrings();/// <summary>/// Gets an instance of <see cref="LanguageManager"/>.@@ -68,6 +70,11 @@ namespace DevToys/// </summary>public HashGeneratorStrings HashGenerator => _hashgenerator;+ /// <summary>+ /// Gets the <see cref="HtmlEncoderDecoderStrings"/>.+ /// </summary>+ public HtmlEncoderDecoderStrings HtmlEncoderDecoder => _htmlencoderdecoder;+/// <summary>/// Gets the <see cref="JsonFormatterStrings"/>./// </summary>@@ -113,6 +120,11 @@ namespace DevToys/// </summary>public TextDiffStrings TextDiff => _textdiff;+ /// <summary>+ /// Gets the <see cref="UrlEncoderDecoderStrings"/>.+ /// </summary>+ public UrlEncoderDecoderStrings UrlEncoderDecoder => _urlencoderdecoder;+/// <summary>/// Gets the list of available languages in the app./// </summary>@@ -375,6 +387,61 @@ namespace DevToyspublic string Uppercase => _resources.GetString("Uppercase");}+ public class HtmlEncoderDecoderStrings : ObservableObject+ {+ private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("HtmlEncoderDecoder");++ /// <summary>+ /// Gets the resource ConfigurationTitle.+ /// </summary>+ public string ConfigurationTitle => _resources.GetString("ConfigurationTitle");++ /// <summary>+ /// Gets the resource ConversionDecode.+ /// </summary>+ public string ConversionDecode => _resources.GetString("ConversionDecode");++ /// <summary>+ /// Gets the resource ConversionDescription.+ /// </summary>+ public string ConversionDescription => _resources.GetString("ConversionDescription");++ /// <summary>+ /// Gets the resource ConversionEncode.+ /// </summary>+ public string ConversionEncode => _resources.GetString("ConversionEncode");++ /// <summary>+ /// Gets the resource ConversionTitle.+ /// </summary>+ public string ConversionTitle => _resources.GetString("ConversionTitle");++ /// <summary>+ /// Gets the resource DisplayName.+ /// </summary>+ public string DisplayName => _resources.GetString("DisplayName");++ /// <summary>+ /// Gets the resource EncodingDescription.+ /// </summary>+ public string EncodingDescription => _resources.GetString("EncodingDescription");++ /// <summary>+ /// Gets the resource EncodingTitle.+ /// </summary>+ public string EncodingTitle => _resources.GetString("EncodingTitle");++ /// <summary>+ /// Gets the resource InputTitle.+ /// </summary>+ public string InputTitle => _resources.GetString("InputTitle");++ /// <summary>+ /// Gets the resource OutputTitle.+ /// </summary>+ public string OutputTitle => _resources.GetString("OutputTitle");+ }+public class JsonFormatterStrings : ObservableObject{private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("JsonFormatter");@@ -1163,4 +1230,59 @@ namespace DevToys/// </summary>public string RightText => _resources.GetString("RightText");}++ public class UrlEncoderDecoderStrings : ObservableObject+ {+ private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("UrlEncoderDecoder");++ /// <summary>+ /// Gets the resource ConfigurationTitle.+ /// </summary>+ public string ConfigurationTitle => _resources.GetString("ConfigurationTitle");++ /// <summary>+ /// Gets the resource ConversionDecode.+ /// </summary>+ public string ConversionDecode => _resources.GetString("ConversionDecode");++ /// <summary>+ /// Gets the resource ConversionDescription.+ /// </summary>+ public string ConversionDescription => _resources.GetString("ConversionDescription");++ /// <summary>+ /// Gets the resource ConversionEncode.+ /// </summary>+ public string ConversionEncode => _resources.GetString("ConversionEncode");++ /// <summary>+ /// Gets the resource ConversionTitle.+ /// </summary>+ public string ConversionTitle => _resources.GetString("ConversionTitle");++ /// <summary>+ /// Gets the resource DisplayName.+ /// </summary>+ public string DisplayName => _resources.GetString("DisplayName");++ /// <summary>+ /// Gets the resource EncodingDescription.+ /// </summary>+ public string EncodingDescription => _resources.GetString("EncodingDescription");++ /// <summary>+ /// Gets the resource EncodingTitle.+ /// </summary>+ public string EncodingTitle => _resources.GetString("EncodingTitle");++ /// <summary>+ /// Gets the resource InputTitle.+ /// </summary>+ public string InputTitle => _resources.GetString("InputTitle");++ /// <summary>+ /// Gets the resource OutputTitle.+ /// </summary>+ public string OutputTitle => _resources.GetString("OutputTitle");+ }}diff --git a/src/dev/impl/DevToys/Strings/cs-CZ/HtmlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/cs-CZ/HtmlEncoderDecoder.reswnew file mode 100644index 000000000..e0d3507c2--- /dev/null+++ b/src/dev/impl/DevToys/Strings/cs-CZ/HtmlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>HTML Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/cs-CZ/UrlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/cs-CZ/UrlEncoderDecoder.reswnew file mode 100644index 000000000..8bb2e7d1c--- /dev/null+++ b/src/dev/impl/DevToys/Strings/cs-CZ/UrlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>URL Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/en-US/HtmlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/en-US/HtmlEncoderDecoder.reswnew file mode 100644index 000000000..e0d3507c2--- /dev/null+++ b/src/dev/impl/DevToys/Strings/en-US/HtmlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>HTML Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/en-US/UrlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/en-US/UrlEncoderDecoder.reswnew file mode 100644index 000000000..8bb2e7d1c--- /dev/null+++ b/src/dev/impl/DevToys/Strings/en-US/UrlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>URL Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/fr-FR/HtmlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/fr-FR/HtmlEncoderDecoder.reswnew file mode 100644index 000000000..d1a5520e5--- /dev/null+++ b/src/dev/impl/DevToys/Strings/fr-FR/HtmlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Décoder</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Sélectionner le mode de conversion désiré</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encoder</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>Encodeur/Décodeur de HTML</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Sélectionner l'encodage désiré</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encodage</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Entrée</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Sortie</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/fr-FR/UrlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/fr-FR/UrlEncoderDecoder.reswnew file mode 100644index 000000000..4fe8cdfc1--- /dev/null+++ b/src/dev/impl/DevToys/Strings/fr-FR/UrlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Décoder</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Sélectionner le mode de conversion désiré</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encoder</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>Encodeur/Décodeur d'URL</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Sélectionner l'encodage désiré</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encodage</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Entrée</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Sortie</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/pl-PL/HtmlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/pl-PL/HtmlEncoderDecoder.reswnew file mode 100644index 000000000..e0d3507c2--- /dev/null+++ b/src/dev/impl/DevToys/Strings/pl-PL/HtmlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>HTML Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/pl-PL/UrlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/pl-PL/UrlEncoderDecoder.reswnew file mode 100644index 000000000..8bb2e7d1c--- /dev/null+++ b/src/dev/impl/DevToys/Strings/pl-PL/UrlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>URL Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/ru-RU/HtmlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/ru-RU/HtmlEncoderDecoder.reswnew file mode 100644index 000000000..e0d3507c2--- /dev/null+++ b/src/dev/impl/DevToys/Strings/ru-RU/HtmlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>HTML Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/ru-RU/UrlEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/ru-RU/UrlEncoderDecoder.reswnew file mode 100644index 000000000..8bb2e7d1c--- /dev/null+++ b/src/dev/impl/DevToys/Strings/ru-RU/UrlEncoderDecoder.resw@@ -0,0 +1,150 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="ConfigurationTitle" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="ConversionDecode" xml:space="preserve">+ <value>Decode</value>+ </data>+ <data name="ConversionDescription" xml:space="preserve">+ <value>Select which conversion mode you want to use</value>+ </data>+ <data name="ConversionEncode" xml:space="preserve">+ <value>Encode</value>+ </data>+ <data name="ConversionTitle" xml:space="preserve">+ <value>Conversion</value>+ </data>+ <data name="DisplayName" xml:space="preserve">+ <value>URL Encoder/Decoder</value>+ </data>+ <data name="EncodingDescription" xml:space="preserve">+ <value>Select which encoding do you want to use</value>+ </data>+ <data name="EncodingTitle" xml:space="preserve">+ <value>Encoding</value>+ </data>+ <data name="InputTitle" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="OutputTitle" xml:space="preserve">+ <value>Output</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Themes/Custom.xaml b/src/dev/impl/DevToys/Themes/Custom.xamlindex 00a731af1..cd6ece77c 100644--- a/src/dev/impl/DevToys/Themes/Custom.xaml+++ b/src/dev/impl/DevToys/Themes/Custom.xaml@@ -16,7 +16,8 @@<x:String x:Key="JwtDecoderEncoderToolProvider">M 16.996 26.797 L 19.597 24.073 L 22.197 26.797 L 22.197 38.025 L 16.996 38.025 Z M 12.827 24.083 L 16.532 23.408 L 17.035 27.14 L 10.435 36.224 L 6.228 33.166 Z M 11.052 19.434 L 14.445 21.066 L 12.659 24.381 L 1.98 27.85 L 0.373 22.904 Z M 12.346 14.632 L 14.132 17.947 L 10.739 19.579 L 0.06 16.109 L 1.667 11.162 Z M 16.216 11.507 L 15.713 15.239 L 12.008 14.564 L 5.408 5.48 L 9.616 2.423 Z M 21.184 11.253 L 18.583 13.977 L 15.983 11.253 L 15.983 0.025 L 21.184 0.025 Z M 25.352 13.968 L 21.648 14.643 L 21.145 10.911 L 27.744 1.827 L 31.952 4.884 Z M 27.129 18.615 L 23.735 16.983 L 25.521 13.668 L 36.2 10.199 L 37.807 15.145 Z M 25.834 23.418 L 24.048 20.103 L 27.441 18.472 L 38.12 21.941 L 36.513 26.888 Z M 21.964 26.543 L 22.468 22.811 L 26.172 23.486 L 32.772 32.57 L 28.564 35.627 Z</x:String><x:String x:Key="MarkdownPreviewToolProvider">M 7.5 10 C 4.4802259 10 2 12.480226 2 15.5 L 2 32.5 C 2 35.519774 4.4802259 38 7.5 38 L 40.5 38 C 43.519774 38 46 35.519774 46 32.5 L 46 15.5 C 46 12.480226 43.519774 10 40.5 10 L 7.5 10 z M 7.5 13 L 40.5 13 C 41.898226 13 43 14.101774 43 15.5 L 43 32.5 C 43 33.898226 41.898226 35 40.5 35 L 7.5 35 C 6.1017741 35 5 33.898226 5 32.5 L 5 15.5 C 5 14.101774 6.1017741 13 7.5 13 z M 11.667969 17 C 10.193969 17 9 18.193969 9 19.667969 L 9 29 C 9 30.105 9.895 31 11 31 C 12.105 31 13 30.105 13 29 L 13 21.714844 L 15.564453 25.1875 C 16.361453 26.2675 17.975344 26.271312 18.777344 25.195312 L 21 22.214844 L 21 29 C 21 30.105 21.895 31 23 31 C 24.105 31 25 30.105 25 29 L 25 19.667969 C 25 18.193969 23.806031 17 22.332031 17 C 21.438031 17 20.603375 17.447359 20.109375 18.193359 L 17.167969 22.847656 L 13.898438 18.105469 C 13.396437 17.411469 12.592328 17 11.736328 17 L 11.667969 17 z M 34 17 C 32.895 17 32 17.895 32 19 L 32 24 L 30.535156 24 C 29.232156 24 28.531906 25.528578 29.378906 26.517578 L 32.712891 30.408203 C 33.388891 31.197203 34.610109 31.197203 35.287109 30.408203 L 38.621094 26.517578 C 39.469094 25.528578 38.767844 24 37.464844 24 L 36 24 L 36 19 C 36 17.895 35.105 17 34 17 z</x:String><x:String x:Key="GuidGeneratorToolProvider">M 12.109375 0 C 10.312506 -7.4014868e-17 8.6653596 0.30599153 7.1679688 0.91796875 C 5.6835984 1.5169252 4.4075487 2.395837 3.3398438 3.5546875 C 2.2851596 4.7005171 1.4648419 6.106776 0.87890625 7.7734375 C 0.29297063 9.4270781 0 11.30209 0 13.398438 C 0 15.507806 0.26041833 17.363286 0.78125 18.964844 C 1.3151025 20.566401 2.0703156 21.907556 3.046875 22.988281 C 4.0364551 24.055986 5.2278689 24.863285 6.6210938 25.410156 C 8.0273393 25.95703 9.6028701 26.230469 11.347656 26.230469 C 11.920571 26.230469 12.513023 26.197916 13.125 26.132812 C 13.736977 26.067709 14.34896 25.970051 14.960938 25.839844 C 15.585936 25.709636 16.191408 25.546874 16.777344 25.351562 C 17.3763 25.156251 17.94271 24.934895 18.476562 24.6875 L 18.476562 11.640625 L 9.8242188 11.640625 L 9.8242188 14.511719 L 15.039062 14.511719 L 15.039062 22.636719 C 14.83073 22.714844 14.589843 22.786459 14.316406 22.851562 C 14.05599 22.916669 13.782551 22.975262 13.496094 23.027344 C 13.209636 23.066406 12.923176 23.098959 12.636719 23.125 C 12.350262 23.151041 12.083333 23.164062 11.835938 23.164062 C 10.39063 23.164063 9.1471322 22.936197 8.1054688 22.480469 C 7.0768262 22.024741 6.2304665 21.367185 5.5664062 20.507812 C 4.9023458 19.64844 4.4140616 18.600256 4.1015625 17.363281 C 3.7890636 16.126306 3.6328125 14.726558 3.6328125 13.164062 C 3.6328125 11.666672 3.8216157 10.299475 4.1992188 9.0625 C 4.5898425 7.8255249 5.1432314 6.7708306 5.859375 5.8984375 C 6.5885393 5.0130237 7.4804723 4.3294256 8.5351562 3.8476562 C 9.5898405 3.3658869 10.794275 3.125 12.148438 3.125 C 13.333329 3.125 14.427086 3.2682301 15.429688 3.5546875 C 16.432288 3.828124 17.408857 4.2187515 18.359375 4.7265625 L 18.359375 1.2695312 C 17.408857 0.82682433 16.412757 0.50781187 15.371094 0.3125 C 14.342451 0.10416733 13.255205 0 12.109375 0 z M 22.832031 0.3515625 L 22.832031 17.519531 C 22.832031 18.834631 22.988282 20.026045 23.300781 21.09375 C 23.626301 22.161455 24.134117 23.079429 24.824219 23.847656 C 25.527342 24.602862 26.432295 25.188803 27.539062 25.605469 C 28.64583 26.022134 29.993495 26.230469 31.582031 26.230469 C 33.027339 26.230469 34.303389 26.015624 35.410156 25.585938 C 36.529944 25.143231 37.47396 24.524737 38.242188 23.730469 C 39.010414 22.92318 39.589847 21.953122 39.980469 20.820312 C 40.384115 19.674483 40.585938 18.398433 40.585938 16.992188 L 40.585938 0.3515625 L 37.109375 0.3515625 L 37.109375 17.207031 C 37.109375 19.147129 36.666663 20.651045 35.78125 21.71875 C 34.908857 22.786455 33.548171 23.320312 31.699219 23.320312 C 30.709638 23.320313 29.869789 23.190103 29.179688 22.929688 C 28.502606 22.669272 27.949217 22.285155 27.519531 21.777344 C 27.089844 21.269533 26.777342 20.638018 26.582031 19.882812 C 26.39974 19.127606 26.308594 18.248695 26.308594 17.246094 L 26.308594 0.3515625 L 22.832031 0.3515625 z M 2.0703125 30.978516 L 2.0703125 33.908203 L 7.9492188 33.908203 L 7.9492188 53.537109 L 2.0703125 53.537109 L 2.0703125 56.505859 L 17.34375 56.505859 L 17.34375 53.537109 L 11.464844 53.537109 L 11.464844 33.908203 L 17.34375 33.908203 L 17.34375 30.978516 L 2.0703125 30.978516 z M 22.832031 30.978516 L 22.832031 56.505859 L 28.300781 56.505859 C 29.92838 56.505859 31.380212 56.35612 32.65625 56.056641 C 33.932288 55.744142 35.052086 55.307941 36.015625 54.748047 C 36.979164 54.188153 37.792982 53.517574 38.457031 52.736328 C 39.121089 51.942058 39.661457 51.063147 40.078125 50.099609 C 40.49478 49.136072 40.794263 48.094398 40.976562 46.974609 C 41.171888 45.854821 41.269531 44.682939 41.269531 43.458984 C 41.269531 39.240248 40.286453 36.108717 38.320312 34.064453 C 36.367194 32.007168 33.398425 30.978516 29.414062 30.978516 L 22.832031 30.978516 z M 26.308594 33.908203 L 29.296875 33.908203 C 30.703121 33.908203 31.927087 34.083986 32.96875 34.435547 C 34.010413 34.774087 34.876304 35.327476 35.566406 36.095703 C 36.256508 36.86393 36.770834 37.873048 37.109375 39.123047 C 37.447917 40.373042 37.617188 41.903001 37.617188 43.712891 C 37.617188 50.236307 34.713524 53.498047 28.90625 53.498047 L 26.308594 53.498047 L 26.308594 33.908203 z</x:String>-+ <x:String x:Key="HtmlEncoderDecoderToolProvider">M 28.484375 7.9804688 A 1.50015 1.50015 0 0 0 27.068359 9.0546875 L 18.068359 38.054688 A 1.50015 1.50015 0 1 0 20.931641 38.945312 L 29.931641 9.9453125 A 1.50015 1.50015 0 0 0 28.484375 7.9804688 z M 13.509766 12.984375 A 1.50015 1.50015 0 0 0 12.466797 13.412109 L 2.4667969 22.912109 A 1.50015 1.50015 0 0 0 2.4667969 25.087891 L 12.466797 34.587891 A 1.5003384 1.5003384 0 1 0 14.533203 32.412109 L 5.6777344 24 L 14.533203 15.587891 A 1.50015 1.50015 0 0 0 13.509766 12.984375 z M 34.445312 12.986328 A 1.50015 1.50015 0 0 0 33.466797 15.587891 L 42.322266 24 L 33.466797 32.412109 A 1.5003384 1.5003384 0 1 0 35.533203 34.587891 L 45.533203 25.087891 A 1.50015 1.50015 0 0 0 45.533203 22.912109 L 35.533203 13.412109 A 1.50015 1.50015 0 0 0 34.445312 12.986328 z</x:String>+<!-- From https://github.com/morning4coffe-dev/storylines --><Style x:Key="RightAlignedToggleSwitchStyle" TargetType="ToggleSwitch"><Setter Property="Foreground" Value="{ThemeResource ToggleSwitchContentForeground}" />diff --git a/src/dev/impl/DevToys/ViewModels/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolProvider.cs b/src/dev/impl/DevToys/ViewModels/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolProvider.csnew file mode 100644index 000000000..a0c956572--- /dev/null+++ b/src/dev/impl/DevToys/ViewModels/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolProvider.cs@@ -0,0 +1,37 @@+#nullable enable++using System.Composition;+using DevToys.Api.Core.Injection;+using DevToys.Api.Tools;++namespace DevToys.ViewModels.Tools.HtmlEncoderDecoder+{+ [Export(typeof(IToolProvider))]+ [Name("Html Encoder/Decoder")]+ [ProtocolName("html")]+ [Order(0)]+ internal sealed class HtmlEncoderDecoderToolProvider : ToolProviderBase, IToolProvider+ {+ public string DisplayName => LanguageManager.Instance.HtmlEncoderDecoder.DisplayName;++ public object IconSource => CreatePathIconFromPath(nameof(HtmlEncoderDecoderToolProvider));++ private readonly IMefProvider _mefProvider;++ [ImportingConstructor]+ public HtmlEncoderDecoderToolProvider(IMefProvider mefProvider)+ {+ _mefProvider = mefProvider;+ }++ public bool CanBeTreatedByTool(string data)+ {+ return false;+ }++ public IToolViewModel CreateTool()+ {+ return _mefProvider.Import<HtmlEncoderDecoderToolViewModel>();+ }+ }+}diff --git a/src/dev/impl/DevToys/ViewModels/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolViewModel.cs b/src/dev/impl/DevToys/ViewModels/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolViewModel.csnew file mode 100644index 000000000..73563a036--- /dev/null+++ b/src/dev/impl/DevToys/ViewModels/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolViewModel.cs@@ -0,0 +1,194 @@+#nullable enable++using System;+using System.Collections.Generic;+using System.Composition;+using System.Threading.Tasks;+using System.Web;+using DevToys.Api.Core;+using DevToys.Api.Core.Settings;+using DevToys.Api.Tools;+using DevToys.Core;+using DevToys.Core.Threading;+using DevToys.Views.Tools.HtmlEncoderDecoder;+using Microsoft.Toolkit.Mvvm.ComponentModel;++namespace DevToys.ViewModels.Tools.HtmlEncoderDecoder+{+ [Export(typeof(HtmlEncoderDecoderToolViewModel))]+ public class HtmlEncoderDecoderToolViewModel : ObservableRecipient, IToolViewModel+ {+ /// <summary>+ /// Whether the tool should encode or decode Html.+ /// </summary>+ private static readonly SettingDefinition<string> Conversion+ = new(+ name: $"{nameof(HtmlEncoderDecoderToolViewModel)}.{nameof(Conversion)}",+ isRoaming: true,+ defaultValue: DefaultConversion);++ private const string DefaultConversion = "Encode";+ internal const string DecodeConversion = "Decode";++ private readonly IMarketingService _marketingService;+ private readonly ISettingsProvider _settingsProvider;+ private readonly Queue<string> _conversionQueue = new();++ private string? _inputValue;+ private string? _outputValue;+ private bool _conversionInProgress;+ private bool _setPropertyInProgress;+ private bool _toolSuccessfullyWorked;++ public Type View { get; } = typeof(HtmlEncoderDecoderToolPage);++ internal HtmlEncoderDecoderStrings Strings => LanguageManager.Instance.HtmlEncoderDecoder;++ /// <summary>+ /// Gets or sets the input text.+ /// </summary>+ internal string? InputValue+ {+ get => _inputValue;+ set+ {+ ThreadHelper.ThrowIfNotOnUIThread();+ SetProperty(ref _inputValue, value);+ QueueConversionCalculation();+ }+ }++ /// <summary>+ /// Gets or sets the output text.+ /// </summary>+ internal string? OutputValue+ {+ get => _outputValue;+ private set => SetProperty(ref _outputValue, value);+ }++ /// <summary>+ /// Gets or sets the conversion mode.+ /// </summary>+ internal string ConversionMode+ {+ get => _settingsProvider.GetSetting(Conversion);+ set+ {+ if (!_setPropertyInProgress)+ {+ _setPropertyInProgress = true;+ ThreadHelper.ThrowIfNotOnUIThread();+ if (!string.Equals(_settingsProvider.GetSetting(Conversion), value, StringComparison.Ordinal))+ {+ _settingsProvider.SetSetting(Conversion, value);+ OnPropertyChanged();+ }+ InputValue = OutputValue;+ _setPropertyInProgress = false;+ }+ }+ }++ [ImportingConstructor]+ public HtmlEncoderDecoderToolViewModel(ISettingsProvider settingsProvider, IMarketingService marketingService)+ {+ _settingsProvider = settingsProvider;+ _marketingService = marketingService;+ }++ private void QueueConversionCalculation()+ {+ _conversionQueue.Enqueue(InputValue ?? string.Empty);+ TreatQueueAsync().Forget();+ }++ private async Task TreatQueueAsync()+ {+ if (_conversionInProgress)+ {+ return;+ }++ _conversionInProgress = true;++ await TaskScheduler.Default;++ while (_conversionQueue.TryDequeue(out string? text))+ {+ string conversionResult;+ if (string.Equals(ConversionMode, DefaultConversion, StringComparison.Ordinal))+ {+ conversionResult = await EncodeHtmlDataAsync(text).ConfigureAwait(false);+ }+ else+ {+ conversionResult = await DecodeHtmlDataAsync(text).ConfigureAwait(false);+ }++ ThreadHelper.RunOnUIThreadAsync(ThreadPriority.Low, () =>+ {+ OutputValue = conversionResult;++ if (!_toolSuccessfullyWorked)+ {+ _toolSuccessfullyWorked = true;+ _marketingService.NotifyToolSuccessfullyWorked();+ }+ }).ForgetSafely();+ }++ _conversionInProgress = false;+ }++ private async Task<string> EncodeHtmlDataAsync(string? data)+ {+ if (string.IsNullOrWhiteSpace(data))+ {+ return string.Empty;+ }++ await TaskScheduler.Default;++ string? encoded;+ try+ {+ encoded = HttpUtility.HtmlEncode(data);+ }+ catch (Exception ex)+ {+ Logger.LogFault("Html - Encoder", ex);+ return ex.Message;+ }++ return encoded;+ }++ private async Task<string> DecodeHtmlDataAsync(string? data)+ {+ if (string.IsNullOrWhiteSpace(data))+ {+ return string.Empty;+ }++ await TaskScheduler.Default;+ string? decoded = string.Empty;++ try+ {+ decoded = HttpUtility.HtmlDecode(data);+ }+ catch (FormatException)+ {+ // ignore;+ }+ catch (Exception ex)+ {+ Logger.LogFault("Html - Decoder", ex);+ return ex.Message;+ }++ return decoded;+ }+ }+}diff --git a/src/dev/impl/DevToys/ViewModels/Tools/UrlEncoderDecoder/UrlEncoderDecoderToolProvider.cs b/src/dev/impl/DevToys/ViewModels/Tools/UrlEncoderDecoder/UrlEncoderDecoderToolProvider.csnew file mode 100644index 000000000..4ef019a7b--- /dev/null+++ b/src/dev/impl/DevToys/ViewModels/Tools/UrlEncoderDecoder/UrlEncoderDecoderToolProvider.cs@@ -0,0 +1,49 @@+#nullable enable++using System.Composition;+using System.Threading.Tasks;+using DevToys.Api.Core.Injection;+using DevToys.Api.Tools;+using DevToys.Core.Threading;+using Windows.UI.Xaml.Controls;++namespace DevToys.ViewModels.Tools.UrlEncoderDecoder+{+ [Export(typeof(IToolProvider))]+ [Name("URL Encoder/Decoder")]+ [ProtocolName("url")]+ [Order(0)]+ internal sealed class UrlEncoderDecoderToolProvider : ToolProviderBase, IToolProvider+ {+ public string DisplayName => LanguageManager.Instance.UrlEncoderDecoder.DisplayName;++ public object IconSource+ => new TaskCompletionNotifier<IconElement>(+ ThreadHelper.RunOnUIThreadAsync(() =>+ {+ return Task.FromResult<IconElement>(+ new FontIcon+ {+ Glyph = "\uF4E4"+ });+ }));++ private readonly IMefProvider _mefProvider;++ [ImportingConstructor]+ public UrlEncoderDecoderToolProvider(IMefProvider mefProvider)+ {+ _mefProvider = mefProvider;+ }++ public bool CanBeTreatedByTool(string data)+ {+ return false;+ }++ public IToolViewModel CreateTool()+ {+ return _mefProvider.Import<UrlEncoderDecoderToolViewModel>();+ }+ }+}diff --git a/src/dev/impl/DevToys/ViewModels/Tools/UrlEncoderDecoder/UrlEncoderDecoderToolViewModel.cs b/src/dev/impl/DevToys/ViewModels/Tools/UrlEncoderDecoder/UrlEncoderDecoderToolViewModel.csnew file mode 100644index 000000000..4c201e149--- /dev/null+++ b/src/dev/impl/DevToys/ViewModels/Tools/UrlEncoderDecoder/UrlEncoderDecoderToolViewModel.cs@@ -0,0 +1,193 @@+#nullable enable++using System;+using System.Collections.Generic;+using System.Composition;+using System.Threading.Tasks;+using DevToys.Api.Core;+using DevToys.Api.Core.Settings;+using DevToys.Api.Tools;+using DevToys.Core;+using DevToys.Core.Threading;+using DevToys.Views.Tools.UrlEncoderDecoder;+using Microsoft.Toolkit.Mvvm.ComponentModel;++namespace DevToys.ViewModels.Tools.UrlEncoderDecoder+{+ [Export(typeof(UrlEncoderDecoderToolViewModel))]+ public class UrlEncoderDecoderToolViewModel : ObservableRecipient, IToolViewModel+ {+ /// <summary>+ /// Whether the tool should encode or decode Url.+ /// </summary>+ private static readonly SettingDefinition<string> Conversion+ = new(+ name: $"{nameof(UrlEncoderDecoderToolViewModel)}.{nameof(Conversion)}",+ isRoaming: true,+ defaultValue: DefaultConversion);++ private const string DefaultConversion = "Encode";+ internal const string DecodeConversion = "Decode";++ private readonly IMarketingService _marketingService;+ private readonly ISettingsProvider _settingsProvider;+ private readonly Queue<string> _conversionQueue = new();++ private string? _inputValue;+ private string? _outputValue;+ private bool _conversionInProgress;+ private bool _setPropertyInProgress;+ private bool _toolSuccessfullyWorked;++ public Type View { get; } = typeof(UrlEncoderDecoderToolPage);++ internal UrlEncoderDecoderStrings Strings => LanguageManager.Instance.UrlEncoderDecoder;++ /// <summary>+ /// Gets or sets the input text.+ /// </summary>+ internal string? InputValue+ {+ get => _inputValue;+ set+ {+ ThreadHelper.ThrowIfNotOnUIThread();+ SetProperty(ref _inputValue, value);+ QueueConversionCalculation();+ }+ }++ /// <summary>+ /// Gets or sets the output text.+ /// </summary>+ internal string? OutputValue+ {+ get => _outputValue;+ private set => SetProperty(ref _outputValue, value);+ }++ /// <summary>+ /// Gets or sets the conversion mode.+ /// </summary>+ internal string ConversionMode+ {+ get => _settingsProvider.GetSetting(Conversion);+ set+ {+ if (!_setPropertyInProgress)+ {+ _setPropertyInProgress = true;+ ThreadHelper.ThrowIfNotOnUIThread();+ if (!string.Equals(_settingsProvider.GetSetting(Conversion), value, StringComparison.Ordinal))+ {+ _settingsProvider.SetSetting(Conversion, value);+ OnPropertyChanged();+ }+ InputValue = OutputValue;+ _setPropertyInProgress = false;+ }+ }+ }++ [ImportingConstructor]+ public UrlEncoderDecoderToolViewModel(ISettingsProvider settingsProvider, IMarketingService marketingService)+ {+ _settingsProvider = settingsProvider;+ _marketingService = marketingService;+ }++ private void QueueConversionCalculation()+ {+ _conversionQueue.Enqueue(InputValue ?? string.Empty);+ TreatQueueAsync().Forget();+ }++ private async Task TreatQueueAsync()+ {+ if (_conversionInProgress)+ {+ return;+ }++ _conversionInProgress = true;++ await TaskScheduler.Default;++ while (_conversionQueue.TryDequeue(out string? text))+ {+ string conversionResult;+ if (string.Equals(ConversionMode, DefaultConversion, StringComparison.Ordinal))+ {+ conversionResult = await EncodeUrlDataAsync(text).ConfigureAwait(false);+ }+ else+ {+ conversionResult = await DecodeUrlDataAsync(text).ConfigureAwait(false);+ }++ ThreadHelper.RunOnUIThreadAsync(ThreadPriority.Low, () =>+ {+ OutputValue = conversionResult;++ if (!_toolSuccessfullyWorked)+ {+ _toolSuccessfullyWorked = true;+ _marketingService.NotifyToolSuccessfullyWorked();+ }+ }).ForgetSafely();+ }++ _conversionInProgress = false;+ }++ private async Task<string> EncodeUrlDataAsync(string? data)+ {+ if (string.IsNullOrWhiteSpace(data))+ {+ return string.Empty;+ }++ await TaskScheduler.Default;++ string? encoded;+ try+ {+ encoded = Uri.EscapeDataString(data);+ }+ catch (Exception ex)+ {+ Logger.LogFault("Url - Encoder", ex);+ return ex.Message;+ }++ return encoded;+ }++ private async Task<string> DecodeUrlDataAsync(string? data)+ {+ if (string.IsNullOrWhiteSpace(data))+ {+ return string.Empty;+ }++ await TaskScheduler.Default;+ string? decoded = string.Empty;++ try+ {+ decoded = Uri.UnescapeDataString(data);+ }+ catch (FormatException)+ {+ // ignore;+ }+ catch (Exception ex)+ {+ Logger.LogFault("Url - Decoder", ex);+ return ex.Message;+ }++ return decoded;+ }+ }+}diff --git a/src/dev/impl/DevToys/Views/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml b/src/dev/impl/DevToys/Views/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xamlindex 2b2f1f49c..58b89d24c 100644--- a/src/dev/impl/DevToys/Views/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml+++ b/src/dev/impl/DevToys/Views/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml@@ -22,6 +22,12 @@</VisualState></VisualStateGroup></VisualStateManager.VisualStateGroups>++ <Grid.ChildrenTransitions>+ <TransitionCollection>+ <EntranceThemeTransition IsStaggeringEnabled="True" FromVerticalOffset="50"/>+ </TransitionCollection>+ </Grid.ChildrenTransitions><Grid.RowDefinitions><RowDefinition Height="Auto" />diff --git a/src/dev/impl/DevToys/Views/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolPage.xaml b/src/dev/impl/DevToys/Views/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolPage.xamlnew file mode 100644index 000000000..111f9ba33--- /dev/null+++ b/src/dev/impl/DevToys/Views/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolPage.xaml@@ -0,0 +1,59 @@+<Page+ x:Class="DevToys.Views.Tools.HtmlEncoderDecoder.HtmlEncoderDecoderToolPage"+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"+ xmlns:controls="using:DevToys.UI.Controls"+ xmlns:ex="using:DevToys.UI.Extensions"+ mc:Ignorable="d"+ NavigationCacheMode="Disabled">++ <Grid x:Name="RootGrid" RowSpacing="12" Margin="0,0,0,16">+ <Grid.ChildrenTransitions>+ <TransitionCollection>+ <EntranceThemeTransition IsStaggeringEnabled="True" FromVerticalOffset="50"/>+ </TransitionCollection>+ </Grid.ChildrenTransitions>++ <Grid.RowDefinitions>+ <RowDefinition Height="Auto" />+ <RowDefinition Height="*" />+ <RowDefinition Height="*" />+ </Grid.RowDefinitions>++ <StackPanel Spacing="4" Grid.Row="0" >+ <TextBlock Style="{StaticResource SubTitleTextBlock}" Text="{x:Bind ViewModel.Strings.ConfigurationTitle}" />+ <controls:ExpandableSettingControl+ Grid.Row="1"+ Title="{x:Bind ViewModel.Strings.ConversionTitle}"+ Description="{x:Bind ViewModel.Strings.ConversionDescription}">+ <controls:ExpandableSettingControl.Icon>+ <FontIcon Glyph="" />+ </controls:ExpandableSettingControl.Icon>+ <ComboBox+ SelectedValuePath="Tag"+ SelectedValue="{x:Bind ViewModel.ConversionMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">+ <ComboBoxItem Tag="Encode" Content="{x:Bind ViewModel.Strings.ConversionEncode}" />+ <ComboBoxItem Tag="Decode" Content="{x:Bind ViewModel.Strings.ConversionDecode}"/>+ </ComboBox>+ </controls:ExpandableSettingControl>+ </StackPanel>++ <controls:CustomTextBox+ Grid.Row="1"+ MinHeight="150"+ AcceptsReturn="True"+ Header="{x:Bind ViewModel.Strings.InputTitle}"+ Text="{x:Bind ViewModel.InputValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>++ <controls:CustomTextBox+ Grid.Row="2"+ MinHeight="150"+ IsReadOnly="True"+ AcceptsReturn="True"+ Header="{x:Bind ViewModel.Strings.OutputTitle}"+ Text="{x:Bind ViewModel.OutputValue, Mode=OneWay}"/>++ </Grid>+</Page>diff --git a/src/dev/impl/DevToys/Views/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolPage.xaml.cs b/src/dev/impl/DevToys/Views/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolPage.xaml.csnew file mode 100644index 000000000..d514cf28e--- /dev/null+++ b/src/dev/impl/DevToys/Views/Tools/HtmlEncoderDecoder/HtmlEncoderDecoderToolPage.xaml.cs@@ -0,0 +1,56 @@+#nullable enable++using DevToys.Api.Core.Navigation;+using DevToys.Core;+using DevToys.ViewModels.Tools.HtmlEncoderDecoder;+using Windows.UI.Xaml;+using Windows.UI.Xaml.Controls;+using Windows.UI.Xaml.Navigation;++namespace DevToys.Views.Tools.HtmlEncoderDecoder+{+ public sealed partial class HtmlEncoderDecoderToolPage : Page+ {+ public static readonly DependencyProperty ViewModelProperty+ = DependencyProperty.Register(+ nameof(ViewModel),+ typeof(HtmlEncoderDecoderToolViewModel),+ typeof(HtmlEncoderDecoderToolPage),+ new PropertyMetadata(null));++ /// <summary>+ /// Gets the page's view model.+ /// </summary>+ public HtmlEncoderDecoderToolViewModel ViewModel+ {+ get => (HtmlEncoderDecoderToolViewModel)GetValue(ViewModelProperty);+ set => SetValue(ViewModelProperty, value);+ }++ public HtmlEncoderDecoderToolPage()+ {+ InitializeComponent();+ }++ protected override void OnNavigatedTo(NavigationEventArgs e)+ {+ var parameters = (NavigationParameter)e.Parameter;++ if (ViewModel is null)+ {+ // Set the view model+ Assumes.NotNull(parameters.ViewModel, nameof(parameters.ViewModel));+ ViewModel = (HtmlEncoderDecoderToolViewModel)parameters.ViewModel!;+ DataContext = ViewModel;+ }++ if (!string.IsNullOrWhiteSpace(parameters.ClipBoardContent))+ {+ ViewModel.ConversionMode = HtmlEncoderDecoderToolViewModel.DecodeConversion;+ ViewModel.InputValue = parameters.ClipBoardContent;+ }++ base.OnNavigatedTo(e);+ }+ }+}diff --git a/src/dev/impl/DevToys/Views/Tools/URLEncoderDecoder/UrlEncoderDecoderToolPage.xaml b/src/dev/impl/DevToys/Views/Tools/URLEncoderDecoder/UrlEncoderDecoderToolPage.xamlnew file mode 100644index 000000000..f299a36f0--- /dev/null+++ b/src/dev/impl/DevToys/Views/Tools/URLEncoderDecoder/UrlEncoderDecoderToolPage.xaml@@ -0,0 +1,59 @@+<Page+ x:Class="DevToys.Views.Tools.UrlEncoderDecoder.UrlEncoderDecoderToolPage"+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"+ xmlns:controls="using:DevToys.UI.Controls"+ xmlns:ex="using:DevToys.UI.Extensions"+ mc:Ignorable="d"+ NavigationCacheMode="Disabled">++ <Grid x:Name="RootGrid" RowSpacing="12" Margin="0,0,0,16">+ <Grid.ChildrenTransitions>+ <TransitionCollection>+ <EntranceThemeTransition IsStaggeringEnabled="True" FromVerticalOffset="50"/>+ </TransitionCollection>+ </Grid.ChildrenTransitions>++ <Grid.RowDefinitions>+ <RowDefinition Height="Auto" />+ <RowDefinition Height="*" />+ <RowDefinition Height="*" />+ </Grid.RowDefinitions>++ <StackPanel Spacing="4" Grid.Row="0" >+ <TextBlock Style="{StaticResource SubTitleTextBlock}" Text="{x:Bind ViewModel.Strings.ConfigurationTitle}" />+ <controls:ExpandableSettingControl+ Grid.Row="1"+ Title="{x:Bind ViewModel.Strings.ConversionTitle}"+ Description="{x:Bind ViewModel.Strings.ConversionDescription}">+ <controls:ExpandableSettingControl.Icon>+ <FontIcon Glyph="" />+ </controls:ExpandableSettingControl.Icon>+ <ComboBox+ SelectedValuePath="Tag"+ SelectedValue="{x:Bind ViewModel.ConversionMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">+ <ComboBoxItem Tag="Encode" Content="{x:Bind ViewModel.Strings.ConversionEncode}" />+ <ComboBoxItem Tag="Decode" Content="{x:Bind ViewModel.Strings.ConversionDecode}"/>+ </ComboBox>+ </controls:ExpandableSettingControl>+ </StackPanel>++ <controls:CustomTextBox+ Grid.Row="1"+ MinHeight="150"+ AcceptsReturn="True"+ Header="{x:Bind ViewModel.Strings.InputTitle}"+ Text="{x:Bind ViewModel.InputValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>++ <controls:CustomTextBox+ Grid.Row="2"+ MinHeight="150"+ IsReadOnly="True"+ AcceptsReturn="True"+ Header="{x:Bind ViewModel.Strings.OutputTitle}"+ Text="{x:Bind ViewModel.OutputValue, Mode=OneWay}"/>++ </Grid>+</Page>diff --git a/src/dev/impl/DevToys/Views/Tools/URLEncoderDecoder/UrlEncoderDecoderToolPage.xaml.cs b/src/dev/impl/DevToys/Views/Tools/URLEncoderDecoder/UrlEncoderDecoderToolPage.xaml.csnew file mode 100644index 000000000..e4743b102--- /dev/null+++ b/src/dev/impl/DevToys/Views/Tools/URLEncoderDecoder/UrlEncoderDecoderToolPage.xaml.cs@@ -0,0 +1,56 @@+#nullable enable++using DevToys.Api.Core.Navigation;+using DevToys.Core;+using DevToys.ViewModels.Tools.UrlEncoderDecoder;+using Windows.UI.Xaml;+using Windows.UI.Xaml.Controls;+using Windows.UI.Xaml.Navigation;++namespace DevToys.Views.Tools.UrlEncoderDecoder+{+ public sealed partial class UrlEncoderDecoderToolPage : Page+ {+ public static readonly DependencyProperty ViewModelProperty+ = DependencyProperty.Register(+ nameof(ViewModel),+ typeof(UrlEncoderDecoderToolViewModel),+ typeof(UrlEncoderDecoderToolPage),+ new PropertyMetadata(null));++ /// <summary>+ /// Gets the page's view model.+ /// </summary>+ public UrlEncoderDecoderToolViewModel ViewModel+ {+ get => (UrlEncoderDecoderToolViewModel)GetValue(ViewModelProperty);+ set => SetValue(ViewModelProperty, value);+ }++ public UrlEncoderDecoderToolPage()+ {+ InitializeComponent();+ }++ protected override void OnNavigatedTo(NavigationEventArgs e)+ {+ var parameters = (NavigationParameter)e.Parameter;++ if (ViewModel is null)+ {+ // Set the view model+ Assumes.NotNull(parameters.ViewModel, nameof(parameters.ViewModel));+ ViewModel = (UrlEncoderDecoderToolViewModel)parameters.ViewModel!;+ DataContext = ViewModel;+ }++ if (!string.IsNullOrWhiteSpace(parameters.ClipBoardContent))+ {+ ViewModel.ConversionMode = UrlEncoderDecoderToolViewModel.DecodeConversion;+ ViewModel.InputValue = parameters.ClipBoardContent;+ }++ base.OnNavigatedTo(e);+ }+ }+}