mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
96d4150d26
* remove dotnet-tool.json because the project does not rely on any dotnet tools. * remove Directory.Build.props because the solution has only one project. * move src/SourceGit to src. It's not needed to put all sources into a subfolder of src since there's only one project.
56 lines
3.2 KiB
XML
56 lines
3.2 KiB
XML
<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:m="using:SourceGit.Models"
|
|
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}"/>
|
|
|
|
<Grid Margin="8,16,0,0" Height="28" ColumnDefinitions="120,*">
|
|
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.RemoteURL}"/>
|
|
<TextBox Grid.Column="1" CornerRadius="3" Text="{Binding Remote, Mode=TwoWay}" v:AutoFocusBehaviour.IsEnabled="True"/>
|
|
</Grid>
|
|
<Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="120,*" IsVisible="{Binding UseSSH}">
|
|
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.SSHKey}"/>
|
|
<TextBox Grid.Column="1"
|
|
x:Name="txtSSHKey"
|
|
Height="28"
|
|
CornerRadius="3"
|
|
Watermark="{DynamicResource Text.SSHKey.Placeholder}"
|
|
Text="{Binding SSHKey, Mode=TwoWay}">
|
|
<TextBox.InnerRightContent>
|
|
<Button Classes="icon_button" Width="30" Height="30" Click="SelectSSHKey">
|
|
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
|
|
</Button>
|
|
</TextBox.InnerRightContent>
|
|
</TextBox>
|
|
</Grid>
|
|
<Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="120,*">
|
|
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.ParentFolder}"/>
|
|
<TextBox Grid.Column="1"
|
|
x:Name="txtParentFolder"
|
|
Height="28"
|
|
CornerRadius="3"
|
|
Text="{Binding ParentFolder, Mode=TwoWay}">
|
|
<TextBox.InnerRightContent>
|
|
<Button Classes="icon_button" Width="30" Height="30" Margin="4,0,0,0" Click="SelectParentFolder">
|
|
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
|
|
</Button>
|
|
</TextBox.InnerRightContent>
|
|
</TextBox>
|
|
</Grid>
|
|
<Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="120,*">
|
|
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.LocalName}"/>
|
|
<TextBox Grid.Column="1" CornerRadius="3" Watermark="{DynamicResource Text.Clone.LocalName.Placeholder}" Text="{Binding Local, Mode=TwoWay}"/>
|
|
</Grid>
|
|
<Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="120,*">
|
|
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.AdditionalParam}"/>
|
|
<TextBox Grid.Column="1" CornerRadius="3" Watermark="{DynamicResource Text.Clone.AdditionalParam.Placeholder}" Text="{Binding ExtraArgs, Mode=TwoWay}"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</UserControl>
|