feat(ui): NotesEditorView
This commit is contained in:
35
src/ClaudeDo.Ui/Views/Islands/NotesEditorView.axaml
Normal file
35
src/ClaudeDo.Ui/Views/Islands/NotesEditorView.axaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<UserControl xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:vm="using:ClaudeDo.Ui.ViewModels.Islands"
|
||||||
|
xmlns:ctl="using:ClaudeDo.Ui.Views.Controls"
|
||||||
|
x:Class="ClaudeDo.Ui.Views.Islands.NotesEditorView"
|
||||||
|
x:DataType="vm:NotesEditorViewModel">
|
||||||
|
<DockPanel Margin="16">
|
||||||
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Spacing="8">
|
||||||
|
<Button Classes="btn" Content="‹" Command="{Binding PrevDayCommand}"/>
|
||||||
|
<ctl:ThemedDatePicker SelectedDate="{Binding CurrentDate, Mode=TwoWay}"/>
|
||||||
|
<Button Classes="btn" Content="›" Command="{Binding NextDayCommand}"/>
|
||||||
|
<Button Classes="btn" Content="Heute" Command="{Binding TodayCommand}"/>
|
||||||
|
<TextBlock Classes="meta" VerticalAlignment="Center" Text="{Binding CurrentDayLabel}"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Spacing="8" Margin="0,12,0,8">
|
||||||
|
<TextBox Width="420" PlaceholderText="Neue Notiz…" Text="{Binding NewBulletText}"/>
|
||||||
|
<Button Classes="btn" Content="Hinzufügen" Command="{Binding AddBulletCommand}"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<ScrollViewer>
|
||||||
|
<ItemsControl ItemsSource="{Binding Bullets}">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate x:DataType="vm:NoteBulletViewModel">
|
||||||
|
<Grid ColumnDefinitions="*,Auto,Auto" Margin="0,2" ColumnSpacing="6">
|
||||||
|
<TextBox Grid.Column="0" Text="{Binding Text}"/>
|
||||||
|
<Button Grid.Column="1" Classes="btn" Content="Speichern" Command="{Binding SaveCommand}"/>
|
||||||
|
<Button Grid.Column="2" Classes="btn" Content="Löschen" Command="{Binding DeleteCommand}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</ScrollViewer>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
||||||
8
src/ClaudeDo.Ui/Views/Islands/NotesEditorView.axaml.cs
Normal file
8
src/ClaudeDo.Ui/Views/Islands/NotesEditorView.axaml.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
using Avalonia.Controls;
|
||||||
|
|
||||||
|
namespace ClaudeDo.Ui.Views.Islands;
|
||||||
|
|
||||||
|
public partial class NotesEditorView : UserControl
|
||||||
|
{
|
||||||
|
public NotesEditorView() => InitializeComponent();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user