未验证 提交 c1a10b1c 编写于 作者: V Van

💄 side

上级 735d7389
此差异已折叠。
......@@ -19,10 +19,10 @@
],
"author": "B3log 开源",
"devDependencies": {
"apimocker": "^1.1.1",
"apimocker": "^1.1.3",
"cross-env": "^5.2.0",
"electron": "^2.0.8",
"electron-builder": "^20.39.0"
"electron-builder": "^20.44.2"
},
"dependencies": {
"extract-zip": "^1.6.7",
......
此差异已折叠。
......@@ -3,17 +3,17 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@material-ui/core": "latest",
"@material-ui/icons": "^2.0.1",
"@material-ui/core": "^4.2.0",
"@material-ui/icons": "^4.2.1",
"classnames": "^2.2.6",
"echarts": "^4.1.0",
"electron": "^2.0.0",
"echarts": "^4.2.1",
"electron": "^5.0.6",
"fetch-jsonp": "^1.1.3",
"prop-types": "latest",
"react": "latest",
"react-dom": "latest",
"react-router-dom": "^4.3.1",
"react-scripts": "latest",
"react-router-dom": "^5.0.1",
"react-scripts": "^3.0.1",
"reconnectingwebsocket": "^1.0.0"
},
"scripts": {
......
......@@ -123,6 +123,7 @@ class App extends React.Component {
</Link>
)}
/>
<Divider/>
<Route
path="/index"
children={({match}) => (
......@@ -138,6 +139,7 @@ class App extends React.Component {
</Link>
)}
/>
<Divider/>
<Route
path="/downloading"
children={({match}) => (
......@@ -176,6 +178,7 @@ class App extends React.Component {
</Link>
)}
/>
<Divider/>
<Route
path="/donate"
children={({match}) => (
......
......@@ -196,12 +196,12 @@ export default class Welcome extends React.Component {
完成情况
</Typography>
<div>
<Typography variant="headline" component="h2">
<Typography variant="h5" component="h2">
{this.state.data.ctasks.ctaskCount !== 0
? this.state.data.ctasks.ctaskCount + ' 个文件'
: '- -'}
</Typography>
<Typography variant="headline" component="h2">
<Typography variant="h5" component="h2">
{this.state.data.ctasks.ctaskCount !== 0 &&
this.state.data.ctasks.hTotalSize}
</Typography>
......@@ -231,7 +231,7 @@ export default class Welcome extends React.Component {
<Typography color="textSecondary">
点个赞支持下呗
</Typography>
<Typography variant="headline" component="h2">
<Typography variant="h5" component="h2">
<span className={classes.link}
onClick={this.openURL.bind(this, undefined)}>BND2</span>
</Typography>
......@@ -249,7 +249,7 @@ export default class Welcome extends React.Component {
<Typography color="textSecondary">
随便看看
</Typography>
<Typography variant="headline" className={classes.link}
<Typography variant="h5" className={classes.link}
component="h2" onClick={this.toggleB3log}>
B3log 社区动态
</Typography>
......@@ -263,7 +263,7 @@ export default class Welcome extends React.Component {
<ShareIcon/>
分享 BND2
<input className={classes.copyInput} ref={this.text}
readOnly="true"
readOnly="{true}"
value={this.state.shareText}/>
</Button>
</CardActions>
......
......@@ -25,7 +25,7 @@ export default theme => (
left: '58px',
width: 'auto',
'&>div': {
minHeight: '49px'
minHeight: '51px',
}
},
}, utils, side, list, donate, welcome)
......
......@@ -9,6 +9,7 @@ export default {
backgroundColor: 'rgba(0, 0, 0, 0.08)',
},
sideSVG: {
height: '34px',
marginRight: 0,
},
}
\ No newline at end of file
......@@ -17,7 +17,7 @@ const theme = createMuiTheme({
},
},
typography: {
fontFamily: DEFAULT_FONT
fontFamily: DEFAULT_FONT,
},
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册