1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-08 22:49:21 +00:00

Rename 'lineNumber' to 'displayLineNumbers'

This commit is contained in:
David Pavlík
2017-12-23 22:51:38 +01:00
parent 7a4258bb20
commit 1f5f6c3b0e
5 changed files with 9 additions and 11 deletions

View File

@@ -530,7 +530,7 @@ class SnippetNoteDetail extends React.Component {
fontSize={editorFontSize}
indentType={config.editor.indentType}
indentSize={editorIndentSize}
lineNumber
displayLineNumbers
keyMap={config.editor.keyMap}
onChange={(e) => this.handleCodeChange(index)(e)}
ref={'code-' + index}

View File

@@ -35,7 +35,7 @@ export const DEFAULT_CONFIG = {
fontFamily: win ? 'Segoe UI' : 'Monaco, Consolas',
indentType: 'space',
indentSize: '2',
lineNumber: true,
displayLineNumbers: true,
switchPreview: 'BLUR' // Available value: RIGHTCLICK, BLUR
},
preview: {

View File

@@ -46,7 +46,7 @@ class UiTab extends React.Component {
fontFamily: this.refs.editorFontFamily.value,
indentType: this.refs.editorIndentType.value,
indentSize: this.refs.editorIndentSize.value,
lineNumber: this.refs.editorLineNumber.checked,
displayLineNumbers: this.refs.editorDisplayLineNumbers.checked,
switchPreview: this.refs.editorSwitchPreview.value,
keyMap: this.refs.editorKeyMap.value
},
@@ -226,8 +226,8 @@ class UiTab extends React.Component {
<div styleName='group-checkBoxSection'>
<label>
<input onChange={(e) => this.handleUIChange(e)}
checked={this.state.config.editor.lineNumber}
ref='editorLineNumber'
checked={this.state.config.editor.displayLineNumbers}
ref='editorDisplayLineNumbers'
type='checkbox'
/>&nbsp;
Show line numbers in the editor