Skip to content

Commit c862750

Browse files
committed
Show a login dialog when the app starts.
0 parents  commit c862750

File tree

157 files changed

+108749
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+108749
-0
lines changed

.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain

.gitignore

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
bin/
9+
tmp/
10+
*.tmp
11+
*.bak
12+
*.swp
13+
*~.nib
14+
local.properties
15+
.classpath
16+
.settings/
17+
.loadpath
18+
19+
# External tool builders
20+
.externalToolBuilders/
21+
22+
# Locally stored "Eclipse launch configurations"
23+
*.launch
24+
25+
# CDT-specific
26+
.cproject
27+
28+
# PDT-specific
29+
.buildpath
30+
31+
32+
#################
33+
## Visual Studio
34+
#################
35+
36+
## Ignore Visual Studio temporary files, build results, and
37+
## files generated by popular Visual Studio add-ons.
38+
39+
# User-specific files
40+
*.suo
41+
*.user
42+
*.sln.docstates
43+
44+
# Build results
45+
46+
[Dd]ebug/
47+
[Rr]elease/
48+
x64/
49+
build/
50+
[Bb]in/
51+
[Oo]bj/
52+
53+
# MSTest test Results
54+
[Tt]est[Rr]esult*/
55+
[Bb]uild[Ll]og.*
56+
57+
*_i.c
58+
*_p.c
59+
*.ilk
60+
*.meta
61+
*.obj
62+
*.pch
63+
*.pdb
64+
*.pgc
65+
*.pgd
66+
*.rsp
67+
*.sbr
68+
*.tlb
69+
*.tli
70+
*.tlh
71+
*.tmp
72+
*.tmp_proj
73+
*.log
74+
*.vspscc
75+
*.vssscc
76+
.builds
77+
*.pidb
78+
*.log
79+
*.scc
80+
81+
# Visual C++ cache files
82+
ipch/
83+
*.aps
84+
*.ncb
85+
*.opensdf
86+
*.sdf
87+
*.cachefile
88+
89+
# Visual Studio profiler
90+
*.psess
91+
*.vsp
92+
*.vspx
93+
94+
# Guidance Automation Toolkit
95+
*.gpState
96+
97+
# ReSharper is a .NET coding add-in
98+
_ReSharper*/
99+
*.[Rr]e[Ss]harper
100+
101+
# TeamCity is a build add-in
102+
_TeamCity*
103+
104+
# DotCover is a Code Coverage Tool
105+
*.dotCover
106+
107+
# NCrunch
108+
*.ncrunch*
109+
.*crunch*.local.xml
110+
111+
# Installshield output folder
112+
[Ee]xpress/
113+
114+
# DocProject is a documentation generator add-in
115+
DocProject/buildhelp/
116+
DocProject/Help/*.HxT
117+
DocProject/Help/*.HxC
118+
DocProject/Help/*.hhc
119+
DocProject/Help/*.hhk
120+
DocProject/Help/*.hhp
121+
DocProject/Help/Html2
122+
DocProject/Help/html
123+
124+
# Click-Once directory
125+
publish/
126+
127+
# Publish Web Output
128+
*.Publish.xml
129+
*.pubxml
130+
131+
# NuGet Packages Directory
132+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
133+
#packages/
134+
135+
# Windows Azure Build Output
136+
csx
137+
*.build.csdef
138+
139+
# Windows Store app package directory
140+
AppPackages/
141+
142+
# Others
143+
sql/
144+
*.Cache
145+
ClientBin/
146+
[Ss]tyle[Cc]op.*
147+
~$*
148+
*~
149+
*.dbmdl
150+
*.[Pp]ublish.xml
151+
*.pfx
152+
*.publishsettings
153+
154+
# RIA/Silverlight projects
155+
Generated_Code/
156+
157+
# Backup & report files from converting an old project file to a newer
158+
# Visual Studio version. Backup files are not needed, because we have git ;-)
159+
_UpgradeReport_Files/
160+
Backup*/
161+
UpgradeLog*.XML
162+
UpgradeLog*.htm
163+
164+
# SQL Server files
165+
App_Data/*.mdf
166+
App_Data/*.ldf
167+
168+
#############
169+
## Windows detritus
170+
#############
171+
172+
# Windows image file caches
173+
Thumbs.db
174+
ehthumbs.db
175+
176+
# Folder config file
177+
Desktop.ini
178+
179+
# Recycle Bin used on file shares
180+
$RECYCLE.BIN/
181+
182+
# Mac crap
183+
.DS_Store
184+
185+
186+
#############
187+
## Python
188+
#############
189+
190+
*.py[co]
191+
192+
# Packages
193+
*.egg
194+
*.egg-info
195+
dist/
196+
build/
197+
eggs/
198+
parts/
199+
var/
200+
sdist/
201+
develop-eggs/
202+
.installed.cfg
203+
204+
# Installer logs
205+
pip-log.txt
206+
207+
# Unit test / coverage reports
208+
.coverage
209+
.tox
210+
211+
#Translations
212+
*.mo
213+
214+
#Mr Developer
215+
.mr.developer.cfg

ReactiveGitHubClient.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveGitHubClient", "ReactiveGitHubClient\ReactiveGitHubClient.csproj", "{1C482467-9B95-4C9A-BFD6-AC483975905F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{1C482467-9B95-4C9A-BFD6-AC483975905F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{1C482467-9B95-4C9A-BFD6-AC483975905F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{1C482467-9B95-4C9A-BFD6-AC483975905F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{1C482467-9B95-4C9A-BFD6-AC483975905F}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal

ReactiveGitHubClient/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>

ReactiveGitHubClient/App.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Application x:Class="ReactiveGitHubClient.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
StartupUri="MainWindow.xaml">
5+
<Application.Resources>
6+
7+
</Application.Resources>
8+
</Application>

ReactiveGitHubClient/App.xaml.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// -----------------------------------------------------------------------
2+
// <copyright file="App.xaml.cs" company="Steven Kirk">
3+
// Copyright 2013 MIT Licence. See licence.md for more information.
4+
// </copyright>
5+
// -----------------------------------------------------------------------
6+
7+
namespace ReactiveGitHubClient
8+
{
9+
using System.Windows;
10+
using ReactiveGitHubClient.ViewModels;
11+
using ReactiveGitHubClient.Views;
12+
using ReactiveUI;
13+
14+
/// <summary>
15+
/// The WPF application.
16+
/// </summary>
17+
public partial class App : Application
18+
{
19+
/// <summary>
20+
/// Initializes a new instance of the <see cref="App"/> class.
21+
/// </summary>
22+
public App()
23+
{
24+
RxApp.MutableResolver.Register(() => new LoginView(), typeof(IViewFor<LoginViewModel>));
25+
}
26+
}
27+
}

ReactiveGitHubClient/MainWindow.xaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Window x:Class="ReactiveGitHubClient.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:xaml="clr-namespace:ReactiveUI.Xaml;assembly=ReactiveUI.Xaml"
5+
Title="GitHub with ReactiveUI">
6+
7+
<xaml:ViewModelViewHost HorizontalContentAlignment="Center"
8+
VerticalContentAlignment="Center"
9+
ViewModel="{Binding Content}"/>
10+
11+
</Window>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// -----------------------------------------------------------------------
2+
// <copyright file="MainWindow.xaml.cs" company="Steven Kirk">
3+
// Copyright 2013 MIT Licence. See licence.md for more information.
4+
// </copyright>
5+
// -----------------------------------------------------------------------
6+
7+
namespace ReactiveGitHubClient
8+
{
9+
using System.Windows;
10+
using ReactiveGitHubClient.ViewModels;
11+
12+
/// <summary>
13+
/// Interaction logic for the MainWindow view.
14+
/// </summary>
15+
public partial class MainWindow : Window
16+
{
17+
/// <summary>
18+
/// Initializes a new instance of the <see cref="MainWindow"/> class.
19+
/// </summary>
20+
public MainWindow()
21+
{
22+
this.InitializeComponent();
23+
this.DataContext = new MainWindowViewModel();
24+
}
25+
}
26+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// -----------------------------------------------------------------------
2+
// <copyright file="AssemblyInfo.cs" company="Steven Kirk">
3+
// Copyright 2013 MIT Licence. See licence.md for more information.
4+
// </copyright>
5+
// -----------------------------------------------------------------------
6+
7+
using System.Reflection;
8+
using System.Resources;
9+
using System.Runtime.CompilerServices;
10+
using System.Runtime.InteropServices;
11+
using System.Windows;
12+
13+
// General Information about an assembly is controlled through the following
14+
// set of attributes. Change these attribute values to modify the information
15+
// associated with an assembly.
16+
[assembly: AssemblyTitle("ReactiveGitHubClient")]
17+
[assembly: AssemblyDescription("")]
18+
[assembly: AssemblyConfiguration("")]
19+
[assembly: AssemblyCompany("")]
20+
[assembly: AssemblyProduct("ReactiveGitHubClient")]
21+
[assembly: AssemblyCopyright("Copyright © 2013")]
22+
[assembly: AssemblyTrademark("")]
23+
[assembly: AssemblyCulture("")]
24+
25+
// Setting ComVisible to false makes the types in this assembly not visible
26+
// to COM components. If you need to access a type in this assembly from
27+
// COM, set the ComVisible attribute to true on that type.
28+
[assembly: ComVisible(false)]
29+
30+
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
31+
32+
[assembly: AssemblyVersion("1.0.0.0")]
33+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)