mirror of
https://github.com/BoostIo/Boostnote
synced 2026-02-03 02:57:18 +00:00
add Date ISO 8601 format
This commit is contained in:
@@ -738,6 +738,7 @@ class SnippetNoteDetail extends React.Component {
|
||||
enableSmartPaste={config.editor.enableSmartPaste}
|
||||
hotkey={config.hotkey}
|
||||
autoDetect={autoDetect}
|
||||
dateISO8601={config.ui.dateFormatISO8601}
|
||||
/>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -39,7 +39,8 @@ export const DEFAULT_CONFIG = {
|
||||
showCopyNotification: true,
|
||||
disableDirectWrite: false,
|
||||
defaultNote: 'ALWAYS_ASK', // 'ALWAYS_ASK', 'SNIPPET_NOTE', 'MARKDOWN_NOTE'
|
||||
showMenuBar: false
|
||||
showMenuBar: false,
|
||||
dateFormatISO8601: false
|
||||
},
|
||||
editor: {
|
||||
theme: 'base16-light',
|
||||
|
||||
@@ -78,6 +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,
|
||||
disableDirectWrite: this.refs.uiD2w != null
|
||||
? this.refs.uiD2w.checked
|
||||
: false
|
||||
@@ -293,7 +294,16 @@ class UiTab extends React.Component {
|
||||
</div>
|
||||
: null
|
||||
}
|
||||
|
||||
<div styleName='group-checkBoxSection'>
|
||||
<label>
|
||||
<input onChange={(e) => this.handleUIChange(e)}
|
||||
checked={this.state.config.ui.dateFormatISO8601}
|
||||
ref='dateFormatISO8601'
|
||||
type='checkbox'
|
||||
/>
|
||||
{i18n.__('Date shortcut use iso 8601 format')}
|
||||
</label>
|
||||
</div>
|
||||
<div styleName='group-header2'>Tags</div>
|
||||
|
||||
<div styleName='group-checkBoxSection'>
|
||||
|
||||
Reference in New Issue
Block a user