diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 181177399..eff1d9d07 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -18,5 +18,5 @@ root.render(
-
+ ,
);
diff --git a/frontend/src/ErrorHandler.tsx b/frontend/src/ErrorHandler.tsx
index 46b63352f..ba1e8373c 100644
--- a/frontend/src/ErrorHandler.tsx
+++ b/frontend/src/ErrorHandler.tsx
@@ -129,7 +129,7 @@ const ErrorBridge: FC<{ children: React.ReactNode }> = ({ children }) => {
}
dispatchError(event.reason);
},
- []
+ [],
);
useEffect(() => {
@@ -137,7 +137,7 @@ const ErrorBridge: FC<{ children: React.ReactNode }> = ({ children }) => {
return () => {
window.removeEventListener(
"unhandledrejection",
- handleUnhandledRejection
+ handleUnhandledRejection,
);
};
}, [handleUnhandledRejection]);
diff --git a/frontend/src/components/acl/ACLForm.test.tsx b/frontend/src/components/acl/ACLForm.test.tsx
index e3e1c448c..e48c16ded 100644
--- a/frontend/src/components/acl/ACLForm.test.tsx
+++ b/frontend/src/components/acl/ACLForm.test.tsx
@@ -28,6 +28,6 @@ test("should render a component with essential props", function () {
expect(() =>
render(, {
wrapper: TestWrapper,
- })
+ }),
).not.toThrow();
});
diff --git a/frontend/src/components/acl/ACLHistoryList.tsx b/frontend/src/components/acl/ACLHistoryList.tsx
index e5494016e..fcefb511c 100644
--- a/frontend/src/components/acl/ACLHistoryList.tsx
+++ b/frontend/src/components/acl/ACLHistoryList.tsx
@@ -84,16 +84,16 @@ export const ACLHistoryList: FC = ({ histories }) => {
{change.before != null
- ? ACLTypeLabels[
+ ? (ACLTypeLabels[
change.before as ACLType
- ] ?? "不明"
+ ] ?? "不明")
: "-"}
{change.after != null
- ? ACLTypeLabels[
+ ? (ACLTypeLabels[
change.after as ACLType
- ] ?? "不明"
+ ] ?? "不明")
: "-"}
>
diff --git a/frontend/src/components/acl/aclForm/ACLFormSchema.ts b/frontend/src/components/acl/aclForm/ACLFormSchema.ts
index a351aeae6..561ae4749 100644
--- a/frontend/src/components/acl/aclForm/ACLFormSchema.ts
+++ b/frontend/src/components/acl/aclForm/ACLFormSchema.ts
@@ -33,14 +33,14 @@ export const schema = schemaForType()(
name: z.string(),
description: z.string(),
currentPermission: z.number(),
- })
+ }),
),
})
.superRefine(({ isPublic, defaultPermission, roles }, ctx) => {
const isDefaultPermissionFull =
defaultPermission != null && defaultPermission === ACLType.Full;
const isSomeRolesFull = roles.some(
- (r) => r.currentPermission === ACLType.Full
+ (r) => r.currentPermission === ACLType.Full,
);
if (!isPublic && !isDefaultPermissionFull && !isSomeRolesFull) {
@@ -52,7 +52,7 @@ export const schema = schemaForType()(
} にしてください`,
});
}
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/components/category/CategoryList.tsx b/frontend/src/components/category/CategoryList.tsx
index 8037be2fc..cee70cd0f 100644
--- a/frontend/src/components/category/CategoryList.tsx
+++ b/frontend/src/components/category/CategoryList.tsx
@@ -53,7 +53,7 @@ export const CategoryList: FC = ({ isEdit = false }) => {
onKeyPress={(e) => {
e.key === "Enter" &&
handleChangeQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}}
/>
diff --git a/frontend/src/components/category/categoryForm/CategoryFormSchema.ts b/frontend/src/components/category/categoryForm/CategoryFormSchema.ts
index 8652a39ce..2cae097c0 100644
--- a/frontend/src/components/category/categoryForm/CategoryFormSchema.ts
+++ b/frontend/src/components/category/categoryForm/CategoryFormSchema.ts
@@ -13,12 +13,12 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.default([]),
//priority: z.number().default(0).refine((v) => Number(v)),
priority: z.coerce.number(),
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/components/common/AironeLink.tsx b/frontend/src/components/common/AironeLink.tsx
index 8f08545eb..32f902050 100644
--- a/frontend/src/components/common/AironeLink.tsx
+++ b/frontend/src/components/common/AironeLink.tsx
@@ -2,7 +2,7 @@ import { styled } from "@mui/material/styles";
import { Link, LinkProps } from "react-router";
export const AironeLink: React.ComponentType = styled(
- Link
+ Link,
)(({ theme }) => ({
color: theme.palette.primary.main,
textDecoration: "none",
diff --git a/frontend/src/components/common/AutocompleteWithAllSelector.tsx b/frontend/src/components/common/AutocompleteWithAllSelector.tsx
index f0f939087..2fcf87da9 100644
--- a/frontend/src/components/common/AutocompleteWithAllSelector.tsx
+++ b/frontend/src/components/common/AutocompleteWithAllSelector.tsx
@@ -21,7 +21,7 @@ type SelectorOption = "select-all" | "remove-all";
interface Props<
T,
DisableClearable extends boolean | undefined = undefined,
- FreeSolo extends boolean | undefined = undefined
+ FreeSolo extends boolean | undefined = undefined,
> extends AutocompleteProps<
T | SelectorOption,
true,
@@ -41,14 +41,14 @@ interface Props<
export const AutocompleteWithAllSelector = <
T,
DisableClearable extends boolean | undefined = undefined,
- FreeSolo extends boolean | undefined = undefined
+ FreeSolo extends boolean | undefined = undefined,
>({
selectAllLabel,
...autocompleteProps
}: Props) => {
if (!autocompleteProps.multiple) {
throw new Error(
- "AutocompleteWithAllSelector supports only multiple options"
+ "AutocompleteWithAllSelector supports only multiple options",
);
}
@@ -91,14 +91,14 @@ export const AutocompleteWithAllSelector = <
value: Array<
T | AutocompleteFreeSoloValueMapping | SelectorOption
>,
- reason: AutocompleteChangeReason
+ reason: AutocompleteChangeReason,
): void => {
if (onChange == null) return;
if (value.find((v) => v === "select-all") != null) {
const newValueBase = value.filter((v) => v !== "select-all");
const newElements = filterOptionResult.current.results.filter(
- (v) => !newValueBase.includes(v)
+ (v) => !newValueBase.includes(v),
);
return onChange(event, newValueBase.concat(newElements), reason);
} else if (value.find((v) => v === "remove-all") != null) {
@@ -110,7 +110,7 @@ export const AutocompleteWithAllSelector = <
const optionRenderer = (
props: HTMLAttributes,
- option: T | SelectorOption
+ option: T | SelectorOption,
) => {
switch (option) {
case "select-all":
@@ -128,7 +128,7 @@ export const AutocompleteWithAllSelector = <
const filterOptions = (
options: Array,
- params: FilterOptionsState
+ params: FilterOptionsState,
): (T | SelectorOption)[] => {
const filtered = filter(options, params);
diff --git a/frontend/src/components/common/FlexBox.tsx b/frontend/src/components/common/FlexBox.tsx
index 1175125b9..14152f282 100644
--- a/frontend/src/components/common/FlexBox.tsx
+++ b/frontend/src/components/common/FlexBox.tsx
@@ -8,25 +8,25 @@ type StyledBoxProps = BoxProps & {
};
export const FlexBox: React.ComponentType = styled(
- Box
+ Box,
)({
display: "flex",
}) as React.ComponentType;
export const BetweenAlignedBox: React.ComponentType = styled(
- FlexBox
+ FlexBox,
)({
justifyContent: "space-between",
}) as React.ComponentType;
export const RightAlignedBox: React.ComponentType = styled(
- FlexBox
+ FlexBox,
)({
justifyContent: "end",
}) as React.ComponentType;
export const CenterAlignedBox: React.ComponentType = styled(
- FlexBox
+ FlexBox,
)({
justifyContent: "center",
}) as React.ComponentType;
diff --git a/frontend/src/components/common/Header.tsx b/frontend/src/components/common/Header.tsx
index e903d6471..a50f58fc8 100644
--- a/frontend/src/components/common/Header.tsx
+++ b/frontend/src/components/common/Header.tsx
@@ -124,7 +124,7 @@ export const Header: FC = () => {
const [userAnchorEl, setUserAnchorEl] = useState();
const [jobAnchorEl, setJobAnchorEl] = useState();
const [latestCheckDate, setLatestCheckDate] = useState(
- getLatestCheckDate()
+ getLatestCheckDate(),
);
const [recentJobs, setRecentJobs] = useState>([]);
@@ -138,7 +138,8 @@ export const Header: FC = () => {
const uncheckedJobsCount = useMemo(() => {
return latestCheckDate != null
- ? recentJobs.filter((job) => job.createdAt > latestCheckDate).length ?? 0
+ ? (recentJobs.filter((job) => job.createdAt > latestCheckDate).length ??
+ 0)
: recentJobs.length;
}, [latestCheckDate, recentJobs]);
diff --git a/frontend/src/components/common/ImportForm.test.tsx b/frontend/src/components/common/ImportForm.test.tsx
index 8b71b48e0..f45c976a8 100644
--- a/frontend/src/components/common/ImportForm.test.tsx
+++ b/frontend/src/components/common/ImportForm.test.tsx
@@ -29,7 +29,7 @@ describe("ImportForm", () => {
});
expect(
- screen.queryByText("ファイルのアップロードに失敗しました")
+ screen.queryByText("ファイルのアップロードに失敗しました"),
).not.toBeInTheDocument();
});
});
diff --git a/frontend/src/components/common/ImportForm.tsx b/frontend/src/components/common/ImportForm.tsx
index 54cddd678..218445224 100644
--- a/frontend/src/components/common/ImportForm.tsx
+++ b/frontend/src/components/common/ImportForm.tsx
@@ -48,13 +48,13 @@ export const ImportForm: FC = ({ handleImport, handleCancel }) => {
if (e instanceof Error && isResponseError(e)) {
const reportableError = await toReportableNonFieldErrors(e);
setErrorMessage(
- `ファイルのアップロードに失敗しました: ${reportableError ?? ""}`
+ `ファイルのアップロードに失敗しました: ${reportableError ?? ""}`,
);
enqueueSnackbar(
`ファイルのアップロードに失敗しました: ${reportableError ?? ""}`,
{
variant: "error",
- }
+ },
);
} else {
setErrorMessage("ファイルのアップロードに失敗しました。");
diff --git a/frontend/src/components/common/PaginationFooter.test.tsx b/frontend/src/components/common/PaginationFooter.test.tsx
index 3f34d20ae..6c949b8d0 100644
--- a/frontend/src/components/common/PaginationFooter.test.tsx
+++ b/frontend/src/components/common/PaginationFooter.test.tsx
@@ -53,11 +53,11 @@ describe("PaginationFooter", () => {
page={c.page}
changePage={changePage}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.getByText(c.expected)).toBeInTheDocument();
- })
+ }),
);
test("check change page handler", () => {
@@ -68,19 +68,19 @@ describe("PaginationFooter", () => {
page={1}
changePage={changePage}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.getByRole("button", { name: "page 1" })).toBeInTheDocument();
expect(
- screen.getByRole("button", { name: "Go to page 2" })
+ screen.getByRole("button", { name: "Go to page 2" }),
).toBeInTheDocument();
expect(
- screen.getByRole("button", { name: "Go to page 3" })
+ screen.getByRole("button", { name: "Go to page 3" }),
).toBeInTheDocument();
expect(screen.getByText("…")).toBeInTheDocument();
expect(
- screen.getByRole("button", { name: "Go to page 34" })
+ screen.getByRole("button", { name: "Go to page 34" }),
).toBeInTheDocument();
// change page
@@ -98,19 +98,19 @@ describe("PaginationFooter", () => {
page={2}
changePage={changePage}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(
- screen.getByRole("button", { name: "Go to page 1" })
+ screen.getByRole("button", { name: "Go to page 1" }),
).toBeInTheDocument();
expect(screen.getByRole("button", { name: "page 2" })).toBeInTheDocument();
expect(
- screen.getByRole("button", { name: "Go to page 3" })
+ screen.getByRole("button", { name: "Go to page 3" }),
).toBeInTheDocument();
expect(screen.getByText("…")).toBeInTheDocument();
expect(
- screen.getByRole("button", { name: "Go to page 34" })
+ screen.getByRole("button", { name: "Go to page 34" }),
).toBeInTheDocument();
});
});
diff --git a/frontend/src/components/common/PaginationFooter.tsx b/frontend/src/components/common/PaginationFooter.tsx
index d4a85ba69..d6fa2887d 100644
--- a/frontend/src/components/common/PaginationFooter.tsx
+++ b/frontend/src/components/common/PaginationFooter.tsx
@@ -27,7 +27,7 @@ export const PaginationFooter: FC = ({
{`${Math.min(maxRowCount * (page - 1) + 1, count)} - ${Math.min(
maxRowCount * page,
- count
+ count,
)} / ${count} 件`}
diff --git a/frontend/src/components/common/RateLimitedClickable.test.tsx b/frontend/src/components/common/RateLimitedClickable.test.tsx
index 9acc6fe30..44297dd85 100644
--- a/frontend/src/components/common/RateLimitedClickable.test.tsx
+++ b/frontend/src/components/common/RateLimitedClickable.test.tsx
@@ -21,7 +21,7 @@ describe("RateLimitedClickable", () => {
,
{
wrapper: TestWrapper,
- }
+ },
);
// multiple handler calls
@@ -45,7 +45,7 @@ describe("RateLimitedClickable", () => {
,
{
wrapper: TestWrapper,
- }
+ },
);
// multiple handler calls
diff --git a/frontend/src/components/common/Table.tsx b/frontend/src/components/common/Table.tsx
index 7457d9ece..8a0d8c069 100644
--- a/frontend/src/components/common/Table.tsx
+++ b/frontend/src/components/common/Table.tsx
@@ -17,7 +17,7 @@ type StyledTableCellProps = TableCellProps & {
};
export const HeaderTableRow: React.ComponentType = styled(
- TableRow
+ TableRow,
)({
backgroundColor: "#455A64",
}) as React.ComponentType;
@@ -29,7 +29,7 @@ export const HeaderTableCell: React.ComponentType =
}) as React.ComponentType;
export const StyledTableRow: React.ComponentType = styled(
- TableRow
+ TableRow,
)({
"& td": {
padding: "8px",
diff --git a/frontend/src/components/entity/EntityControlMenu.test.tsx b/frontend/src/components/entity/EntityControlMenu.test.tsx
index 2f6b699c7..d33913765 100644
--- a/frontend/src/components/entity/EntityControlMenu.test.tsx
+++ b/frontend/src/components/entity/EntityControlMenu.test.tsx
@@ -20,7 +20,7 @@ test("should render with essential props", () => {
}}
setOpenImportModal={() => false}
/>,
- { wrapper: TestWrapper }
- )
+ { wrapper: TestWrapper },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/entity/EntityForm.test.tsx b/frontend/src/components/entity/EntityForm.test.tsx
index 700cfdd25..7495b364c 100644
--- a/frontend/src/components/entity/EntityForm.test.tsx
+++ b/frontend/src/components/entity/EntityForm.test.tsx
@@ -33,7 +33,7 @@ describe("EntityForm", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues: entity,
- })
+ }),
);
render(
@@ -42,7 +42,7 @@ describe("EntityForm", () => {
setValue={setValue}
referralEntities={[]}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.queryByText("基本情報")).toBeInTheDocument();
@@ -68,7 +68,7 @@ describe("EntityForm", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues: entity,
- })
+ }),
);
render(
@@ -77,7 +77,7 @@ describe("EntityForm", () => {
setValue={setValue}
referralEntities={[]}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.queryByText("基本情報")).toBeInTheDocument();
diff --git a/frontend/src/components/entity/EntityHistoryList.test.tsx b/frontend/src/components/entity/EntityHistoryList.test.tsx
index 6246e4cbb..5dbc16f73 100644
--- a/frontend/src/components/entity/EntityHistoryList.test.tsx
+++ b/frontend/src/components/entity/EntityHistoryList.test.tsx
@@ -74,7 +74,7 @@ describe("EntityHistoryList", () => {
page={1}
changePage={changePage}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
const tableBody = screen.getAllByRole("rowgroup")[1];
diff --git a/frontend/src/components/entity/EntityImportModal.test.tsx b/frontend/src/components/entity/EntityImportModal.test.tsx
index 4dc3c84bc..54b7c34d7 100644
--- a/frontend/src/components/entity/EntityImportModal.test.tsx
+++ b/frontend/src/components/entity/EntityImportModal.test.tsx
@@ -20,7 +20,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/entity/EntityList.test.tsx b/frontend/src/components/entity/EntityList.test.tsx
index 28645999d..1e748c972 100644
--- a/frontend/src/components/entity/EntityList.test.tsx
+++ b/frontend/src/components/entity/EntityList.test.tsx
@@ -46,7 +46,7 @@ describe("EntityList", () => {
changePage={changePage}
handleChangeQuery={handleChangeQuery}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.getByRole("link", { name: "entity1" })).toBeInTheDocument();
@@ -65,7 +65,7 @@ describe("EntityList", () => {
});
});
expect(screen.getByPlaceholderText("モデルを絞り込む")).toHaveValue(
- "entity"
+ "entity",
);
expect(handleChangeQuery).toBeCalled();
});
diff --git a/frontend/src/components/entity/EntityList.tsx b/frontend/src/components/entity/EntityList.tsx
index 433ee3bd9..2b1022be8 100644
--- a/frontend/src/components/entity/EntityList.tsx
+++ b/frontend/src/components/entity/EntityList.tsx
@@ -40,7 +40,7 @@ export const EntityList: FC = ({
onKeyPress={(e) => {
e.key === "Enter" &&
handleChangeQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}}
/>
diff --git a/frontend/src/components/entity/entityForm/AttributeField.tsx b/frontend/src/components/entity/entityForm/AttributeField.tsx
index fb41c1029..948566b1c 100644
--- a/frontend/src/components/entity/entityForm/AttributeField.tsx
+++ b/frontend/src/components/entity/entityForm/AttributeField.tsx
@@ -143,7 +143,7 @@ export const AttributeField: FC = ({
}
isOptionEqualToValue={(
option: { id: number; name: string },
- value: { id: number; name: string }
+ value: { id: number; name: string },
) => option.id === value.id}
renderInput={(params) => (
{
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(
@@ -48,7 +48,7 @@ describe("AttributesFields", () => {
setValue={setValue}
referralEntities={[]}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.queryAllByPlaceholderText("属性名")).toHaveLength(0);
diff --git a/frontend/src/components/entity/entityForm/AttributesFields.tsx b/frontend/src/components/entity/entityForm/AttributesFields.tsx
index d1ff72eac..585014fa5 100644
--- a/frontend/src/components/entity/entityForm/AttributesFields.tsx
+++ b/frontend/src/components/entity/entityForm/AttributesFields.tsx
@@ -65,7 +65,7 @@ export const AttributesFields: FC = ({
});
const [latestChangedIndex, setLatestChangedIndex] = useState(
- null
+ null,
);
const handleAppendAttribute = (index: number) => {
diff --git a/frontend/src/components/entity/entityForm/BasicFields.test.tsx b/frontend/src/components/entity/entityForm/BasicFields.test.tsx
index 3b7064fe2..aed8a2201 100644
--- a/frontend/src/components/entity/entityForm/BasicFields.test.tsx
+++ b/frontend/src/components/entity/entityForm/BasicFields.test.tsx
@@ -39,7 +39,7 @@ describe("BasicFields", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(, { wrapper: TestWrapper });
diff --git a/frontend/src/components/entity/entityForm/EntityFormSchema.ts b/frontend/src/components/entity/entityForm/EntityFormSchema.ts
index e9247e92e..d8af813ce 100644
--- a/frontend/src/components/entity/entityForm/EntityFormSchema.ts
+++ b/frontend/src/components/entity/entityForm/EntityFormSchema.ts
@@ -22,10 +22,10 @@ export const schema = z.object({
z.object({
headerKey: z.string().min(1, "ヘッダキーは必須です").default(""),
headerValue: z.string().default(""),
- })
+ }),
)
.default([]),
- })
+ }),
)
.default([]),
attrs: z
@@ -43,11 +43,11 @@ export const schema = z.object({
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.default([]),
note: z.string().default(""),
- })
+ }),
)
.default([]),
});
diff --git a/frontend/src/components/entity/entityForm/WebhookFields.test.tsx b/frontend/src/components/entity/entityForm/WebhookFields.test.tsx
index 1f3b14215..899852aff 100644
--- a/frontend/src/components/entity/entityForm/WebhookFields.test.tsx
+++ b/frontend/src/components/entity/entityForm/WebhookFields.test.tsx
@@ -39,7 +39,7 @@ describe("WebhookFields", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(, { wrapper: TestWrapper });
@@ -65,7 +65,7 @@ describe("WebhookFields", () => {
});
expect(screen.getByPlaceholderText("URL")).toHaveValue(
- "https://example.com/"
+ "https://example.com/",
);
expect(screen.getByPlaceholderText("ラベル")).toHaveValue("label");
expect(screen.getByRole("checkbox")).toBeChecked();
diff --git a/frontend/src/components/entry/AdvancedSearchJoinModal.tsx b/frontend/src/components/entry/AdvancedSearchJoinModal.tsx
index 3a6bd9971..623191f51 100644
--- a/frontend/src/components/entry/AdvancedSearchJoinModal.tsx
+++ b/frontend/src/components/entry/AdvancedSearchJoinModal.tsx
@@ -34,21 +34,21 @@ export const AdvancedSearchJoinModal: FC = ({
joinAttrs.find((attr) => attr.name === targetAttrname);
const [selectedAttrNames, setSelectedAttrNames] = useState>(
- currentAttrInfo?.attrinfo.map((attr) => attr.name) ?? []
+ currentAttrInfo?.attrinfo.map((attr) => attr.name) ?? [],
);
const referralAttrs = useAsyncWithThrow(async () => {
return await aironeApiClient.getEntityAttrs(
targetEntityIds,
searchAllEntities,
- targetAttrname
+ targetAttrname,
);
}, [targetEntityIds, searchAllEntities, targetAttrname]);
const handleUpdatePageURL = () => {
// to prevent duplication of same name parameter
const currentJoinAttrs = joinAttrs.filter(
- (attr) => attr.name !== targetAttrname
+ (attr) => attr.name !== targetAttrname,
);
const newJoinAttrs = [
diff --git a/frontend/src/components/entry/AdvancedSearchModal.tsx b/frontend/src/components/entry/AdvancedSearchModal.tsx
index b7b68602a..c4ae0a908 100644
--- a/frontend/src/components/entry/AdvancedSearchModal.tsx
+++ b/frontend/src/components/entry/AdvancedSearchModal.tsx
@@ -29,7 +29,7 @@ export const AdvancedSearchModal: FC = ({
const [selectedAttrNames, setSelectedAttrNames] = useState(initialAttrNames);
const [hasReferral, setHasReferral] = useState(
- params.get("has_referral") === "true"
+ params.get("has_referral") === "true",
);
const handleUpdatePageURL = () => {
@@ -46,7 +46,7 @@ export const AdvancedSearchModal: FC = ({
keyword: attrInfo?.keyword ?? "",
},
];
- })
+ }),
),
hasReferral,
baseParams: new URLSearchParams(location.search),
diff --git a/frontend/src/components/entry/AttributeValue.test.tsx b/frontend/src/components/entry/AttributeValue.test.tsx
index aae37f7a7..7c71fccf1 100644
--- a/frontend/src/components/entry/AttributeValue.test.tsx
+++ b/frontend/src/components/entry/AttributeValue.test.tsx
@@ -20,7 +20,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByText("hoge")
+ within(screen.getByRole("listitem")).getByText("hoge"),
).toBeVisible();
});
@@ -33,7 +33,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByText("hoge")
+ within(screen.getByRole("listitem")).getByText("hoge"),
).toBeVisible();
});
@@ -46,7 +46,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByText("2020-01-01")
+ within(screen.getByRole("listitem")).getByText("2020-01-01"),
).toBeVisible();
});
@@ -59,7 +59,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByRole("checkbox")
+ within(screen.getByRole("listitem")).getByRole("checkbox"),
).toBeChecked();
});
@@ -78,7 +78,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByRole("link")
+ within(screen.getByRole("listitem")).getByRole("link"),
).toHaveTextContent("object1");
});
@@ -100,10 +100,10 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByText("name1")
+ within(screen.getByRole("listitem")).getByText("name1"),
).toBeVisible();
expect(
- within(screen.getByRole("listitem")).getByRole("link")
+ within(screen.getByRole("listitem")).getByRole("link"),
).toHaveTextContent("object1");
});
@@ -118,7 +118,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByRole("link")
+ within(screen.getByRole("listitem")).getByRole("link"),
).toHaveTextContent("group1");
});
@@ -133,7 +133,7 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(1);
expect(
- within(screen.getByRole("listitem")).getByRole("link")
+ within(screen.getByRole("listitem")).getByRole("link"),
).toHaveTextContent("role1");
});
@@ -146,10 +146,10 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(2);
expect(
- within(screen.getAllByRole("listitem")[0]).getByText("hoge")
+ within(screen.getAllByRole("listitem")[0]).getByText("hoge"),
).toBeVisible();
expect(
- within(screen.getAllByRole("listitem")[1]).getByText("fuga")
+ within(screen.getAllByRole("listitem")[1]).getByText("fuga"),
).toBeVisible();
});
@@ -167,10 +167,10 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(2);
expect(
- within(screen.getAllByRole("listitem")[0]).getByRole("link")
+ within(screen.getAllByRole("listitem")[0]).getByRole("link"),
).toHaveTextContent("object1");
expect(
- within(screen.getAllByRole("listitem")[1]).getByRole("link")
+ within(screen.getAllByRole("listitem")[1]).getByRole("link"),
).toHaveTextContent("object2");
});
@@ -204,16 +204,16 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(2);
expect(
- within(screen.getAllByRole("listitem")[0]).getByText("name1")
+ within(screen.getAllByRole("listitem")[0]).getByText("name1"),
).toBeVisible();
expect(
- within(screen.getAllByRole("listitem")[0]).getByRole("link")
+ within(screen.getAllByRole("listitem")[0]).getByRole("link"),
).toHaveTextContent("object1");
expect(
- within(screen.getAllByRole("listitem")[1]).getByText("name2")
+ within(screen.getAllByRole("listitem")[1]).getByText("name2"),
).toBeVisible();
expect(
- within(screen.getAllByRole("listitem")[1]).getByRole("link")
+ within(screen.getAllByRole("listitem")[1]).getByRole("link"),
).toHaveTextContent("object2");
});
@@ -231,10 +231,10 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(2);
expect(
- within(screen.getAllByRole("listitem")[0]).getByRole("link")
+ within(screen.getAllByRole("listitem")[0]).getByRole("link"),
).toHaveTextContent("group1");
expect(
- within(screen.getAllByRole("listitem")[1]).getByRole("link")
+ within(screen.getAllByRole("listitem")[1]).getByRole("link"),
).toHaveTextContent("group2");
});
@@ -252,10 +252,10 @@ describe("AttributeValue", () => {
expect(screen.getAllByRole("listitem")).toHaveLength(2);
expect(
- within(screen.getAllByRole("listitem")[0]).getByRole("link")
+ within(screen.getAllByRole("listitem")[0]).getByRole("link"),
).toHaveTextContent("role1");
expect(
- within(screen.getAllByRole("listitem")[1]).getByRole("link")
+ within(screen.getAllByRole("listitem")[1]).getByRole("link"),
).toHaveTextContent("role2");
});
});
diff --git a/frontend/src/components/entry/AttributeValue.tsx b/frontend/src/components/entry/AttributeValue.tsx
index f627350ad..5c30accb4 100644
--- a/frontend/src/components/entry/AttributeValue.tsx
+++ b/frontend/src/components/entry/AttributeValue.tsx
@@ -38,12 +38,8 @@ const ElemBool: FC<{ attrValue: string | boolean }> = ({ attrValue }) => {
const ElemString: FC<{ attrValue: string }> = ({ attrValue }) => {
return (
- {
- // Separate line breaks with tags
- attrValue?.split("\n").map((line, key) => (
- {line}
- ))
- }
+ {// Separate line breaks with tags
+ attrValue?.split("\n").map((line, key) => {line})}
);
};
@@ -75,7 +71,7 @@ const ElemNamedObject: FC<{
component={AironeLink}
to={entryDetailsPath(
attrValue.object.schema?.id ?? 0,
- attrValue.object.id ?? 0
+ attrValue.object.id ?? 0,
)}
>
{attrValue.object.name}
diff --git a/frontend/src/components/entry/CopyForm.test.tsx b/frontend/src/components/entry/CopyForm.test.tsx
index 8a010bdb7..5421c9f24 100644
--- a/frontend/src/components/entry/CopyForm.test.tsx
+++ b/frontend/src/components/entry/CopyForm.test.tsx
@@ -32,7 +32,7 @@ describe("CopyForm", () => {
setEntries={setEntries}
templateEntry={entry}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
act(() => {
diff --git a/frontend/src/components/entry/EntryControlMenu.test.tsx b/frontend/src/components/entry/EntryControlMenu.test.tsx
index 7d2deaf7a..a12821fda 100644
--- a/frontend/src/components/entry/EntryControlMenu.test.tsx
+++ b/frontend/src/components/entry/EntryControlMenu.test.tsx
@@ -22,8 +22,8 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
@@ -42,7 +42,7 @@ test("should render a component with optional props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/entry/EntryForm.test.tsx b/frontend/src/components/entry/EntryForm.test.tsx
index 35c2cba59..2013467e0 100644
--- a/frontend/src/components/entry/EntryForm.test.tsx
+++ b/frontend/src/components/entry/EntryForm.test.tsx
@@ -37,6 +37,6 @@ test("should render a component with essential props", function () {
expect(() =>
render(, {
wrapper: TestWrapper,
- })
+ }),
).not.toThrow();
});
diff --git a/frontend/src/components/entry/EntryHistoryList.test.tsx b/frontend/src/components/entry/EntryHistoryList.test.tsx
index 28369a917..1af97ef83 100644
--- a/frontend/src/components/entry/EntryHistoryList.test.tsx
+++ b/frontend/src/components/entry/EntryHistoryList.test.tsx
@@ -63,7 +63,7 @@ describe("EntryHistoryList", () => {
/* do nothing */
}}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
diff --git a/frontend/src/components/entry/EntryList.test.tsx b/frontend/src/components/entry/EntryList.test.tsx
index 8b5df1987..e86a6a23f 100644
--- a/frontend/src/components/entry/EntryList.test.tsx
+++ b/frontend/src/components/entry/EntryList.test.tsx
@@ -20,7 +20,7 @@ test("should render a component with essential props", async () => {
Promise.resolve({
count: 0,
results: [],
- })
+ }),
);
/* eslint-enable */
diff --git a/frontend/src/components/entry/EntryList.tsx b/frontend/src/components/entry/EntryList.tsx
index 83a7a911f..e8155b1c2 100644
--- a/frontend/src/components/entry/EntryList.tsx
+++ b/frontend/src/components/entry/EntryList.tsx
@@ -56,7 +56,7 @@ export const EntryList: FC = ({ entityId, canCreateEntry = true }) => {
onKeyPress={(e) => {
e.key === "Enter" &&
handleChangeQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}}
/>
diff --git a/frontend/src/components/entry/EntryListCard.test.tsx b/frontend/src/components/entry/EntryListCard.test.tsx
index e6dcca21d..4473a2453 100644
--- a/frontend/src/components/entry/EntryListCard.test.tsx
+++ b/frontend/src/components/entry/EntryListCard.test.tsx
@@ -30,6 +30,6 @@ test("should render a component with essential props", function () {
expect(() =>
render(, {
wrapper: TestWrapper,
- })
+ }),
).not.toThrow();
});
diff --git a/frontend/src/components/entry/EntryReferral.test.tsx b/frontend/src/components/entry/EntryReferral.test.tsx
index 0afb21ffc..d56fd6248 100644
--- a/frontend/src/components/entry/EntryReferral.test.tsx
+++ b/frontend/src/components/entry/EntryReferral.test.tsx
@@ -31,13 +31,13 @@ test("should render a component with essential props", async () => {
jest
.spyOn(
require("repository/AironeApiClient").aironeApiClient,
- "getEntryReferral"
+ "getEntryReferral",
)
.mockResolvedValue(
Promise.resolve({
results: referredEntries,
count: referredEntries.length,
- })
+ }),
);
/* eslint-enable */
diff --git a/frontend/src/components/entry/EntryReferral.tsx b/frontend/src/components/entry/EntryReferral.tsx
index 67d2f0422..0fe482e7b 100644
--- a/frontend/src/components/entry/EntryReferral.tsx
+++ b/frontend/src/components/entry/EntryReferral.tsx
@@ -46,7 +46,7 @@ export const EntryReferral: FC = ({ entryId }) => {
return await aironeApiClient.getEntryReferral(
entryId,
page,
- keywordQuery !== "" ? keywordQuery : undefined
+ keywordQuery !== "" ? keywordQuery : undefined,
);
}, [entryId, page, keywordQuery]);
@@ -56,7 +56,7 @@ export const EntryReferral: FC = ({ entryId }) => {
referredEntries.value.results,
referredEntries.value.count,
Math.ceil(
- (referredEntries.value.count ?? 0) / EntryReferralList.MAX_ROW_COUNT
+ (referredEntries.value.count ?? 0) / EntryReferralList.MAX_ROW_COUNT,
),
];
}
@@ -75,7 +75,7 @@ export const EntryReferral: FC = ({ entryId }) => {
if (e.key === "Enter") {
changePage(1);
setKeywordQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}
}}
diff --git a/frontend/src/components/entry/RestorableEntryList.test.tsx b/frontend/src/components/entry/RestorableEntryList.test.tsx
index 608f55c8d..8d2428ce0 100644
--- a/frontend/src/components/entry/RestorableEntryList.test.tsx
+++ b/frontend/src/components/entry/RestorableEntryList.test.tsx
@@ -21,7 +21,7 @@ test("should render a component with essential props", async () => {
Promise.resolve({
count: 0,
results: [],
- })
+ }),
);
/* eslint-enable */
diff --git a/frontend/src/components/entry/RestorableEntryList.tsx b/frontend/src/components/entry/RestorableEntryList.tsx
index e33a49a8b..7ae112747 100644
--- a/frontend/src/components/entry/RestorableEntryList.tsx
+++ b/frontend/src/components/entry/RestorableEntryList.tsx
@@ -162,7 +162,7 @@ export const RestorableEntryList: FC = ({ entityId }) => {
onKeyPress={(e) => {
e.key === "Enter" &&
handleChangeQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}}
/>
diff --git a/frontend/src/components/entry/SearchResultControlMenu.tsx b/frontend/src/components/entry/SearchResultControlMenu.tsx
index d56829038..14832e46b 100644
--- a/frontend/src/components/entry/SearchResultControlMenu.tsx
+++ b/frontend/src/components/entry/SearchResultControlMenu.tsx
@@ -187,7 +187,7 @@ export const SearchResultControlMenu: FC = ({
onChange={(date: Date | null) => {
const settingDateValue = date
? new Date(
- date.getTime() - date.getTimezoneOffset() * 60000
+ date.getTime() - date.getTimezoneOffset() * 60000,
)
.toISOString()
.split("T")[0]
@@ -225,7 +225,7 @@ export const SearchResultControlMenu: FC = ({
onChange={(date: Date | null) => {
const settingDateValue = date
? new Date(
- date.getTime() - date.getTimezoneOffset() * 60000
+ date.getTime() - date.getTimezoneOffset() * 60000,
)
.toISOString()
.split("T")[0]
@@ -306,10 +306,10 @@ export const SearchResultControlMenu: FC = ({
: ""
}
onChange={handleChangeKeyword(
- AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_CONTAINED
+ AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_CONTAINED,
)}
onKeyPress={handleKeyPressKeyword(
- AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_CONTAINED
+ AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_CONTAINED,
)}
/>
@@ -324,10 +324,10 @@ export const SearchResultControlMenu: FC = ({
: ""
}
onChange={handleChangeKeyword(
- AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_NOT_CONTAINED
+ AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_NOT_CONTAINED,
)}
onKeyPress={handleKeyPressKeyword(
- AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_NOT_CONTAINED
+ AdvancedSearchResultAttrInfoFilterKeyEnum.TEXT_NOT_CONTAINED,
)}
/>
diff --git a/frontend/src/components/entry/SearchResultControlMenuForReferral.tsx b/frontend/src/components/entry/SearchResultControlMenuForReferral.tsx
index ff3d717a6..22ac96533 100644
--- a/frontend/src/components/entry/SearchResultControlMenuForReferral.tsx
+++ b/frontend/src/components/entry/SearchResultControlMenuForReferral.tsx
@@ -33,7 +33,7 @@ interface Props {
handleSelectFilterConditions: (
attrFilter?: AttrFilter,
overwriteEntryName?: string | undefined,
- overwriteReferral?: string | undefined
+ overwriteReferral?: string | undefined,
) => void;
handleClear: () => void;
}
diff --git a/frontend/src/components/entry/SearchResults.test.tsx b/frontend/src/components/entry/SearchResults.test.tsx
index a7736393f..b43f72005 100644
--- a/frontend/src/components/entry/SearchResults.test.tsx
+++ b/frontend/src/components/entry/SearchResults.test.tsx
@@ -32,7 +32,7 @@ test("should render a component with essential props", function () {
searchAllEntities={false}
setSearchResults={() => {}}
/>,
- { wrapper: TestWrapper }
- )
+ { wrapper: TestWrapper },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/entry/SearchResults.tsx b/frontend/src/components/entry/SearchResults.tsx
index a594f1150..6a0345c11 100644
--- a/frontend/src/components/entry/SearchResults.tsx
+++ b/frontend/src/components/entry/SearchResults.tsx
@@ -91,7 +91,7 @@ export const SearchResults: FC = ({
_attrNames.map((attrName) => [
attrName,
results.values[0]?.attrs[attrName]?.type,
- ])
+ ]),
);
return [_attrNames, _attrTypes];
}, [defaultAttrsFilter, results.values]);
@@ -121,12 +121,12 @@ export const SearchResults: FC = ({
handleChangeBulkOperationEntryId(
result.entry.id,
- e.target.checked
+ e.target.checked,
)
}
/>
diff --git a/frontend/src/components/entry/SearchResultsTableHead.tsx b/frontend/src/components/entry/SearchResultsTableHead.tsx
index 004599692..179ac702c 100644
--- a/frontend/src/components/entry/SearchResultsTableHead.tsx
+++ b/frontend/src/components/entry/SearchResultsTableHead.tsx
@@ -82,19 +82,19 @@ export const SearchResultsTableHead: FC = ({
const [entryFilter, entryFilterDispatcher] = useReducer(
(
_state: string,
- event: ChangeEvent
+ event: ChangeEvent,
) => event.target.value,
- defaultEntryFilter ?? ""
+ defaultEntryFilter ?? "",
);
const [referralFilter, referralFilterDispatcher] = useReducer(
(
_state: string,
- event: ChangeEvent
+ event: ChangeEvent,
) => event.target.value,
- defaultReferralFilter ?? ""
+ defaultReferralFilter ?? "",
);
const [attrsFilter, setAttrsFilter] = useState(
- defaultAttrsFilter ?? {}
+ defaultAttrsFilter ?? {},
);
const [joinAttrName, setJoinAttrname] = useState("");
@@ -102,7 +102,7 @@ export const SearchResultsTableHead: FC = ({
[key: string]: HTMLButtonElement | null;
}>({});
const [entryMenuEls, setEntryMenuEls] = useState(
- null
+ null,
);
const [referralMenuEls, setReferralMenuEls] =
useState(null);
@@ -120,9 +120,9 @@ export const SearchResultsTableHead: FC = ({
attrName,
getIsFiltered(attrFilter.filterKey, attrFilter.keyword),
];
- })
+ }),
),
- [defaultAttrsFilter]
+ [defaultAttrsFilter],
);
useEffect(() => {
@@ -134,7 +134,7 @@ export const SearchResultsTableHead: FC = ({
(
attrFilter?: AttrFilter,
overwriteEntryName?: string,
- overwriteReferral?: string
+ overwriteReferral?: string,
) => {
const _attrsFilter =
attrName != null && attrFilter != null
@@ -155,7 +155,7 @@ export const SearchResultsTableHead: FC = ({
attrinfo: Object.keys(_attrsFilter)
.filter(
(j) =>
- _attrsFilter[j].baseAttrname === _attrsFilter[k].baseAttrname
+ _attrsFilter[j].baseAttrname === _attrsFilter[k].baseAttrname,
)
.map((j) => ({
name: _attrsFilter[j]?.joinedAttrname ?? "",
@@ -253,7 +253,7 @@ export const SearchResultsTableHead: FC = ({
}}
sx={{ marginLeft: "auto" }}
>
- {isFiltered[attrName] ?? false ? (
+ {(isFiltered[attrName] ?? false) ? (
) : (
@@ -269,7 +269,7 @@ export const SearchResultsTableHead: FC = ({
})
}
handleSelectFilterConditions={handleSelectFilterConditions(
- attrName
+ attrName,
)}
handleUpdateAttrFilter={handleUpdateAttrFilter(attrName)}
attrType={attrTypes[attrName]}
diff --git a/frontend/src/components/entry/entryForm/AttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/AttributeValueField.test.tsx
index 5867b49f6..c62dcc6c8 100644
--- a/frontend/src/components/entry/entryForm/AttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/AttributeValueField.test.tsx
@@ -39,7 +39,7 @@ const server = setupServer(
// getRoles
http.get("http://localhost/role/api/v2/", () => {
return HttpResponse.json([]);
- })
+ }),
);
beforeAll(() => server.listen());
@@ -387,7 +387,7 @@ describe("AttributeValue", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
await act(async () => {
@@ -398,7 +398,7 @@ describe("AttributeValue", () => {
type={c.type}
schemaId={c.schemaId}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
diff --git a/frontend/src/components/entry/entryForm/BooleanAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/BooleanAttributeValueField.test.tsx
index cde36ff1f..cd0aa31a2 100644
--- a/frontend/src/components/entry/entryForm/BooleanAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/BooleanAttributeValueField.test.tsx
@@ -48,7 +48,7 @@ describe("BooleanAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(, {
diff --git a/frontend/src/components/entry/entryForm/DateAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/DateAttributeValueField.test.tsx
index 64100cbf8..55503c6ea 100644
--- a/frontend/src/components/entry/entryForm/DateAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/DateAttributeValueField.test.tsx
@@ -48,7 +48,7 @@ describe("DateAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(
@@ -59,7 +59,7 @@ describe("DateAttributeValueField", () => {
/>,
{
wrapper: TestWrapper,
- }
+ },
);
expect(screen.getByRole("textbox")).toHaveValue("2020/01/01");
diff --git a/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.test.tsx
index fb9e6d2a9..24af18ed3 100644
--- a/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.test.tsx
@@ -48,7 +48,7 @@ describe("DateAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(
@@ -59,12 +59,12 @@ describe("DateAttributeValueField", () => {
/>,
{
wrapper: TestWrapper,
- }
+ },
);
expect(screen.getByRole("textbox")).toHaveValue("2020/01/01 00:00:00");
expect(getValues("attrs.0.value.asString")).toEqual(
- "2020-01-01T00:00:00+00:00"
+ "2020-01-01T00:00:00+00:00",
);
// Open the date picker
@@ -78,7 +78,7 @@ describe("DateAttributeValueField", () => {
expect(screen.getByRole("textbox")).toHaveValue("2020/01/02 00:00:00");
expect(getValues("attrs.0.value.asString")).toEqual(
- "2020-01-02T00:00:00.000Z"
+ "2020-01-02T00:00:00.000Z",
);
});
});
diff --git a/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.tsx b/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.tsx
index df142b81d..15741ff6f 100644
--- a/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.tsx
+++ b/frontend/src/components/entry/entryForm/DateTimeAttributeValueField.tsx
@@ -53,7 +53,7 @@ export const DateTimeAttributeValueField: FC = ({
{
shouldDirty: true,
shouldValidate: true,
- }
+ },
);
}}
slotProps={{
diff --git a/frontend/src/components/entry/entryForm/EntryFormSchema.ts b/frontend/src/components/entry/entryForm/EntryFormSchema.ts
index 9d96f7d61..6428a3a82 100644
--- a/frontend/src/components/entry/entryForm/EntryFormSchema.ts
+++ b/frontend/src/components/entry/entryForm/EntryFormSchema.ts
@@ -44,7 +44,7 @@ export const schema = schemaForType()(
.array(
z.object({
value: z.string().max(1 << 16, "属性の値が大きすぎます"),
- })
+ }),
)
.optional(),
asObject: z
@@ -59,7 +59,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.optional(),
asNamedObject: z
@@ -86,7 +86,7 @@ export const schema = schemaForType()(
.nullable()
.default(null),
_boolean: z.boolean().default(false),
- })
+ }),
)
.optional(),
asGroup: z
@@ -101,7 +101,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.optional(),
asRole: z
@@ -116,7 +116,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.optional(),
}),
@@ -172,7 +172,7 @@ export const schema = schemaForType()(
return true;
},
// TODO specify path to feedback users error cause
- "必須項目です"
+ "必須項目です",
)
.refine(({ value, type }) => {
switch (type) {
@@ -185,10 +185,10 @@ export const schema = schemaForType()(
);
}
return true;
- }, "値が不正です")
+ }, "値が不正です"),
)
.default({}),
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/components/entry/entryForm/GroupAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/GroupAttributeValueField.test.tsx
index bbc69d31d..9edfca515 100644
--- a/frontend/src/components/entry/entryForm/GroupAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/GroupAttributeValueField.test.tsx
@@ -90,14 +90,14 @@ describe("GroupAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getGroups"
+ "getGroups",
)
.mockResolvedValue(Promise.resolve(groups));
/* eslint-enable */
@@ -109,7 +109,7 @@ describe("GroupAttributeValueField", () => {
control={control}
setValue={setValue}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
@@ -145,14 +145,14 @@ describe("GroupAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getGroups"
+ "getGroups",
)
.mockResolvedValue(Promise.resolve(groups));
/* eslint-enable */
@@ -165,7 +165,7 @@ describe("GroupAttributeValueField", () => {
setValue={setValue}
multiple
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
diff --git a/frontend/src/components/entry/entryForm/GroupAttributeValueField.tsx b/frontend/src/components/entry/entryForm/GroupAttributeValueField.tsx
index b165e51d7..8b12b3824 100644
--- a/frontend/src/components/entry/entryForm/GroupAttributeValueField.tsx
+++ b/frontend/src/components/entry/entryForm/GroupAttributeValueField.tsx
@@ -39,7 +39,7 @@ export const GroupAttributeValueField: FC = ({
}, []);
const handleChange = (
- value: { id: number; name: string } | { id: number; name: string }[] | null
+ value: { id: number; name: string } | { id: number; name: string }[] | null,
) => {
if (multiple === true) {
if (value != null && !Array.isArray(value)) {
diff --git a/frontend/src/components/entry/entryForm/ObjectAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/ObjectAttributeValueField.test.tsx
index 5ab6d402f..b39f91453 100644
--- a/frontend/src/components/entry/entryForm/ObjectAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/ObjectAttributeValueField.test.tsx
@@ -120,14 +120,14 @@ describe("ObjectAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getEntryAttrReferrals"
+ "getEntryAttrReferrals",
)
.mockResolvedValue(Promise.resolve(entries));
/* eslint-enable */
@@ -139,7 +139,7 @@ describe("ObjectAttributeValueField", () => {
control={control}
setValue={setValue}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
@@ -178,14 +178,14 @@ describe("ObjectAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getEntryAttrReferrals"
+ "getEntryAttrReferrals",
)
.mockResolvedValue(Promise.resolve(entries));
/* eslint-enable */
@@ -198,7 +198,7 @@ describe("ObjectAttributeValueField", () => {
setValue={setValue}
multiple
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
@@ -245,14 +245,14 @@ describe("ObjectAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getEntryAttrReferrals"
+ "getEntryAttrReferrals",
)
.mockResolvedValue(Promise.resolve(entries));
/* eslint-enable */
@@ -264,7 +264,7 @@ describe("ObjectAttributeValueField", () => {
control={control}
setValue={setValue}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
@@ -308,14 +308,14 @@ describe("ObjectAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getEntryAttrReferrals"
+ "getEntryAttrReferrals",
)
.mockResolvedValue(Promise.resolve(entries));
/* eslint-enable */
@@ -327,7 +327,7 @@ describe("ObjectAttributeValueField", () => {
control={control}
setValue={setValue}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
diff --git a/frontend/src/components/entry/entryForm/ObjectAttributeValueField.tsx b/frontend/src/components/entry/entryForm/ObjectAttributeValueField.tsx
index 2663485e1..9a796e033 100644
--- a/frontend/src/components/entry/entryForm/ObjectAttributeValueField.tsx
+++ b/frontend/src/components/entry/entryForm/ObjectAttributeValueField.tsx
@@ -66,7 +66,7 @@ export const ObjectAttributeValueField: FC<
}
> = ({ multiple, attrId, control, setValue, isDisabled = false }) => {
const handleChange = (
- value: GetEntryAttrReferral | GetEntryAttrReferral[] | null
+ value: GetEntryAttrReferral | GetEntryAttrReferral[] | null,
) => {
const newValue = (() => {
if (value == null) {
@@ -95,7 +95,7 @@ export const ObjectAttributeValueField: FC<
{
shouldDirty: true,
shouldValidate: true,
- }
+ },
);
};
@@ -143,7 +143,7 @@ export const NamedObjectAttributeValueField: FC<
withBoolean,
}) => {
const handleChange = (
- value: GetEntryAttrReferral | GetEntryAttrReferral[] | null
+ value: GetEntryAttrReferral | GetEntryAttrReferral[] | null,
) => {
const newValue = (() => {
if (Array.isArray(value)) {
@@ -169,7 +169,7 @@ export const NamedObjectAttributeValueField: FC<
{
shouldDirty: true,
shouldValidate: true,
- }
+ },
);
};
diff --git a/frontend/src/components/entry/entryForm/ReferralsAutocomplete.tsx b/frontend/src/components/entry/entryForm/ReferralsAutocomplete.tsx
index b84766011..0a64eae29 100644
--- a/frontend/src/components/entry/entryForm/ReferralsAutocomplete.tsx
+++ b/frontend/src/components/entry/entryForm/ReferralsAutocomplete.tsx
@@ -15,7 +15,7 @@ interface Props {
attrId: number;
value: GetEntryAttrReferral | GetEntryAttrReferral[] | null;
handleChange: (
- value: GetEntryAttrReferral | GetEntryAttrReferral[] | null
+ value: GetEntryAttrReferral | GetEntryAttrReferral[] | null,
) => void;
multiple?: boolean;
error?: { message?: string };
@@ -31,7 +31,7 @@ export const ReferralsAutocomplete: FC = ({
isDisabled = false,
}) => {
const [inputValue, setInputValue] = useState(
- !multiple ? (value as GetEntryAttrReferral | null)?.name ?? "" : ""
+ !multiple ? ((value as GetEntryAttrReferral | null)?.name ?? "") : "",
);
const referrals = useAsyncWithThrow(async () => {
@@ -40,7 +40,7 @@ export const ReferralsAutocomplete: FC = ({
const _handleChange = (
value: GetEntryAttrReferral | GetEntryAttrReferral[] | null,
- reason: AutocompleteChangeReason
+ reason: AutocompleteChangeReason,
) => {
if (!multiple && value != null && !Array.isArray(value)) {
setInputValue(value.name);
@@ -59,7 +59,7 @@ export const ReferralsAutocomplete: FC = ({
const handleInputChange = (
_value: string,
- reason: AutocompleteInputChangeReason
+ reason: AutocompleteInputChangeReason,
) => {
switch (reason) {
case "input":
diff --git a/frontend/src/components/entry/entryForm/RoleAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/RoleAttributeValueField.test.tsx
index 00cf9271b..10d621c68 100644
--- a/frontend/src/components/entry/entryForm/RoleAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/RoleAttributeValueField.test.tsx
@@ -97,14 +97,14 @@ describe("RoleAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getRoles"
+ "getRoles",
)
.mockResolvedValue(Promise.resolve(roles));
/* eslint-enable */
@@ -116,7 +116,7 @@ describe("RoleAttributeValueField", () => {
control={control}
setValue={setValue}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
@@ -146,14 +146,14 @@ describe("RoleAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
jest
.spyOn(
require("../../../repository/AironeApiClient").aironeApiClient,
- "getRoles"
+ "getRoles",
)
.mockResolvedValue(Promise.resolve(roles));
/* eslint-enable */
@@ -166,7 +166,7 @@ describe("RoleAttributeValueField", () => {
setValue={setValue}
multiple
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
});
diff --git a/frontend/src/components/entry/entryForm/RoleAttributeValueField.tsx b/frontend/src/components/entry/entryForm/RoleAttributeValueField.tsx
index eda3205a1..558e01bd7 100644
--- a/frontend/src/components/entry/entryForm/RoleAttributeValueField.tsx
+++ b/frontend/src/components/entry/entryForm/RoleAttributeValueField.tsx
@@ -39,7 +39,7 @@ export const RoleAttributeValueField: FC = ({
}, []);
const handleChange = (
- value: { id: number; name: string } | { id: number; name: string }[] | null
+ value: { id: number; name: string } | { id: number; name: string }[] | null,
) => {
if (multiple === true) {
if (value != null && !Array.isArray(value)) {
diff --git a/frontend/src/components/entry/entryForm/StringAttributeValueField.test.tsx b/frontend/src/components/entry/entryForm/StringAttributeValueField.test.tsx
index 1161fa13d..574d43b31 100644
--- a/frontend/src/components/entry/entryForm/StringAttributeValueField.test.tsx
+++ b/frontend/src/components/entry/entryForm/StringAttributeValueField.test.tsx
@@ -73,7 +73,7 @@ describe("StringAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(, {
@@ -103,7 +103,7 @@ describe("StringAttributeValueField", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
render(, {
diff --git a/frontend/src/components/group/GroupControlMenu.test.tsx b/frontend/src/components/group/GroupControlMenu.test.tsx
index a49af9dc4..bf2e26c53 100644
--- a/frontend/src/components/group/GroupControlMenu.test.tsx
+++ b/frontend/src/components/group/GroupControlMenu.test.tsx
@@ -21,7 +21,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/group/GroupForm.test.tsx b/frontend/src/components/group/GroupForm.test.tsx
index 8b52f3502..8fe5bd2fb 100644
--- a/frontend/src/components/group/GroupForm.test.tsx
+++ b/frontend/src/components/group/GroupForm.test.tsx
@@ -61,7 +61,7 @@ describe("GroupForm", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
@@ -71,7 +71,7 @@ describe("GroupForm", () => {
jest
.spyOn(
require("repository/AironeApiClient").aironeApiClient,
- "getGroupTrees"
+ "getGroupTrees",
)
.mockResolvedValue(Promise.resolve(groups));
/* eslint-enable */
diff --git a/frontend/src/components/group/GroupForm.tsx b/frontend/src/components/group/GroupForm.tsx
index eba64dc4e..cabecaa2c 100644
--- a/frontend/src/components/group/GroupForm.tsx
+++ b/frontend/src/components/group/GroupForm.tsx
@@ -35,7 +35,7 @@ export const GroupForm: FC = ({ control, setValue, groupId }) => {
const users = useAsyncWithThrow(async () => {
const _users = await aironeApiClient.getUsers(1, userKeyword);
return _users.results?.map(
- (user): GroupMember => ({ id: user.id, username: user.username })
+ (user): GroupMember => ({ id: user.id, username: user.username }),
);
}, [userKeyword]);
diff --git a/frontend/src/components/group/GroupImportModal.test.tsx b/frontend/src/components/group/GroupImportModal.test.tsx
index 1008126ba..f47e76df6 100644
--- a/frontend/src/components/group/GroupImportModal.test.tsx
+++ b/frontend/src/components/group/GroupImportModal.test.tsx
@@ -20,7 +20,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/group/GroupTreeItem.tsx b/frontend/src/components/group/GroupTreeItem.tsx
index 06985dcbe..93d91e40a 100644
--- a/frontend/src/components/group/GroupTreeItem.tsx
+++ b/frontend/src/components/group/GroupTreeItem.tsx
@@ -16,7 +16,7 @@ interface Props {
selectedGroupId: number | null;
handleSelectGroupId: (groupId: number | null) => void;
setGroupAnchorEls?: (
- els: { groupId: number; el: HTMLButtonElement } | null
+ els: { groupId: number; el: HTMLButtonElement } | null,
) => void;
}
diff --git a/frontend/src/components/group/GroupTreeRoot.test.tsx b/frontend/src/components/group/GroupTreeRoot.test.tsx
index 4d5af1cf6..6760ebf75 100644
--- a/frontend/src/components/group/GroupTreeRoot.test.tsx
+++ b/frontend/src/components/group/GroupTreeRoot.test.tsx
@@ -47,7 +47,7 @@ describe("GroupTreeRoot", () => {
/* noop */
}}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(screen.getAllByRole("checkbox")).toHaveLength(4);
diff --git a/frontend/src/components/group/GroupTreeRoot.tsx b/frontend/src/components/group/GroupTreeRoot.tsx
index ceb4c3137..f3f79d452 100644
--- a/frontend/src/components/group/GroupTreeRoot.tsx
+++ b/frontend/src/components/group/GroupTreeRoot.tsx
@@ -32,7 +32,7 @@ interface Props {
selectedGroupId: number | null;
handleSelectGroupId: (groupId: number | null) => void;
setGroupAnchorEls?: (
- els: { groupId: number; el: HTMLButtonElement } | null
+ els: { groupId: number; el: HTMLButtonElement } | null,
) => void;
}
diff --git a/frontend/src/components/group/groupForm/GroupFormSchema.ts b/frontend/src/components/group/groupForm/GroupFormSchema.ts
index 62e4811ad..c70885001 100644
--- a/frontend/src/components/group/groupForm/GroupFormSchema.ts
+++ b/frontend/src/components/group/groupForm/GroupFormSchema.ts
@@ -13,10 +13,10 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
username: z.string(),
- })
+ }),
)
.default([]),
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/components/job/JobList.test.tsx b/frontend/src/components/job/JobList.test.tsx
index 3bd44b614..b18bff18f 100644
--- a/frontend/src/components/job/JobList.test.tsx
+++ b/frontend/src/components/job/JobList.test.tsx
@@ -27,7 +27,7 @@ describe("JobList", () => {
},
createdAt: new Date(),
passedTime: 0,
- })
+ }),
);
render(, {
@@ -39,14 +39,14 @@ describe("JobList", () => {
expect(
screen.queryAllByRole("link", {
name: (content) => !content.includes("Download"),
- })
+ }),
).toHaveLength(22);
// 4 export operations should have a download link
expect(
screen.queryAllByRole("link", {
name: (content) => content.includes("Download"),
- })
+ }),
).toHaveLength(4);
});
@@ -65,7 +65,7 @@ describe("JobList", () => {
},
createdAt: new Date(),
passedTime: 0,
- })
+ }),
);
render(, {
@@ -77,7 +77,7 @@ describe("JobList", () => {
// jobs with "PREPARING", "PROCESSING", "TIMEOUT" should have a cancel button
expect(
- screen.queryAllByRole("button", { name: "キャンセル" })
+ screen.queryAllByRole("button", { name: "キャンセル" }),
).toHaveLength(3);
});
});
diff --git a/frontend/src/components/role/RoleForm.test.tsx b/frontend/src/components/role/RoleForm.test.tsx
index ce131f792..ed69fea5a 100644
--- a/frontend/src/components/role/RoleForm.test.tsx
+++ b/frontend/src/components/role/RoleForm.test.tsx
@@ -45,7 +45,7 @@ describe("RoleForm", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues,
- })
+ }),
);
/* eslint-disable */
diff --git a/frontend/src/components/role/RoleForm.tsx b/frontend/src/components/role/RoleForm.tsx
index e1b4fe8ff..6786c566d 100644
--- a/frontend/src/components/role/RoleForm.tsx
+++ b/frontend/src/components/role/RoleForm.tsx
@@ -43,25 +43,25 @@ export const RoleForm: FC = ({ control, setValue }) => {
const adminGroups = useAsyncWithThrow(async () => {
const _groups = await aironeApiClient.getGroups(1, adminGroupUserKeyword);
return _groups.results?.map(
- (group): RoleGroup => ({ id: group.id, name: group.name })
+ (group): RoleGroup => ({ id: group.id, name: group.name }),
);
}, [adminGroupUserKeyword]);
const groups = useAsyncWithThrow(async () => {
const _groups = await aironeApiClient.getGroups(1, groupUserKeyword);
return _groups.results?.map(
- (group): RoleGroup => ({ id: group.id, name: group.name })
+ (group): RoleGroup => ({ id: group.id, name: group.name }),
);
}, [groupUserKeyword]);
const adminUsers = useAsyncWithThrow(async () => {
const _users = await aironeApiClient.getUsers(1, adminUserKeyword);
return _users.results?.map(
- (user): RoleUser => ({ id: user.id, username: user.username })
+ (user): RoleUser => ({ id: user.id, username: user.username }),
);
}, [adminUserKeyword]);
const users = useAsyncWithThrow(async () => {
const _users = await aironeApiClient.getUsers(1, userKeyword);
return _users.results?.map(
- (user): RoleUser => ({ id: user.id, username: user.username })
+ (user): RoleUser => ({ id: user.id, username: user.username }),
);
}, [userKeyword]);
@@ -167,7 +167,7 @@ export const RoleForm: FC = ({ control, setValue }) => {
<>
{(() => {
const first = (error as FieldError[]).filter(
- (e) => e.message != null
+ (e) => e.message != null,
)?.[0];
return (
first != null && (
@@ -239,7 +239,7 @@ export const RoleForm: FC = ({ control, setValue }) => {
<>
{(() => {
const first = (error as FieldError[]).filter(
- (e) => e.message != null
+ (e) => e.message != null,
)?.[0];
return (
first != null && (
@@ -328,7 +328,7 @@ export const RoleForm: FC = ({ control, setValue }) => {
<>
{(() => {
const first = (error as FieldError[]).filter(
- (e) => e.message != null
+ (e) => e.message != null,
)?.[0];
return (
first != null && (
@@ -400,7 +400,7 @@ export const RoleForm: FC = ({ control, setValue }) => {
<>
{(() => {
const first = (error as FieldError[]).filter(
- (e) => e.message != null
+ (e) => e.message != null,
)?.[0];
return (
first != null && (
diff --git a/frontend/src/components/role/RoleImportModal.test.tsx b/frontend/src/components/role/RoleImportModal.test.tsx
index a90e598db..33b7279f5 100644
--- a/frontend/src/components/role/RoleImportModal.test.tsx
+++ b/frontend/src/components/role/RoleImportModal.test.tsx
@@ -20,7 +20,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/role/RoleList.test.tsx b/frontend/src/components/role/RoleList.test.tsx
index 6f1cbe5b5..7f0fb1755 100644
--- a/frontend/src/components/role/RoleList.test.tsx
+++ b/frontend/src/components/role/RoleList.test.tsx
@@ -46,7 +46,7 @@ describe("RoleList", () => {
jest
.spyOn(
require("repository/AironeApiClient").aironeApiClient,
- "deleteRole"
+ "deleteRole",
)
.mockResolvedValue(Promise.resolve());
/* eslint-enable */
@@ -60,7 +60,7 @@ describe("RoleList", () => {
// tr's in the tbody
expect(
- within(screen.getAllByRole("rowgroup")[1]).getAllByRole("row")
+ within(screen.getAllByRole("rowgroup")[1]).getAllByRole("row"),
).toHaveLength(2);
// delete first element
diff --git a/frontend/src/components/role/roleForm/RoleFormSchema.ts b/frontend/src/components/role/roleForm/RoleFormSchema.ts
index 66d874d69..bb2fd05bc 100644
--- a/frontend/src/components/role/roleForm/RoleFormSchema.ts
+++ b/frontend/src/components/role/roleForm/RoleFormSchema.ts
@@ -17,7 +17,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
username: z.string(),
- })
+ }),
)
.default([]),
groups: z
@@ -25,7 +25,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.default([]),
adminUsers: z
@@ -33,7 +33,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
username: z.string(),
- })
+ }),
)
.default([]),
adminGroups: z
@@ -41,7 +41,7 @@ export const schema = schemaForType()(
z.object({
id: z.number(),
name: z.string(),
- })
+ }),
)
.default([]),
})
@@ -105,7 +105,7 @@ export const schema = schemaForType()(
message: "メンバーとグループが重複しています",
});
});
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/components/trigger/TriggerFormSchema.tsx b/frontend/src/components/trigger/TriggerFormSchema.tsx
index 4778dd364..84c66de55 100644
--- a/frontend/src/components/trigger/TriggerFormSchema.tsx
+++ b/frontend/src/components/trigger/TriggerFormSchema.tsx
@@ -32,7 +32,7 @@ export const schema = schemaForType()(
})
.nullable(),
boolCond: z.boolean().optional(),
- })
+ }),
)
.min(1, "最低でもひとつの条件を設定してください"),
actions: z
@@ -59,12 +59,12 @@ export const schema = schemaForType()(
})
.nullable(),
boolCond: z.boolean().optional(),
- })
+ }),
),
- })
+ }),
)
.min(1, "最低でもひとつのアクションを設定してください"),
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/components/user/ChangeUserAuthModal.test.tsx b/frontend/src/components/user/ChangeUserAuthModal.test.tsx
index ea01b8169..0a10dd0d2 100644
--- a/frontend/src/components/user/ChangeUserAuthModal.test.tsx
+++ b/frontend/src/components/user/ChangeUserAuthModal.test.tsx
@@ -40,11 +40,11 @@ describe("ChangeUserAuthModal", () => {
/>,
{
wrapper: TestWrapper,
- }
+ },
);
expect(
- screen.getByText(user.username, { exact: false })
+ screen.getByText(user.username, { exact: false }),
).toBeInTheDocument();
await waitFor(() => {
@@ -59,7 +59,7 @@ describe("ChangeUserAuthModal", () => {
jest
.spyOn(
require("repository/AironeApiClient").aironeApiClient,
- "updateUserAuth"
+ "updateUserAuth",
)
.mockResolvedValue(Promise.resolve());
/* eslint-enable */
@@ -72,7 +72,7 @@ describe("ChangeUserAuthModal", () => {
/>,
{
wrapper: TestWrapper,
- }
+ },
);
await waitFor(() => {
@@ -80,7 +80,7 @@ describe("ChangeUserAuthModal", () => {
});
expect(
- screen.queryByText("認証方法の変更に成功しました")
+ screen.queryByText("認証方法の変更に成功しました"),
).not.toBeInTheDocument();
});
@@ -89,7 +89,7 @@ describe("ChangeUserAuthModal", () => {
jest
.spyOn(
require("repository/AironeApiClient").aironeApiClient,
- "updateUserAuth"
+ "updateUserAuth",
)
.mockResolvedValue(Promise.reject());
/* eslint-enable */
@@ -102,7 +102,7 @@ describe("ChangeUserAuthModal", () => {
/>,
{
wrapper: TestWrapper,
- }
+ },
);
await waitFor(() => {
@@ -110,7 +110,7 @@ describe("ChangeUserAuthModal", () => {
});
expect(
- screen.queryByText("認証方法の変更に失敗しました")
+ screen.queryByText("認証方法の変更に失敗しました"),
).not.toBeInTheDocument();
});
});
diff --git a/frontend/src/components/user/PasswordResetConfirmModal.test.tsx b/frontend/src/components/user/PasswordResetConfirmModal.test.tsx
index 51327d796..e9a28d79c 100644
--- a/frontend/src/components/user/PasswordResetConfirmModal.test.tsx
+++ b/frontend/src/components/user/PasswordResetConfirmModal.test.tsx
@@ -26,7 +26,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/user/PasswordResetConfirmModal.tsx b/frontend/src/components/user/PasswordResetConfirmModal.tsx
index 5d6763923..d7f9eae43 100644
--- a/frontend/src/components/user/PasswordResetConfirmModal.tsx
+++ b/frontend/src/components/user/PasswordResetConfirmModal.tsx
@@ -29,7 +29,7 @@ export const PasswordResetConfirmModal: FC = ({
uidb64,
token,
password,
- passwordConfirmation
+ passwordConfirmation,
);
enqueueSnackbar("パスワードリセットに成功しました", {
variant: "success",
diff --git a/frontend/src/components/user/PasswordResetModal.test.tsx b/frontend/src/components/user/PasswordResetModal.test.tsx
index b0cf9d5b0..7cfd98e60 100644
--- a/frontend/src/components/user/PasswordResetModal.test.tsx
+++ b/frontend/src/components/user/PasswordResetModal.test.tsx
@@ -24,7 +24,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/user/UserForm.test.tsx b/frontend/src/components/user/UserForm.test.tsx
index f851288b9..e687ba6fe 100644
--- a/frontend/src/components/user/UserForm.test.tsx
+++ b/frontend/src/components/user/UserForm.test.tsx
@@ -50,7 +50,7 @@ describe("UserForm", () => {
resolver: zodResolver(schema),
mode: "onBlur",
defaultValues: userInfo,
- })
+ }),
);
render(
@@ -66,17 +66,17 @@ describe("UserForm", () => {
/* do nothing */
}}
/>,
- { wrapper: TestWrapper }
+ { wrapper: TestWrapper },
);
expect(
- screen.getByPlaceholderText("ユーザ名を入力してください")
+ screen.getByPlaceholderText("ユーザ名を入力してください"),
).toHaveValue("user1");
expect(
- screen.getByPlaceholderText("メールアドレスを入力してください")
+ screen.getByPlaceholderText("メールアドレスを入力してください"),
).toHaveValue("user1@example.com");
expect(
- screen.getByPlaceholderText("パスワードを入力してください")
+ screen.getByPlaceholderText("パスワードを入力してください"),
).toHaveValue("user1");
});
});
diff --git a/frontend/src/components/user/UserImportModal.test.tsx b/frontend/src/components/user/UserImportModal.test.tsx
index 44f2565ba..e3f96985d 100644
--- a/frontend/src/components/user/UserImportModal.test.tsx
+++ b/frontend/src/components/user/UserImportModal.test.tsx
@@ -20,7 +20,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/user/UserList.tsx b/frontend/src/components/user/UserList.tsx
index f0a4d2806..67fc068fa 100644
--- a/frontend/src/components/user/UserList.tsx
+++ b/frontend/src/components/user/UserList.tsx
@@ -87,7 +87,7 @@ export const UserList: FC = ({}) => {
onKeyPress={(e) => {
e.key === "Enter" &&
handleChangeQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}}
/>
diff --git a/frontend/src/components/user/UserPasswordFormModal.test.tsx b/frontend/src/components/user/UserPasswordFormModal.test.tsx
index 879f552b1..286c14c6b 100644
--- a/frontend/src/components/user/UserPasswordFormModal.test.tsx
+++ b/frontend/src/components/user/UserPasswordFormModal.test.tsx
@@ -30,7 +30,7 @@ test("should render a component with essential props", function () {
/>,
{
wrapper: TestWrapper,
- }
- )
+ },
+ ),
).not.toThrow();
});
diff --git a/frontend/src/components/user/UserPasswordFormModal.tsx b/frontend/src/components/user/UserPasswordFormModal.tsx
index 190648aa2..0f6416d28 100644
--- a/frontend/src/components/user/UserPasswordFormModal.tsx
+++ b/frontend/src/components/user/UserPasswordFormModal.tsx
@@ -65,14 +65,14 @@ export const UserPasswordFormModal: FC = ({
await aironeApiClient.updateUserPasswordAsSuperuser(
userId,
newPassword,
- checkPassword
+ checkPassword,
);
} else {
await aironeApiClient.updateUserPassword(
userId,
oldPassword,
newPassword,
- checkPassword
+ checkPassword,
);
}
@@ -87,7 +87,7 @@ export const UserPasswordFormModal: FC = ({
"パスワードリセットに失敗しました。入力項目を見直してください",
{
variant: "error",
- }
+ },
);
// TODO show error causes
}
diff --git a/frontend/src/components/user/userForm/UserFormSchema.ts b/frontend/src/components/user/userForm/UserFormSchema.ts
index f127669cc..36bdceae3 100644
--- a/frontend/src/components/user/userForm/UserFormSchema.ts
+++ b/frontend/src/components/user/userForm/UserFormSchema.ts
@@ -17,7 +17,7 @@ export const schema = schemaForType()(
.optional(),
isSuperuser: z.boolean().default(false),
password: z.string().min(1, { message: "パスワードは必須です" }).optional(),
- })
+ }),
);
export type Schema = z.infer;
diff --git a/frontend/src/hooks/useAsyncWithThrow.tsx b/frontend/src/hooks/useAsyncWithThrow.tsx
index 1fbdf58f9..0b055fcd0 100644
--- a/frontend/src/hooks/useAsyncWithThrow.tsx
+++ b/frontend/src/hooks/useAsyncWithThrow.tsx
@@ -28,7 +28,7 @@ export declare type AsyncState =
// A thin wrapper of useAsync() in react-use, but it will throw an error
export const useAsyncWithThrow = (
fn: T,
- deps?: DependencyList
+ deps?: DependencyList,
): AsyncState>> => {
const raw = useAsync(fn, deps);
diff --git a/frontend/src/hooks/useFormNotification.tsx b/frontend/src/hooks/useFormNotification.tsx
index adcbd6ba5..a86358085 100644
--- a/frontend/src/hooks/useFormNotification.tsx
+++ b/frontend/src/hooks/useFormNotification.tsx
@@ -3,7 +3,7 @@ import { SnackbarKey, useSnackbar } from "notistack";
interface formNotification {
enqueueSubmitResult: (
finished: boolean,
- additionalMessage?: string
+ additionalMessage?: string,
) => SnackbarKey;
}
@@ -13,7 +13,7 @@ interface formNotification {
*/
export const useFormNotification = (
targetName: string,
- willCreate: boolean
+ willCreate: boolean,
): formNotification => {
const { enqueueSnackbar } = useSnackbar();
@@ -27,7 +27,7 @@ export const useFormNotification = (
}しました。${additionalMessage ?? ""}`,
{
variant: finished ? "success" : "error",
- }
+ },
);
},
};
diff --git a/frontend/src/hooks/usePage.tsx b/frontend/src/hooks/usePage.tsx
index b14af12d1..bf038287c 100644
--- a/frontend/src/hooks/usePage.tsx
+++ b/frontend/src/hooks/usePage.tsx
@@ -23,7 +23,7 @@ export const usePage = (): [number, (page: number) => void] => {
search: params.toString(),
});
},
- [location.pathname, location.search, navigate]
+ [location.pathname, location.search, navigate],
);
useEffect(() => {
diff --git a/frontend/src/hooks/usePrompt.tsx b/frontend/src/hooks/usePrompt.tsx
index 76f1bf680..8b332b691 100644
--- a/frontend/src/hooks/usePrompt.tsx
+++ b/frontend/src/hooks/usePrompt.tsx
@@ -4,7 +4,7 @@ import { useBlocker } from "react-router";
export const usePrompt = (when: boolean, message: string) => {
const blocker = useBlocker(
({ currentLocation, nextLocation }) =>
- when && currentLocation.pathname !== nextLocation.pathname
+ when && currentLocation.pathname !== nextLocation.pathname,
);
useEffect(() => {
diff --git a/frontend/src/hooks/useSimpleSearch.tsx b/frontend/src/hooks/useSimpleSearch.tsx
index 10ea27f6a..7d0e25a2f 100644
--- a/frontend/src/hooks/useSimpleSearch.tsx
+++ b/frontend/src/hooks/useSimpleSearch.tsx
@@ -21,7 +21,7 @@ export const useSimpleSearch = (): [Query, (query: Query) => void] => {
search: query != null ? `simple_search_query=${query}` : undefined,
});
},
- [navigate]
+ [navigate],
);
return [query, submitQuery];
diff --git a/frontend/src/hooks/useTranslation.tsx b/frontend/src/hooks/useTranslation.tsx
index 115fb08aa..ec6009338 100644
--- a/frontend/src/hooks/useTranslation.tsx
+++ b/frontend/src/hooks/useTranslation.tsx
@@ -8,7 +8,7 @@ import { TranslationKey } from "../i18n/config";
export type UseTranslationResponse = [
t: (key: TranslationKey) => string,
i18n: i18n,
- ready: boolean
+ ready: boolean,
] & {
t: (key: TranslationKey) => string;
i18n: i18n;
@@ -16,7 +16,7 @@ export type UseTranslationResponse = [
};
export function useTranslation<
Ns extends FlatNamespace | $Tuple | undefined = undefined,
- KPrefix extends KeyPrefix> = undefined
+ KPrefix extends KeyPrefix> = undefined,
>(ns?: Ns, options?: UseTranslationOptions): UseTranslationResponse {
const response = _useTranslation(ns, options);
diff --git a/frontend/src/hooks/useTypedParams.tsx b/frontend/src/hooks/useTypedParams.tsx
index 009fbbf41..49520d900 100644
--- a/frontend/src/hooks/useTypedParams.tsx
+++ b/frontend/src/hooks/useTypedParams.tsx
@@ -1,12 +1,12 @@
import { useParams } from "react-router";
export const useTypedParams = <
- Params extends { [K in keyof Params]: any }
+ Params extends { [K in keyof Params]: any },
>() => {
const params = useParams() as unknown as Partial;
const allFieldsDefined = Object.keys(params).every(
- (key) => params[key as keyof Params] !== undefined
+ (key) => params[key as keyof Params] !== undefined,
);
if (!allFieldsDefined) {
throw new Error("Some required URL parameters are missing");
diff --git a/frontend/src/pages/ACLEditPage.test.tsx b/frontend/src/pages/ACLEditPage.test.tsx
index 8660c4d7f..efd6e7599 100644
--- a/frontend/src/pages/ACLEditPage.test.tsx
+++ b/frontend/src/pages/ACLEditPage.test.tsx
@@ -45,7 +45,7 @@ const server = setupServer(
attrs: [],
webhooks: [],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -71,7 +71,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [aclPath(1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/ACLEditPage.tsx b/frontend/src/pages/ACLEditPage.tsx
index 2c9b179e3..640c4d094 100644
--- a/frontend/src/pages/ACLEditPage.tsx
+++ b/frontend/src/pages/ACLEditPage.tsx
@@ -52,7 +52,7 @@ export const ACLEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const acl = useAsyncWithThrow(async () => {
@@ -89,7 +89,7 @@ export const ACLEditPage: FC = () => {
err.generalError &&
enqueueSnackbar(err.generalError.message, { variant: "error" });
},
- [objectId]
+ [objectId],
);
const handleSubmitOnValid = useCallback(
@@ -105,12 +105,12 @@ export const ACLEditPage: FC = () => {
aclForm.isPublic,
aclSettings,
aclForm.objtype,
- aclForm.defaultPermission
+ aclForm.defaultPermission,
);
enqueueSnackbar("ACL設定の更新が成功しました", { variant: "success" });
},
- [objectId]
+ [objectId],
);
const handleCancel = async () => {
@@ -138,7 +138,7 @@ export const ACLEditPage: FC = () => {
{acl.value.name}
ACL設定
-
+ ,
);
break;
case ACLObjtypeEnum.Entity:
@@ -156,7 +156,7 @@ export const ACLEditPage: FC = () => {
entity={resp}
attr={acl.value?.name}
title="ACL設定"
- />
+ />,
);
});
}
@@ -188,7 +188,7 @@ export const ACLEditPage: FC = () => {
isSubmitting={isSubmitting}
handleSubmit={handleSubmit(
handleSubmitOnValid,
- handleSubmitOnInvalid
+ handleSubmitOnInvalid,
)}
handleCancel={handleCancel}
/>
diff --git a/frontend/src/pages/ACLHistoryPage.test.tsx b/frontend/src/pages/ACLHistoryPage.test.tsx
index 3b6cb1ef2..a0875f9e9 100644
--- a/frontend/src/pages/ACLHistoryPage.test.tsx
+++ b/frontend/src/pages/ACLHistoryPage.test.tsx
@@ -50,7 +50,7 @@ const server = setupServer(
attrs: [],
webhooks: [],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -76,7 +76,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [aclHistoryPath(1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/ACLHistoryPage.tsx b/frontend/src/pages/ACLHistoryPage.tsx
index 049dac2d1..35be145bf 100644
--- a/frontend/src/pages/ACLHistoryPage.tsx
+++ b/frontend/src/pages/ACLHistoryPage.tsx
@@ -68,7 +68,7 @@ export const ACLHistoryPage: FC = () => {
case ACLObjtypeEnum.Entity:
aironeApiClient.getEntity(objectId).then((resp) => {
setBreadcrumbs(
-
+ ,
);
});
break;
diff --git a/frontend/src/pages/AdvancedSearchPage.test.tsx b/frontend/src/pages/AdvancedSearchPage.test.tsx
index 929549a84..9aac2d441 100644
--- a/frontend/src/pages/AdvancedSearchPage.test.tsx
+++ b/frontend/src/pages/AdvancedSearchPage.test.tsx
@@ -38,7 +38,7 @@ const server = setupServer(
http.get("http://localhost/entity/api/v2/attrs", () => {
return HttpResponse.json(entityAttrs);
- })
+ }),
);
beforeAll(() => server.listen());
@@ -50,7 +50,7 @@ beforeEach(async () => {
render(
-
+ ,
);
});
});
@@ -106,7 +106,7 @@ describe("AdvancedSearchPage", () => {
if (elemInputEntity.parentNode instanceof HTMLElement) {
const selectedEntity = within(elemInputEntity.parentNode).getAllByRole(
- "button"
+ "button",
);
// right 1 is ArrowDropDownIcon.
expect(selectedEntity).toHaveLength(1 + 1);
@@ -132,13 +132,12 @@ describe("AdvancedSearchPage", () => {
fireEvent.click(options[1]);
- const elemInputEntityAttr = await screen.findByPlaceholderText(
- "属性を選択"
- );
+ const elemInputEntityAttr =
+ await screen.findByPlaceholderText("属性を選択");
if (elemInputEntityAttr.parentNode instanceof HTMLElement) {
const selectedEntity = within(
- elemInputEntityAttr.parentNode
+ elemInputEntityAttr.parentNode,
).getAllByRole("button");
// right 1 is ArrowDropDownIcon.
expect(selectedEntity).toHaveLength(1 + 1);
@@ -175,13 +174,12 @@ describe("AdvancedSearchPage", () => {
fireEvent.click(options[0]);
});
- const elemInputEntityAttr = await screen.findByPlaceholderText(
- "属性を選択"
- );
+ const elemInputEntityAttr =
+ await screen.findByPlaceholderText("属性を選択");
if (elemInputEntityAttr.parentNode instanceof HTMLElement) {
const selectedEntity = within(
- elemInputEntityAttr.parentNode
+ elemInputEntityAttr.parentNode,
).getAllByRole("button");
// right 1 is ArrowDropDownIcon.
expect(selectedEntity).toHaveLength(2 + 1);
@@ -200,9 +198,8 @@ describe("AdvancedSearchPage", () => {
fireEvent.click(optionsEntity[0]);
fireEvent.keyDown(elemInputEntity, { key: "Escape" });
- const elemInputEntityAttr = await screen.findByPlaceholderText(
- "属性を選択"
- );
+ const elemInputEntityAttr =
+ await screen.findByPlaceholderText("属性を選択");
await act(async () => {
fireEvent.change(elemInputEntityAttr, { target: { value: "str" } });
@@ -223,9 +220,8 @@ describe("AdvancedSearchPage", () => {
fireEvent.click(optionsEntity[0]);
fireEvent.keyDown(elemInputEntity, { key: "Escape" });
- const elemInputEntityAttr = await screen.findByPlaceholderText(
- "属性を選択"
- );
+ const elemInputEntityAttr =
+ await screen.findByPlaceholderText("属性を選択");
await act(async () => {
fireEvent.change(elemInputEntityAttr, { target: { value: "hoge" } });
@@ -247,9 +243,8 @@ describe("AdvancedSearchPage", () => {
fireEvent.keyDown(elemInputEntity, { key: "Escape" });
});
- const elemInputEntityAttr = await screen.findByPlaceholderText(
- "属性を選択"
- );
+ const elemInputEntityAttr =
+ await screen.findByPlaceholderText("属性を選択");
await act(async () => {
fireEvent.change(elemInputEntityAttr, { target: { value: "str" } });
@@ -270,7 +265,7 @@ describe("AdvancedSearchPage", () => {
"?entity=2" +
"&is_all_entities=false" +
"&has_referral=false" +
- '&attrinfo=[{"name"%3A"str"%2C"filterKey"%3A0%2C"keyword"%3A""}]'
+ '&attrinfo=[{"name"%3A"str"%2C"filterKey"%3A0%2C"keyword"%3A""}]',
);
});
});
diff --git a/frontend/src/pages/AdvancedSearchPage.tsx b/frontend/src/pages/AdvancedSearchPage.tsx
index 4785dc09b..59904d219 100644
--- a/frontend/src/pages/AdvancedSearchPage.tsx
+++ b/frontend/src/pages/AdvancedSearchPage.tsx
@@ -44,7 +44,7 @@ const StyledTypography = styled(Typography)({
export const AdvancedSearchPage: FC = () => {
const [selectedEntities, setSelectedEntities] = useState>(
- []
+ [],
);
const [selectedAttrs, setSelectedAttrs] = useState>([]);
const [searchAllEntities, setSearchAllEntities] = useState(false);
@@ -61,7 +61,7 @@ export const AdvancedSearchPage: FC = () => {
if (selectedEntities.length > 0 || searchAllEntities) {
return await aironeApiClient.getEntityAttrs(
selectedEntities.map((e) => e.id),
- searchAllEntities
+ searchAllEntities,
);
}
return [];
@@ -76,7 +76,7 @@ export const AdvancedSearchPage: FC = () => {
filterKey: AdvancedSearchResultAttrInfoFilterKeyEnum.CLEARED,
keyword: "",
},
- ])
+ ]),
),
entityIds: selectedEntities.map((e) => e.id.toString()),
searchAllEntities,
@@ -87,7 +87,7 @@ export const AdvancedSearchPage: FC = () => {
const handleChangeInputEntityName = (
event: SyntheticEvent,
value: string,
- reason: AutocompleteInputChangeReason
+ reason: AutocompleteInputChangeReason,
) => {
// Not to clear input value on selecting an item
if (reason === "reset") {
@@ -99,7 +99,7 @@ export const AdvancedSearchPage: FC = () => {
const handleChangeInputAttrName = (
event: SyntheticEvent,
value: string,
- reason: AutocompleteInputChangeReason
+ reason: AutocompleteInputChangeReason,
) => {
// Not to clear input value on selecting an item
if (reason === "reset") {
diff --git a/frontend/src/pages/AdvancedSearchResultsPage.test.tsx b/frontend/src/pages/AdvancedSearchResultsPage.test.tsx
index 9aeb074a3..6b9f6cfb8 100644
--- a/frontend/src/pages/AdvancedSearchResultsPage.test.tsx
+++ b/frontend/src/pages/AdvancedSearchResultsPage.test.tsx
@@ -16,7 +16,7 @@ const server = setupServer(
"http://localhost/entity/api/v2/attrs?entity_ids=1&referral_attr=",
() => {
return HttpResponse.json([]);
- }
+ },
),
// advancedSearch
http.post("http://localhost/entry/api/v2/advanced_search/", () => {
@@ -49,7 +49,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/AdvancedSearchResultsPage.tsx b/frontend/src/pages/AdvancedSearchResultsPage.tsx
index 507ad3ba8..cfb94eefb 100644
--- a/frontend/src/pages/AdvancedSearchResultsPage.tsx
+++ b/frontend/src/pages/AdvancedSearchResultsPage.tsx
@@ -107,7 +107,7 @@ export const AdvancedSearchResultsPage: FC = () => {
referralName,
searchAllEntities,
page,
- AdvancedSerarchResultListParam.MAX_ROW_COUNT
+ AdvancedSerarchResultListParam.MAX_ROW_COUNT,
);
};
@@ -148,7 +148,7 @@ export const AdvancedSearchResultsPage: FC = () => {
entryName,
hasReferral,
searchAllEntities,
- exportStyle
+ exportStyle,
);
enqueueSnackbar("エクスポートジョブの登録に成功しました", {
variant: "success",
@@ -302,7 +302,7 @@ export const AdvancedSearchResultsPage: FC = () => {
baseAttrname: join.name,
joinedAttrname: joinedInfo.name,
},
- }))
+ })),
);
return [base, ...joined];
@@ -348,7 +348,7 @@ export const AdvancedSearchResultsPage: FC = () => {
setOpenModal={setOpenModal}
attrNames={entityAttrs.value ?? []}
initialAttrNames={attrInfo.map(
- (e: AdvancedSearchResultAttrInfo) => e.name
+ (e: AdvancedSearchResultAttrInfo) => e.name,
)}
attrInfos={attrInfo}
/>
diff --git a/frontend/src/pages/CategoryEditPage.tsx b/frontend/src/pages/CategoryEditPage.tsx
index c1422d8c0..f76708b08 100644
--- a/frontend/src/pages/CategoryEditPage.tsx
+++ b/frontend/src/pages/CategoryEditPage.tsx
@@ -46,7 +46,7 @@ export const CategoryEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const category = useAsyncWithThrow(async () => {
@@ -82,14 +82,14 @@ export const CategoryEditPage: FC = () => {
(name, message) => {
setError(name, { type: "custom", message: message });
enqueueSubmitResult(false);
- }
+ },
);
} else {
enqueueSubmitResult(false);
}
}
},
- [categoryId]
+ [categoryId],
);
const handleCancel = async () => {
diff --git a/frontend/src/pages/DashboardPage.test.tsx b/frontend/src/pages/DashboardPage.test.tsx
index 58b73ccef..22ada6933 100644
--- a/frontend/src/pages/DashboardPage.test.tsx
+++ b/frontend/src/pages/DashboardPage.test.tsx
@@ -42,7 +42,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/EntityEditPage.test.tsx b/frontend/src/pages/EntityEditPage.test.tsx
index 4b3cc2bbc..21c1661f5 100644
--- a/frontend/src/pages/EntityEditPage.test.tsx
+++ b/frontend/src/pages/EntityEditPage.test.tsx
@@ -60,7 +60,7 @@ const server = setupServer(
// getEntity
http.get("http://localhost/entity/api/v2/1/", () => {
return HttpResponse.json(entity);
- })
+ }),
);
beforeAll(() => server.listen());
@@ -89,7 +89,7 @@ describe("EditEntityPage", () => {
],
{
initialEntries: ["/ui/entities/1"],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntityEditPage.tsx b/frontend/src/pages/EntityEditPage.tsx
index 29c023e0b..d96337b3f 100644
--- a/frontend/src/pages/EntityEditPage.tsx
+++ b/frontend/src/pages/EntityEditPage.tsx
@@ -45,7 +45,7 @@ export const EntityEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const entity = useAsyncWithThrow(async () => {
@@ -90,7 +90,7 @@ export const EntityEditPage: FC = () => {
entity.value?.attrs
.filter(
(attr) =>
- !entityForm.attrs.some((attrForm) => attrForm.id === attr.id)
+ !entityForm.attrs.some((attrForm) => attrForm.id === attr.id),
)
.map((attr) => ({
id: attr.id,
@@ -107,7 +107,7 @@ export const EntityEditPage: FC = () => {
isVerified: false,
headers: webhook.headers,
isDeleted: false,
- })
+ }),
) ?? [];
const deletedWebhooks =
@@ -115,8 +115,8 @@ export const EntityEditPage: FC = () => {
.filter(
(webhook) =>
!entityForm.webhooks.some(
- (webhookForm) => webhookForm.id === webhook.id
- )
+ (webhookForm) => webhookForm.id === webhook.id,
+ ),
)
.map((webhook) => ({
id: webhook.id,
@@ -131,7 +131,7 @@ export const EntityEditPage: FC = () => {
entityForm.note,
entityForm.isToplevel,
attrs,
- webhooks
+ webhooks,
);
} else {
await aironeApiClient.updateEntity(
@@ -140,7 +140,7 @@ export const EntityEditPage: FC = () => {
entityForm.note,
entityForm.isToplevel,
[...attrs, ...deletedAttrs],
- [...webhooks, ...deletedWebhooks]
+ [...webhooks, ...deletedWebhooks],
);
}
enqueueSubmitResult(true);
@@ -163,7 +163,7 @@ export const EntityEditPage: FC = () => {
setError(name, { type: "custom", message: message });
}
enqueueSubmitResult(false);
- }
+ },
);
} else {
enqueueSubmitResult(false);
diff --git a/frontend/src/pages/EntityHistoryPage.test.tsx b/frontend/src/pages/EntityHistoryPage.test.tsx
index 276d425f2..b172cad43 100644
--- a/frontend/src/pages/EntityHistoryPage.test.tsx
+++ b/frontend/src/pages/EntityHistoryPage.test.tsx
@@ -51,7 +51,7 @@ const server = setupServer(
// getEntity
http.get("http://localhost/entity/api/v2/1/", () => {
return HttpResponse.json(entity);
- })
+ }),
);
beforeAll(() => server.listen());
@@ -70,7 +70,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [entityHistoryPath(1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntityListPage.test.tsx b/frontend/src/pages/EntityListPage.test.tsx
index 1ebaefa16..36c0092db 100644
--- a/frontend/src/pages/EntityListPage.test.tsx
+++ b/frontend/src/pages/EntityListPage.test.tsx
@@ -41,7 +41,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/EntryCopyPage.test.tsx b/frontend/src/pages/EntryCopyPage.test.tsx
index 0c92d44df..e97caef79 100644
--- a/frontend/src/pages/EntryCopyPage.test.tsx
+++ b/frontend/src/pages/EntryCopyPage.test.tsx
@@ -26,7 +26,7 @@ const server = setupServer(
},
attrs: [],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -43,7 +43,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [copyEntryPath(2, 1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntryCopyPage.tsx b/frontend/src/pages/EntryCopyPage.tsx
index 890e1170c..c0ef8697d 100644
--- a/frontend/src/pages/EntryCopyPage.tsx
+++ b/frontend/src/pages/EntryCopyPage.tsx
@@ -38,7 +38,7 @@ export const EntryCopyPage: FC = ({ CopyForm = DefaultCopyForm }) => {
usePrompt(
edited && !submitted,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const entry = useAsyncWithThrow(async () => {
@@ -75,7 +75,7 @@ export const EntryCopyPage: FC = ({ CopyForm = DefaultCopyForm }) => {
const handleCancel = () => {
navigate(
entryDetailsPath(entry.value?.schema?.id ?? 0, entry.value?.id ?? 0),
- { replace: true }
+ { replace: true },
);
};
diff --git a/frontend/src/pages/EntryDetailsPage.test.tsx b/frontend/src/pages/EntryDetailsPage.test.tsx
index 5d238ec1d..599b916ce 100644
--- a/frontend/src/pages/EntryDetailsPage.test.tsx
+++ b/frontend/src/pages/EntryDetailsPage.test.tsx
@@ -44,7 +44,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -61,7 +61,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [entryDetailsPath(2, 1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntryDetailsPage.tsx b/frontend/src/pages/EntryDetailsPage.tsx
index 6697e027b..45afa39a7 100644
--- a/frontend/src/pages/EntryDetailsPage.tsx
+++ b/frontend/src/pages/EntryDetailsPage.tsx
@@ -77,7 +77,7 @@ export const EntryDetailsPage: FC = ({
const navigate = useNavigate();
const [entryAnchorEl, setEntryAnchorEl] = useState(
- null
+ null,
);
const entry = useAsyncWithThrow(async () => {
@@ -97,9 +97,9 @@ export const EntryDetailsPage: FC = ({
navigate(
restoreEntryPath(
entry.value?.schema?.id ?? "",
- entry.value?.name ?? ""
+ entry.value?.name ?? "",
),
- { replace: true }
+ { replace: true },
);
}
}, [entry.loading]);
@@ -166,7 +166,7 @@ export const EntryDetailsPage: FC = ({
!excludeAttrs.includes(attr.schema.name)
+ (attr) => !excludeAttrs.includes(attr.schema.name),
) ?? []
}
/>
diff --git a/frontend/src/pages/EntryEditPage.test.tsx b/frontend/src/pages/EntryEditPage.test.tsx
index fc67df0b3..c0a1fbca3 100644
--- a/frontend/src/pages/EntryEditPage.test.tsx
+++ b/frontend/src/pages/EntryEditPage.test.tsx
@@ -37,7 +37,7 @@ const server = setupServer(
},
attrs: [],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -66,7 +66,7 @@ describe("EntryEditPage", () => {
],
{
initialEntries: ["/ui/entities/2/entries/1/edit"],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntryEditPage.tsx b/frontend/src/pages/EntryEditPage.tsx
index 829dd34a5..27e9404b6 100644
--- a/frontend/src/pages/EntryEditPage.tsx
+++ b/frontend/src/pages/EntryEditPage.tsx
@@ -65,7 +65,7 @@ export const EntryEditPage: FC = ({
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const entity = useAsyncWithThrow(async () => {
@@ -84,7 +84,7 @@ export const EntryEditPage: FC = ({
const entryInfo = formalizeEntryInfo(
undefined,
entity.value,
- excludeAttrs
+ excludeAttrs,
);
reset(entryInfo);
setInitialized(true);
@@ -99,7 +99,7 @@ export const EntryEditPage: FC = ({
const entryInfo = formalizeEntryInfo(
entry.value,
entity.value,
- excludeAttrs
+ excludeAttrs,
);
reset(entryInfo);
setInitialized(true);
@@ -136,7 +136,7 @@ export const EntryEditPage: FC = ({
(name, message) => {
setError(name, { type: "custom", message: message });
enqueueSubmitResult(false);
- }
+ },
);
} else {
enqueueSubmitResult(false);
@@ -193,7 +193,7 @@ export const EntryEditPage: FC = ({
entity={{
...entity.value,
attrs: entity.value.attrs.filter(
- (attr) => !excludeAttrs.includes(attr.name)
+ (attr) => !excludeAttrs.includes(attr.name),
),
}}
control={control}
diff --git a/frontend/src/pages/EntryHistoryListPage.test.tsx b/frontend/src/pages/EntryHistoryListPage.test.tsx
index 0abb91dd1..c1b03f3df 100644
--- a/frontend/src/pages/EntryHistoryListPage.test.tsx
+++ b/frontend/src/pages/EntryHistoryListPage.test.tsx
@@ -34,7 +34,7 @@ const server = setupServer(
count: 0,
results: [],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -51,7 +51,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [showEntryHistoryPath(2, 1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntryHistoryListPage.tsx b/frontend/src/pages/EntryHistoryListPage.tsx
index e5c15d186..05815764d 100644
--- a/frontend/src/pages/EntryHistoryListPage.tsx
+++ b/frontend/src/pages/EntryHistoryListPage.tsx
@@ -19,7 +19,7 @@ export const EntryHistoryListPage: FC = () => {
const [page, changePage] = usePage();
const [entryAnchorEl, setEntryAnchorEl] = useState(
- null
+ null,
);
const entry = useAsyncWithThrow(async () => {
diff --git a/frontend/src/pages/EntryListPage.test.tsx b/frontend/src/pages/EntryListPage.test.tsx
index 4ffea3042..4a77356ad 100644
--- a/frontend/src/pages/EntryListPage.test.tsx
+++ b/frontend/src/pages/EntryListPage.test.tsx
@@ -55,7 +55,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -73,7 +73,7 @@ describe("EntryListPage", () => {
],
{
initialEntries: ["/ui/entities/1/entries"],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/EntryRestorePage.test.tsx b/frontend/src/pages/EntryRestorePage.test.tsx
index 80230a626..e60a48605 100644
--- a/frontend/src/pages/EntryRestorePage.test.tsx
+++ b/frontend/src/pages/EntryRestorePage.test.tsx
@@ -55,7 +55,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -72,7 +72,7 @@ test("should match snapshot", async () => {
],
{
initialEntries: [restoreEntryPath(1)],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/GroupEditPage.test.tsx b/frontend/src/pages/GroupEditPage.test.tsx
index 50fbe708b..18e23b50f 100644
--- a/frontend/src/pages/GroupEditPage.test.tsx
+++ b/frontend/src/pages/GroupEditPage.test.tsx
@@ -73,7 +73,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/GroupEditPage.tsx b/frontend/src/pages/GroupEditPage.tsx
index f189841eb..09881e003 100644
--- a/frontend/src/pages/GroupEditPage.tsx
+++ b/frontend/src/pages/GroupEditPage.tsx
@@ -45,7 +45,7 @@ export const GroupEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const group = useAsyncWithThrow(async () => {
@@ -80,7 +80,7 @@ export const GroupEditPage: FC = () => {
(name, message) => {
setError(name, { type: "custom", message: message });
enqueueSubmitResult(false);
- }
+ },
);
} else {
enqueueSubmitResult(false);
diff --git a/frontend/src/pages/GroupListPage.test.tsx b/frontend/src/pages/GroupListPage.test.tsx
index 0b25767c0..4b6fac14b 100644
--- a/frontend/src/pages/GroupListPage.test.tsx
+++ b/frontend/src/pages/GroupListPage.test.tsx
@@ -36,7 +36,7 @@ const server = setupServer(
children: [],
},
]);
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/JobListPage.test.tsx b/frontend/src/pages/JobListPage.test.tsx
index 6ab72e6b2..0f02e5a9d 100644
--- a/frontend/src/pages/JobListPage.test.tsx
+++ b/frontend/src/pages/JobListPage.test.tsx
@@ -48,7 +48,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/ListAliasEntryPage.tsx b/frontend/src/pages/ListAliasEntryPage.tsx
index f95bcb24d..2addd4944 100644
--- a/frontend/src/pages/ListAliasEntryPage.tsx
+++ b/frontend/src/pages/ListAliasEntryPage.tsx
@@ -83,7 +83,7 @@ export const ListAliasEntryPage: FC = ({}) => {
} else {
return entry;
}
- })
+ }),
);
target.value = "";
enqueueSubmitResult(true);
@@ -93,7 +93,7 @@ export const ListAliasEntryPage: FC = ({}) => {
extractAPIException(
e,
(message) => enqueueSubmitResult(false, `詳細: "${message}"`),
- (name, message) => enqueueSubmitResult(false, `詳細: "${message}"`)
+ (name, message) => enqueueSubmitResult(false, `詳細: "${message}"`),
);
} else {
enqueueSubmitResult(false);
@@ -111,7 +111,7 @@ export const ListAliasEntryPage: FC = ({}) => {
...entry,
aliases: entry.aliases.filter((alias) => alias.id !== id),
};
- })
+ }),
);
enqueueSnackbar("エイリアスの削除が完了しました。", {
variant: "success",
@@ -154,7 +154,7 @@ export const ListAliasEntryPage: FC = ({}) => {
onKeyPress={(e) => {
e.key === "Enter" &&
handleChangeQuery(
- normalizeToMatch((e.target as HTMLInputElement).value ?? "")
+ normalizeToMatch((e.target as HTMLInputElement).value ?? ""),
);
}}
/>
diff --git a/frontend/src/pages/LoginPage.tsx b/frontend/src/pages/LoginPage.tsx
index 051c35bea..535d886bf 100644
--- a/frontend/src/pages/LoginPage.tsx
+++ b/frontend/src/pages/LoginPage.tsx
@@ -62,7 +62,7 @@ export const LoginPage: FC = () => {
pathname: location.pathname,
search: "?" + params.toString(),
},
- { replace: true }
+ { replace: true },
);
}
@@ -87,7 +87,7 @@ export const LoginPage: FC = () => {
if (agreeWithServiceContract === true) {
data.append(
"extra_param",
- JSON.stringify({ AGREE_TERM_OF_SERVICE: true })
+ JSON.stringify({ AGREE_TERM_OF_SERVICE: true }),
);
} else {
// abort login process when user does not agree with Pagoda's service contract
diff --git a/frontend/src/pages/RoleEditPage.test.tsx b/frontend/src/pages/RoleEditPage.test.tsx
index cdd8480dd..9676bd38f 100644
--- a/frontend/src/pages/RoleEditPage.test.tsx
+++ b/frontend/src/pages/RoleEditPage.test.tsx
@@ -79,7 +79,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/RoleEditPage.tsx b/frontend/src/pages/RoleEditPage.tsx
index f8a64950b..0e06e2193 100644
--- a/frontend/src/pages/RoleEditPage.tsx
+++ b/frontend/src/pages/RoleEditPage.tsx
@@ -45,7 +45,7 @@ export const RoleEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const role = useAsyncWithThrow(async () => {
@@ -85,14 +85,14 @@ export const RoleEditPage: FC = () => {
(name, message) => {
setError(name, { type: "custom", message: message });
enqueueSubmitResult(false);
- }
+ },
);
} else {
enqueueSubmitResult(false);
}
}
},
- [roleId]
+ [roleId],
);
const handleCancel = async () => {
diff --git a/frontend/src/pages/RoleListPage.test.tsx b/frontend/src/pages/RoleListPage.test.tsx
index 8914cf3bc..d224de121 100644
--- a/frontend/src/pages/RoleListPage.test.tsx
+++ b/frontend/src/pages/RoleListPage.test.tsx
@@ -26,7 +26,7 @@ const server = setupServer(
is_editable: true,
},
]);
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/TriggerEditPage.test.tsx b/frontend/src/pages/TriggerEditPage.test.tsx
index 8634858b3..1567d8142 100644
--- a/frontend/src/pages/TriggerEditPage.test.tsx
+++ b/frontend/src/pages/TriggerEditPage.test.tsx
@@ -73,7 +73,7 @@ const server = setupServer(
attrs: [],
webhooks: [],
});
- })
+ }),
);
beforeAll(() => server.listen());
@@ -93,7 +93,7 @@ describe("EditTriggerPage", () => {
],
{
initialEntries: ["/ui/triggers/1"],
- }
+ },
);
const result = await act(async () => {
return render(, {
diff --git a/frontend/src/pages/TriggerEditPage.tsx b/frontend/src/pages/TriggerEditPage.tsx
index 30b50ed43..b5727fab6 100644
--- a/frontend/src/pages/TriggerEditPage.tsx
+++ b/frontend/src/pages/TriggerEditPage.tsx
@@ -99,7 +99,7 @@ export const TriggerEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const entities = useAsyncWithThrow(async () => {
@@ -123,7 +123,7 @@ export const TriggerEditPage: FC = () => {
return trigger.conditions.flatMap((cond) => {
const attrInfo = entity.value?.attrs.find(
- (attr) => attr.id === cond.attr.id
+ (attr) => attr.id === cond.attr.id,
);
switch (attrInfo?.type) {
@@ -158,7 +158,7 @@ export const TriggerEditPage: FC = () => {
};
const convertActions2ServerFormat = (
- trigger: Schema
+ trigger: Schema,
): TriggerActionUpdate[] => {
if (!entity.value) {
return [];
@@ -166,7 +166,7 @@ export const TriggerEditPage: FC = () => {
return trigger.actions.flatMap((action): TriggerActionUpdate[] => {
const attrInfo = entity.value?.attrs.find(
- (attr) => attr.id === action.attr.id
+ (attr) => attr.id === action.attr.id,
);
switch (attrInfo?.type) {
@@ -254,7 +254,7 @@ export const TriggerEditPage: FC = () => {
setError("conditions", { message: errMsg });
}
},
- [triggerId, entity]
+ [triggerId, entity],
);
const handleCancel = async () => {
@@ -282,7 +282,7 @@ export const TriggerEditPage: FC = () => {
},
{
shouldValidate: true,
- }
+ },
);
}
trigger();
diff --git a/frontend/src/pages/TriggerListPage.test.tsx b/frontend/src/pages/TriggerListPage.test.tsx
index 8761eb9b6..d5442f4bd 100644
--- a/frontend/src/pages/TriggerListPage.test.tsx
+++ b/frontend/src/pages/TriggerListPage.test.tsx
@@ -51,7 +51,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/TriggerListPage.tsx b/frontend/src/pages/TriggerListPage.tsx
index 6c93a4c9f..0465712af 100644
--- a/frontend/src/pages/TriggerListPage.tsx
+++ b/frontend/src/pages/TriggerListPage.tsx
@@ -1,8 +1,8 @@
import {
EntryAttributeTypeTypeEnum,
- TriggerAction,
+ type TriggerAction,
TriggerActionValue,
- TriggerCondition,
+ type TriggerCondition,
} from "@dmm-com/airone-apiclient-typescript-fetch";
import AddIcon from "@mui/icons-material/Add";
import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
@@ -98,7 +98,7 @@ const ElemTriggerCondition: FC<{
component={AironeLink}
to={entryDetailsPath(
cond.refCond?.schema.id ?? 0,
- cond.refCond?.id ?? 0
+ cond.refCond?.id ?? 0,
)}
>
{cond.refCond?.name ?? ""}
@@ -114,7 +114,7 @@ const ElemTriggerCondition: FC<{
component={AironeLink}
to={entryDetailsPath(
cond.refCond?.schema.id ?? 0,
- cond.refCond?.id ?? 0
+ cond.refCond?.id ?? 0,
)}
>
{cond.refCond?.name ?? ""}
@@ -158,7 +158,7 @@ const ElemTriggerActionValue: FC<{
component={AironeLink}
to={entryDetailsPath(
value.refCond?.schema.id ?? 0,
- value.refCond?.id ?? 0
+ value.refCond?.id ?? 0,
)}
>
{value.refCond?.name ?? ""}
@@ -174,7 +174,7 @@ const ElemTriggerActionValue: FC<{
component={AironeLink}
to={entryDetailsPath(
value.refCond?.schema.id ?? 0,
- value.refCond?.id ?? 0
+ value.refCond?.id ?? 0,
)}
>
{value.refCond?.name ?? ""}
diff --git a/frontend/src/pages/UserEditPage.test.tsx b/frontend/src/pages/UserEditPage.test.tsx
index 3d352c682..fe37d2f30 100644
--- a/frontend/src/pages/UserEditPage.test.tsx
+++ b/frontend/src/pages/UserEditPage.test.tsx
@@ -20,7 +20,7 @@ const server = setupServer(
email: "user1@example.com",
is_superuser: false,
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/UserEditPage.tsx b/frontend/src/pages/UserEditPage.tsx
index 26044bcce..28d80a4cf 100644
--- a/frontend/src/pages/UserEditPage.tsx
+++ b/frontend/src/pages/UserEditPage.tsx
@@ -48,7 +48,7 @@ export const UserEditPage: FC = () => {
usePrompt(
isDirty && !isSubmitSuccessful,
- "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?"
+ "編集した内容は失われてしまいますが、このページを離れてもよろしいですか?",
);
const user = useAsyncWithThrow(async () => {
@@ -96,14 +96,14 @@ export const UserEditPage: FC = () => {
user.username,
user.password ?? "",
user.email,
- user.isSuperuser
+ user.isSuperuser,
);
} else {
await aironeApiClient.updateUser(
userId ?? 0,
user.username,
user.email,
- user.isSuperuser
+ user.isSuperuser,
);
}
enqueueSubmitResult(true);
@@ -115,7 +115,7 @@ export const UserEditPage: FC = () => {
(name, message) => {
setError(name, { type: "custom", message: message });
enqueueSubmitResult(false);
- }
+ },
);
} else {
enqueueSubmitResult(false);
diff --git a/frontend/src/pages/UserListPage.test.tsx b/frontend/src/pages/UserListPage.test.tsx
index 9a860f79d..dd697c2aa 100644
--- a/frontend/src/pages/UserListPage.test.tsx
+++ b/frontend/src/pages/UserListPage.test.tsx
@@ -26,7 +26,7 @@ const server = setupServer(
},
],
});
- })
+ }),
);
beforeAll(() => server.listen());
diff --git a/frontend/src/pages/__snapshots__/ACLEditPage.test.tsx.snap b/frontend/src/pages/__snapshots__/ACLEditPage.test.tsx.snap
index 007295c15..44e6290f3 100644
--- a/frontend/src/pages/__snapshots__/ACLEditPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/ACLEditPage.test.tsx.snap
@@ -133,7 +133,6 @@ exports[`should match snapshot 1`] = `
>
@@ -467,7 +462,6 @@ exports[`should match snapshot 1`] = `
>
@@ -493,7 +487,6 @@ exports[`should match snapshot 1`] = `
>
@@ -505,7 +498,6 @@ exports[`should match snapshot 1`] = `
>
@@ -518,7 +510,6 @@ exports[`should match snapshot 1`] = `
@@ -589,7 +580,6 @@ exports[`should match snapshot 1`] = `
diff --git a/frontend/src/pages/__snapshots__/EntityEditPage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntityEditPage.test.tsx.snap
index 109f9f0c7..025587b13 100644
--- a/frontend/src/pages/__snapshots__/EntityEditPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntityEditPage.test.tsx.snap
@@ -134,7 +134,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
@@ -142,7 +141,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
@@ -420,7 +418,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
>
@@ -553,7 +550,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
>
@@ -710,7 +706,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
@@ -718,7 +713,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
@@ -996,7 +990,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
>
@@ -1129,7 +1122,6 @@ exports[`EditEntityPage should match snapshot 1`] = `
>
diff --git a/frontend/src/pages/__snapshots__/EntityListPage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntityListPage.test.tsx.snap
index c17e6401e..b940940cc 100644
--- a/frontend/src/pages/__snapshots__/EntityListPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntityListPage.test.tsx.snap
@@ -82,7 +82,6 @@ exports[`EntityListPage should match snapshot 1`] = `
>
@@ -90,7 +89,6 @@ exports[`EntityListPage should match snapshot 1`] = `
@@ -173,7 +171,6 @@ exports[`EntityListPage should match snapshot 1`] = `
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary css-1nhwi5v-MuiButtonBase-root-MuiButton-root"
data-discover="true"
href="/ui/entities/new"
- id=":r3:"
tabindex="0"
>
@@ -323,7 +318,6 @@ exports[`EntityListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":ra:"
tabindex="0"
type="button"
>
@@ -341,7 +335,6 @@ exports[`EntityListPage should match snapshot 1`] = `
@@ -410,7 +403,6 @@ exports[`EntityListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":re:"
tabindex="0"
type="button"
>
@@ -428,7 +420,6 @@ exports[`EntityListPage should match snapshot 1`] = `
@@ -615,7 +606,6 @@ exports[`EntityListPage should match snapshot 1`] = `
>
@@ -623,7 +613,6 @@ exports[`EntityListPage should match snapshot 1`] = `
@@ -706,7 +695,6 @@ exports[`EntityListPage should match snapshot 1`] = `
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary css-1nhwi5v-MuiButtonBase-root-MuiButton-root"
data-discover="true"
href="/ui/entities/new"
- id=":r3:"
tabindex="0"
>
@@ -856,7 +842,6 @@ exports[`EntityListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":ra:"
tabindex="0"
type="button"
>
@@ -874,7 +859,6 @@ exports[`EntityListPage should match snapshot 1`] = `
@@ -943,7 +927,6 @@ exports[`EntityListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":re:"
tabindex="0"
type="button"
>
@@ -961,7 +944,6 @@ exports[`EntityListPage should match snapshot 1`] = `
diff --git a/frontend/src/pages/__snapshots__/EntryCopyPage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntryCopyPage.test.tsx.snap
index c7668b3d2..466fc3a6a 100644
--- a/frontend/src/pages/__snapshots__/EntryCopyPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntryCopyPage.test.tsx.snap
@@ -166,7 +166,6 @@ exports[`should match snapshot 1`] = `
@@ -174,7 +173,6 @@ exports[`should match snapshot 1`] = `
@@ -462,7 +460,6 @@ vm0006
@@ -470,7 +467,6 @@ vm0006
diff --git a/frontend/src/pages/__snapshots__/EntryEditPage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntryEditPage.test.tsx.snap
index b91c954dc..d7f28b9e4 100644
--- a/frontend/src/pages/__snapshots__/EntryEditPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntryEditPage.test.tsx.snap
@@ -166,7 +166,6 @@ exports[`EntryEditPage should match snapshot 1`] = `
@@ -174,7 +173,6 @@ exports[`EntryEditPage should match snapshot 1`] = `
@@ -479,7 +477,6 @@ exports[`EntryEditPage should match snapshot 1`] = `
@@ -487,7 +484,6 @@ exports[`EntryEditPage should match snapshot 1`] = `
diff --git a/frontend/src/pages/__snapshots__/EntryHistoryListPage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntryHistoryListPage.test.tsx.snap
index 2a48e252d..a83eb254b 100644
--- a/frontend/src/pages/__snapshots__/EntryHistoryListPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntryHistoryListPage.test.tsx.snap
@@ -165,7 +165,6 @@ exports[`should match snapshot 1`] = `
>
@@ -480,7 +479,6 @@ exports[`should match snapshot 1`] = `
>
diff --git a/frontend/src/pages/__snapshots__/EntryListPage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntryListPage.test.tsx.snap
index edf47bf64..fe072d88e 100644
--- a/frontend/src/pages/__snapshots__/EntryListPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntryListPage.test.tsx.snap
@@ -211,7 +211,6 @@ exports[`EntryListPage should match snapshot 1`] = `
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary css-sv12w-MuiButtonBase-root-MuiButton-root"
data-discover="true"
href="/ui/entities/1/entries/new"
- id=":r2:"
tabindex="0"
>
@@ -354,7 +351,6 @@ exports[`EntryListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":r9:"
tabindex="0"
type="button"
>
@@ -372,7 +368,6 @@ exports[`EntryListPage should match snapshot 1`] = `
@@ -434,7 +429,6 @@ exports[`EntryListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":rd:"
tabindex="0"
type="button"
>
@@ -452,7 +446,6 @@ exports[`EntryListPage should match snapshot 1`] = `
@@ -761,7 +754,6 @@ exports[`EntryListPage should match snapshot 1`] = `
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorSecondary css-sv12w-MuiButtonBase-root-MuiButton-root"
data-discover="true"
href="/ui/entities/1/entries/new"
- id=":r2:"
tabindex="0"
>
@@ -904,7 +894,6 @@ exports[`EntryListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":r9:"
tabindex="0"
type="button"
>
@@ -922,7 +911,6 @@ exports[`EntryListPage should match snapshot 1`] = `
@@ -984,7 +972,6 @@ exports[`EntryListPage should match snapshot 1`] = `
aria-label="名前をコピーしました"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
- id=":rd:"
tabindex="0"
type="button"
>
@@ -1002,7 +989,6 @@ exports[`EntryListPage should match snapshot 1`] = `
diff --git a/frontend/src/pages/__snapshots__/EntryRestorePage.test.tsx.snap b/frontend/src/pages/__snapshots__/EntryRestorePage.test.tsx.snap
index a462f54b4..ef5a0312c 100644
--- a/frontend/src/pages/__snapshots__/EntryRestorePage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/EntryRestorePage.test.tsx.snap
@@ -267,7 +267,6 @@ exports[`should match snapshot 1`] = `
>
@@ -328,7 +327,6 @@ exports[`should match snapshot 1`] = `
>
@@ -389,7 +387,6 @@ exports[`should match snapshot 1`] = `
>
@@ -755,7 +752,6 @@ exports[`should match snapshot 1`] = `
>
@@ -816,7 +812,6 @@ exports[`should match snapshot 1`] = `
>
@@ -877,7 +872,6 @@ exports[`should match snapshot 1`] = `
>
diff --git a/frontend/src/pages/__snapshots__/ForbiddenErrorPage.test.tsx.snap b/frontend/src/pages/__snapshots__/ForbiddenErrorPage.test.tsx.snap
index 26f7f79da..f441aea0b 100644
--- a/frontend/src/pages/__snapshots__/ForbiddenErrorPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/ForbiddenErrorPage.test.tsx.snap
@@ -37,7 +37,6 @@ exports[`should match snapshot 1`] = `
>
@@ -80,7 +79,6 @@ exports[`should match snapshot 1`] = `
>
diff --git a/frontend/src/pages/__snapshots__/GroupEditPage.test.tsx.snap b/frontend/src/pages/__snapshots__/GroupEditPage.test.tsx.snap
index 4491ba93b..4731d5cf2 100644
--- a/frontend/src/pages/__snapshots__/GroupEditPage.test.tsx.snap
+++ b/frontend/src/pages/__snapshots__/GroupEditPage.test.tsx.snap
@@ -102,7 +102,6 @@ exports[`EditGroupPage should match snapshot 1`] = `
@@ -110,7 +109,6 @@ exports[`EditGroupPage should match snapshot 1`] = `
@@ -236,7 +234,6 @@ exports[`EditGroupPage should match snapshot 1`] = `
@@ -677,7 +672,6 @@ exports[`EditGroupPage should match snapshot 1`] = `