Skip to content

Commit

Permalink
fixed about
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoCoderMatrix86 committed Dec 19, 2024
1 parent cf853a3 commit e6a4ab3
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 23 deletions.
138 changes: 138 additions & 0 deletions AudioCuesheetEditor/Pages/About.de.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<?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="About AudioCuesheetEditor" xml:space="preserve">
<value>Über AudioCuesheetEditor</value>
</data>
<data name="Donate for this project" xml:space="preserve">
<value>Spenden Sie für dieses Projekt</value>
</data>
<data name="Licence" xml:space="preserve">
<value>Lizenz</value>
</data>
<data name="Preview environment" xml:space="preserve">
<value>Vorschauumgebung</value>
</data>
<data name="Project url" xml:space="preserve">
<value>Projekt website</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version</value>
</data>
</root>
49 changes: 26 additions & 23 deletions AudioCuesheetEditor/Pages/About.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,47 @@ You should have received a copy of the GNU General Public License
along with Foobar. If not, see
<http: //www.gnu.org/licenses />.
-->
@implements IDisposable

@page "/about"
@layout MainLayoutWithoutMenu

@inject HttpClient _httpClient
@inject ITextLocalizer<About> _localizer
@inject IStringLocalizer<About> _localizer
@inject LocalizationService _localizationService

<Layout>
<LayoutContent Margin="Margin.Is2">
<Heading Size="HeadingSize.Is1">@_localizer["About AudioCuesheetEditor"]</Heading>
<Heading Size="HeadingSize.Is5">@_localizer["Version"]: @VersionString</Heading>
<Heading Size="HeadingSize.Is5">@_localizer["Project url"]: <Blazorise.Link To="https://www.github.com/NeoCoderMatrix86/AudioCuesheetEditor" Target="Target.Blank">https://www.github.com/NeoCoderMatrix86/AudioCuesheetEditor</Blazorise.Link></Heading>
<Heading Size="HeadingSize.Is5">@_localizer["Preview environment"]: <Blazorise.Link To="https://preview-audiocuesheeteditor.netlify.app/" Target="Target.Blank">https://preview-audiocuesheeteditor.netlify.app/</Blazorise.Link></Heading>
<Blazorise.Link To="https://www.paypal.com/donate/?cmd=_donations&business=sbbaus%40web%2ede&lc=DE&item_name=Cuesheet%20Project&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest" Target="Target.Blank">@_localizer["Donate for this project"]</Blazorise.Link>
<br />
<br />
<Heading Size="HeadingSize.Is3">@_localizer["Licence"]</Heading>
<Paragraph>@((MarkupString)licence)</Paragraph>
</LayoutContent>
</Layout>
<MudText Typo="Typo.h3">@_localizer["About AudioCuesheetEditor"]</MudText>
<MudText Typo="Typo.h5">@_localizer["Version"]: @VersionString</MudText>
<MudText Typo="Typo.h5">@_localizer["Project url"]: <MudLink Href="https://www.github.com/NeoCoderMatrix86/AudioCuesheetEditor" Target="_blank">https://www.github.com/NeoCoderMatrix86/AudioCuesheetEditor</MudLink></MudText>
<MudText Typo="Typo.h5">@_localizer["Preview environment"]: <MudLink Href="https://preview-audiocuesheeteditor.netlify.app/" Target="_blank">https://preview-audiocuesheeteditor.netlify.app/</MudLink></MudText>
<MudLink Href="https://www.paypal.com/donate/?cmd=_donations&business=sbbaus%40web%2ede&lc=DE&item_name=Cuesheet%20Project&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest" Target="_blank">@_localizer["Donate for this project"]</MudLink>
<br />
<br />
<MudText Typo="Typo.h4">@_localizer["Licence"]</MudText>
@if (licence != null)
{
<MudText>@((MarkupString)licence)</MudText>
}

@code {
[CascadingParameter]
public MainLayout? mainLayout { get; set; }
String? licence;

String licence = default!;
public void Dispose()
{
_localizationService.LocalizationChanged -= LocalizationService_LocalizationChanged;
}

protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
_localizationService.LocalizationChanged += LocalizationService_LocalizationChanged;
var licenceContent = await _httpClient.GetStringAsync("Licence.txt");
licence = Markdown.ToHtml(licenceContent);
}

protected override async Task OnParametersSetAsync()
void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
{
await base.OnParametersSetAsync();
if (mainLayout != null)
{
mainLayout.SetDisplayMenuBar(false);
}
StateHasChanged();
}

public String VersionString
Expand Down
138 changes: 138 additions & 0 deletions AudioCuesheetEditor/Pages/About.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<?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="About AudioCuesheetEditor" xml:space="preserve">
<value>About AudioCuesheetEditor</value>
</data>
<data name="Donate for this project" xml:space="preserve">
<value>Donate for this project</value>
</data>
<data name="Licence" xml:space="preserve">
<value>Licence</value>
</data>
<data name="Preview environment" xml:space="preserve">
<value>Preview environment</value>
</data>
<data name="Project url" xml:space="preserve">
<value>Project url</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version</value>
</data>
</root>

0 comments on commit e6a4ab3

Please sign in to comment.