diff --git a/app/MindWork AI Studio/Pages/About.razor b/app/MindWork AI Studio/Pages/About.razor index 32c8b5df..0b7555d0 100644 --- a/app/MindWork AI Studio/Pages/About.razor +++ b/app/MindWork AI Studio/Pages/About.razor @@ -1,13 +1,16 @@ @attribute [Route(Routes.ABOUT)] +@inherits MSGComponentBase
- About MindWork AI Studio + + @T("About MindWork AI Studio") + - + - The following list shows the versions of the MindWork AI Studio, the used compilers, build time, etc.: + @T("The following list shows the versions of the MindWork AI Studio, the used compilers, build time, etc.:") @@ -19,105 +22,100 @@ - Check for updates + @T("Check for updates") - + - Discover MindWork AI's mission and vision on our official homepage. + @T("Discover MindWork AI's mission and vision on our official homepage.") - Browse AI Studio's source code on GitHub — we welcome your contributions. + @T("Browse AI Studio's source code on GitHub — we welcome your contributions.") - Connect AI Studio to your organization's data with our External Retrieval Interface (ERI). + @T("Connect AI Studio to your organization's data with our External Retrieval Interface (ERI).") - View our project roadmap and help shape AI Studio's future development. - + @T("View our project roadmap and help shape AI Studio's future development.") + - Did you find a bug or are you experiencing issues? Report your concern here. + @T("Did you find a bug or are you experiencing issues? Report your concern here.") - Have feature ideas? Submit suggestions for future AI Studio enhancements. + @T("Have feature ideas? Submit suggestions for future AI Studio enhancements.") - + - + - Explanation + @T("Explanation") - AI Studio creates a log file at startup, in which events during startup are recorded. After startup, - another log file is created that records all events that occur during the use of the app. This - includes any errors that may occur. Depending on when an error occurs (at startup or during use), - the contents of these log files can be helpful for troubleshooting. Sensitive information such as - passwords is not included in the log files. + @T("AI Studio creates a log file at startup, in which events during startup are recorded. After startup, another log file is created that records all events that occur during the use of the app. This includes any errors that may occur. Depending on when an error occurs (at startup or during use), the contents of these log files can be helpful for troubleshooting. Sensitive information such as passwords is not included in the log files.") - By clicking on the respective path, the path is copied to the clipboard. You might open these files - with a text editor to view their contents. + @T("By clicking on the respective path, the path is copied to the clipboard. You might open these files with a text editor to view their contents.") - Startup log file + @T("Startup log file") - Usage log file + @T("Usage log file") - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/MindWork AI Studio/Pages/About.razor.cs b/app/MindWork AI Studio/Pages/About.razor.cs index 0be178f7..6bad3b9e 100644 --- a/app/MindWork AI Studio/Pages/About.razor.cs +++ b/app/MindWork AI Studio/Pages/About.razor.cs @@ -1,5 +1,6 @@ using System.Reflection; +using AIStudio.Components; using AIStudio.Tools.Metadata; using AIStudio.Tools.Rust; using AIStudio.Tools.Services; @@ -10,11 +11,8 @@ using SharedTools; namespace AIStudio.Pages; -public partial class About : ComponentBase +public partial class About : MSGComponentBase { - [Inject] - private MessageBus MessageBus { get; init; } = null!; - [Inject] private RustService RustService { get; init; } = null!; @@ -24,20 +22,21 @@ public partial class About : ComponentBase private static readonly Assembly ASSEMBLY = Assembly.GetExecutingAssembly(); private static readonly MetaDataAttribute META_DATA = ASSEMBLY.GetCustomAttribute()!; private static readonly MetaDataArchitecture META_DATA_ARCH = ASSEMBLY.GetCustomAttribute()!; - - private static string VersionDotnetRuntime => $"Used .NET runtime: v{META_DATA.DotnetVersion}"; - - private static string VersionDotnetSdk => $"Used .NET SDK: v{META_DATA.DotnetSdkVersion}"; - - private static string VersionRust => $"Used Rust compiler: v{META_DATA.RustVersion}"; private static string VersionApp => $"MindWork AI Studio: v{META_DATA.Version} (commit {META_DATA.AppCommitHash}, build {META_DATA.BuildNum}, {META_DATA_ARCH.Architecture.ToRID().ToUserFriendlyName()})"; - private static string BuildTime => $"Build time: {META_DATA.BuildTime}"; - private static string MudBlazorVersion => $"MudBlazor: v{META_DATA.MudBlazorVersion}"; private static string TauriVersion => $"Tauri: v{META_DATA.TauriVersion}"; + + private string VersionRust => $"{T("Used Rust compiler")}: v{META_DATA.RustVersion}"; + + private string VersionDotnetRuntime => $"{T("Used .NET runtime")}: v{META_DATA.DotnetVersion}"; + + private string VersionDotnetSdk => $"{T("Used .NET SDK")}: v{META_DATA.DotnetSdkVersion}"; + + private string BuildTime => $"{T("Build time")}: {META_DATA.BuildTime}"; + private GetLogPathsResponse logPaths; @@ -61,6 +60,12 @@ public partial class About : ComponentBase #endregion + #region Overrides of MSGComponentBase + + public override string ComponentName => nameof(About); + + #endregion + private const string LICENSE = """ # Functional Source License, Version 1.1, MIT Future License