Skip to content

Commit

Permalink
lint only
Browse files Browse the repository at this point in the history
  • Loading branch information
nuuuwan committed Aug 7, 2024
1 parent fad3472 commit f04385b
Show file tree
Hide file tree
Showing 9 changed files with 162 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions src/nonview/base/index.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
// Auto-generated by add_indices.py
import AudioX from './AudioX'
import Cache from './Cache'
import DICTIONARY from './DICTIONARY'
import DictUtils from './DictUtils'
import I18N from './I18N'
import IDX from './IDX'
import MathX from './MathX'
import Random from './Random'
import TimeX from './TimeX'
import URLContext from './URLContext'
import WWW from './WWW'

export {
AudioX,
Cache,
DICTIONARY,
DictUtils,
I18N,
IDX,
MathX,
Random,
TimeX,
URLContext,
WWW,
}
// Auto-generated by add_indices.py
import AudioX from "./AudioX";
import Cache from "./Cache";
import DICTIONARY from "./DICTIONARY";
import DictUtils from "./DictUtils";
import I18N from "./I18N";
import IDX from "./IDX";
import MathX from "./MathX";
import Random from "./Random";
import TimeX from "./TimeX";
import URLContext from "./URLContext";
import WWW from "./WWW";

export {
AudioX,
Cache,
DICTIONARY,
DictUtils,
I18N,
IDX,
MathX,
Random,
TimeX,
URLContext,
WWW,
};
2 changes: 1 addition & 1 deletion src/nonview/constants/VERSION.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Auto-generated by javascript_version.py
export const DATETIME_STR = "2024-08-07 10:03:33";
export const DATETIME_STR = "2024-08-07 10:36:09";
export const VERSION_DATETIME = new Date(DATETIME_STR);

const VERSION = { DATETIME_STR, VERSION_DATETIME };
Expand Down
10 changes: 4 additions & 6 deletions src/nonview/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Auto-generated by add_indices.py
import VERSION from './VERSION'

export {
VERSION,
}
// Auto-generated by add_indices.py
import VERSION from "./VERSION";

export { VERSION };
36 changes: 18 additions & 18 deletions src/nonview/core/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Auto-generated by add_indices.py
import Candidate from './Candidate'
import Criterion from './Criterion'
import GroundTruth from './GroundTruth'
import HomePageContext from './HomePageContext'
import Party from './Party'
import Version from './Version'
import Weight from './Weight'

export {
Candidate,
Criterion,
GroundTruth,
HomePageContext,
Party,
Version,
Weight,
}
// Auto-generated by add_indices.py
import Candidate from "./Candidate";
import Criterion from "./Criterion";
import GroundTruth from "./GroundTruth";
import HomePageContext from "./HomePageContext";
import Party from "./Party";
import Version from "./Version";
import Weight from "./Weight";

export {
Candidate,
Criterion,
GroundTruth,
HomePageContext,
Party,
Version,
Weight,
};
60 changes: 30 additions & 30 deletions src/view/atoms/index.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
// Auto-generated by add_indices.py
import AlignCenter from './AlignCenter'
import AlignRight from './AlignRight'
import ButtonGoogleSearch from './ButtonGoogleSearch'
import ButtonLinkedIn from './ButtonLinkedIn'
import ButtonManthriLK from './ButtonManthriLK'
import ButtonPage from './ButtonPage'
import ButtonParliamentLK from './ButtonParliamentLK'
import ButtonRandomWeights from './ButtonRandomWeights'
import ButtonRefreshWeights from './ButtonRefreshWeights'
import ButtonWikipedia from './ButtonWikipedia'
import ButtonXTwitter from './ButtonXTwitter'
import GenericButtonLink from './GenericButtonLink'
import TimeView from './TimeView'

export {
AlignCenter,
AlignRight,
ButtonGoogleSearch,
ButtonLinkedIn,
ButtonManthriLK,
ButtonPage,
ButtonParliamentLK,
ButtonRandomWeights,
ButtonRefreshWeights,
ButtonWikipedia,
ButtonXTwitter,
GenericButtonLink,
TimeView,
}
// Auto-generated by add_indices.py
import AlignCenter from "./AlignCenter";
import AlignRight from "./AlignRight";
import ButtonGoogleSearch from "./ButtonGoogleSearch";
import ButtonLinkedIn from "./ButtonLinkedIn";
import ButtonManthriLK from "./ButtonManthriLK";
import ButtonPage from "./ButtonPage";
import ButtonParliamentLK from "./ButtonParliamentLK";
import ButtonRandomWeights from "./ButtonRandomWeights";
import ButtonRefreshWeights from "./ButtonRefreshWeights";
import ButtonWikipedia from "./ButtonWikipedia";
import ButtonXTwitter from "./ButtonXTwitter";
import GenericButtonLink from "./GenericButtonLink";
import TimeView from "./TimeView";

export {
AlignCenter,
AlignRight,
ButtonGoogleSearch,
ButtonLinkedIn,
ButtonManthriLK,
ButtonPage,
ButtonParliamentLK,
ButtonRandomWeights,
ButtonRefreshWeights,
ButtonWikipedia,
ButtonXTwitter,
GenericButtonLink,
TimeView,
};
60 changes: 30 additions & 30 deletions src/view/molecules/SupportView.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { Stack, Typography, Divider } from "@mui/material";
import PartyView from "./PartyView";
import AppColors from "../_constants/AppColors";

