Skip to content

Commit 438206b

Browse files
committed
Merge branch 'refs/heads/main' into forman-refactorings_2
# Conflicts: # dashi/src/actions/applyPropertyChange.ts
2 parents 6a8f27b + f81617e commit 438206b

15 files changed

+27
-31
lines changed

dashi/src/actions/setComponentVisibility.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import { fetchInitialComponentState } from "../api";
12
import appStore from "../store/appStore";
3+
import { ContribPoint } from "../model/extension";
24
import fetchApiResult from "../utils/fetchApiResult";
3-
import { fetchInitialComponentState } from "../api";
45
import { updateContributionState } from "./updateContributionState";
56

6-
import { ContribPoint } from "../model/extension";
7-
87
export function setComponentVisibility(
98
contribPoint: ContribPoint,
109
panelIndex: number,

dashi/src/actions/updateContributionState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import appStore from "../store/appStore";
22
import { updateArray } from "../utils/updateArray";
33
import { ContributionState } from "../state/contribution";
4-
54
import { ContribPoint } from "../model/extension";
65

76
export function updateContributionState(

dashi/src/app/App.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import {
2-
CssBaseline,
3-
ThemeProvider,
4-
createTheme,
5-
Typography,
6-
} from "@mui/material";
1+
import { CssBaseline, ThemeProvider, createTheme } from "@mui/material";
2+
import Typography from "@mui/material/Typography";
73

4+
import { initAppStore } from "../actions/initAppStore";
85
import ExtensionsInfo from "./ExtensionInfo";
96
import PanelsControl from "./PanelsControl";
107
import PanelsRow from "./PanelsRow";
11-
import { initAppStore } from "../actions/initAppStore";
128

139
initAppStore();
1410

dashi/src/app/ExtensionInfo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import Typography from "@mui/material/Typography";
2+
13
import useAppStore from "../store/appStore";
2-
import { Typography } from "@mui/material";
34

45
function ExtensionsInfo() {
56
const contributionsResult = useAppStore((state) => state.contributionsResult);
@@ -22,7 +23,7 @@ function ExtensionsInfo() {
2223
} else if (contributionsResult.error) {
2324
return <div>Error: {contributionsResult.error.message}</div>;
2425
} else if (contributionsResult.status === "pending") {
25-
return <div>{`Loading contributions...`}</div>;
26+
return <div>{`Loading extensions...`}</div>;
2627
}
2728
return null;
2829
}

dashi/src/app/Panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CSSProperties, ReactElement } from "react";
2-
import { CircularProgress } from "@mui/material";
2+
import CircularProgress from "@mui/material/CircularProgress";
33

44
import { PropertyChangeHandler } from "../model/event";
55
import { Contribution } from "../model/contribution";

dashi/src/app/PanelsRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import useAppStore from "../store/appStore";
2-
import Panel from "./Panel";
32
import applyPropertyChange from "../actions/applyPropertyChange";
43
import { PropertyChangeEvent } from "../model/event";
4+
import Panel from "./Panel";
55

66
const contribPoint = "panels";
77

dashi/src/components/DashiBox.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import Box from "@mui/material/Box";
2+
13
import { BoxState } from "../state/component";
2-
import DashiChildren from "./DashiChildren";
3-
import { Box } from "@mui/material";
44
import { PropertyChangeHandler } from "../model/event";
5+
import DashiChildren from "./DashiChildren";
56

67
export interface DashiBoxProps extends Omit<BoxState, "type"> {
78
onPropertyChange: PropertyChangeHandler;

dashi/src/components/DashiButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { MouseEvent } from "react";
2-
import { ButtonState } from "../state/component";
32
import Button from "@mui/material/Button";
3+
4+
import { ButtonState } from "../state/component";
45
import { PropertyChangeHandler } from "../model/event";
56

67
export interface DashiButtonProps extends Omit<ButtonState, "type"> {

dashi/src/components/DashiChildren.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { PropertyChangeHandler } from "../model/event";
12
import { ComponentState } from "../state/component";
23
import DashiComponent from "./DashiComponent";
3-
import { PropertyChangeHandler } from "../model/event";
44

55
export interface DashiChildrenProps {
66
components?: ComponentState[];

dashi/src/components/DashiComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ComponentState } from "../state/component";
2+
import { PropertyChangeHandler } from "../model/event";
23
import DashiPlot, { DashiPlotProps } from "./DashiPlot";
34
import DashiButton, { DashiButtonProps } from "./DashiButton";
45
import DashiBox, { DashiBoxProps } from "./DashiBox";
56
import DashiDropdown, { DashiDropdownProps } from "./DashiDropdown";
6-
import { PropertyChangeHandler } from "../model/event";
77

88
export interface DashiComponentProps extends ComponentState {
99
onPropertyChange: PropertyChangeHandler;

0 commit comments

Comments
 (0)