File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ import { URI } from "vscode-uri";
2323export default function App ( ) {
2424 const [ maximized , _setMaximized ] = useState ( false ) ;
2525
26- // 面板状态
27- // TODO: start file window
28-
2926 const [ projects , setProjects ] = useAtom ( projectsAtom ) ;
3027 const [ activeProject , setActiveProject ] = useAtom ( activeProjectAtom ) ;
3128 const canvasWrapperRef = useRef < HTMLDivElement > ( null ) ;
@@ -41,7 +38,6 @@ export default function App() {
4138
4239 useEffect ( ( ) => {
4340 window . addEventListener ( "keyup" , async ( event ) => {
44- // TODO: 自定义快捷键
4541 // 这两个按键有待添加到自定义快捷键,但他们函数内部用到了useState,还不太清楚怎么改
4642 // ——littlefean(2024年12月27日)
4743 if ( event . key === "F11" ) {
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import remarkParse from "remark-parse";
99import remarkRehype from "remark-rehype" ;
1010import { unified } from "unified" ;
1111
12- // TODO: 使用unified渲染markdown
1312export default function Markdown ( { source, className = "" } : { source : string ; className ?: string } ) {
1413 const [ content , setContent ] = useState ( < > loading</ > ) ;
1514
Original file line number Diff line number Diff line change @@ -42,15 +42,12 @@ import {
4242 FileDigit ,
4343 FileDown ,
4444 FileImage ,
45- FileInput ,
4645 FileOutput ,
4746 FilePlus ,
48- FileType ,
4947 Folder ,
5048 FolderClock ,
5149 FolderCog ,
5250 FolderOpen ,
53- FolderTree ,
5451 Fullscreen ,
5552 Keyboard ,
5653 MapPin ,
@@ -197,7 +194,7 @@ export function GlobalMenu() {
197194 { t ( "file.saveAs" ) }
198195 </ Item >
199196 < Separator />
200- < Sub >
197+ { /* <Sub>
201198 <SubTrigger>
202199 <FileInput />
203200 {t("file.import")}
@@ -208,7 +205,7 @@ export function GlobalMenu() {
208205 {t("file.importFromFolder")}
209206 </Item>
210207 </SubContent>
211- </ Sub >
208+ </Sub>*/ }
212209 < Sub >
213210 < SubTrigger disabled = { ! activeProject } >
214211 < FileOutput />
@@ -255,10 +252,10 @@ export function GlobalMenu() {
255252 < FileImage />
256253 PNG
257254 </ Item >
258- < Item >
255+ { /* <Item>
259256 <FileType />
260257 Markdown
261- </ Item >
258+ </Item>*/ }
262259 < Sub >
263260 < SubTrigger >
264261 < TextQuote />
You can’t perform that action at this time.
0 commit comments