1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

refactor: move the config down to editor setting

This commit is contained in:
mehdi
2019-07-08 19:27:23 +09:00
parent 6e45ee6a38
commit 80a63f7404
6 changed files with 28 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ class UiTab extends React.Component {
saveTagsAlphabetically: this.refs.saveTagsAlphabetically.checked,
enableLiveNoteCounts: this.refs.enableLiveNoteCounts.checked,
showMenuBar: this.refs.showMenuBar.checked,
dateFormatISO8601: this.refs.dateFormatISO8601.checked,
// dateFormatISO8601: this.refs.dateFormatISO8601.checked,
disableDirectWrite: this.refs.uiD2w != null
? this.refs.uiD2w.checked
: false
@@ -106,7 +106,8 @@ class UiTab extends React.Component {
spellcheck: this.refs.spellcheck.checked,
enableSmartPaste: this.refs.enableSmartPaste.checked,
enableMarkdownLint: this.refs.enableMarkdownLint.checked,
customMarkdownLintConfig: this.customMarkdownLintConfigCM.getCodeMirror().getValue()
customMarkdownLintConfig: this.customMarkdownLintConfigCM.getCodeMirror().getValue(),
dateFormatISO8601: this.refs.dateFormatISO8601.checked
},
preview: {
fontSize: this.refs.previewFontSize.value,
@@ -294,7 +295,7 @@ class UiTab extends React.Component {
</div>
: null
}
<div styleName='group-checkBoxSection'>
{/* <div styleName='group-checkBoxSection'>
<label>
<input onChange={(e) => this.handleUIChange(e)}
checked={this.state.config.ui.dateFormatISO8601}
@@ -303,7 +304,7 @@ class UiTab extends React.Component {
/>&nbsp;
{i18n.__('Date shortcut use iso 8601 format')}
</label>
</div>
</div> */}
<div styleName='group-header2'>Tags</div>
<div styleName='group-checkBoxSection'>
@@ -610,6 +611,17 @@ class UiTab extends React.Component {
</label>
</div>
<div styleName='group-checkBoxSection'>
<label>
<input onChange={(e) => this.handleUIChange(e)}
checked={this.state.config.editor.dateFormatISO8601}
ref='dateFormatISO8601'
type='checkbox'
/>&nbsp;
{i18n.__('Date shortcut use iso 8601 format')}
</label>
</div>
<div styleName='group-section'>
<div styleName='group-section-label'>
{i18n.__('Matching character pairs')}