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