100 lines
6.0 KiB
XML
100 lines
6.0 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="520" d:DesignHeight="360"
|
|
x:Class="PhotoboothUploader.MainWindow"
|
|
Width="520" Height="360"
|
|
Title="Die Fotospiel.App - Photobooth Uploader">
|
|
<Grid Margin="24" ColumnDefinitions="*,8,*">
|
|
<StackPanel Grid.Column="0" Spacing="12" MaxWidth="420">
|
|
<StackPanel Orientation="Horizontal" Spacing="10" VerticalAlignment="Center">
|
|
<Image Source="avares://PhotoboothUploader/Assets/logo.png" Width="32" Height="32" />
|
|
<TextBlock x:Name="TitleText"
|
|
Text="Die Fotospiel.App - Photobooth Uploader"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
PointerPressed="TitleText_PointerPressed" />
|
|
</StackPanel>
|
|
|
|
<Border Background="#1F000000" Padding="12" CornerRadius="8">
|
|
<StackPanel Spacing="6">
|
|
<TextBlock Text="Schritte" FontWeight="SemiBold" />
|
|
<TextBlock x:Name="StepCodeText" Text="1. Code eingeben" />
|
|
<TextBlock x:Name="StepFolderText" Text="2. Upload-Ordner wählen" />
|
|
<TextBlock x:Name="StepReadyText" Text="3. Upload läuft" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<TextBlock Text="Gib den 6-stelligen Verbindungscode ein." TextWrapping="Wrap" />
|
|
<TextBox x:Name="CodeBox" MaxLength="6" Watermark="123456" TextChanged="CodeBox_TextChanged" />
|
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
|
<Button x:Name="ConnectButton" Content="Verbinden" Click="ConnectButton_Click" />
|
|
<Button x:Name="ReconnectButton" Content="Erneut verbinden" Click="ReconnectButton_Click" IsEnabled="False" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="6">
|
|
<TextBlock Text="Upload-Ordner" FontWeight="SemiBold" />
|
|
<TextBlock x:Name="FolderText" Text="Noch nicht ausgewählt." TextWrapping="Wrap" />
|
|
<Button x:Name="PickFolderButton" Content="Ordner auswählen" Click="PickFolderButton_Click" IsEnabled="False" />
|
|
<Button x:Name="TestUploadButton" Content="Test-Upload senden" Click="TestUploadButton_Click" IsEnabled="False" />
|
|
</StackPanel>
|
|
|
|
<ToggleSwitch x:Name="QuietToggle" Content="Ruhiger Modus (nur Fehler anzeigen)" />
|
|
|
|
<Border x:Name="AdvancedPanel" Background="#1F000000" Padding="12" CornerRadius="8" IsVisible="False">
|
|
<StackPanel Spacing="6">
|
|
<TextBlock Text="Erweiterte Einstellungen" FontWeight="SemiBold" />
|
|
<TextBlock Text="Basis-URL" />
|
|
<TextBox x:Name="BaseUrlBox" Watermark="https://fotospiel.app" />
|
|
<TextBlock Text="Max. parallele Uploads" />
|
|
<TextBox x:Name="MaxUploadsBox" Watermark="2" />
|
|
<Button x:Name="SaveAdvancedButton" Content="Speichern" Click="SaveAdvancedButton_Click" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="2" Spacing="12" MaxWidth="380">
|
|
<Border Background="#1F000000" Padding="12" CornerRadius="8">
|
|
<StackPanel Spacing="6">
|
|
<TextBlock Text="Status" FontWeight="SemiBold" />
|
|
<TextBlock x:Name="StatusText" Text="Nicht verbunden." TextWrapping="Wrap" />
|
|
<TextBlock x:Name="LastUploadText" Text="Letzter Upload: —" />
|
|
<TextBlock x:Name="QueueStatusText" Text="Warteschlange: 0 · Läuft: 0 · Fehlgeschlagen: 0" />
|
|
<TextBlock x:Name="LiveStatusText" Text="Live: —" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Background="#1F000000" Padding="12" CornerRadius="8">
|
|
<StackPanel Spacing="6">
|
|
<TextBlock Text="Details" FontWeight="SemiBold" />
|
|
<TextBlock x:Name="EventNameText" Text="Event: —" TextWrapping="Wrap" />
|
|
<TextBlock x:Name="BaseUrlText" Text="Basis-URL: —" TextWrapping="Wrap" />
|
|
<TextBlock x:Name="VersionText" Text="App-Version: —" />
|
|
<TextBlock x:Name="FolderHealthText" Text="Ordner: —" TextWrapping="Wrap" />
|
|
<TextBlock x:Name="DiskFreeText" Text="Freier Speicher: —" TextWrapping="Wrap" />
|
|
<TextBlock x:Name="LastErrorText" Text="Letzter Fehler: —" TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<StackPanel Spacing="6">
|
|
<TextBlock Text="Letzte Uploads" FontWeight="SemiBold" />
|
|
<ItemsControl x:Name="RecentUploadsList" ItemsSource="{Binding RecentUploads}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border Background="#14000000" Padding="8" CornerRadius="6" Margin="0,0,0,6">
|
|
<Grid ColumnDefinitions="*,Auto" RowDefinitions="Auto,Auto">
|
|
<TextBlock Grid.Column="0" Grid.Row="0" Text="{Binding FileName}" />
|
|
<TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding StatusLabel}" />
|
|
<TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding UpdatedLabel}" Opacity="0.7" FontSize="11" />
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<Button x:Name="RetryFailedButton" Content="Fehlgeschlagene erneut senden" Click="RetryFailedButton_Click" IsEnabled="False" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|