mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
修复codemirror暗黑模式文本选中颜色
This commit is contained in:
@@ -5,7 +5,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@import '~codemirror/lib/codemirror.css';
|
@import '~codemirror/lib/codemirror.css';
|
||||||
@import '~codemirror/theme/dracula.css';
|
@import '~codemirror/theme/icecoder.css';
|
||||||
|
|
||||||
.code-mirror-wrapper .CodeMirror {
|
.code-mirror-wrapper .CodeMirror {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import './index.less';
|
|||||||
export default function (props: any) {
|
export default function (props: any) {
|
||||||
const logout = () => {
|
const logout = () => {
|
||||||
localStorage.removeItem(config.authKey);
|
localStorage.removeItem(config.authKey);
|
||||||
|
history.push('/login');
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const Crontab = () => {
|
|||||||
styleActiveLine: true,
|
styleActiveLine: true,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
mode: 'shell',
|
mode: 'shell',
|
||||||
theme: 'dracula',
|
theme: 'icecoder',
|
||||||
readOnly: 'nocursor',
|
readOnly: 'nocursor',
|
||||||
}}
|
}}
|
||||||
onBeforeChange={(editor, data, value) => {
|
onBeforeChange={(editor, data, value) => {
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ const Config = () => {
|
|||||||
styleActiveLine: true,
|
styleActiveLine: true,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
mode: 'shell',
|
mode: 'shell',
|
||||||
theme: 'dracula',
|
theme: 'icecoder',
|
||||||
}}
|
}}
|
||||||
onBeforeChange={(editor, data, value) => {
|
onBeforeChange={(editor, data, value) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ const Crontab = () => {
|
|||||||
styleActiveLine: true,
|
styleActiveLine: true,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
mode: 'shell',
|
mode: 'shell',
|
||||||
theme: 'dracula',
|
theme: 'icecoder',
|
||||||
}}
|
}}
|
||||||
onBeforeChange={(editor, data, value) => {
|
onBeforeChange={(editor, data, value) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ const Crontab = () => {
|
|||||||
styleActiveLine: true,
|
styleActiveLine: true,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
mode: 'shell',
|
mode: 'shell',
|
||||||
theme: 'dracula',
|
theme: 'icecoder',
|
||||||
}}
|
}}
|
||||||
onBeforeChange={(editor, data, value) => {
|
onBeforeChange={(editor, data, value) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ const Log = () => {
|
|||||||
styleActiveLine: true,
|
styleActiveLine: true,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
mode: 'shell',
|
mode: 'shell',
|
||||||
theme: 'dracula',
|
theme: 'icecoder',
|
||||||
readOnly: 'nocursor',
|
readOnly: 'nocursor',
|
||||||
}}
|
}}
|
||||||
onBeforeChange={(editor, data, value) => {
|
onBeforeChange={(editor, data, value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user