diff --git a/.storybook/main.ts b/.storybook/main.ts index 80af1da82..4325b84cf 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -3,7 +3,7 @@ import type { StorybookConfig } from '@storybook/web-components-vite'; import ViteYaml from "@modyfi/vite-plugin-yaml"; const config: StorybookConfig = { - stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], + stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|ts|tsx)"], addons: ["@storybook/addon-links", "@storybook/addon-essentials"], framework: { name: "@storybook/web-components-vite", diff --git a/generateInterfaceSchema.py b/generateInterfaceSchema.py index 279c450b7..b3e712f8a 100644 --- a/generateInterfaceSchema.py +++ b/generateInterfaceSchema.py @@ -4,7 +4,7 @@ from neuroconv import NWBConverter, converters, datainterfaces filepath = Path("src") / "supported_interfaces.json" -generatedJSONSchemaPath = Path("schemas", "json", "generated") +generatedJSONSchemaPath = Path("stories") / "inputs" / "interface_schemas" generatedJSONSchemaPath.mkdir(exist_ok=True, parents=True) f = filepath.open() @@ -29,9 +29,11 @@ class CustomNWBConverter(NWBConverter): outfile.write(json.dumps(schema, indent=4)) -sourceDataStoryPath = Path("src/electron/renderer/src/stories/pages/guided-mode/SourceData.stories.js") +sourceDataStoryPath = Path("stories/pages/SourceData.stories.js") -importCode = "\n".join(map(lambda arr: f"import {arr[0]}Schema from '../../../../../../{arr[1]}'", paths.items())) +importCode = "\n".join( + map(lambda arr: f"import {arr[0]}Schema from '../inputs/interface_schemas/{arr[1]}'", paths.items()) +) storyCode = "\n".join( map( lambda arr: f"""export const {arr[0]} = PageTemplate.bind({{}}); diff --git a/src/electron/renderer/src/stories/assets/dandi.svg b/src/electron/renderer/assets/icons/dandi.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/dandi.svg rename to src/electron/renderer/assets/icons/dandi.svg diff --git a/src/electron/renderer/src/stories/assets/delete.svg b/src/electron/renderer/assets/icons/delete.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/delete.svg rename to src/electron/renderer/assets/icons/delete.svg diff --git a/src/electron/renderer/src/stories/assets/exploration.svg b/src/electron/renderer/assets/icons/exploration.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/exploration.svg rename to src/electron/renderer/assets/icons/exploration.svg diff --git a/src/electron/renderer/src/stories/assets/folder_open.svg b/src/electron/renderer/assets/icons/folder_open.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/folder_open.svg rename to src/electron/renderer/assets/icons/folder_open.svg diff --git a/src/electron/renderer/src/stories/assets/fullscreen.svg b/src/electron/renderer/assets/icons/fullscreen.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/fullscreen.svg rename to src/electron/renderer/assets/icons/fullscreen.svg diff --git a/src/electron/renderer/src/stories/assets/fullscreen_exit.svg b/src/electron/renderer/assets/icons/fullscreen_exit.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/fullscreen_exit.svg rename to src/electron/renderer/assets/icons/fullscreen_exit.svg diff --git a/src/electron/renderer/src/stories/assets/global.svg b/src/electron/renderer/assets/icons/global.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/global.svg rename to src/electron/renderer/assets/icons/global.svg diff --git a/src/electron/renderer/src/stories/assets/inspect.svg b/src/electron/renderer/assets/icons/inspect.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/inspect.svg rename to src/electron/renderer/assets/icons/inspect.svg diff --git a/src/electron/renderer/src/stories/assets/key.svg b/src/electron/renderer/assets/icons/key.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/key.svg rename to src/electron/renderer/assets/icons/key.svg diff --git a/src/electron/renderer/src/stories/assets/neurosift-logo.svg b/src/electron/renderer/assets/icons/neurosift-logo.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/neurosift-logo.svg rename to src/electron/renderer/assets/icons/neurosift-logo.svg diff --git a/src/electron/renderer/src/stories/assets/preview.svg b/src/electron/renderer/assets/icons/preview.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/preview.svg rename to src/electron/renderer/assets/icons/preview.svg diff --git a/src/electron/renderer/src/stories/assets/python.svg b/src/electron/renderer/assets/icons/python.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/python.svg rename to src/electron/renderer/assets/icons/python.svg diff --git a/src/electron/renderer/src/stories/assets/restart.svg b/src/electron/renderer/assets/icons/restart.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/restart.svg rename to src/electron/renderer/assets/icons/restart.svg diff --git a/src/electron/renderer/src/stories/assets/save.svg b/src/electron/renderer/assets/icons/save.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/save.svg rename to src/electron/renderer/assets/icons/save.svg diff --git a/src/electron/renderer/src/stories/assets/search.svg b/src/electron/renderer/assets/icons/search.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/search.svg rename to src/electron/renderer/assets/icons/search.svg diff --git a/src/electron/renderer/src/stories/assets/server.svg b/src/electron/renderer/assets/icons/server.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/server.svg rename to src/electron/renderer/assets/icons/server.svg diff --git a/src/electron/renderer/src/stories/assets/settings.svg b/src/electron/renderer/assets/icons/settings.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/settings.svg rename to src/electron/renderer/assets/icons/settings.svg diff --git a/src/electron/renderer/src/stories/assets/web_asset.svg b/src/electron/renderer/assets/icons/web_asset.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/web_asset.svg rename to src/electron/renderer/assets/icons/web_asset.svg diff --git a/src/electron/renderer/src/stories/assets/wifi.svg b/src/electron/renderer/assets/icons/wifi.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/wifi.svg rename to src/electron/renderer/assets/icons/wifi.svg diff --git a/src/electron/renderer/src/pages.js b/src/electron/renderer/src/pages.js index 12c34f0ef..7dbd400e7 100644 --- a/src/electron/renderer/src/pages.js +++ b/src/electron/renderer/src/pages.js @@ -16,11 +16,11 @@ import { GuidedInspectorPage } from "./stories/pages/guided-mode/options/GuidedI import logo from "../assets/img/logo-guide-draft-transparent-tight.png"; import { GuidedPathExpansionPage } from "./stories/pages/guided-mode/data/GuidedPathExpansion"; -import uploadIcon from "./stories/assets/dandi.svg?raw"; -import inspectIcon from "./stories/assets/inspect.svg?raw"; -import neurosiftIcon from "./stories/assets/neurosift-logo.svg?raw"; +import uploadIcon from "../assets/icons/dandi.svg?raw"; +import inspectIcon from "../assets/icons/inspect.svg?raw"; +import neurosiftIcon from "../assets/icons/neurosift-logo.svg?raw"; -import settingsIcon from "./stories/assets/settings.svg?raw"; +import settingsIcon from "../assets/icons/settings.svg?raw"; import { UploadsPage } from "./stories/pages/uploads/UploadsPage"; import { SettingsPage } from "./stories/pages/settings/SettingsPage"; diff --git a/src/electron/renderer/src/server/globals.ts b/src/electron/renderer/src/server/globals.ts index 535c4d823..5ad456472 100644 --- a/src/electron/renderer/src/server/globals.ts +++ b/src/electron/renderer/src/server/globals.ts @@ -1,8 +1,8 @@ import { isElectron, app, port } from '../electron/index.js' -import serverSVG from "../stories/assets/server.svg?raw"; -import webAssetSVG from "../stories/assets/web_asset.svg?raw"; -import wifiSVG from "../stories/assets/wifi.svg?raw"; +import serverSVG from "../../assets/icons/server.svg?raw"; +import webAssetSVG from "../../assets/icons/web_asset.svg?raw"; +import wifiSVG from "../../assets/icons/wifi.svg?raw"; // Base Request URL for Python Server export const baseUrl = `http://127.0.0.1:${port}`; diff --git a/src/electron/renderer/src/stories/FileSystemSelector.js b/src/electron/renderer/src/stories/FileSystemSelector.js index 036c70581..3bef33378 100644 --- a/src/electron/renderer/src/stories/FileSystemSelector.js +++ b/src/electron/renderer/src/stories/FileSystemSelector.js @@ -4,7 +4,7 @@ import { fs, remote } from "../electron/index"; import { List } from "./List"; const { dialog } = remote; -import restartSVG from "./assets/restart.svg?raw"; +import restartSVG from "../../assets/icons/restart.svg?raw"; import { unsafeSVG } from "lit/directives/unsafe-svg.js"; function getObjectTypeReferenceString(type, multiple, { nested, native } = {}) { diff --git a/src/electron/renderer/src/stories/FullScreenToggle.ts b/src/electron/renderer/src/stories/FullScreenToggle.ts index ff1e1557f..fb01e32d9 100644 --- a/src/electron/renderer/src/stories/FullScreenToggle.ts +++ b/src/electron/renderer/src/stories/FullScreenToggle.ts @@ -1,7 +1,7 @@ import { LitElement, css, html } from "lit"; -import fullScreenIcon from './assets/fullscreen.svg?raw' -import fullScreenExitIcon from './assets/fullscreen_exit.svg?raw' +import fullScreenIcon from '../../assets/icons/fullscreen.svg?raw' +import fullScreenExitIcon from '../../assets/icons/fullscreen_exit.svg?raw' import { unsafeHTML } from "lit/directives/unsafe-html.js"; diff --git a/src/electron/renderer/src/stories/Search.js b/src/electron/renderer/src/stories/Search.js index 5cefbe4dd..5b133e2f0 100644 --- a/src/electron/renderer/src/stories/Search.js +++ b/src/electron/renderer/src/stories/Search.js @@ -1,7 +1,7 @@ import { LitElement, html, css } from "lit"; import { styleMap } from "lit/directives/style-map.js"; -import searchSVG from "./assets/search.svg?raw"; +import searchSVG from "../../assets/icons/search.svg?raw"; import tippy from "tippy.js"; import { unsafeHTML } from "lit/directives/unsafe-html.js"; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedMetadata.js b/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedMetadata.js index c1b1592dc..0efe5162a 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedMetadata.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedMetadata.js @@ -23,7 +23,7 @@ import { header, tempPropertyKey } from "../../../forms/utils"; import { createGlobalFormModal } from "../../../forms/GlobalFormModal"; import { Button } from "../../../Button.js"; -import globalIcon from "../../../assets/global.svg?raw"; +import globalIcon from "../../../../../assets/icons/global.svg?raw"; const parentTableRenderConfig = { Electrodes: (metadata) => { diff --git a/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js b/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js index d3a6946d9..4fa48857a 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js @@ -14,7 +14,7 @@ import { Button } from "../../../Button.js"; import { Modal } from "../../../Modal"; import { header } from "../../../forms/utils"; -import autocompleteIcon from "../../../assets/inspect.svg?raw"; +import autocompleteIcon from "../../../../../assets/icons/inspect.svg?raw"; const propOrder = ["path", "subject_id", "session_id"]; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js b/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js index 2a2f787ae..f3876100a 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js @@ -11,7 +11,7 @@ import { createGlobalFormModal } from "../../../forms/GlobalFormModal"; import { header } from "../../../forms/utils"; import { Button } from "../../../Button.js"; -import globalIcon from "../../../assets/global.svg?raw"; +import globalIcon from "../../../../../assets/icons/global.svg?raw"; import { baseUrl } from "../../../../server/globals"; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedInspectorPage.js b/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedInspectorPage.js index 56c73a217..ae262f389 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedInspectorPage.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedInspectorPage.js @@ -2,7 +2,7 @@ import { html } from "lit"; import { Page } from "../../Page.js"; import { unsafeSVG } from "lit/directives/unsafe-svg.js"; -import folderOpenSVG from "../../../assets/folder_open.svg?raw"; +import folderOpenSVG from "../../../../../assets/icons/folder_open.svg?raw"; import { electron } from "../../../../electron/index.js"; import { getSharedPath, removeFilePaths, truncateFilePaths } from "../../../preview/NWBFilePreview.js"; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedStubPreview.js b/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedStubPreview.js index 4f3a2b861..d1b022155 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedStubPreview.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedStubPreview.js @@ -2,7 +2,7 @@ import { html } from "lit"; import { Page } from "../../Page.js"; import { unsafeSVG } from "lit/directives/unsafe-svg.js"; -import folderOpenSVG from "../../../assets/folder_open.svg?raw"; +import folderOpenSVG from "../../../../../assets/icons/folder_open.svg?raw"; import { electron } from "../../../../electron/index.js"; import { NWBFilePreview, getSharedPath } from "../../../preview/NWBFilePreview.js"; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js b/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js index 70e35bfc0..075b1be03 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js @@ -10,7 +10,7 @@ import { until } from "lit/directives/until.js"; import { Button } from "../../../Button.js"; -import keyIcon from "../../../assets/key.svg?raw"; +import keyIcon from "../../../../../assets/icons/key.svg?raw"; import { validate } from "../../uploads/utils"; import { global } from "../../../../progress/index.js"; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/results/GuidedResults.js b/src/electron/renderer/src/stories/pages/guided-mode/results/GuidedResults.js index ace243461..1cc68fa86 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/results/GuidedResults.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/results/GuidedResults.js @@ -1,6 +1,6 @@ import { html } from "lit"; import { unsafeSVG } from "lit/directives/unsafe-svg.js"; -import folderOpenSVG from "../../../assets/folder_open.svg?raw"; +import folderOpenSVG from "../../../../../assets/icons/folder_open.svg?raw"; import { Page } from "../../Page.js"; import { getStubArray } from "../options/GuidedStubPreview.js"; diff --git a/src/electron/renderer/src/stories/pages/guided-mode/setup/GuidedSubjects.js b/src/electron/renderer/src/stories/pages/guided-mode/setup/GuidedSubjects.js index 5c887e246..7d1d51677 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/setup/GuidedSubjects.js +++ b/src/electron/renderer/src/stories/pages/guided-mode/setup/GuidedSubjects.js @@ -10,7 +10,7 @@ import { Button } from "../../../Button.js"; import { createGlobalFormModal } from "../../../forms/GlobalFormModal"; import { header } from "../../../forms/utils"; -import globalIcon from "../../../assets/global.svg?raw"; +import globalIcon from "../../../../../assets/icons/global.svg?raw"; export class GuidedSubjectsPage extends Page { constructor(...args) { diff --git a/src/electron/renderer/src/stories/pages/settings/SettingsPage.js b/src/electron/renderer/src/stories/pages/settings/SettingsPage.js index 149a182a0..e314a9a41 100644 --- a/src/electron/renderer/src/stories/pages/settings/SettingsPage.js +++ b/src/electron/renderer/src/stories/pages/settings/SettingsPage.js @@ -15,10 +15,10 @@ import { merge, setUndefinedIfNotDeclared } from "../utils"; import { homeDirectory, notyf, testDataFolderPath } from "../../../dependencies/globals"; import { SERVER_FILE_PATH, electron, path, port, fs } from "../../../electron/index.js"; -import saveSVG from "../../assets/save.svg?raw"; -import folderSVG from "../../assets/folder_open.svg?raw"; -import deleteSVG from "../../assets/delete.svg?raw"; -import generateSVG from "../../assets/restart.svg?raw"; +import saveSVG from "../../../../assets/icons/save.svg?raw"; +import folderSVG from "../../../../assets/icons/folder_open.svg?raw"; +import deleteSVG from "../../../../assets/icons/delete.svg?raw"; +import generateSVG from "../../../../assets/icons/restart.svg?raw"; import { header } from "../../forms/utils"; diff --git a/src/electron/renderer/src/stories/pages/uploads/UploadsPage.js b/src/electron/renderer/src/stories/pages/uploads/UploadsPage.js index ff1099e78..434f830c3 100644 --- a/src/electron/renderer/src/stories/pages/uploads/UploadsPage.js +++ b/src/electron/renderer/src/stories/pages/uploads/UploadsPage.js @@ -32,7 +32,7 @@ import { validateDANDIApiKey } from "../../../validation/dandi"; import * as dandi from "dandi"; -import keyIcon from "../../assets/key.svg?raw"; +import keyIcon from "../../../../assets/icons/key.svg?raw"; import { AWARD_VALIDATION_FAIL_MESSAGE, awardNumberValidator, isStaging, validate } from "./utils"; import { createFormModal } from "../../forms/GlobalFormModal"; diff --git a/src/electron/renderer/src/stories/Introduction.mdx b/stories/Introduction.mdx similarity index 100% rename from src/electron/renderer/src/stories/Introduction.mdx rename to stories/Introduction.mdx diff --git a/src/electron/renderer/src/stories/pages/Pages.stories.js b/stories/Pages.stories.js similarity index 86% rename from src/electron/renderer/src/stories/pages/Pages.stories.js rename to stories/Pages.stories.js index aea7a91d2..a697bbd9c 100644 --- a/src/electron/renderer/src/stories/pages/Pages.stories.js +++ b/stories/Pages.stories.js @@ -1,4 +1,4 @@ -import { dashboard } from "../../pages.js"; +import { dashboard } from "../src/electron/renderer/src/pages.js"; // const options = Object.keys(dashboard.pagesById) diff --git a/src/electron/renderer/src/stories/assets/code-brackets.svg b/stories/assets/code-brackets.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/code-brackets.svg rename to stories/assets/code-brackets.svg diff --git a/src/electron/renderer/src/stories/assets/colors.svg b/stories/assets/colors.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/colors.svg rename to stories/assets/colors.svg diff --git a/src/electron/renderer/src/stories/assets/comments.svg b/stories/assets/comments.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/comments.svg rename to stories/assets/comments.svg diff --git a/src/electron/renderer/src/stories/assets/direction.svg b/stories/assets/direction.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/direction.svg rename to stories/assets/direction.svg diff --git a/src/electron/renderer/src/stories/assets/flow.svg b/stories/assets/flow.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/flow.svg rename to stories/assets/flow.svg diff --git a/src/electron/renderer/src/stories/assets/plugin.svg b/stories/assets/plugin.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/plugin.svg rename to stories/assets/plugin.svg diff --git a/src/electron/renderer/src/stories/assets/repo.svg b/stories/assets/repo.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/repo.svg rename to stories/assets/repo.svg diff --git a/src/electron/renderer/src/stories/assets/stackalt.svg b/stories/assets/stackalt.svg similarity index 100% rename from src/electron/renderer/src/stories/assets/stackalt.svg rename to stories/assets/stackalt.svg diff --git a/src/electron/renderer/src/stories/Accordion.stories.js b/stories/components/Accordion.stories.js similarity index 85% rename from src/electron/renderer/src/stories/Accordion.stories.js rename to stories/components/Accordion.stories.js index c35266e83..f6b1d2599 100644 --- a/src/electron/renderer/src/stories/Accordion.stories.js +++ b/stories/components/Accordion.stories.js @@ -1,4 +1,4 @@ -import { Accordion } from "./Accordion"; +import { Accordion } from "../../src/electron/renderer/src/stories/Accordion"; export default { title: "Components/Accordion", diff --git a/src/electron/renderer/src/stories/Button.stories.js b/stories/components/Button.stories.js similarity index 88% rename from src/electron/renderer/src/stories/Button.stories.js rename to stories/components/Button.stories.js index d086481cc..9e91838d2 100644 --- a/src/electron/renderer/src/stories/Button.stories.js +++ b/stories/components/Button.stories.js @@ -1,4 +1,4 @@ -import { Button } from "./Button"; +import { Button } from "../../src/electron/renderer/src/stories/Button"; // More on how to set up stories at: https://storybook.js.org/docs/7.0/web-components/writing-stories/introduction export default { diff --git a/src/electron/renderer/src/stories/FileSystemSelector.stories.js b/stories/components/FileSystemSelector.stories.js similarity index 83% rename from src/electron/renderer/src/stories/FileSystemSelector.stories.js rename to stories/components/FileSystemSelector.stories.js index 767ea9532..eac8a8998 100644 --- a/src/electron/renderer/src/stories/FileSystemSelector.stories.js +++ b/stories/components/FileSystemSelector.stories.js @@ -1,4 +1,4 @@ -import { FilesystemSelector } from "./FileSystemSelector"; +import { FilesystemSelector } from "../../src/electron/renderer/src/stories/FileSystemSelector"; export default { title: "Components/Filesystem Selector", diff --git a/src/electron/renderer/src/stories/preview/inspector/InspectorList.stories.js b/stories/components/InspectorList.stories.js similarity index 53% rename from src/electron/renderer/src/stories/preview/inspector/InspectorList.stories.js rename to stories/components/InspectorList.stories.js index 370f99b78..8f34aa767 100644 --- a/src/electron/renderer/src/stories/preview/inspector/InspectorList.stories.js +++ b/stories/components/InspectorList.stories.js @@ -1,5 +1,5 @@ -import { InspectorList } from "./InspectorList"; -import testInspectorList from "./test.json"; +import { InspectorList } from "../../src/electron/renderer/src/stories/preview/inspector/InspectorList"; +import testInspectorList from "../inputs/inspector_output.json"; export default { title: "Components/Inspector List", diff --git a/src/electron/renderer/src/stories/InstanceManager.stories.js b/stories/components/InstanceManager.stories.js similarity index 89% rename from src/electron/renderer/src/stories/InstanceManager.stories.js rename to stories/components/InstanceManager.stories.js index d5f560e26..867fd1e1c 100644 --- a/src/electron/renderer/src/stories/InstanceManager.stories.js +++ b/stories/components/InstanceManager.stories.js @@ -1,5 +1,5 @@ -import { InstanceManager } from "./InstanceManager"; -import { Modal } from "./Modal"; +import { InstanceManager } from "../../src/electron/renderer/src/stories/InstanceManager"; +import { Modal } from "../../src/electron/renderer/src/stories/Modal"; // More on how to set up stories at: https://storybook.js.org/docs/7.0/web-components/writing-stories/introduction export default { diff --git a/src/electron/renderer/src/stories/JSONSchemaForm.stories.js b/stories/components/JSONSchemaForm.stories.js similarity index 92% rename from src/electron/renderer/src/stories/JSONSchemaForm.stories.js rename to stories/components/JSONSchemaForm.stories.js index 8aa3b0e93..aa2932444 100644 --- a/src/electron/renderer/src/stories/JSONSchemaForm.stories.js +++ b/stories/components/JSONSchemaForm.stories.js @@ -1,4 +1,4 @@ -import { JSONSchemaForm } from "./JSONSchemaForm"; +import { JSONSchemaForm } from "../../src/electron/renderer/src/stories/JSONSchemaForm"; export default { title: "Components/JSON Schema Form", diff --git a/src/electron/renderer/src/stories/List.stories.js b/stories/components/List.stories.js similarity index 87% rename from src/electron/renderer/src/stories/List.stories.js rename to stories/components/List.stories.js index ec8f2f79a..29338cb4d 100644 --- a/src/electron/renderer/src/stories/List.stories.js +++ b/stories/components/List.stories.js @@ -1,4 +1,4 @@ -import { List } from "./List"; +import { List } from "../../src/electron/renderer/src/stories/List"; export default { title: "Components/List", diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Locate.stories.js b/stories/components/Locate.stories.js similarity index 87% rename from src/electron/renderer/src/stories/pages/guided-mode/Locate.stories.js rename to stories/components/Locate.stories.js index 0503c1096..cd99bd836 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/Locate.stories.js +++ b/stories/components/Locate.stories.js @@ -1,4 +1,4 @@ -import { globalState, PageTemplate } from "./storyStates"; +import { globalState, PageTemplate } from "../pages/storyStates"; export default { title: "Pages/Guided Mode/Locate", diff --git a/src/electron/renderer/src/stories/multiselect/Multiselect.stories.js b/stories/components/Multiselect.stories.js similarity index 83% rename from src/electron/renderer/src/stories/multiselect/Multiselect.stories.js rename to stories/components/Multiselect.stories.js index 8f080f9c0..c40ab2d2f 100644 --- a/src/electron/renderer/src/stories/multiselect/Multiselect.stories.js +++ b/stories/components/Multiselect.stories.js @@ -1,4 +1,4 @@ -import { MultiSelectForm } from "./MultiSelectForm.js"; +import { MultiSelectForm } from "../../src/electron/renderer/src/stories/multiselect/MultiSelectForm.js"; export default { title: "Components/Multiselect Form", diff --git a/src/electron/renderer/src/stories/OptionalSection.stories.js b/stories/components/OptionalSection.stories.js similarity index 74% rename from src/electron/renderer/src/stories/OptionalSection.stories.js rename to stories/components/OptionalSection.stories.js index 3e2f85f0b..b4c3c24eb 100644 --- a/src/electron/renderer/src/stories/OptionalSection.stories.js +++ b/stories/components/OptionalSection.stories.js @@ -1,4 +1,4 @@ -import { OptionalSection } from "./OptionalSection"; +import { OptionalSection } from "../../src/electron/renderer/src/stories/OptionalSection"; export default { title: "Components/Optional Section", diff --git a/src/electron/renderer/src/stories/ProgressBar.stories.js b/stories/components/ProgressBar.stories.js similarity index 83% rename from src/electron/renderer/src/stories/ProgressBar.stories.js rename to stories/components/ProgressBar.stories.js index cda328b61..c8acf7ea3 100644 --- a/src/electron/renderer/src/stories/ProgressBar.stories.js +++ b/stories/components/ProgressBar.stories.js @@ -1,4 +1,4 @@ -import { ProgressBar } from "./ProgressBar"; +import { ProgressBar } from "../../src/electron/renderer/src/stories/ProgressBar"; export default { title: "Components/Progress Bar", diff --git a/src/electron/renderer/src/stories/Search.stories.js b/stories/components/Search.stories.js similarity index 91% rename from src/electron/renderer/src/stories/Search.stories.js rename to stories/components/Search.stories.js index ae2dab9c8..ff6ad16a4 100644 --- a/src/electron/renderer/src/stories/Search.stories.js +++ b/stories/components/Search.stories.js @@ -1,4 +1,4 @@ -import { Search } from "./Search"; +import { Search } from "../../src/electron/renderer/src/stories/Search"; // More on how to set up stories at: https://storybook.js.org/docs/7.0/web-components/writing-stories/introduction export default { diff --git a/src/electron/renderer/src/stories/status/StatusBar.stories.js b/stories/components/StatusBar.stories.js similarity index 60% rename from src/electron/renderer/src/stories/status/StatusBar.stories.js rename to stories/components/StatusBar.stories.js index 3824016bf..6666cca4a 100644 --- a/src/electron/renderer/src/stories/status/StatusBar.stories.js +++ b/stories/components/StatusBar.stories.js @@ -1,8 +1,8 @@ -import { StatusBar } from "./StatusBar"; +import { StatusBar } from "../../src/electron/renderer/src/stories/status/StatusBar"; import { unsafeSVG } from "lit/directives/unsafe-svg.js"; -import pythonSVG from "../assets/python.svg?raw"; -import webAssetSVG from "../assets/web_asset.svg?raw"; -import wifiSVG from "../assets/wifi.svg?raw"; +import pythonSVG from "../../src/electron/renderer/assets/icons/python.svg?raw"; +import webAssetSVG from "../../src/electron/renderer/assets/icons/web_asset.svg?raw"; +import wifiSVG from "../../src/electron/renderer/assets/icons/wifi.svg?raw"; export default { title: "Components/Status Bar", diff --git a/src/electron/renderer/src/stories/Table.stories.js b/stories/components/Table.stories.js similarity index 79% rename from src/electron/renderer/src/stories/Table.stories.js rename to stories/components/Table.stories.js index 14bd8ce37..4d9cb88c0 100644 --- a/src/electron/renderer/src/stories/Table.stories.js +++ b/stories/components/Table.stories.js @@ -1,8 +1,8 @@ -import { Table } from "./Table.js"; +import { Table } from "../../src/electron/renderer/src/stories/Table.js"; -import getSubjectSchema from "../../../../schemas/subject.schema"; -import { SimpleTable } from "./SimpleTable.js"; -import { BasicTable } from "./BasicTable.js"; +import getSubjectSchema from "../../src/schemas/subject.schema"; +import { SimpleTable } from "../../src/electron/renderer/src/stories/SimpleTable.js"; +import { BasicTable } from "../../src/electron/renderer/src/stories/BasicTable.js"; export default { title: "Components/Table", diff --git a/src/electron/renderer/src/stories/preview/inspector/test.json b/stories/inputs/inspector_output.json similarity index 100% rename from src/electron/renderer/src/stories/preview/inspector/test.json rename to stories/inputs/inspector_output.json diff --git a/src/schemas/json/generated/AlphaOmegaRecordingInterface.json b/stories/inputs/interface_schemas/AlphaOmegaRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/AlphaOmegaRecordingInterface.json rename to stories/inputs/interface_schemas/AlphaOmegaRecordingInterface.json diff --git a/src/schemas/json/generated/AudioInterface.json b/stories/inputs/interface_schemas/AudioInterface.json similarity index 100% rename from src/schemas/json/generated/AudioInterface.json rename to stories/inputs/interface_schemas/AudioInterface.json diff --git a/src/schemas/json/generated/AxonaRecordingInterface.json b/stories/inputs/interface_schemas/AxonaRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/AxonaRecordingInterface.json rename to stories/inputs/interface_schemas/AxonaRecordingInterface.json diff --git a/src/schemas/json/generated/BiocamRecordingInterface.json b/stories/inputs/interface_schemas/BiocamRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/BiocamRecordingInterface.json rename to stories/inputs/interface_schemas/BiocamRecordingInterface.json diff --git a/src/schemas/json/generated/BlackrockRecordingInterface.json b/stories/inputs/interface_schemas/BlackrockRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/BlackrockRecordingInterface.json rename to stories/inputs/interface_schemas/BlackrockRecordingInterface.json diff --git a/src/schemas/json/generated/BlackrockSortingInterface.json b/stories/inputs/interface_schemas/BlackrockSortingInterface.json similarity index 100% rename from src/schemas/json/generated/BlackrockSortingInterface.json rename to stories/inputs/interface_schemas/BlackrockSortingInterface.json diff --git a/src/schemas/json/generated/BrukerTiffMultiPlaneConverter.json b/stories/inputs/interface_schemas/BrukerTiffMultiPlaneConverter.json similarity index 100% rename from src/schemas/json/generated/BrukerTiffMultiPlaneConverter.json rename to stories/inputs/interface_schemas/BrukerTiffMultiPlaneConverter.json diff --git a/src/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json b/stories/inputs/interface_schemas/BrukerTiffMultiPlaneImagingInterface.json similarity index 100% rename from src/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json rename to stories/inputs/interface_schemas/BrukerTiffMultiPlaneImagingInterface.json diff --git a/src/schemas/json/generated/BrukerTiffSinglePlaneConverter.json b/stories/inputs/interface_schemas/BrukerTiffSinglePlaneConverter.json similarity index 100% rename from src/schemas/json/generated/BrukerTiffSinglePlaneConverter.json rename to stories/inputs/interface_schemas/BrukerTiffSinglePlaneConverter.json diff --git a/src/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json b/stories/inputs/interface_schemas/BrukerTiffSinglePlaneImagingInterface.json similarity index 100% rename from src/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json rename to stories/inputs/interface_schemas/BrukerTiffSinglePlaneImagingInterface.json diff --git a/src/schemas/json/generated/CaimanSegmentationInterface.json b/stories/inputs/interface_schemas/CaimanSegmentationInterface.json similarity index 100% rename from src/schemas/json/generated/CaimanSegmentationInterface.json rename to stories/inputs/interface_schemas/CaimanSegmentationInterface.json diff --git a/src/schemas/json/generated/CellExplorerRecordingInterface.json b/stories/inputs/interface_schemas/CellExplorerRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/CellExplorerRecordingInterface.json rename to stories/inputs/interface_schemas/CellExplorerRecordingInterface.json diff --git a/src/schemas/json/generated/CellExplorerSortingInterface.json b/stories/inputs/interface_schemas/CellExplorerSortingInterface.json similarity index 100% rename from src/schemas/json/generated/CellExplorerSortingInterface.json rename to stories/inputs/interface_schemas/CellExplorerSortingInterface.json diff --git a/src/schemas/json/generated/CnmfeSegmentationInterface.json b/stories/inputs/interface_schemas/CnmfeSegmentationInterface.json similarity index 100% rename from src/schemas/json/generated/CnmfeSegmentationInterface.json rename to stories/inputs/interface_schemas/CnmfeSegmentationInterface.json diff --git a/src/schemas/json/generated/DeepLabCutInterface.json b/stories/inputs/interface_schemas/DeepLabCutInterface.json similarity index 100% rename from src/schemas/json/generated/DeepLabCutInterface.json rename to stories/inputs/interface_schemas/DeepLabCutInterface.json diff --git a/src/schemas/json/generated/EDFRecordingInterface.json b/stories/inputs/interface_schemas/EDFRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/EDFRecordingInterface.json rename to stories/inputs/interface_schemas/EDFRecordingInterface.json diff --git a/src/schemas/json/generated/ExtractSegmentationInterface.json b/stories/inputs/interface_schemas/ExtractSegmentationInterface.json similarity index 100% rename from src/schemas/json/generated/ExtractSegmentationInterface.json rename to stories/inputs/interface_schemas/ExtractSegmentationInterface.json diff --git a/src/schemas/json/generated/FicTracDataInterface.json b/stories/inputs/interface_schemas/FicTracDataInterface.json similarity index 100% rename from src/schemas/json/generated/FicTracDataInterface.json rename to stories/inputs/interface_schemas/FicTracDataInterface.json diff --git a/src/schemas/json/generated/IntanRecordingInterface.json b/stories/inputs/interface_schemas/IntanRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/IntanRecordingInterface.json rename to stories/inputs/interface_schemas/IntanRecordingInterface.json diff --git a/src/schemas/json/generated/KiloSortSortingInterface.json b/stories/inputs/interface_schemas/KiloSortSortingInterface.json similarity index 100% rename from src/schemas/json/generated/KiloSortSortingInterface.json rename to stories/inputs/interface_schemas/KiloSortSortingInterface.json diff --git a/src/schemas/json/generated/MCSRawRecordingInterface.json b/stories/inputs/interface_schemas/MCSRawRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/MCSRawRecordingInterface.json rename to stories/inputs/interface_schemas/MCSRawRecordingInterface.json diff --git a/src/schemas/json/generated/MEArecRecordingInterface.json b/stories/inputs/interface_schemas/MEArecRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/MEArecRecordingInterface.json rename to stories/inputs/interface_schemas/MEArecRecordingInterface.json diff --git a/src/schemas/json/generated/MicroManagerTiffImagingInterface.json b/stories/inputs/interface_schemas/MicroManagerTiffImagingInterface.json similarity index 100% rename from src/schemas/json/generated/MicroManagerTiffImagingInterface.json rename to stories/inputs/interface_schemas/MicroManagerTiffImagingInterface.json diff --git a/src/schemas/json/generated/MiniscopeBehaviorInterface.json b/stories/inputs/interface_schemas/MiniscopeBehaviorInterface.json similarity index 100% rename from src/schemas/json/generated/MiniscopeBehaviorInterface.json rename to stories/inputs/interface_schemas/MiniscopeBehaviorInterface.json diff --git a/src/schemas/json/generated/MiniscopeConverter.json b/stories/inputs/interface_schemas/MiniscopeConverter.json similarity index 100% rename from src/schemas/json/generated/MiniscopeConverter.json rename to stories/inputs/interface_schemas/MiniscopeConverter.json diff --git a/src/schemas/json/generated/MiniscopeImagingInterface.json b/stories/inputs/interface_schemas/MiniscopeImagingInterface.json similarity index 100% rename from src/schemas/json/generated/MiniscopeImagingInterface.json rename to stories/inputs/interface_schemas/MiniscopeImagingInterface.json diff --git a/src/schemas/json/generated/NeuralynxRecordingInterface.json b/stories/inputs/interface_schemas/NeuralynxRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/NeuralynxRecordingInterface.json rename to stories/inputs/interface_schemas/NeuralynxRecordingInterface.json diff --git a/src/schemas/json/generated/NeuroScopeLFPInterface.json b/stories/inputs/interface_schemas/NeuroScopeLFPInterface.json similarity index 100% rename from src/schemas/json/generated/NeuroScopeLFPInterface.json rename to stories/inputs/interface_schemas/NeuroScopeLFPInterface.json diff --git a/src/schemas/json/generated/NeuroScopeRecordingInterface.json b/stories/inputs/interface_schemas/NeuroScopeRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/NeuroScopeRecordingInterface.json rename to stories/inputs/interface_schemas/NeuroScopeRecordingInterface.json diff --git a/src/schemas/json/generated/NeuroScopeSortingInterface.json b/stories/inputs/interface_schemas/NeuroScopeSortingInterface.json similarity index 100% rename from src/schemas/json/generated/NeuroScopeSortingInterface.json rename to stories/inputs/interface_schemas/NeuroScopeSortingInterface.json diff --git a/src/schemas/json/generated/OpenEphysRecordingInterface.json b/stories/inputs/interface_schemas/OpenEphysRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/OpenEphysRecordingInterface.json rename to stories/inputs/interface_schemas/OpenEphysRecordingInterface.json diff --git a/src/schemas/json/generated/PhySortingInterface.json b/stories/inputs/interface_schemas/PhySortingInterface.json similarity index 100% rename from src/schemas/json/generated/PhySortingInterface.json rename to stories/inputs/interface_schemas/PhySortingInterface.json diff --git a/src/schemas/json/generated/PlexonRecordingInterface.json b/stories/inputs/interface_schemas/PlexonRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/PlexonRecordingInterface.json rename to stories/inputs/interface_schemas/PlexonRecordingInterface.json diff --git a/src/schemas/json/generated/PlexonSortingInterface.json b/stories/inputs/interface_schemas/PlexonSortingInterface.json similarity index 100% rename from src/schemas/json/generated/PlexonSortingInterface.json rename to stories/inputs/interface_schemas/PlexonSortingInterface.json diff --git a/src/schemas/json/generated/SLEAPInterface.json b/stories/inputs/interface_schemas/SLEAPInterface.json similarity index 100% rename from src/schemas/json/generated/SLEAPInterface.json rename to stories/inputs/interface_schemas/SLEAPInterface.json diff --git a/src/schemas/json/generated/SbxImagingInterface.json b/stories/inputs/interface_schemas/SbxImagingInterface.json similarity index 100% rename from src/schemas/json/generated/SbxImagingInterface.json rename to stories/inputs/interface_schemas/SbxImagingInterface.json diff --git a/src/schemas/json/generated/ScanImageImagingInterface.json b/stories/inputs/interface_schemas/ScanImageImagingInterface.json similarity index 100% rename from src/schemas/json/generated/ScanImageImagingInterface.json rename to stories/inputs/interface_schemas/ScanImageImagingInterface.json diff --git a/src/schemas/json/generated/Spike2RecordingInterface.json b/stories/inputs/interface_schemas/Spike2RecordingInterface.json similarity index 100% rename from src/schemas/json/generated/Spike2RecordingInterface.json rename to stories/inputs/interface_schemas/Spike2RecordingInterface.json diff --git a/src/schemas/json/generated/SpikeGLXConverterPipe.json b/stories/inputs/interface_schemas/SpikeGLXConverterPipe.json similarity index 100% rename from src/schemas/json/generated/SpikeGLXConverterPipe.json rename to stories/inputs/interface_schemas/SpikeGLXConverterPipe.json diff --git a/src/schemas/json/generated/SpikeGLXNIDQInterface.json b/stories/inputs/interface_schemas/SpikeGLXNIDQInterface.json similarity index 100% rename from src/schemas/json/generated/SpikeGLXNIDQInterface.json rename to stories/inputs/interface_schemas/SpikeGLXNIDQInterface.json diff --git a/src/schemas/json/generated/SpikeGLXRecordingInterface.json b/stories/inputs/interface_schemas/SpikeGLXRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/SpikeGLXRecordingInterface.json rename to stories/inputs/interface_schemas/SpikeGLXRecordingInterface.json diff --git a/src/schemas/json/generated/Suite2pSegmentationInterface.json b/stories/inputs/interface_schemas/Suite2pSegmentationInterface.json similarity index 100% rename from src/schemas/json/generated/Suite2pSegmentationInterface.json rename to stories/inputs/interface_schemas/Suite2pSegmentationInterface.json diff --git a/src/schemas/json/generated/TdtRecordingInterface.json b/stories/inputs/interface_schemas/TdtRecordingInterface.json similarity index 100% rename from src/schemas/json/generated/TdtRecordingInterface.json rename to stories/inputs/interface_schemas/TdtRecordingInterface.json diff --git a/src/schemas/json/generated/TiffImagingInterface.json b/stories/inputs/interface_schemas/TiffImagingInterface.json similarity index 100% rename from src/schemas/json/generated/TiffImagingInterface.json rename to stories/inputs/interface_schemas/TiffImagingInterface.json diff --git a/src/schemas/json/generated/VideoInterface.json b/stories/inputs/interface_schemas/VideoInterface.json similarity index 100% rename from src/schemas/json/generated/VideoInterface.json rename to stories/inputs/interface_schemas/VideoInterface.json diff --git a/src/electron/renderer/src/stories/pages/guided-mode/GuidedHome.stories.js b/stories/pages/GuidedHome.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/GuidedHome.stories.js rename to stories/pages/GuidedHome.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Metadata.stories.js b/stories/pages/Metadata.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/Metadata.stories.js rename to stories/pages/Metadata.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/NewDataset.stories.js b/stories/pages/NewDataset.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/NewDataset.stories.js rename to stories/pages/NewDataset.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Preview.stories.js b/stories/pages/Preview.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/Preview.stories.js rename to stories/pages/Preview.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Review.stories.js b/stories/pages/Review.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/Review.stories.js rename to stories/pages/Review.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/stories/pages/SourceData.stories.js similarity index 81% rename from src/electron/renderer/src/stories/pages/guided-mode/SourceData.stories.js rename to stories/pages/SourceData.stories.js index 9bcaa0373..841007cf2 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/stories/pages/SourceData.stories.js @@ -1,49 +1,49 @@ import { globalState, PageTemplate } from "./storyStates"; -import SpikeGLXRecordingInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json"; -import SpikeGLXNIDQInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json"; -import PhySortingInterfaceSchema from "../../../../../../schemas/json/generated/PhySortingInterface.json"; -import NeuroScopeRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json"; -import NeuroScopeLFPInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json"; -import NeuroScopeSortingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json"; -import BiocamRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BiocamRecordingInterface.json"; -import IntanRecordingInterfaceSchema from "../../../../../../schemas/json/generated/IntanRecordingInterface.json"; -import OpenEphysRecordingInterfaceSchema from "../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json"; -import BlackrockRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockRecordingInterface.json"; -import BlackrockSortingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockSortingInterface.json"; -import CellExplorerSortingInterfaceSchema from "../../../../../../schemas/json/generated/CellExplorerSortingInterface.json"; -import KiloSortSortingInterfaceSchema from "../../../../../../schemas/json/generated/KiloSortSortingInterface.json"; -import TdtRecordingInterfaceSchema from "../../../../../../schemas/json/generated/TdtRecordingInterface.json"; -import Spike2RecordingInterfaceSchema from "../../../../../../schemas/json/generated/Spike2RecordingInterface.json"; -import BrukerTiffSinglePlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json"; -import ExtractSegmentationInterfaceSchema from "../../../../../../schemas/json/generated/ExtractSegmentationInterface.json"; -import CnmfeSegmentationInterfaceSchema from "../../../../../../schemas/json/generated/CnmfeSegmentationInterface.json"; -import BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json"; -import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/MicroManagerTiffImagingInterface.json"; -import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/generated/ScanImageImagingInterface.json"; -import TiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/TiffImagingInterface.json"; -import MiniscopeImagingInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeImagingInterface.json"; -import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; -import CaimanSegmentationInterfaceSchema from "../../../../../../schemas/json/generated/CaimanSegmentationInterface.json"; -import MCSRawRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MCSRawRecordingInterface.json"; -import MEArecRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MEArecRecordingInterface.json"; -import PlexonRecordingInterfaceSchema from "../../../../../../schemas/json/generated/PlexonRecordingInterface.json"; -import PlexonSortingInterfaceSchema from "../../../../../../schemas/json/generated/PlexonSortingInterface.json"; -import AxonaRecordingInterfaceSchema from "../../../../../../schemas/json/generated/AxonaRecordingInterface.json"; -import VideoInterfaceSchema from "../../../../../../schemas/json/generated/VideoInterface.json"; -import NeuralynxRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuralynxRecordingInterface.json"; -import Suite2pSegmentationInterfaceSchema from "../../../../../../schemas/json/generated/Suite2pSegmentationInterface.json"; -import AlphaOmegaRecordingInterfaceSchema from "../../../../../../schemas/json/generated/AlphaOmegaRecordingInterface.json"; -import DeepLabCutInterfaceSchema from "../../../../../../schemas/json/generated/DeepLabCutInterface.json"; -import SLEAPInterfaceSchema from "../../../../../../schemas/json/generated/SLEAPInterface.json"; -import FicTracDataInterfaceSchema from "../../../../../../schemas/json/generated/FicTracDataInterface.json"; -import AudioInterfaceSchema from "../../../../../../schemas/json/generated/AudioInterface.json"; -import MiniscopeBehaviorInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeBehaviorInterface.json"; -import EDFRecordingInterfaceSchema from "../../../../../../schemas/json/generated/EDFRecordingInterface.json"; -import SpikeGLXConverterPipeSchema from "../../../../../../schemas/json/generated/SpikeGLXConverterPipe.json"; -import BrukerTiffSinglePlaneConverterSchema from "../../../../../../schemas/json/generated/BrukerTiffSinglePlaneConverter.json"; -import BrukerTiffMultiPlaneConverterSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneConverter.json"; -import MiniscopeConverterSchema from "../../../../../../schemas/json/generated/MiniscopeConverter.json"; -import CellExplorerRecordingInterfaceSchema from "../../../../../../schemas/json/generated/CellExplorerRecordingInterface.json"; +import SpikeGLXRecordingInterfaceSchema from "../inputs/interface_schemas/SpikeGLXRecordingInterface.json"; +import SpikeGLXNIDQInterfaceSchema from "../inputs/interface_schemas/SpikeGLXNIDQInterface.json"; +import PhySortingInterfaceSchema from "../inputs/interface_schemas/PhySortingInterface.json"; +import NeuroScopeRecordingInterfaceSchema from "../inputs/interface_schemas/NeuroScopeRecordingInterface.json"; +import NeuroScopeLFPInterfaceSchema from "../inputs/interface_schemas/NeuroScopeLFPInterface.json"; +import NeuroScopeSortingInterfaceSchema from "../inputs/interface_schemas/NeuroScopeSortingInterface.json"; +import BiocamRecordingInterfaceSchema from "../inputs/interface_schemas/BiocamRecordingInterface.json"; +import IntanRecordingInterfaceSchema from "../inputs/interface_schemas/IntanRecordingInterface.json"; +import OpenEphysRecordingInterfaceSchema from "../inputs/interface_schemas/OpenEphysRecordingInterface.json"; +import BlackrockRecordingInterfaceSchema from "../inputs/interface_schemas/BlackrockRecordingInterface.json"; +import BlackrockSortingInterfaceSchema from "../inputs/interface_schemas/BlackrockSortingInterface.json"; +import CellExplorerSortingInterfaceSchema from "../inputs/interface_schemas/CellExplorerSortingInterface.json"; +import KiloSortSortingInterfaceSchema from "../inputs/interface_schemas/KiloSortSortingInterface.json"; +import TdtRecordingInterfaceSchema from "../inputs/interface_schemas/TdtRecordingInterface.json"; +import Spike2RecordingInterfaceSchema from "../inputs/interface_schemas/Spike2RecordingInterface.json"; +import BrukerTiffSinglePlaneImagingInterfaceSchema from "../inputs/interface_schemas/BrukerTiffSinglePlaneImagingInterface.json"; +import ExtractSegmentationInterfaceSchema from "../inputs/interface_schemas/ExtractSegmentationInterface.json"; +import CnmfeSegmentationInterfaceSchema from "../inputs/interface_schemas/CnmfeSegmentationInterface.json"; +import BrukerTiffMultiPlaneImagingInterfaceSchema from "../inputs/interface_schemas/BrukerTiffMultiPlaneImagingInterface.json"; +import MicroManagerTiffImagingInterfaceSchema from "../inputs/interface_schemas/MicroManagerTiffImagingInterface.json"; +import ScanImageImagingInterfaceSchema from "../inputs/interface_schemas/ScanImageImagingInterface.json"; +import TiffImagingInterfaceSchema from "../inputs/interface_schemas/TiffImagingInterface.json"; +import MiniscopeImagingInterfaceSchema from "../inputs/interface_schemas/MiniscopeImagingInterface.json"; +import SbxImagingInterfaceSchema from "../inputs/interface_schemas/SbxImagingInterface.json"; +import CaimanSegmentationInterfaceSchema from "../inputs/interface_schemas/CaimanSegmentationInterface.json"; +import MCSRawRecordingInterfaceSchema from "../inputs/interface_schemas/MCSRawRecordingInterface.json"; +import MEArecRecordingInterfaceSchema from "../inputs/interface_schemas/MEArecRecordingInterface.json"; +import PlexonRecordingInterfaceSchema from "../inputs/interface_schemas/PlexonRecordingInterface.json"; +import PlexonSortingInterfaceSchema from "../inputs/interface_schemas/PlexonSortingInterface.json"; +import AxonaRecordingInterfaceSchema from "../inputs/interface_schemas/AxonaRecordingInterface.json"; +import VideoInterfaceSchema from "../inputs/interface_schemas/VideoInterface.json"; +import NeuralynxRecordingInterfaceSchema from "../inputs/interface_schemas/NeuralynxRecordingInterface.json"; +import Suite2pSegmentationInterfaceSchema from "../inputs/interface_schemas/Suite2pSegmentationInterface.json"; +import AlphaOmegaRecordingInterfaceSchema from "../inputs/interface_schemas/AlphaOmegaRecordingInterface.json"; +import DeepLabCutInterfaceSchema from "../inputs/interface_schemas/DeepLabCutInterface.json"; +import SLEAPInterfaceSchema from "../inputs/interface_schemas/SLEAPInterface.json"; +import FicTracDataInterfaceSchema from "../inputs/interface_schemas/FicTracDataInterface.json"; +import AudioInterfaceSchema from "../inputs/interface_schemas/AudioInterface.json"; +import MiniscopeBehaviorInterfaceSchema from "../inputs/interface_schemas/MiniscopeBehaviorInterface.json"; +import EDFRecordingInterfaceSchema from "../inputs/interface_schemas/EDFRecordingInterface.json"; +import SpikeGLXConverterPipeSchema from "../inputs/interface_schemas/SpikeGLXConverterPipe.json"; +import BrukerTiffSinglePlaneConverterSchema from "../inputs/interface_schemas/BrukerTiffSinglePlaneConverter.json"; +import BrukerTiffMultiPlaneConverterSchema from "../inputs/interface_schemas/BrukerTiffMultiPlaneConverter.json"; +import MiniscopeConverterSchema from "../inputs/interface_schemas/MiniscopeConverter.json"; +import CellExplorerRecordingInterfaceSchema from "../inputs/interface_schemas/CellExplorerRecordingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Structure.stories.js b/stories/pages/Structure.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/Structure.stories.js rename to stories/pages/Structure.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Subjects.stories.js b/stories/pages/Subjects.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/Subjects.stories.js rename to stories/pages/Subjects.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/Upload.stories.js b/stories/pages/Upload.stories.js similarity index 100% rename from src/electron/renderer/src/stories/pages/guided-mode/Upload.stories.js rename to stories/pages/Upload.stories.js diff --git a/src/electron/renderer/src/stories/pages/guided-mode/storyStates.ts b/stories/pages/storyStates.ts similarity index 87% rename from src/electron/renderer/src/stories/pages/guided-mode/storyStates.ts rename to stories/pages/storyStates.ts index b8cd76034..8e518cfdf 100644 --- a/src/electron/renderer/src/stories/pages/guided-mode/storyStates.ts +++ b/stories/pages/storyStates.ts @@ -1,8 +1,8 @@ -import nwbBaseSchema from "../../../../../../schemas/base-metadata.schema.js"; +import nwbBaseSchema from "../../src/schemas/base-metadata.schema.js"; // import exephysExampleSchema from "../../../../../../schemas/json/ecephys_metadata_schema_example.json"; -import { dashboard } from "../../../pages.js"; -import { activateServer } from "../../../server/globals"; +import { dashboard } from "../../src/electron/renderer/src/pages.js"; +import { activateServer } from "../../src/electron/renderer/src/server/globals.js"; activateServer(); diff --git a/tsconfig.json b/tsconfig.json index a9f56c655..475adc385 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,6 @@ "noUnusedParameters": true, "noImplicitReturns": true }, - "include": ["src", "src/schemas", "frontend"], + "include": ["src", "src/schemas", "frontend", "stories/components/Table.stories.js", "stories/components/Search.stories.js", "stories/components/ProgressBar.stories.js", "stories/components/OptionalSection.stories.js", "stories/components/List.stories.js", "stories/components/JSONSchemaForm.stories.js", "stories/components/InstanceManager.stories.js", "stories/components/FileSystemSelector.stories.js", "stories/components/Button.stories.js", "stories/components/Accordion.stories.js", "stories/components/InspectorList.stories.js", "stories/components/StatusBar.stories.js", "stories/components/Multiselect.stories.js", "stories/Pages.stories.js", "stories/pages/GuidedHome.stories.js", "stories/components/Locate.stories.js", "stories/pages/Metadata.stories.js", "stories/pages/NewDataset.stories.js", "stories/pages/Preview.stories.js", "stories/pages/Review.stories.js", "stories/pages/SourceData.stories.js", "stories/pages/Structure.stories.js", "stories/pages/Subjects.stories.js", "stories/pages/Upload.stories.js", "stories/pages/storyStates.ts"], "exclude": ["node_modules"] }