Skip to content

Commit cd17c37

Browse files
committed
Initial commit
1 parent c126424 commit cd17c37

Some content is hidden

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

57 files changed

+4345
-0
lines changed

.gitignore

+237
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
/Properties/launchSettings.json
2+
3+
## Ignore Visual Studio temporary files, build results, and
4+
## files generated by popular Visual Studio add-ons.
5+
6+
# User-specific files
7+
*.suo
8+
*.user
9+
*.userosscache
10+
*.sln.docstates
11+
12+
# User-specific files (MonoDevelop/Xamarin Studio)
13+
*.userprefs
14+
15+
# Build results
16+
[Dd]ebug/
17+
[Dd]ebugPublic/
18+
[Rr]elease/
19+
[Rr]eleases/
20+
x64/
21+
x86/
22+
build/
23+
bld/
24+
bin/
25+
Bin/
26+
obj/
27+
Obj/
28+
29+
# Visual Studio 2015 cache/options directory
30+
.vs/
31+
/wwwroot/dist/
32+
/ClientApp/dist/
33+
34+
/yarn.lock
35+
36+
# MSTest test Results
37+
[Tt]est[Rr]esult*/
38+
[Bb]uild[Ll]og.*
39+
40+
# NUNIT
41+
*.VisualState.xml
42+
TestResult.xml
43+
44+
# Build Results of an ATL Project
45+
[Dd]ebugPS/
46+
[Rr]eleasePS/
47+
dlldata.c
48+
49+
*_i.c
50+
*_p.c
51+
*_i.h
52+
*.ilk
53+
*.meta
54+
*.obj
55+
*.pch
56+
*.pdb
57+
*.pgc
58+
*.pgd
59+
*.rsp
60+
*.sbr
61+
*.tlb
62+
*.tli
63+
*.tlh
64+
*.tmp
65+
*.tmp_proj
66+
*.log
67+
*.vspscc
68+
*.vssscc
69+
.builds
70+
*.pidb
71+
*.svclog
72+
*.scc
73+
74+
# Chutzpah Test files
75+
_Chutzpah*
76+
77+
# Visual C++ cache files
78+
ipch/
79+
*.aps
80+
*.ncb
81+
*.opendb
82+
*.opensdf
83+
*.sdf
84+
*.cachefile
85+
86+
# Visual Studio profiler
87+
*.psess
88+
*.vsp
89+
*.vspx
90+
*.sap
91+
92+
# TFS 2012 Local Workspace
93+
$tf/
94+
95+
# Guidance Automation Toolkit
96+
*.gpState
97+
98+
# ReSharper is a .NET coding add-in
99+
_ReSharper*/
100+
*.[Rr]e[Ss]harper
101+
*.DotSettings.user
102+
103+
# JustCode is a .NET coding add-in
104+
.JustCode
105+
106+
# TeamCity is a build add-in
107+
_TeamCity*
108+
109+
# DotCover is a Code Coverage Tool
110+
*.dotCover
111+
112+
# NCrunch
113+
_NCrunch_*
114+
.*crunch*.local.xml
115+
nCrunchTemp_*
116+
117+
# MightyMoose
118+
*.mm.*
119+
AutoTest.Net/
120+
121+
# Web workbench (sass)
122+
.sass-cache/
123+
124+
# Installshield output folder
125+
[Ee]xpress/
126+
127+
# DocProject is a documentation generator add-in
128+
DocProject/buildhelp/
129+
DocProject/Help/*.HxT
130+
DocProject/Help/*.HxC
131+
DocProject/Help/*.hhc
132+
DocProject/Help/*.hhk
133+
DocProject/Help/*.hhp
134+
DocProject/Help/Html2
135+
DocProject/Help/html
136+
137+
# Click-Once directory
138+
publish/
139+
140+
# Publish Web Output
141+
*.[Pp]ublish.xml
142+
*.azurePubxml
143+
# TODO: Comment the next line if you want to checkin your web deploy settings
144+
# but database connection strings (with potential passwords) will be unencrypted
145+
*.pubxml
146+
*.publishproj
147+
148+
# NuGet Packages
149+
*.nupkg
150+
# The packages folder can be ignored because of Package Restore
151+
**/packages/*
152+
# except build/, which is used as an MSBuild target.
153+
!**/packages/build/
154+
# Uncomment if necessary however generally it will be regenerated when needed
155+
#!**/packages/repositories.config
156+
157+
# Microsoft Azure Build Output
158+
csx/
159+
*.build.csdef
160+
161+
# Microsoft Azure Emulator
162+
ecf/
163+
rcf/
164+
165+
# Microsoft Azure ApplicationInsights config file
166+
ApplicationInsights.config
167+
168+
# Windows Store app package directory
169+
AppPackages/
170+
BundleArtifacts/
171+
172+
# Visual Studio cache files
173+
# files ending in .cache can be ignored
174+
*.[Cc]ache
175+
# but keep track of directories ending in .cache
176+
!*.[Cc]ache/
177+
178+
# Others
179+
ClientBin/
180+
~$*
181+
*~
182+
*.dbmdl
183+
*.dbproj.schemaview
184+
*.pfx
185+
*.publishsettings
186+
orleans.codegen.cs
187+
188+
/node_modules
189+
190+
# RIA/Silverlight projects
191+
Generated_Code/
192+
193+
# Backup & report files from converting an old project file
194+
# to a newer Visual Studio version. Backup files are not needed,
195+
# because we have git ;-)
196+
_UpgradeReport_Files/
197+
Backup*/
198+
UpgradeLog*.XML
199+
UpgradeLog*.htm
200+
201+
# SQL Server files
202+
*.mdf
203+
*.ldf
204+
205+
# Business Intelligence projects
206+
*.rdl.data
207+
*.bim.layout
208+
*.bim_*.settings
209+
210+
# Microsoft Fakes
211+
FakesAssemblies/
212+
213+
# GhostDoc plugin setting file
214+
*.GhostDoc.xml
215+
216+
# Node.js Tools for Visual Studio
217+
.ntvs_analysis.dat
218+
219+
# Visual Studio 6 build log
220+
*.plg
221+
222+
# Visual Studio 6 workspace options file
223+
*.opt
224+
225+
# Visual Studio LightSwitch build output
226+
**/*.HTMLClient/GeneratedArtifacts
227+
**/*.DesktopClient/GeneratedArtifacts
228+
**/*.DesktopClient/ModelManifest.xml
229+
**/*.Server/GeneratedArtifacts
230+
**/*.Server/ModelManifest.xml
231+
_Pvt_Extensions
232+
233+
# Paket dependency manager
234+
.paket/paket.exe
235+
236+
# FAKE - F# Make
237+
.fake/

.vscode/launch.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "attach",
10+
"name": "Attach to Chrome",
11+
"port": 9222,
12+
"webRoot": "${workspaceRoot}"
13+
},
14+
{
15+
"type": "chrome",
16+
"request": "launch",
17+
"name": "Launch Chrome",
18+
"url": "http://localhost:8080",
19+
"webRoot": "${workspaceRoot}"
20+
},
21+
{
22+
"name": ".NET Core Launch (web)",
23+
"type": "coreclr",
24+
"request": "launch",
25+
"preLaunchTask": "build",
26+
// If you have changed target frameworks, make sure to update the program path.
27+
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/demo.dll",
28+
"args": [],
29+
"cwd": "${workspaceFolder}",
30+
"stopAtEntry": false,
31+
"internalConsoleOptions": "openOnSessionStart",
32+
"launchBrowser": {
33+
"enabled": true,
34+
"args": "${auto-detect-url}",
35+
"windows": {
36+
"command": "cmd.exe",
37+
"args": "/C start ${auto-detect-url}"
38+
},
39+
"osx": {
40+
"command": "open"
41+
},
42+
"linux": {
43+
"command": "xdg-open"
44+
}
45+
},
46+
"env": {
47+
"ASPNETCORE_ENVIRONMENT": "Development"
48+
},
49+
"sourceFileMap": {
50+
"/Views": "${workspaceFolder}/Views"
51+
}
52+
},
53+
{
54+
"name": ".NET Core Attach",
55+
"type": "coreclr",
56+
"request": "attach",
57+
"processId": "${command:pickProcess}"
58+
}
59+
]
60+
}

.vscode/tasks.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"taskName": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/demo.csproj"
11+
],
12+
"problemMatcher": "$msCompile"
13+
}
14+
]
15+
}

ClientApp/boot-client.tsx

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import './css/site.css';
2+
import 'bootstrap';
3+
import * as React from 'react';
4+
import * as ReactDOM from 'react-dom';
5+
import { AppContainer } from 'react-hot-loader';
6+
import { Provider } from 'react-redux';
7+
import { ConnectedRouter } from 'react-router-redux';
8+
import { createBrowserHistory } from 'history';
9+
import configureStore from './configureStore';
10+
import { ApplicationState } from './store';
11+
import * as RoutesModule from './routes';
12+
let routes = RoutesModule.routes;
13+
14+
// Create browser history to use in the Redux store
15+
const baseUrl = document.getElementsByTagName('base')[0].getAttribute('href')!;
16+
const history = createBrowserHistory({ basename: baseUrl });
17+
18+
// Get the application-wide store instance, prepopulating with state from the server where available.
19+
const initialState = (window as any).initialReduxState as ApplicationState;
20+
const store = configureStore(history, initialState);
21+
22+
function renderApp() {
23+
// This code starts up the React app when it runs in a browser. It sets up the routing configuration
24+
// and injects the app into a DOM element.
25+
ReactDOM.render(
26+
<AppContainer>
27+
<Provider store={ store }>
28+
<ConnectedRouter history={ history } children={ routes } />
29+
</Provider>
30+
</AppContainer>,
31+
document.getElementById('react-app')
32+
);
33+
}
34+
35+
renderApp();
36+
37+
// Allow Hot Module Replacement
38+
if (module.hot) {
39+
module.hot.accept('./routes', () => {
40+
routes = require<typeof RoutesModule>('./routes').routes;
41+
renderApp();
42+
});
43+
}

0 commit comments

Comments
 (0)