Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 29, 2023
1 parent 40c80d0 commit 5c410f2
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 191 deletions.
2 changes: 1 addition & 1 deletion jacdac-ts
Submodule jacdac-ts updated 2 files
+1 −1 jacdac-spec
+1 −1 src/jdom/spec.ts
75 changes: 0 additions & 75 deletions src/components/devicescript/DeviceScriptTextEditor.tsx

This file was deleted.

15 changes: 3 additions & 12 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const TraceAlert = lazy(() => import("./shell/TraceAlert"))
const WebDiagnostics = lazy(() => import("./shell/WebDiagnostics"))
const WebCam = lazy(() => import("./ui/WebCam"))
const PassiveAlert = lazy(() => import("./shell/PassiveAlert"))
const DataEditorAppBar = lazy(() => import("./shell/DataEditorAppBar"))
const YouTubePlayer = lazy(() => import("./youtube/YouTubePlayer"))

const PREFIX = "Layout"
Expand Down Expand Up @@ -223,25 +222,17 @@ function LayoutWithContext(props: LayoutProps) {
const deviceScriptTool = /tools\/devicescript-/.test(path)
const devicesPage = /^\/devices\/$/.test(path)
const fullWidthTools =
/^\/editors\/\w/.test(path) ||
/^\/tools\/console\/$/.test(path) ||
/^\/(tools\/(makecode-|player|devicescript-)|dashboard)/.test(path) ||
!!frontmatter?.fullWidth
const isDataEditor = /^\/editors\/data/.test(path)
const { hideMainMenu = false, hideBreadcrumbs = false } = frontmatter || {
hideMainMenu: isHosted || makeCodeTool || deviceScriptTool,
hideUnderConstruction:
isDataEditor || makeCodeTool || deviceScriptTool || fullWidthTools,
hideBreadcrumbs: isDataEditor || tools || fullWidthTools || devicesPage,
makeCodeTool || deviceScriptTool || fullWidthTools,
hideBreadcrumbs: tools || fullWidthTools || devicesPage,
}

const appBar = hideMainMenu ? undefined : isDataEditor ? (
<Suspense>
<DataEditorAppBar />
</Suspense>
) : (
<MainAppBar />
)
const appBar = hideMainMenu ? undefined : <MainAppBar />

const { darkMode } = useContext(DarkModeContext)
const { drawerType, toolsMenu, showWebCam } = useContext(AppContext)
Expand Down
77 changes: 0 additions & 77 deletions src/components/shell/DataEditorAppBar.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/pages/editors.mdx

This file was deleted.

13 changes: 0 additions & 13 deletions src/pages/editors/devicescript.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/pages/tools/more.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ order: 100

- [Enclosure generator](/tools/enclosure), generate STL files of enclosures for models
- [EC30 shape generator](/tools/ec30), generates EC30 shape profiles as SVG or DXF
- [data science](/editors/data/), block coding for data science
- [model uploader](/tools/model-uploader/), deploy Machine Learning models (like TensorFlow Lite)

0 comments on commit 5c410f2

Please sign in to comment.