AuthorBuddy/Components/Pages/Home.razor

24 lines
764 B
Text
Raw Normal View History

2026-05-14 12:31:35 +02:00
@page "/"
2026-05-21 11:04:42 +02:00
@attribute [Authorize]
2026-05-14 12:31:35 +02:00
@inject IOllamaService OllamaService
@inject IProjectService ProjectService
2026-05-25 06:38:16 +02:00
@inject ILocalizationService Loc
2026-05-20 07:27:41 +02:00
2026-05-25 06:38:16 +02:00
<PageTitle>@Loc["page.title.home"]</PageTitle>
2026-05-14 12:31:35 +02:00
<div class="tab-content">
2026-08-30 08:11:01 +02:00
@if (styleSuggestions.Length == 0)
2026-05-14 12:31:35 +02:00
{
2026-08-30 08:11:01 +02:00
<p style="color: var(--border-color);">Willkommen bei Author Buddy. Öffne ein Projekt im Editor, um loszulegen.</p>
2026-05-14 12:31:35 +02:00
}
2026-08-30 08:11:01 +02:00
else
2026-05-14 12:31:35 +02:00
{
2026-08-30 08:11:01 +02:00
<h3>@Loc["home.tab.style_analysis"]</h3>
2026-05-14 12:31:35 +02:00
<textarea style="width: 100%; min-height: 300px; background: var(--editor-bg); color: var(--text-color); border: 1px solid var(--border-color); padding: 8px; font-family: Consolas;" readonly>@styleSuggestions</textarea>
}
</div>
@code {
private string styleSuggestions = string.Empty;
}