This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
ViewData["Title"] = "About"; | |
} | |
<h2>@ViewData["Title"].</h2> | |
<h3>@ViewData["Message"]</h3> | |
<h4>OperatingSystem: @ViewData["OperatingSystem"]</h4> | |
<h4>OperatingSystemVersion: @ViewData["OperatingSystemVersion"]</h4> | |
<h4>RuntimeType: @ViewData["RuntimeType"]</h4> | |
<h4>RuntimeArchitecture: @ViewData["RuntimeArchitecture"]</h4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/aspnet:1.0.0-beta8-coreclr | |
COPY./src/WebApplication3./app | |
WORKDIR./app | |
RUN dnu restore | |
ENTRYPOINT dnx web --server.urls http://*:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code completion support is available so start typing for available options. | |
swagger: '2.0' | |
# This is your document metadata | |
info: | |
version: "1.0.1" | |
title: The movie database | |
# Describe your paths here | |
paths: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react'; | |
class NewComponent extends Component { | |
render() { | |
return ( | |
<div> | |
{this.constructor.name} | |
</div> | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react'; | |
import LoginPage from './login-page'; | |
import PlayingMovie from './playing-movie'; | |
import MainPage from './main-page'; | |
const App = ({ user, movies, playing, loginAsUser, startPlaying, stopPlaying }) => { | |
let component = null; | |
if (!user) { | |
component = <LoginPage loginAsUser={loginAsUser} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react'; | |
class LoginPage extends Component { | |
render() { | |
return ( | |
<form className="col-sm-6 col-sm-offset-3"> | |
<div className="form-group"> | |
<label htmlFor="username">Name</label> | |
<input | |
type="text" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react'; | |
class LoginPage extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
name: '', | |
password: '', | |
rememberMe: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import AppContainer from './app-container'; | |
// npm install bootstrap --save | |
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; | |
ReactDOM.render( | |
<AppContainer />, | |
document.getElementById('root') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import AppPresentation from './app-presentation'; | |
class AppContainer extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { user: null }; | |
this.x=2; | |
this.loginAsUser = this.loginAsUser.bind(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import AppPresentation from './app-presentation'; | |
class AppContainer extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { user: null }; | |
this.loginAsUser = this.loginAsUser.bind(this); | |
} |