- continue
This commit is contained in:
parent
6abb069dd0
commit
5b919715eb
9 changed files with 66 additions and 33 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
/bin/*
|
||||
/obj/*
|
||||
/.vs/*
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -18,8 +18,16 @@
|
|||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"SelectedChildIndex": 2,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
|
|
@ -45,14 +53,6 @@
|
|||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
|
||||
"WhenOpened": "2026-05-14T10:14:25.605Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
"WorkspaceRootPath": "E:\\ollama_net\\ollama\\AuthorBuddy.Web\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|E:\\ollama_net\\ollama\\AuthorBuddy.Web\\AuthorBuddy.Web.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
|
||||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:AuthorBuddy.Web.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
|
||||
"AbsoluteMoniker": "D:0:0:{4F4697EF-EFFA-26AC-C8A1-C9859805D247}|AuthorBuddy.Web.csproj|e:\\ollama_net\\ollama\\authorbuddy.web\\authorbuddy.web.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
|
||||
"RelativeMoniker": "D:0:0:{4F4697EF-EFFA-26AC-C8A1-C9859805D247}|AuthorBuddy.Web.csproj|solutionrelative:authorbuddy.web.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|E:\\ollama_net\\ollama\\AuthorBuddy.Web\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
|
||||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
|
||||
"AbsoluteMoniker": "D:0:0:{4F4697EF-EFFA-26AC-C8A1-C9859805D247}|AuthorBuddy.Web.csproj|e:\\ollama_net\\ollama\\authorbuddy.web\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
|
||||
"RelativeMoniker": "D:0:0:{4F4697EF-EFFA-26AC-C8A1-C9859805D247}|AuthorBuddy.Web.csproj|solutionrelative:appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
|
|
@ -18,12 +18,8 @@
|
|||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 2,
|
||||
"SelectedChildIndex": 1,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
|
|
@ -51,8 +47,7 @@
|
|||
"RelativeToolTip": "appsettings.json",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
|
||||
"WhenOpened": "2026-05-14T10:14:25.605Z",
|
||||
"EditorCaption": ""
|
||||
"WhenOpened": "2026-05-14T10:14:25.605Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
3
AuthorBuddy.Web.slnx
Normal file
3
AuthorBuddy.Web.slnx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<Solution>
|
||||
<Project Path="AuthorBuddy.Web.csproj" />
|
||||
</Solution>
|
||||
|
|
@ -52,21 +52,33 @@
|
|||
@if (activeSection == "projects")
|
||||
{
|
||||
<div class="nav-section-body">
|
||||
@if (projects == null)
|
||||
<button class="nav-item nav-item-toggle" @onclick='() => showProjectList = !showProjectList'>
|
||||
<span class="nav-icon">@(showProjectList ? "▼" : "▶")</span>
|
||||
Liste vorhandener Projekte
|
||||
</button>
|
||||
@if (showProjectList)
|
||||
{
|
||||
<span class="nav-hint">Lade Projekte...</span>
|
||||
}
|
||||
else if (projects.Count == 0)
|
||||
{
|
||||
<span class="nav-hint">Keine Projekte vorhanden.</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
@foreach (var p in projects)
|
||||
{
|
||||
<button class="nav-item" @onclick='() => SelectProject(p)'>@p.Name</button>
|
||||
}
|
||||
<div class="nav-sublist">
|
||||
@if (projects == null)
|
||||
{
|
||||
<span class="nav-hint">Lade Projekte...</span>
|
||||
}
|
||||
else if (projects.Count == 0)
|
||||
{
|
||||
<span class="nav-hint">Keine Projekte vorhanden.</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
@foreach (var p in projects)
|
||||
{
|
||||
<button class="nav-item nav-item-sub" @onclick='() => SelectProject(p)'>@p.Name</button>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
<div class="nav-separator"></div>
|
||||
<button class="nav-item" @onclick="CreateNewProject">Projekt erstellen</button>
|
||||
<button class="nav-item" @onclick="OpenProject">Projekt laden</button>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
|
@ -89,6 +101,7 @@
|
|||
|
||||
@code {
|
||||
private string? activeSection;
|
||||
private bool showProjectList;
|
||||
private List<Project>? projects;
|
||||
private string statusText = "Bereit";
|
||||
private bool isBusy;
|
||||
|
|
|
|||
|
|
@ -78,6 +78,27 @@ body {
|
|||
color: var(--border-color);
|
||||
}
|
||||
|
||||
.nav-item-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.nav-item-toggle .nav-icon {
|
||||
font-size: 10px;
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
.nav-sublist {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.nav-item-sub {
|
||||
padding: 4px 16px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Status bar */
|
||||
.status-bar {
|
||||
background: var(--status-bar-bg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue