From ae5d0a2770e3006ee3983d69afa0fc7e360fa4b6 Mon Sep 17 00:00:00 2001 From: Michael Behrisch <m.behrisch@uu.nl> Date: Sat, 5 Feb 2022 21:22:38 +0100 Subject: [PATCH] fix(components): :art: lowercase folder and filenames Changes the component folder and filenaming consistently to lowercase. --- .../web/components/panels/Panel.stories.tsx | 2 +- ...nvis.module.scss => rawjsonvis.module.scss} | 0 ...aw-jsonvis.spec.tsx => rawjsonvis.spec.tsx} | 2 +- ...nvis.stories.tsx => rawjsonvis.stories.tsx} | 3 +-- .../{raw-jsonvis.tsx => rawjsonvis.tsx} | 2 +- .../SemanticSubstrates.stories.tsx | 2 +- .../nodelinkvis.stories.tsx} | 2 +- .../NodeLink.tsx => nodelink/nodelinkvis.tsx} | 0 .../paohvis.stories.tsx} | 18 ++++++------------ .../PoahVis.tsx => paohvis/paohvis.tsx} | 0 10 files changed, 12 insertions(+), 19 deletions(-) rename apps/graphpolaris/src/web/components/visualisations/RawJSONVis/{raw-jsonvis.module.scss => rawjsonvis.module.scss} (100%) rename apps/graphpolaris/src/web/components/visualisations/RawJSONVis/{raw-jsonvis.spec.tsx => rawjsonvis.spec.tsx} (84%) rename apps/graphpolaris/src/web/components/visualisations/RawJSONVis/{raw-jsonvis.stories.tsx => rawjsonvis.stories.tsx} (94%) rename apps/graphpolaris/src/web/components/visualisations/RawJSONVis/{raw-jsonvis.tsx => rawjsonvis.tsx} (97%) rename apps/graphpolaris/src/web/components/visualisations/{NodeLink/Nodelink.stories.tsx => nodelink/nodelinkvis.stories.tsx} (95%) rename apps/graphpolaris/src/web/components/visualisations/{NodeLink/NodeLink.tsx => nodelink/nodelinkvis.tsx} (100%) rename apps/graphpolaris/src/web/components/visualisations/{PoahVis/PoahVis.stories.tsx => paohvis/paohvis.stories.tsx} (60%) rename apps/graphpolaris/src/web/components/visualisations/{PoahVis/PoahVis.tsx => paohvis/paohvis.tsx} (100%) diff --git a/apps/graphpolaris/src/web/components/panels/Panel.stories.tsx b/apps/graphpolaris/src/web/components/panels/Panel.stories.tsx index a17f7b23e..a172d8f1f 100644 --- a/apps/graphpolaris/src/web/components/panels/Panel.stories.tsx +++ b/apps/graphpolaris/src/web/components/panels/Panel.stories.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import Panel from './Panel'; +import Panel from './panel'; import { ComponentStory, ComponentMeta } from '@storybook/react'; export default { diff --git a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.module.scss b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.module.scss similarity index 100% rename from apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.module.scss rename to apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.module.scss diff --git a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.spec.tsx b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.spec.tsx similarity index 84% rename from apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.spec.tsx rename to apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.spec.tsx index ec4c0a8e8..684e611b1 100644 --- a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.spec.tsx +++ b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.spec.tsx @@ -1,6 +1,6 @@ import { render } from '@testing-library/react'; -import RawJSONVis from './raw-jsonvis'; +import RawJSONVis from './rawjsonvis'; describe('RawJSONVis', () => { it('should render successfully', () => { diff --git a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.stories.tsx b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.stories.tsx similarity index 94% rename from apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.stories.tsx rename to apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.stories.tsx index 023117373..8c45dc630 100644 --- a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.stories.tsx +++ b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.stories.tsx @@ -1,11 +1,10 @@ import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; -import { RawJSONVis } from './raw-jsonvis'; +import { RawJSONVis } from './rawjsonvis'; import { Provider } from 'react-redux'; import { configureStore, createSlice } from '@reduxjs/toolkit'; -// import * as TaskListStories from './TaskList.stories'; import graphQueryResultSlice, { assignNewGraphQueryResult, resetGraphQueryResults, diff --git a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.tsx b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.tsx similarity index 97% rename from apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.tsx rename to apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.tsx index d9e482322..ecd4ba1c8 100644 --- a/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/raw-jsonvis.tsx +++ b/apps/graphpolaris/src/web/components/visualisations/RawJSONVis/rawjsonvis.tsx @@ -1,7 +1,7 @@ import { useGraphQueryResult } from '@graphpolaris/shared/data-access/store'; import React, { useEffect, useState } from 'react'; import ReactJSONView from 'react-json-view'; -import './raw-jsonvis.module.scss'; +import './rawjsonvis.module.scss'; /* eslint-disable-next-line */ export interface RawJSONVisProps { diff --git a/apps/graphpolaris/src/web/components/visualisations/SemanticSubstrates/SemanticSubstrates.stories.tsx b/apps/graphpolaris/src/web/components/visualisations/SemanticSubstrates/SemanticSubstrates.stories.tsx index e4b342f2e..3c80f3467 100644 --- a/apps/graphpolaris/src/web/components/visualisations/SemanticSubstrates/SemanticSubstrates.stories.tsx +++ b/apps/graphpolaris/src/web/components/visualisations/SemanticSubstrates/SemanticSubstrates.stories.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import SemanticSubstrates from './SemanticSubstrates'; +import SemanticSubstrates from './semanticsubstrates'; import { ComponentStory, ComponentMeta } from '@storybook/react'; export default { diff --git a/apps/graphpolaris/src/web/components/visualisations/NodeLink/Nodelink.stories.tsx b/apps/graphpolaris/src/web/components/visualisations/nodelink/nodelinkvis.stories.tsx similarity index 95% rename from apps/graphpolaris/src/web/components/visualisations/NodeLink/Nodelink.stories.tsx rename to apps/graphpolaris/src/web/components/visualisations/nodelink/nodelinkvis.stories.tsx index c4fb623d8..fb22505b6 100644 --- a/apps/graphpolaris/src/web/components/visualisations/NodeLink/Nodelink.stories.tsx +++ b/apps/graphpolaris/src/web/components/visualisations/nodelink/nodelinkvis.stories.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import NodeLink from './NodeLink'; +import NodeLink from './nodelinkvis'; import { ComponentStory, ComponentMeta } from '@storybook/react'; export default { diff --git a/apps/graphpolaris/src/web/components/visualisations/NodeLink/NodeLink.tsx b/apps/graphpolaris/src/web/components/visualisations/nodelink/nodelinkvis.tsx similarity index 100% rename from apps/graphpolaris/src/web/components/visualisations/NodeLink/NodeLink.tsx rename to apps/graphpolaris/src/web/components/visualisations/nodelink/nodelinkvis.tsx diff --git a/apps/graphpolaris/src/web/components/visualisations/PoahVis/PoahVis.stories.tsx b/apps/graphpolaris/src/web/components/visualisations/paohvis/paohvis.stories.tsx similarity index 60% rename from apps/graphpolaris/src/web/components/visualisations/PoahVis/PoahVis.stories.tsx rename to apps/graphpolaris/src/web/components/visualisations/paohvis/paohvis.stories.tsx index da885542e..795a79aba 100644 --- a/apps/graphpolaris/src/web/components/visualisations/PoahVis/PoahVis.stories.tsx +++ b/apps/graphpolaris/src/web/components/visualisations/paohvis/paohvis.stories.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import PoahVis from './PoahVis'; +import PaohVis from './paohvis'; import { ComponentStory, ComponentMeta } from '@storybook/react'; export default { @@ -7,13 +7,13 @@ export default { * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading * to learn how to generate automatic titles */ - title: 'PoahVis', - component: PoahVis, + title: 'PaohVis', + component: PaohVis, decorators: [(story) => <div style={{ padding: '3rem' }}>{story()}</div>], -} as ComponentMeta<typeof PoahVis>; +} as ComponentMeta<typeof PaohVis>; -const Template: ComponentStory<typeof PoahVis> = (args) => ( - <PoahVis {...args} /> +const Template: ComponentStory<typeof PaohVis> = (args) => ( + <PaohVis {...args} /> ); export const Primary = Template.bind({}); @@ -21,9 +21,3 @@ export const Primary = Template.bind({}); Primary.args = { content: 'Testing header #1', }; - -export const Secondary = Template.bind({}); - -Secondary.args = { - content: 'Testing header number twoooo', -}; diff --git a/apps/graphpolaris/src/web/components/visualisations/PoahVis/PoahVis.tsx b/apps/graphpolaris/src/web/components/visualisations/paohvis/paohvis.tsx similarity index 100% rename from apps/graphpolaris/src/web/components/visualisations/PoahVis/PoahVis.tsx rename to apps/graphpolaris/src/web/components/visualisations/paohvis/paohvis.tsx -- GitLab