2024-02-05 23:08:37 -08:00
|
|
|
<UserControl 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"
|
|
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.Clone"
|
|
|
|
x:DataType="vm:Clone">
|
|
|
|
<StackPanel Orientation="Vertical" Margin="8,0,0,0">
|
|
|
|
<TextBlock Classes="bold" FontSize="18" Text="{DynamicResource Text.Clone}"/>
|
|
|
|
|
2024-06-13 18:44:44 -07:00
|
|
|
<Grid Margin="8,16,0,0" RowDefinitions="32,Auto,32,32,32" ColumnDefinitions="Auto,*">
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
Text="{DynamicResource Text.Clone.RemoteURL}"/>
|
|
|
|
<TextBox Grid.Row="0" Grid.Column="1"
|
|
|
|
Height="28"
|
|
|
|
CornerRadius="3"
|
|
|
|
Text="{Binding Remote, Mode=TwoWay}"
|
|
|
|
v:AutoFocusBehaviour.IsEnabled="True"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
Text="{DynamicResource Text.SSHKey}"
|
|
|
|
IsVisible="{Binding UseSSH}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="1"
|
2024-05-31 21:13:57 -07:00
|
|
|
x:Name="TxtSshKey"
|
2024-03-11 18:53:52 -07:00
|
|
|
Height="28"
|
|
|
|
CornerRadius="3"
|
|
|
|
Watermark="{DynamicResource Text.SSHKey.Placeholder}"
|
2024-06-13 18:44:44 -07:00
|
|
|
Text="{Binding SSHKey, Mode=TwoWay}"
|
|
|
|
IsVisible="{Binding UseSSH}">
|
2024-03-11 18:53:52 -07:00
|
|
|
<TextBox.InnerRightContent>
|
2024-06-13 18:44:44 -07:00
|
|
|
<Button Classes="icon_button" Width="28" Height="28" Click="SelectSSHKey">
|
2024-03-11 18:53:52 -07:00
|
|
|
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
|
|
|
|
</Button>
|
|
|
|
</TextBox.InnerRightContent>
|
|
|
|
</TextBox>
|
2024-06-13 18:44:44 -07:00
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
Text="{DynamicResource Text.Clone.ParentFolder}"/>
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="1"
|
2024-05-31 21:13:57 -07:00
|
|
|
x:Name="TxtParentFolder"
|
2024-03-11 18:53:52 -07:00
|
|
|
Height="28"
|
|
|
|
CornerRadius="3"
|
|
|
|
Text="{Binding ParentFolder, Mode=TwoWay}">
|
|
|
|
<TextBox.InnerRightContent>
|
2024-06-13 18:44:44 -07:00
|
|
|
<Button Classes="icon_button" Width="28" Height="28" Margin="4,0,0,0" Click="SelectParentFolder">
|
2024-03-11 18:53:52 -07:00
|
|
|
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
|
|
|
|
</Button>
|
|
|
|
</TextBox.InnerRightContent>
|
|
|
|
</TextBox>
|
2024-06-13 18:44:44 -07:00
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
Text="{DynamicResource Text.Clone.LocalName}"/>
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="1"
|
|
|
|
Height="28"
|
|
|
|
CornerRadius="3"
|
|
|
|
Watermark="{DynamicResource Text.Clone.LocalName.Placeholder}"
|
|
|
|
Text="{Binding Local, Mode=TwoWay}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
Text="{DynamicResource Text.Clone.AdditionalParam}"/>
|
|
|
|
<TextBox Grid.Row="4" Grid.Column="1"
|
|
|
|
Height="28"
|
|
|
|
CornerRadius="3"
|
|
|
|
Watermark="{DynamicResource Text.Clone.AdditionalParam.Placeholder}"
|
|
|
|
Text="{Binding ExtraArgs, Mode=TwoWay}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|