export default function SupportView({ support }) {
if (!support) {
return null;
}
const partyCodeList = support.split(",").map((party) => party.trim());
return (
<Stack direction="row" gap={0.5}>
<Typography
variant="caption"
component="span"
color={AppColors.MoreLight}
>
Support from
</Typography>
<Stack
direction="row"
gap={0.5}
divider={<Divider orientation="vertical" flexItem variant="middle" />}
>
{partyCodeList.map(function (partyCode) {
return <PartyView key={partyCode} partyCode={partyCode} />;
})}
</Stack>{" "}
</Stack>
);
}
import { Stack, Typography, Divider } from "@mui/material";
import PartyView from "./PartyView";
import AppColors from "../_constants/AppColors";

export default function SupportView({ support }) {
if (!support) {
return null;
}
const partyCodeList = support.split(",").map((party) => party.trim());
return (
<Stack direction="row" gap={0.5}>
<Typography
variant="caption"
component="span"
color={AppColors.MoreLight}
>
Support from
</Typography>
<Stack
direction="row"
gap={0.5}
divider={<Divider orientation="vertical" flexItem variant="middle" />}
>
{partyCodeList.map(function (partyCode) {
return <PartyView key={partyCode} partyCode={partyCode} />;
})}
</Stack>{" "}
</Stack>
);
}
64 changes: 32 additions & 32 deletions src/view/molecules/index.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
// Auto-generated by add_indices.py
import CandidateProfileView from './CandidateProfileView'
import CandidateView from './CandidateView'
import CandidatesLeaderBoard from './CandidatesLeaderBoard'
import CandidatesLeaderBoardShort from './CandidatesLeaderBoardShort'
import CriteriaView from './CriteriaView'
import CriterionToWeightView from './CriterionToWeightView'
import CriterionView from './CriterionView'
import CustomAppBar from './CustomAppBar'
import GroundTruthView from './GroundTruthView'
import HelpMenu from './HelpMenu'
import HomePageBottomNavigation from './HomePageBottomNavigation'
import PartyView from './PartyView'
import SupportView from './SupportView'
import WeightView from './WeightView'

export {
CandidateProfileView,
CandidateView,
CandidatesLeaderBoard,
CandidatesLeaderBoardShort,
CriteriaView,
CriterionToWeightView,
CriterionView,
CustomAppBar,
GroundTruthView,
HelpMenu,
HomePageBottomNavigation,
PartyView,
SupportView,
WeightView,
}
// Auto-generated by add_indices.py
import CandidateProfileView from "./CandidateProfileView";
import CandidateView from "./CandidateView";
import CandidatesLeaderBoard from "./CandidatesLeaderBoard";
import CandidatesLeaderBoardShort from "./CandidatesLeaderBoardShort";
import CriteriaView from "./CriteriaView";
import CriterionToWeightView from "./CriterionToWeightView";
import CriterionView from "./CriterionView";
import CustomAppBar from "./CustomAppBar";
import GroundTruthView from "./GroundTruthView";
import HelpMenu from "./HelpMenu";
import HomePageBottomNavigation from "./HomePageBottomNavigation";
import PartyView from "./PartyView";
import SupportView from "./SupportView";
import WeightView from "./WeightView";

export {
CandidateProfileView,
CandidateView,
CandidatesLeaderBoard,
CandidatesLeaderBoardShort,
CriteriaView,
CriterionToWeightView,
CriterionView,
CustomAppBar,
GroundTruthView,
HelpMenu,
HomePageBottomNavigation,
PartyView,
SupportView,
WeightView,
};
40 changes: 20 additions & 20 deletions src/view/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// Auto-generated by add_indices.py
import AbstractInnerPage from './AbstractInnerPage'
import AbstractStepPage from './AbstractStepPage'
import CandidatePage from './CandidatePage'
import CriteriaPage from './CriteriaPage'
import GroundTruthPage from './GroundTruthPage'
import HomePage from './HomePage'
import PAGE_CONFIG_LIST from './PAGE_CONFIG_LIST'
import StartPage from './StartPage'

export {
AbstractInnerPage,
AbstractStepPage,
CandidatePage,
CriteriaPage,
GroundTruthPage,
HomePage,
PAGE_CONFIG_LIST,
StartPage,
}
// Auto-generated by add_indices.py
import AbstractInnerPage from "./AbstractInnerPage";
import AbstractStepPage from "./AbstractStepPage";
import CandidatePage from "./CandidatePage";
import CriteriaPage from "./CriteriaPage";
import GroundTruthPage from "./GroundTruthPage";
import HomePage from "./HomePage";
import PAGE_CONFIG_LIST from "./PAGE_CONFIG_LIST";
import StartPage from "./StartPage";

export {
AbstractInnerPage,
AbstractStepPage,
CandidatePage,
CriteriaPage,
GroundTruthPage,
HomePage,
PAGE_CONFIG_LIST,
StartPage,
};

0 comments on commit f04385b

Please sign in to comment.