diff --git a/docs/roadmap/README.md b/docs/roadmap/README.md index 63641e0..c6cbe7e 100644 --- a/docs/roadmap/README.md +++ b/docs/roadmap/README.md @@ -16,6 +16,10 @@ A fully functional VSC clone called Code Editor. Modular windows, including alerts, confirmation dialogs and a file selector. -## Convert to TypeScript +## Tabs -Convert this project to TypeScript to improve type safety and bring the many other pros of TypeScript to this project. +## Calculator App + +## App centre + +Allows user to download additional apps \ No newline at end of file diff --git a/public/media/applications/icons/media-viewer.svg b/public/media/applications/icons/media-viewer.svg index ecd6256..505bc27 100644 --- a/public/media/applications/icons/media-viewer.svg +++ b/public/media/applications/icons/media-viewer.svg @@ -1,31 +1,31 @@ - - - + + + - - + + - + - - + + - + - - + + diff --git a/src/components/applications/file-explorer/FileExplorer.jsx b/src/components/applications/file-explorer/FileExplorer.jsx index e8261c9..57f45c0 100644 --- a/src/components/applications/file-explorer/FileExplorer.jsx +++ b/src/components/applications/file-explorer/FileExplorer.jsx @@ -6,6 +6,9 @@ import { faArrowUp, faCaretLeft, faCaretRight, faCog, faDesktop, faFile, faFileL import { VirtualFile } from "../../../features/virtual-drive/virtual-file.js"; import { useWindowsManager } from "../../../hooks/windows/WindowsManagerContext.js"; import utilStyles from "../../../styles/utils.module.css"; +// import { useContextMenu } from "../../../hooks/modals/ContextMenu.js"; +import { useModals } from "../../../hooks/modals/Modals.js"; +import { ModalsView } from "../../modals/ModalsView.jsx"; /** * @param {object} props @@ -17,7 +20,7 @@ function FilePreview({ file }) { switch (file.extension) { case "png": preview = (
- {file.id}/ + {file.id}
); break; case "txt": @@ -38,6 +41,13 @@ export function FileExplorer({ startPath }) { const [path, setPath] = useState(currentDirectory?.path ?? ""); const windowsManager = useWindowsManager(); const [showHidden] = useState(true); + const [modalsManager, modals] = useModals(); + // const { onContextMenuFile } = useContextMenu({ + // modalsManager, + // options: { + // "Open": () => {} + // } + // }); const changeDirectory = (path, absolute = false) => { if (currentDirectory == null) @@ -67,6 +77,7 @@ export function FileExplorer({ startPath }) { return (
+