@@ -66,14 +66,14 @@ export default class Settings extends Component {
|
||||
return (
|
||||
<div className={classes.container}>
|
||||
<div className={classes.column}>
|
||||
<h2>Settings</h2>
|
||||
<h2>设置</h2>
|
||||
|
||||
<ul>
|
||||
{
|
||||
user && (
|
||||
<li className={classes.user}>
|
||||
<Avatar src={this.props.user.User.HeadImgUrl} />
|
||||
<button onClick={e => this.props.logout()}>Logout</button>
|
||||
<button onClick={e => this.props.logout()}>登出</button>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
@@ -83,15 +83,15 @@ export default class Settings extends Component {
|
||||
onChange={e => setDownloads(e.target.files[0])}
|
||||
ref="downloads"
|
||||
type="file" />
|
||||
<p>Downloads</p>
|
||||
<p>下载目录</p>
|
||||
<p onClick={e => this.choiceDownloadDir()}>{downloads}</p>
|
||||
</div>
|
||||
|
||||
<button onClick={e => this.choiceDownloadDir()}>Change</button>
|
||||
<button onClick={e => this.choiceDownloadDir()}>更改</button>
|
||||
</li>
|
||||
<li>
|
||||
<label htmlFor="alwaysOnTop">
|
||||
<span>Always on Top</span>
|
||||
<span>窗口置顶</span>
|
||||
<Switch
|
||||
checked={alwaysOnTop}
|
||||
id="alwaysOnTop"
|
||||
@@ -101,7 +101,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="showOnTray">
|
||||
<span>Show on Tray</span>
|
||||
<span>显示托盘图标</span>
|
||||
<Switch
|
||||
checked={showOnTray}
|
||||
disabled={!helper.isOsx}
|
||||
@@ -112,7 +112,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="showNotification">
|
||||
<span>Send Desktop Notifications</span>
|
||||
<span>发送桌面通知</span>
|
||||
<Switch
|
||||
checked={showNotification}
|
||||
id="showNotification"
|
||||
@@ -122,7 +122,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="blockRecall">
|
||||
<span>Block Message Recall</span>
|
||||
<span>反撤回功能</span>
|
||||
<Switch
|
||||
checked={blockRecall}
|
||||
id="blockRecall"
|
||||
@@ -132,7 +132,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="rememberConversation">
|
||||
<span>Remember the last Conversation</span>
|
||||
<span>记住上次的聊天内容</span>
|
||||
<Switch
|
||||
checked={rememberConversation}
|
||||
id="rememberConversation"
|
||||
@@ -142,7 +142,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="showRedIcon">
|
||||
<span>Show the red button</span>
|
||||
<span>显示首页红色加号按钮</span>
|
||||
<Switch
|
||||
checked={showRedIcon}
|
||||
id="showRedIcon"
|
||||
@@ -152,7 +152,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="confirmImagePaste">
|
||||
<span>Image paste Confirmation</span>
|
||||
<span>在粘贴图片时弹框确认</span>
|
||||
<Switch
|
||||
checked={confirmImagePaste}
|
||||
id="confirmImagePaste"
|
||||
@@ -162,7 +162,7 @@ export default class Settings extends Component {
|
||||
|
||||
<li>
|
||||
<label htmlFor="startup">
|
||||
<span>Launch at startup</span>
|
||||
<span>开机自启动</span>
|
||||
<Switch
|
||||
checked={startup}
|
||||
id="startup"
|
||||
|
||||
Reference in New Issue
Block a user