From 9f98d03addb8796a17227990438a5cb6cca57ece Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 1 Aug 2024 13:06:18 -0700 Subject: [PATCH] rearrange view files into directories --- frontend/app/block/block.tsx | 10 +++++----- frontend/app/view/{ => cpuplot}/cpuplot.less | 0 frontend/app/view/{ => cpuplot}/cpuplot.tsx | 0 frontend/app/view/{ => helpview}/helpview.less | 0 frontend/app/view/{ => helpview}/helpview.tsx | 2 +- frontend/app/view/{ => plotview}/plotview.less | 0 frontend/app/view/{ => plotview}/plotview.tsx | 0 frontend/app/view/{ => preview}/csvview.less | 2 +- frontend/app/view/{ => preview}/csvview.tsx | 0 frontend/app/view/preview/preview.tsx | 2 +- frontend/app/view/{ => waveai}/waveai.less | 0 frontend/app/view/{ => waveai}/waveai.tsx | 0 frontend/app/view/{ => webview}/webview.less | 0 frontend/app/view/{ => webview}/webview.tsx | 0 14 files changed, 8 insertions(+), 8 deletions(-) rename frontend/app/view/{ => cpuplot}/cpuplot.less (100%) rename frontend/app/view/{ => cpuplot}/cpuplot.tsx (100%) rename frontend/app/view/{ => helpview}/helpview.less (100%) rename frontend/app/view/{ => helpview}/helpview.tsx (99%) rename frontend/app/view/{ => plotview}/plotview.less (100%) rename frontend/app/view/{ => plotview}/plotview.tsx (100%) rename frontend/app/view/{ => preview}/csvview.less (98%) rename frontend/app/view/{ => preview}/csvview.tsx (100%) rename frontend/app/view/{ => waveai}/waveai.less (100%) rename frontend/app/view/{ => waveai}/waveai.tsx (100%) rename frontend/app/view/{ => webview}/webview.less (100%) rename frontend/app/view/{ => webview}/webview.tsx (100%) diff --git a/frontend/app/block/block.tsx b/frontend/app/block/block.tsx index f2f2547c..87161804 100644 --- a/frontend/app/block/block.tsx +++ b/frontend/app/block/block.tsx @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import { useLongClick } from "@/app/hook/useLongClick"; +import { PlotView } from "@/app/view/plotview/plotview"; import { PreviewView, makePreviewModel } from "@/app/view/preview/preview"; import { Button } from "@/element/button"; import { ErrorBoundary } from "@/element/errorboundary"; @@ -11,12 +12,11 @@ import { atoms, globalStore, setBlockFocus, useBlockAtom } from "@/store/global" import * as services from "@/store/services"; import * as WOS from "@/store/wos"; import * as util from "@/util/util"; -import { CpuPlotView, makeCpuPlotViewModel } from "@/view/cpuplot"; -import { HelpView } from "@/view/helpview"; -import { PlotView } from "@/view/plotview"; +import { CpuPlotView, makeCpuPlotViewModel } from "@/view/cpuplot/cpuplot"; +import { HelpView } from "@/view/helpview/helpview"; import { TerminalView, makeTerminalModel } from "@/view/term/term"; -import { WaveAi, makeWaveAiViewModel } from "@/view/waveai"; -import { WebView, makeWebViewModel } from "@/view/webview"; +import { WaveAi, makeWaveAiViewModel } from "@/view/waveai/waveai"; +import { WebView, makeWebViewModel } from "@/view/webview/webview"; import clsx from "clsx"; import * as jotai from "jotai"; import * as React from "react"; diff --git a/frontend/app/view/cpuplot.less b/frontend/app/view/cpuplot/cpuplot.less similarity index 100% rename from frontend/app/view/cpuplot.less rename to frontend/app/view/cpuplot/cpuplot.less diff --git a/frontend/app/view/cpuplot.tsx b/frontend/app/view/cpuplot/cpuplot.tsx similarity index 100% rename from frontend/app/view/cpuplot.tsx rename to frontend/app/view/cpuplot/cpuplot.tsx diff --git a/frontend/app/view/helpview.less b/frontend/app/view/helpview/helpview.less similarity index 100% rename from frontend/app/view/helpview.less rename to frontend/app/view/helpview/helpview.less diff --git a/frontend/app/view/helpview.tsx b/frontend/app/view/helpview/helpview.tsx similarity index 99% rename from frontend/app/view/helpview.tsx rename to frontend/app/view/helpview/helpview.tsx index 7db0f767..f0593b7d 100644 --- a/frontend/app/view/helpview.tsx +++ b/frontend/app/view/helpview/helpview.tsx @@ -1,7 +1,7 @@ // Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 -import { Markdown } from "../element/markdown"; +import { Markdown } from "@/app/element/markdown"; import "./helpview.less"; diff --git a/frontend/app/view/plotview.less b/frontend/app/view/plotview/plotview.less similarity index 100% rename from frontend/app/view/plotview.less rename to frontend/app/view/plotview/plotview.less diff --git a/frontend/app/view/plotview.tsx b/frontend/app/view/plotview/plotview.tsx similarity index 100% rename from frontend/app/view/plotview.tsx rename to frontend/app/view/plotview/plotview.tsx diff --git a/frontend/app/view/csvview.less b/frontend/app/view/preview/csvview.less similarity index 98% rename from frontend/app/view/csvview.less rename to frontend/app/view/preview/csvview.less index d4032c70..420a61c5 100644 --- a/frontend/app/view/csvview.less +++ b/frontend/app/view/preview/csvview.less @@ -1,7 +1,7 @@ // Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 -@import "../mixins.less"; +@import "../../mixins.less"; .csv-view { opacity: 0; /* Start with an opacity of 0, meaning it's invisible */ diff --git a/frontend/app/view/csvview.tsx b/frontend/app/view/preview/csvview.tsx similarity index 100% rename from frontend/app/view/csvview.tsx rename to frontend/app/view/preview/csvview.tsx diff --git a/frontend/app/view/preview/preview.tsx b/frontend/app/view/preview/preview.tsx index e4645441..5eaf4df8 100644 --- a/frontend/app/view/preview/preview.tsx +++ b/frontend/app/view/preview/preview.tsx @@ -14,7 +14,7 @@ import { loadable } from "jotai/utils"; import { useEffect, useRef } from "react"; import { CenteredDiv } from "../../element/quickelems"; import { CodeEditor } from "../codeeditor/codeeditor"; -import { CSVView } from "../csvview"; +import { CSVView } from "./csvview"; import { DirectoryPreview } from "./directorypreview"; import "./preview.less"; diff --git a/frontend/app/view/waveai.less b/frontend/app/view/waveai/waveai.less similarity index 100% rename from frontend/app/view/waveai.less rename to frontend/app/view/waveai/waveai.less diff --git a/frontend/app/view/waveai.tsx b/frontend/app/view/waveai/waveai.tsx similarity index 100% rename from frontend/app/view/waveai.tsx rename to frontend/app/view/waveai/waveai.tsx diff --git a/frontend/app/view/webview.less b/frontend/app/view/webview/webview.less similarity index 100% rename from frontend/app/view/webview.less rename to frontend/app/view/webview/webview.less diff --git a/frontend/app/view/webview.tsx b/frontend/app/view/webview/webview.tsx similarity index 100% rename from frontend/app/view/webview.tsx rename to frontend/app/view/webview/webview.tsx