Skip to content

Commit

Permalink
Renamed imports to point to new codebases dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 10, 2024
1 parent d02778c commit c789db9
Show file tree
Hide file tree
Showing 41 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .storybook/decorators.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { ThemeProvider } from 'theme-ui'
import theme from '../polis/client-admin/src/theme'
import theme from '../codebases/compdem/client-admin/src/theme'
import { Provider as ReduxProvider } from 'react-redux'
import configureStore from '../polis/client-admin/src/store'
import configureStore from '../codebases/compdem/client-admin/src/store'

const store = configureStore()

Expand Down
2 changes: 1 addition & 1 deletion .storybook/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as globals from "../polis/client-report/src/components/globals";
import * as globals from "../codebases/compdem/client-report/src/components/globals";
import participationData from './data/3ntrtcehas-participation-init.json'

export const getMath = () => {
Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/CreateUser.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import CreateUser from '../../polis/client-admin/src/components/landers/createuser'
import CreateUser from '../../codebases/compdem/client-admin/src/components/landers/createuser'
import { withThemeUi, withRedux } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/ExploreKnowledgeBase.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import ExploreKnowledgeBase from '../../polis/client-admin/src/components/landers/exploreKnowledgeBase'
import ExploreKnowledgeBase from '../../codebases/compdem/client-admin/src/components/landers/exploreKnowledgeBase'
import { withThemeUi } from '../../.storybook/decorators'

export default {
Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/Footer.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Footer from '../../polis/client-admin/src/components/landers/lander-footer'
import Footer from '../../codebases/compdem/client-admin/src/components/landers/lander-footer'
import { withThemeUi } from '../../.storybook/decorators'

export default {
Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/Header.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Header from '../../polis/client-admin/src/components/landers/lander-header'
import Header from '../../codebases/compdem/client-admin/src/components/landers/lander-header'
import { withThemeUi } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/Home.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Home from '../../polis/client-admin/src/components/landers/home'
import Home from '../../codebases/compdem/client-admin/src/components/landers/home'
import { withThemeUi } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/KnowledgeBase.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import KnowledgeBase from '../../polis/client-admin/src/components/landers/knowledgeBase'
import KnowledgeBase from '../../codebases/compdem/client-admin/src/components/landers/knowledgeBase'
import { withThemeUi } from '../../.storybook/decorators'

export default {
Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/Layout.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Layout from '../../polis/client-admin/src/components/landers/lander-layout'
import Layout from '../../codebases/compdem/client-admin/src/components/landers/lander-layout'
import { withThemeUi } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router';

Expand Down
4 changes: 2 additions & 2 deletions stories/client-admin/Logomark.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Logomark from '../../polis/client-admin/src/components/framework/logomark'
import settings from '../../polis/client-admin/src/settings'
import Logomark from '../../codebases/compdem/client-admin/src/components/framework/logomark'
import settings from '../../codebases/compdem/client-admin/src/settings'

export default {
title: 'Client-Admin/Logomark',
Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/Press.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Press from '../../polis/client-admin/src/components/landers/press'
import Press from '../../codebases/compdem/client-admin/src/components/landers/press'
import { withThemeUi } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router';

Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/SignIn.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import SignIn from '../../polis/client-admin/src/components/landers/signin'
import SignIn from '../../codebases/compdem/client-admin/src/components/landers/signin'
import { withThemeUi, withRedux } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/SignOut.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import SignOut from '../../polis/client-admin/src/components/landers/signout'
import SignOut from '../../codebases/compdem/client-admin/src/components/landers/signout'
import { withThemeUi, withRedux } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-admin/Spinner.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Spinner from '../../polis/client-admin/src/components/framework/spinner'
import Spinner from '../../codebases/compdem/client-admin/src/components/framework/spinner'

export default {
title: 'Client-Admin/Spinner',
Expand Down
4 changes: 2 additions & 2 deletions stories/client-participation/BarChartCompact.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import BarChartCompact from '../../polis/client-participation/vis2/components/barChartCompact'
import BarChartCompact from '../../codebases/compdem/client-participation/vis2/components/barChartCompact'
import { getMath } from '../../.storybook/utils'
import { svgDecorator } from '../../.storybook/decorators'
import * as globals from '../../polis/client-participation/vis2/components/globals'
import * as globals from '../../codebases/compdem/client-participation/vis2/components/globals'

const mathResult = getMath()
const getGroupIds = (mathResult) => (mathResult['group-clusters'].map(g => g.id))
Expand Down
6 changes: 3 additions & 3 deletions stories/client-participation/CurateButton.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import * as globals from '../../polis/client-participation/vis2/components/globals'
import { Button as CurateButton } from '../../polis/client-participation/vis2/components/curate'
import * as globals from '../../codebases/compdem/client-participation/vis2/components/globals'
import { Button as CurateButton } from '../../codebases/compdem/client-participation/vis2/components/curate'

export default {
title: 'Client-Participation/CurateButton',
Expand Down Expand Up @@ -44,4 +44,4 @@ MajoritySelected.args = {
identifier: globals.tidCuration.majority,
selectedTidCuration: globals.tidCuration.majority,
children: "Majority Opinion",
}
}
6 changes: 3 additions & 3 deletions stories/client-participation/DataSentence.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import * as globals from '../../polis/client-participation/vis2/components/globals'
import { DataSentence } from '../../polis/client-participation/vis2/components/exploreTid'
import * as globals from '../../codebases/compdem/client-participation/vis2/components/globals'
import { DataSentence } from '../../codebases/compdem/client-participation/vis2/components/exploreTid'
import { getMath } from '../../.storybook/utils'
import Strings from '../../polis/client-participation/js/strings/en_us'
import Strings from '../../codebases/compdem/client-participation/js/strings/en_us'

const mathResults = getMath()

Expand Down
4 changes: 2 additions & 2 deletions stories/client-participation/Graph.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import Graph from '../../polis/client-participation/vis2/components/graph'
import Graph from '../../codebases/compdem/client-participation/vis2/components/graph'
import { getMath } from '../../.storybook/utils'
import Strings from '../../polis/client-participation/js/strings/en_us'
import Strings from '../../codebases/compdem/client-participation/js/strings/en_us'
import commentsData from '../../.storybook/data/3ntrtcehas-comments.json'
import { action } from '@storybook/addon-actions'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/GraphParticipant.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Participant as GraphParticipant } from '../../polis/client-participation/vis2/components/graphParticipants'
import { Participant as GraphParticipant } from '../../codebases/compdem/client-participation/vis2/components/graphParticipants'
import socialAvatar from '../../.storybook/assets/avatar-sample.jpg'
import defaultAvatar from '../../.storybook/assets/avatar-default.png'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/GraphParticipants.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import GraphParticipants from '../../polis/client-participation/vis2/components/graphParticipants'
import GraphParticipants from '../../codebases/compdem/client-participation/vis2/components/graphParticipants'
import socialAvatar from '../../.storybook/assets/avatar-sample.jpg'
import defaultAvatar from '../../.storybook/assets/avatar-default.png'

Expand Down
4 changes: 2 additions & 2 deletions stories/client-participation/TidCarousel.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import TidCarousel from '../../polis/client-participation/vis2/components/tidCarousel'
import Strings from '../../polis/client-participation/js/strings/en_us'
import TidCarousel from '../../codebases/compdem/client-participation/vis2/components/tidCarousel'
import Strings from '../../codebases/compdem/client-participation/js/strings/en_us'

import commentsData from '../../.storybook/data/3ntrtcehas-comments.json'

Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/barChart.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import BarChart from '../../polis/client-participation/vis2/components/barChart'
import BarChart from '../../codebases/compdem/client-participation/vis2/components/barChart'
import { getMath } from '../../.storybook/utils'
import { svgDecorator } from '../../.storybook/decorators'

Expand Down
6 changes: 3 additions & 3 deletions stories/client-participation/curate.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import * as globals from '../../polis/client-participation/vis2/components/globals'
import Strings from '../../polis/client-participation/js/strings/en_us'
import Curate from '../../polis/client-participation/vis2/components/curate'
import * as globals from '../../codebases/compdem/client-participation/vis2/components/globals'
import Strings from '../../codebases/compdem/client-participation/js/strings/en_us'
import Curate from '../../codebases/compdem/client-participation/vis2/components/curate'
import { getMath } from '../../.storybook/utils'

const mathResults = getMath()
Expand Down
4 changes: 2 additions & 2 deletions stories/client-participation/exploreTid.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import ExploreTid from '../../polis/client-participation/vis2/components/exploreTid'
import ExploreTid from '../../codebases/compdem/client-participation/vis2/components/exploreTid'
import { getMath } from '../../.storybook/utils'
import Strings from '../../polis/client-participation/js/strings/en_us'
import Strings from '../../codebases/compdem/client-participation/js/strings/en_us'

const mathResults = getMath()

Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/gear.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Gear from '../../polis/client-participation/vis2/components/gear'
import Gear from '../../codebases/compdem/client-participation/vis2/components/gear'

export default {
title: 'Client-Participation/Gear',
Expand Down
4 changes: 2 additions & 2 deletions stories/client-participation/graphAxes.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import * as globals from '../../polis/client-participation/vis2/components/globals'
import GraphAxes from '../../polis/client-participation/vis2/components/graphAxes'
import * as globals from '../../codebases/compdem/client-participation/vis2/components/globals'
import GraphAxes from '../../codebases/compdem/client-participation/vis2/components/graphAxes'

export default {
title: 'Client-Participation/GraphAxes',
Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/header.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Header from '../../polis/client-participation/vis2/components/header'
import Header from '../../codebases/compdem/client-participation/vis2/components/header'

export default {
title: 'Client-Participation/Header',
Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/hexLogo.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import HexLogo from '../../polis/client-participation/vis2/components/hexLogo'
import HexLogo from '../../codebases/compdem/client-participation/vis2/components/hexLogo'

export default {
title: 'Client-Participation/HexLogo',
Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/hull.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import { Hull } from '../../polis/client-participation/vis2/components/hull'
import { Hull } from '../../codebases/compdem/client-participation/vis2/components/hull'

export default {
title: 'Client-Participation/Hull',
Expand Down
2 changes: 1 addition & 1 deletion stories/client-participation/hullLabels.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import { Label as HullLabel } from '../../polis/client-participation/vis2/components/hullLabels'
import { Label as HullLabel } from '../../codebases/compdem/client-participation/vis2/components/hullLabels'
import { svgDecorator } from '../../.storybook/decorators'

export default {
Expand Down
2 changes: 1 addition & 1 deletion stories/client-report/barChart.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import BarChart from '../../polis/client-report/src/components/barChart'
import BarChart from '../../codebases/compdem/client-report/src/components/barChart'
import { getMath } from '../../.storybook/utils'
import { svgDecorator } from '../../.storybook/decorators'

Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/beeswarm.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import Beeswarm from '../../polis/client-report/src/components/beeswarm/beeswarm'
import Beeswarm from '../../codebases/compdem/client-report/src/components/beeswarm/beeswarm'
import { getMath, getConversation, getExtremity } from '../../.storybook/utils'

import '../../polis/client-report/src/index.css';
import '../../codebases/compdem/client-report/src/index.css';

const mathResult = getMath()

Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/framework/Footer.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import Footer from '../../../polis/client-report/src/components/framework/Footer'
import Footer from '../../../codebases/compdem/client-report/src/components/framework/Footer'

import '../../../polis/client-report/src/index.css'
import '../../../codebases/compdem/client-report/src/index.css'

export default {
title: 'Client-Report/Footer',
Expand Down
6 changes: 3 additions & 3 deletions stories/client-report/framework/checkbox.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import Checkbox from '../../../polis/client-report/src/components/framework/checkbox'
import settings from '../../../polis/client-report/src/settings'
import Checkbox from '../../../codebases/compdem/client-report/src/components/framework/checkbox'
import settings from '../../../codebases/compdem/client-report/src/settings'

import '../../../polis/client-report/src/index.css';
import '../../../codebases/compdem/client-report/src/index.css';

export default {
title: 'Client-Report/Checkbox (buggy)',
Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/framework/heading.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import Heading from '../../../polis/client-report/src/components/framework/heading'
import Heading from '../../../codebases/compdem/client-report/src/components/framework/heading'
import { getConversation } from '../../../.storybook/utils'

import '../../../polis/client-report/src/index.css';
import '../../../codebases/compdem/client-report/src/index.css';

export default {
title: 'Client-Report/Heading',
Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/framework/legend.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import Legend from '../../../polis/client-report/src/components/framework/legend'
import Legend from '../../../codebases/compdem/client-report/src/components/framework/legend'
import { getVoteColors } from '../../../.storybook/utils'

import '../../../polis/client-report/src/index.css';
import '../../../codebases/compdem/client-report/src/index.css';

export default {
title: 'Client-Report/Legend',
Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/framework/logoLargeShort.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import LogoLargeShort from '../../../polis/client-report/src/components/framework/logoLargeShort'
import LogoLargeShort from '../../../codebases/compdem/client-report/src/components/framework/logoLargeShort'

import '../../../polis/client-report/src/index.css';
import '../../../codebases/compdem/client-report/src/index.css';

export default {
title: 'Client-Report/LogoLargeShort',
Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/framework/logoSmallLong.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import LogoSmallLong from '../../../polis/client-report/src/components/framework/logoSmallLong'
import LogoSmallLong from '../../../codebases/compdem/client-report/src/components/framework/logoSmallLong'

import '../../../polis/client-report/src/index.css';
import '../../../codebases/compdem/client-report/src/index.css';

export default {
title: 'Client-Report/LogoSmallLong',
Expand Down
2 changes: 1 addition & 1 deletion stories/client-report/lists/BarChartCompact.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { BarChartCompact } from '../../../polis/client-report/src/components/lists/commentList.js'
import { BarChartCompact } from '../../../codebases/compdem/client-report/src/components/lists/commentList.js'

import participationData from '../../../.storybook/data/3ntrtcehas-participation-init.json'
const pcaData = JSON.parse(participationData.pca)
Expand Down
2 changes: 1 addition & 1 deletion stories/client-report/lists/CommentRow.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { CommentRow } from '../../../polis/client-report/src/components/lists/commentList.js'
import { CommentRow } from '../../../codebases/compdem/client-report/src/components/lists/commentList.js'

import participationData from '../../../.storybook/data/3ntrtcehas-participation-init.json'
const pcaData = JSON.parse(participationData.pca)
Expand Down
4 changes: 2 additions & 2 deletions stories/client-report/overview.stories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import Overview from '../../polis/client-report/src/components/overview'
import Overview from '../../codebases/compdem/client-report/src/components/overview'
import { getMath, getConversation } from '../../.storybook/utils'

import '../../polis/client-report/src/index.css';
import '../../codebases/compdem/client-report/src/index.css';

export default {
title: 'Client-Report/Overview',
Expand Down

0 comments on commit c789db9

Please sign in to comment.