wip: Windows desktop app scaffold (WinUI 3/.NET 8) + NSIS installer + docs
Owner decision pending (STATE.md DC-100 tick): adopt/ship/park. Preserved from fragile git stash to named branch 2026-08-23. NOTE: requires a Windows build machine (WinUI XAML compiler + MSIX do not cross-build on Linux) — see WINDOWS_APP_BUILD.md in this tree. Secret-scanned clean 2026-08-23 (no keys/tokens/PEM in tree).
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<ContentDialog
|
||||
x:Class="DashCaddy.Desktop.TemplatesDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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"
|
||||
xmlns:vm="using:DashCaddy.Desktop.ViewModels"
|
||||
mc:Ignorable="d"
|
||||
Title="Service Templates"
|
||||
CloseButtonText="Close"
|
||||
DefaultButton="Close"
|
||||
Width="700"
|
||||
MaxHeight="600">
|
||||
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Spacing="16" Margin="8">
|
||||
<TextBlock Text="Choose a template to quickly add a popular self-hosted service." TextWrapping="Wrap" Foreground="{ThemeResource SystemControlForegroundBaseMediumBrush}" />
|
||||
|
||||
<ItemsControl x:Name="TemplatesList" ItemsSource="{x:Bind ViewModel.Templates}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:ServiceTemplate">
|
||||
<Border Style="{StaticResource CardStyle}" Margin="0,8" Padding="16">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Grid.Column="0" Text="{x:Bind Icon}" FontSize="32" VerticalAlignment="Center" Margin="0,0,16,0" />
|
||||
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center" Spacing="4">
|
||||
<TextBlock Text="{x:Bind Name}" FontSize="16" FontWeight="SemiBold" />
|
||||
<TextBlock Text="{x:Bind Description}" Foreground="{ThemeResource SystemControlForegroundBaseMediumBrush}" />
|
||||
<StackPanel Orientation="Horizontal" Spacing="12" Margin="0,8,0,0">
|
||||
<TextBlock Text="🐳" FontSize="12" />
|
||||
<TextBlock Text="{x:Bind Image}" FontSize="11" FontFamily="Consolas" Foreground="{ThemeResource SystemControlForegroundBaseMediumBrush}" />
|
||||
<TextBlock Text="•" FontSize="12" Foreground="{ThemeResource SystemControlForegroundBaseLowBrush}" />
|
||||
<TextBlock Text="Port {x:Bind DefaultPort}" FontSize="11" Foreground="{ThemeResource SystemControlForegroundBaseMediumBrush}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<Button Grid.Column="2" Content="Add" Click="AddTemplate_Click" Tag="{x:Bind}" Style="{StaticResource AccentButtonStyle}" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</ContentDialog>
|
||||
Reference in New Issue
Block a user