UNPKG

nyx_server

Version:

Node内容发布

36 lines (31 loc) 1.03 kB
import React from 'react'; import { fromJS, toJS } from 'immutable'; import { Table, QueueAnim } from 'antd'; export default class Projects extends React.Component { getIps() { return this.props.ips || fromJS([]); } creatLink (ip) { return 'http://' + ip + ':' + window.location.port + window.location.pathname; } render() { return ( <div> <QueueAnim delay={100}> <h3 key="a" style={{marginBottom: "10", marginLeft: "5"}}>本机ip列表,点击切换ip</h3> {this.getIps().map(ip => { return ( <div key={ip} style={{paddingLeft: "10", paddingBottom: "5"}}> <a href={this.creatLink(ip)}>{ip}</a> </div> ) })} <h3 key="b" style={{marginBottom: "10", marginLeft: "5"}}>Browsersync 管理界面</h3> <div key="c" style={{paddingLeft: "10", paddingBottom: "5"}}> <a href="http://127.0.0.1:3001">点击进入管理界面</a> </div> </QueueAnim> </div> ); } }