mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: add editor setting (#622)
This commit is contained in:
1 parent
3615d13ce2
commit
2dabe3194e
4 files changed
+100
-1
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import ProblemIcon from '@vscode/codicons/src/icons/file.svg?react';
|
||||
import SettingsIcon from '@vscode/codicons/src/icons/settings-gear.svg?react';
|
||||
import { Allotment } from 'allotment';
|
||||
import $ from 'jquery';
|
||||
import _ from 'lodash';
|
||||
@@ -10,6 +11,7 @@ import { Context, ctx, Service } from 'vj/context';
|
||||
import ScratchpadEditor from './ScratchpadEditorContainer';
|
||||
import ScratchpadPretest from './ScratchpadPretestContainer';
|
||||
import ScratchpadRecords from './ScratchpadRecordsContainer';
|
||||
import ScratchpadSettings from './ScratchpadSettings';
|
||||
import ScratchpadToolbar from './ScratchpadToolbarContainer';
|
||||
|
||||
const pages = {
|
||||
@@ -17,6 +19,10 @@ const pages = {
|
||||
icon: () => <ProblemIcon />,
|
||||
component: () => <Dom childDom={$('.problem-content').get(0)} />,
|
||||
},
|
||||
settings: {
|
||||
icon: () => <SettingsIcon />,
|
||||
component: () => <ScratchpadSettings />,
|
||||
},
|
||||
};
|
||||
|
||||
let rerenderCallback = null;
|
||||
|
||||
Reference in new issue
Block a user