mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复codemirror暗黑模式文本选中颜色
This commit is contained in:
parent
51b0418fa9
commit
a4f06413a3
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user