Skip to content

Commit

Permalink
Set additional contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha Bruttin committed Feb 14, 2018
1 parent 424aaa9 commit 8e303cb
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/DocumentDbExplorer/DocumentDbExplorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<Compile Include="Infrastructure\Converters\IsNotNullToBooleanConverter.cs" />
<Compile Include="Infrastructure\Converters\LogConverter.cs" />
<Compile Include="Infrastructure\Converters\NullToVisibilityConverter.cs" />
<Compile Include="Infrastructure\Models\Author.cs" />
<Compile Include="Infrastructure\TemplateSelectors\DocumentDescriptionTemplateSelector.cs" />
<Compile Include="Infrastructure\TemplateSelectors\DocumentHeaderTemplateSelector.cs" />
<Compile Include="Infrastructure\Extensions\DocumentClientExceptionExtension.cs" />
Expand Down
14 changes: 14 additions & 0 deletions src/DocumentDbExplorer/Infrastructure/Models/Author.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace DocumentDbExplorer.Infrastructure.Models
{
public class Author
{
public Author(string name, string profile)
{
Name = name;
Profile = profile;
}

public string Name { get; }
public string Profile { get; }
}
}
4 changes: 2 additions & 2 deletions src/DocumentDbExplorer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
[assembly: Guid("D7DCA337-E3E6-4ED9-8AA9-ACCBF9FF59BD")]

2 changes: 1 addition & 1 deletion src/DocumentDbExplorer/ViewModel/AboutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public AboutViewModel()

public string Title => ((AssemblyTitleAttribute)Attribute.GetCustomAttribute(_assembly, typeof(AssemblyTitleAttribute), false))?.Title ?? "error retriving assembly title";

public string Authors => "Sacha Bruttin";
public List<Author> Authors => new List<Author> { new Author("Sacha Bruttin", "sachabruttin"), new Author("savbace", "savbace")};

public string LicenseUrl => "https://github.com/sachabruttin/DocumentDbExplorer/blob/master/LICENSE";

Expand Down
58 changes: 34 additions & 24 deletions src/DocumentDbExplorer/Views/AboutView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@
<TextBlock Grid.Row="1" Grid.Column="0" Text="Version:" Foreground="Black" />
<TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Version}" Style="{StaticResource valueText}" />

<TextBlock Grid.Row="2" Grid.Column="0" Text="Author(s):" Foreground="Black" />
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Authors}" Style="{StaticResource valueText}" />
<TextBlock Grid.Row="2" Grid.Column="0" Text="Contributors:" Foreground="Black" />
<ItemsControl Grid.Row="2" Grid.Column="1" ItemsSource="{Binding Authors}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Style="{StaticResource valueText}">
<Hyperlink NavigateUri="{Binding Profile}" RequestNavigate="Hyperlink_RequestNavigate_Github">
<TextBlock Text="{Binding Name}" />
</Hyperlink>
</TextBlock>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

<TextBlock Grid.Row="3" Grid.Column="0" Text="Project Url:" Foreground="Black" />
<TextBlock Grid.Row="3" Grid.Column="1" Style="{StaticResource valueText}">
Expand All @@ -66,42 +76,42 @@
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<ItemsControl Margin="10" ItemsSource="{Binding ExternalComponents}" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding Name}" Foreground="Black"/>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding Name}" Foreground="Black"/>

<TextBlock Grid.Row="0" Grid.Column="1" Text="Project Url:" Foreground="Black"/>
<TextBlock Grid.Row="0" Grid.Column="2" Style="{StaticResource valueText}">
<TextBlock Grid.Row="0" Grid.Column="2" Style="{StaticResource valueText}">
<Hyperlink NavigateUri="{Binding ProjectUrl}" RequestNavigate="Hyperlink_RequestNavigate">
<TextBlock Text="{Binding ProjectUrl}" />
</Hyperlink>
</TextBlock>

<TextBlock Grid.Row="1" Grid.Column="1" Text="License Url:" Foreground="Black"/>
<TextBlock Grid.Row="1" Grid.Column="2" Style="{StaticResource valueText}">
<TextBlock Grid.Row="1" Grid.Column="2" Style="{StaticResource valueText}">
<Hyperlink NavigateUri="{Binding LicenseUrl}" RequestNavigate="Hyperlink_RequestNavigate">
<TextBlock Text="{Binding LicenseUrl}" />
</Hyperlink>
</TextBlock>

<Separator Grid.Row="2" Grid.ColumnSpan="3" />
</Grid>
<Separator Grid.Row="2" Grid.ColumnSpan="3" />
</Grid>

</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>

</DockPanel>
</UserControl>
6 changes: 6 additions & 0 deletions src/DocumentDbExplorer/Views/AboutView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}

private void Hyperlink_RequestNavigate_Github(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo($"https://github.com/{e.Uri.OriginalString}"));
e.Handled = true;
}
}
}

0 comments on commit 8e303cb

Please sign in to comment.