diff --git a/src/ts/containers/prove/download.tsx b/src/ts/containers/prove/download.tsx index 52ee6e8..b8e9ae8 100644 --- a/src/ts/containers/prove/download.tsx +++ b/src/ts/containers/prove/download.tsx @@ -1,56 +1,69 @@ import * as React from 'react'; - -import { List, ListItem } from 'material-ui/List'; -import ContentInbox from 'material-ui/svg-icons/content/inbox'; -import ActionGrade from 'material-ui/svg-icons/action/grade'; -import ContentSend from 'material-ui/svg-icons/content/send'; -import ContentDrafts from 'material-ui/svg-icons/content/drafts'; -import Divider from 'material-ui/Divider'; -import ActionInfo from 'material-ui/svg-icons/action/info'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; +import Paper from 'material-ui/Paper'; +import Menu from 'material-ui/Menu'; +import MenuItem from 'material-ui/MenuItem'; +import Divider from 'material-ui/Divider'; +import Download from 'material-ui/svg-icons/file/file-download'; +import Delete from 'material-ui/svg-icons/action/delete'; +import ContentCopy from 'material-ui/svg-icons/content/content-copy'; +import {InstallGuide} from './installguide'; const styles = { - container: { - textAlign: "center", - width: 250, - - } + osSelector : { + display: 'inline-block', + float: 'left', + }, + content: { + display: 'inline-block', + float: 'left', + width : "85%", + height : 700, + padding : 20, + }, } export class ProveDownload extends React.Component { constructor(props: any, context: any) { super(props, context) - + this.state = { + selectedOSidx: 0, + selectedOSName : "Windows", + }; } + handleOSChange = (event :any, menuItem: any, index: any) => { + this.setState({ + selectedOSidx: index, + selectedOSName : menuItem.props.primaryText + }); + } render() { - return ( -
- - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - +
+
+ + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + + + +
); diff --git a/src/ts/containers/prove/installguide.tsx b/src/ts/containers/prove/installguide.tsx index e69de29..ad7960b 100644 --- a/src/ts/containers/prove/installguide.tsx +++ b/src/ts/containers/prove/installguide.tsx @@ -0,0 +1,96 @@ +import * as React from 'react'; +import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; +import {List, ListItem} from 'material-ui/List'; +import ActionInfo from 'material-ui/svg-icons/action/info'; +import SelectField from 'material-ui/SelectField'; +import MenuItem from 'material-ui/MenuItem'; + +const styles = { + content: { + display: 'inline-block', + float: 'left', + width : "85%", + height : 700, + }, +} + +export class InstallGuide extends React.Component { + constructor(props: any, context: any) { + super(props, context) + this.state = { + }; + } + + + render() { + const osIdx = this.props.idx; + let target = null; + if (osIdx == 0) { + target = ; + }else if (osIdx == 1) { + target = ; + }else { + target =

Not support yet.

; + } + + return ( + +
+

Installing on {this.props.name}

+ } /> + {target} +
+
+ ); + } +} + +export class WindowsInstallGuide extends React.Component { + constructor(props: any, context: any) { + super(props, context) + this.state = { + }; + } + + handleArchChange = (event :any, menuItem: any, value: any) => { + this.setState({ + selectedArch: value, + }); + } + + render() { + return ( + +
+ + + + +
+
+ ); + } +} + +export class UbuntuInstallGuide extends React.Component { + constructor(props: any, context: any) { + super(props, context) + this.state = { + }; + } + + + render() { + return ( + +
+ Ubuntu blah blah +
+
+ ); + } +} \ No newline at end of file diff --git a/src/ts/index.tsx b/src/ts/index.tsx index 3e831f1..bb4d280 100644 --- a/src/ts/index.tsx +++ b/src/ts/index.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as injectTapEventPlugin from 'react-tap-event-plugin'; + import { MemberRegist } from './containers/member/regist'; import { MemberRegistResult } from './containers/member/registResult'; import { MemberEmailConfirm } from './containers/member/emailConfirm'; @@ -14,6 +15,6 @@ import '../scss/index.scss'; injectTapEventPlugin(); ReactDOM.render( - , + , document.getElementById('example') ); \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 798c72b..7012b32 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,7 +26,7 @@ module.exports = { historyApiFallback: true, contentBase: [__dirname + '/public', __dirname + '/dist', __dirname + '/node_modules'], // match the output path publicPath: '/' ,// match the output `publicPath` - host: '192.168.1.209', + host: '127.0.0.1', port: 9091, stats: { colors: true