Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita18c641

Browse files
committed
Run prettier
1 parent1a94b3a commita18c641

File tree

43 files changed

+161
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+161
-63
lines changed

‎site/src/components/AppLink/AppLink.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ export interface AppLinkProps {
1717
appIcon?:TypesGen.WorkspaceApp["icon"]
1818
}
1919

20-
exportconstAppLink:FC<React.PropsWithChildren<AppLinkProps>>=({ userName, workspaceName, appName, appIcon})=>{
20+
exportconstAppLink:FC<React.PropsWithChildren<AppLinkProps>>=({
21+
userName,
22+
workspaceName,
23+
appName,
24+
appIcon,
25+
})=>{
2126
conststyles=useStyles()
2227
consthref=`/@${userName}/${workspaceName}/apps/${appName}`
2328

‎site/src/components/BorderedMenu/BorderedMenu.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export type BorderedMenuProps = Omit<PopoverProps, "variant"> & {
88
variant?:BorderedMenuVariant
99
}
1010

11-
exportconstBorderedMenu:FC<React.PropsWithChildren<BorderedMenuProps>>=({ children, variant, ...rest})=>{
11+
exportconstBorderedMenu:FC<React.PropsWithChildren<BorderedMenuProps>>=({
12+
children,
13+
variant,
14+
...rest
15+
})=>{
1216
conststyles=useStyles()
1317

1418
return(

‎site/src/components/BuildsTable/BuildsTable.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export interface BuildsTableProps {
3030
className?:string
3131
}
3232

33-
exportconstBuildsTable:FC<React.PropsWithChildren<BuildsTableProps>>=({ builds, className})=>{
33+
exportconstBuildsTable:FC<React.PropsWithChildren<BuildsTableProps>>=({
34+
builds,
35+
className,
36+
})=>{
3437
const{ username,workspace:workspaceName}=useParams()
3538
constisLoading=!builds
3639
consttheme:Theme=useTheme()

‎site/src/components/CodeBlock/CodeBlock.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export interface CodeBlockProps {
99
className?:string
1010
}
1111

12-
exportconstCodeBlock:FC<React.PropsWithChildren<CodeBlockProps>>=({ lines, ctas, className=""})=>{
12+
exportconstCodeBlock:FC<React.PropsWithChildren<CodeBlockProps>>=({
13+
lines,
14+
ctas,
15+
className="",
16+
})=>{
1317
conststyles=useStyles()
1418

1519
return(

‎site/src/components/CodeExample/CodeExample.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export interface CodeExampleProps {
1313
/**
1414
* Component to show single-line code examples, with a copy button
1515
*/
16-
exportconstCodeExample:FC<React.PropsWithChildren<CodeExampleProps>>=({ code, className, buttonClassName})=>{
16+
exportconstCodeExample:FC<React.PropsWithChildren<CodeExampleProps>>=({
17+
code,
18+
className,
19+
buttonClassName,
20+
})=>{
1721
conststyles=useStyles()
1822

1923
return(

‎site/src/components/ConfirmDialog/ConfirmDialog.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { WrapperComponent } from "../../testHelpers/renderHelpers"
55
import{ConfirmDialog,ConfirmDialogProps}from"./ConfirmDialog"
66

77
namespaceHelpers{
8-
exportconstComponent:FC<React.PropsWithChildren<ConfirmDialogProps>>=(props:ConfirmDialogProps)=>{
8+
exportconstComponent:FC<React.PropsWithChildren<ConfirmDialogProps>>=(
9+
props:ConfirmDialogProps,
10+
)=>{
911
return(
1012
<WrapperComponent>
1113
<ConfirmDialog{...props}/>

‎site/src/components/DeleteWorkspaceDialog/DeleteWorkspaceDialog.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ export interface DeleteWorkspaceDialogProps {
1212
handleCancel:()=>void
1313
}
1414

15-
exportconstDeleteWorkspaceDialog:React.FC<React.PropsWithChildren<DeleteWorkspaceDialogProps>>=({
16-
isOpen,
17-
handleCancel,
18-
handleConfirm,
19-
})=>(
15+
exportconstDeleteWorkspaceDialog:React.FC<
16+
React.PropsWithChildren<DeleteWorkspaceDialogProps>
17+
>=({ isOpen, handleCancel, handleConfirm})=>(
2018
<ConfirmDialog
2119
type="delete"
2220
hideCancel={false}

‎site/src/components/Dialog/Dialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface DialogTitleProps {
2222
/**
2323
* Override of Material UI's DialogTitle that allows for a supertitle and background icon
2424
*/
25-
exportconstDialogTitle:React.FC<React.PropsWithChildren<DialogTitleProps>>=({ title,icon:Icon, superTitle})=>{
25+
exportconstDialogTitle:React.FC<DialogTitleProps>=({ title,icon:Icon, superTitle})=>{
2626
conststyles=useTitleStyles()
2727
return(
2828
<MuiDialogTitledisableTypography>
@@ -92,7 +92,7 @@ const typeToColor = (type: ConfirmDialogType): LoadingButtonProps["color"] => {
9292
/**
9393
* Quickly handles most modals actions, some combination of a cancel and confirm button
9494
*/
95-
exportconstDialogActionButtons:React.FC<React.PropsWithChildren<DialogActionButtonsProps>>=({
95+
exportconstDialogActionButtons:React.FC<DialogActionButtonsProps>=({
9696
cancelText="Cancel",
9797
confirmText="Confirm",
9898
confirmLoading=false,
@@ -309,7 +309,7 @@ export type DialogSearchProps = Omit<
309309
* Formats a search bar right below the title of a Dialog. Passes all props
310310
* through to the Material UI OutlinedInput component contained within.
311311
*/
312-
exportconstDialogSearch:React.FC<React.PropsWithChildren<DialogSearchProps>>=(props)=>{
312+
exportconstDialogSearch:React.FC<DialogSearchProps>=(props)=>{
313313
conststyles=useSearchStyles()
314314
return(
315315
<divclassName={styles.root}>
@@ -356,7 +356,7 @@ export type DialogProps = MuiDialogProps
356356
*
357357
* See original component's Material UI documentation here: https://material-ui.com/components/dialogs/
358358
*/
359-
exportconstDialog:React.FC<React.PropsWithChildren<DialogProps>>=(props)=>{
359+
exportconstDialog:React.FC<DialogProps>=(props)=>{
360360
// Wrapped so we can add custom attributes below
361361
return<MuiDialog{...props}/>
362362
}

‎site/src/components/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
importReact,{Component,ReactNode}from"react"
22
import{RuntimeErrorState}from"../RuntimeErrorState/RuntimeErrorState"
33

4-
typeErrorBoundaryProps=Record<string,any>
4+
typeErrorBoundaryProps=React.PropsWithChildren<unknown>
55

66
interfaceErrorBoundaryState{
77
error:Error|null

‎site/src/components/FormCloseButton/FormCloseButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export interface FormCloseButtonProps {
88
onClose:()=>void
99
}
1010

11-
exportconstFormCloseButton:React.FC<React.PropsWithChildren<FormCloseButtonProps>>=({ onClose})=>{
11+
exportconstFormCloseButton:React.FC<React.PropsWithChildren<FormCloseButtonProps>>=({
12+
onClose,
13+
})=>{
1214
conststyles=useStyles()
1315

1416
useEffect(()=>{

‎site/src/components/FormSection/FormSection.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export const useStyles = makeStyles((theme) => ({
3939
},
4040
}))
4141

42-
exportconstFormSection:FC<React.PropsWithChildren<FormSectionProps>>=({ title, description, children})=>{
42+
exportconstFormSection:FC<React.PropsWithChildren<FormSectionProps>>=({
43+
title,
44+
description,
45+
children,
46+
})=>{
4347
conststyles=useStyles()
4448

4549
return(

‎site/src/components/FormTextField/FormTextField.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace Helpers {
1111

1212
exportconstrequiredValidationMsg="required"
1313

14-
exportconstComponent:FC<React.PropsWithChildren<Omit<FormTextFieldProps<FormValues>,"form"|"formFieldName">>>=(
15-
props,
16-
)=>{
14+
exportconstComponent:FC<
15+
React.PropsWithChildren<Omit<FormTextFieldProps<FormValues>,"form"|"formFieldName">>
16+
>=(props)=>{
1717
constform=useFormik<FormValues>({
1818
initialValues:{
1919
name:"",

‎site/src/components/FullPageForm/FullPageForm.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ const useStyles = makeStyles(() => ({
1919
},
2020
}))
2121

22-
exportconstFullPageForm:FC<React.PropsWithChildren<FullPageFormProps>>=({ title, detail, onCancel, children})=>{
22+
exportconstFullPageForm:FC<React.PropsWithChildren<FullPageFormProps>>=({
23+
title,
24+
detail,
25+
onCancel,
26+
children,
27+
})=>{
2328
conststyles=useStyles()
2429
return(
2530
<mainclassName={styles.root}>

‎site/src/components/Margins/Margins.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ interface MarginsProps {
2424
size?:Size
2525
}
2626

27-
exportconstMargins:FC<React.PropsWithChildren<MarginsProps>>=({ children, size="regular"})=>{
27+
exportconstMargins:FC<React.PropsWithChildren<MarginsProps>>=({
28+
children,
29+
size="regular",
30+
})=>{
2831
conststyles=useStyles({maxWidth:widthBySize[size]})
2932
return<divclassName={styles.margins}>{children}</div>
3033
}

‎site/src/components/NavbarView/NavbarView.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export const Language = {
2323
users:"Users",
2424
}
2525

26-
constNavItems:React.FC<React.PropsWithChildren<{className?:string;linkClassName?:string}>>=({ className})=>{
26+
constNavItems:React.FC<
27+
React.PropsWithChildren<{className?:string;linkClassName?:string}>
28+
>=({ className})=>{
2729
conststyles=useStyles()
2830
constlocation=useLocation()
2931

@@ -51,7 +53,10 @@ const NavItems: React.FC<React.PropsWithChildren<{ className?: string; linkClass
5153
)
5254
}
5355

54-
exportconstNavbarView:React.FC<React.PropsWithChildren<NavbarViewProps>>=({ user, onSignOut})=>{
56+
exportconstNavbarView:React.FC<React.PropsWithChildren<NavbarViewProps>>=({
57+
user,
58+
onSignOut,
59+
})=>{
5560
conststyles=useStyles()
5661
const[isDrawerOpen,setIsDrawerOpen]=useState(false)
5762

‎site/src/components/PageHeader/PageHeader.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ export interface PageHeaderProps {
77
className?:string
88
}
99

10-
exportconstPageHeader:React.FC<React.PropsWithChildren<PageHeaderProps>>=({ children, actions, className})=>{
10+
exportconstPageHeader:React.FC<React.PropsWithChildren<PageHeaderProps>>=({
11+
children,
12+
actions,
13+
className,
14+
})=>{
1115
conststyles=useStyles()
1216

1317
return(

‎site/src/components/ParameterInput/ParameterInput.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export interface ParameterInputProps {
1313
onChange:(value:string)=>void
1414
}
1515

16-
exportconstParameterInput:FC<React.PropsWithChildren<ParameterInputProps>>=({ disabled, onChange, schema})=>{
16+
exportconstParameterInput:FC<React.PropsWithChildren<ParameterInputProps>>=({
17+
disabled,
18+
onChange,
19+
schema,
20+
})=>{
1721
conststyles=useStyles()
1822
return(
1923
<divclassName={styles.root}>
@@ -28,7 +32,11 @@ export const ParameterInput: FC<React.PropsWithChildren<ParameterInputProps>> =
2832
)
2933
}
3034

31-
constParameterField:React.FC<React.PropsWithChildren<ParameterInputProps>>=({ disabled, onChange, schema})=>{
35+
constParameterField:React.FC<React.PropsWithChildren<ParameterInputProps>>=({
36+
disabled,
37+
onChange,
38+
schema,
39+
})=>{
3240
if(schema.validation_contains&&schema.validation_contains.length>0){
3341
return(
3442
<RadioGroup

‎site/src/components/PasswordField/PasswordField.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import React, { useCallback, useState } from "react"
88

99
typePasswordFieldProps=Omit<TextFieldProps,"InputProps"|"type">
1010

11-
exportconstPasswordField:React.FC<React.PropsWithChildren<PasswordFieldProps>>=({ variant="outlined", ...rest})=>{
11+
exportconstPasswordField:React.FC<React.PropsWithChildren<PasswordFieldProps>>=({
12+
variant="outlined",
13+
...rest
14+
})=>{
1215
conststyles=useStyles()
1316
const[showPassword,setShowPassword]=useState<boolean>(false)
1417

‎site/src/components/Resources/ResourceAvatar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const iconByResource: Record<string, typeof MemoryIcon> = {
2727

2828
exporttypeResourceAvatarProps={type:string}
2929

30-
exportconstResourceAvatar:React.FC<React.PropsWithChildren<ResourceAvatarProps>>=({ type})=>{
30+
exportconstResourceAvatar:React.FC<ResourceAvatarProps>=({ type})=>{
3131
// this resource can return undefined
3232
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
3333
constIconComponent=iconByResource[type]??HelpIcon

‎site/src/components/RuntimeErrorState/RuntimeErrorState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ const ErrorStateDescription = ({ emailBody }: { emailBody?: string }) => {
5555
{Language.link}
5656
</Link>
5757
</Typography>
58-
);
58+
)
5959
}
6060

6161
/**
6262
* An error UI that is displayed when our error boundary (ErrorBoundary.tsx) is triggered
6363
*/
64-
exportconstRuntimeErrorState:React.FC<React.PropsWithChildren<RuntimeErrorStateProps>>=({ error})=>{
64+
exportconstRuntimeErrorState:React.FC<RuntimeErrorStateProps>=({ error})=>{
6565
conststyles=useStyles()
6666
const[reportState,dispatch]=useReducer(reducer,{ error,mappedStack:null})
6767

‎site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface SecurityFormProps {
4949
initialTouched?:FormikTouched<SecurityFormValues>
5050
}
5151

52-
exportconstSecurityForm:React.FC<React.PropsWithChildren<SecurityFormProps>>=({
52+
exportconstSecurityForm:React.FC<SecurityFormProps>=({
5353
isLoading,
5454
onSubmit,
5555
initialValues,

‎site/src/components/TabPanel/TabPanel.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ export interface TabPanelProps {
1010
menuItems:TabSidebarItem[]
1111
}
1212

13-
exportconstTabPanel:FC<React.PropsWithChildren<TabPanelProps>>=({ children, title, menuItems})=>{
13+
exportconstTabPanel:FC<React.PropsWithChildren<TabPanelProps>>=({
14+
children,
15+
title,
16+
menuItems,
17+
})=>{
1418
conststyles=useStyles()
1519

1620
return(

‎site/src/components/TableCellData/TableCellData.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export const TableCellDataPrimary: React.FC<React.PropsWithChildren<{ highlight?
1919
return<spanclassName={styles.primary}>{children}</span>
2020
}
2121

22-
exportconstTableCellDataSecondary:React.FC<React.PropsWithChildren<unknown>>=({ children})=>{
22+
exportconstTableCellDataSecondary:React.FC<React.PropsWithChildren<unknown>>=({
23+
children,
24+
})=>{
2325
conststyles=useStyles()
2426

2527
return<spanclassName={styles.secondary}>{children}</span>

‎site/src/components/TableCellLink/TableCellLink.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ import { combineClasses } from "../../util/combineClasses"
66

77
// TableCellLink wraps a TableCell filling the entirety with a Link.
88
// This allows table rows to be clickable with browser-behavior like ctrl+click.
9-
exportconstTableCellLink:React.FC<React.PropsWithChildren<TableCellProps&{
10-
to:string
11-
}>>=(props)=>{
9+
exportconstTableCellLink:React.FC<
10+
React.PropsWithChildren<
11+
TableCellProps&{
12+
to:string
13+
}
14+
>
15+
>=(props)=>{
1216
conststyles=useStyles()
1317

1418
return(

‎site/src/components/TableHeaders/TableHeaders.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export const TableHeaderRow: FC<React.PropsWithChildren<unknown>> = ({ children
1313
return<TableRowclassName={styles.root}>{children}</TableRow>
1414
}
1515

16-
exportconstTableHeaders:FC<React.PropsWithChildren<TableHeadersProps>>=({ columns, hasMenu})=>{
16+
exportconstTableHeaders:FC<React.PropsWithChildren<TableHeadersProps>>=({
17+
columns,
18+
hasMenu,
19+
})=>{
1720
return(
1821
<TableHeaderRow>
1922
{columns.map((c,idx)=>(

‎site/src/components/TemplateResourcesTable/TemplateResourcesTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export interface TemplateResourcesProps {
2323
resources:WorkspaceResource[]
2424
}
2525

26-
exportconstTemplateResourcesTable:FC<React.PropsWithChildren<TemplateResourcesProps>>=({ resources})=>{
26+
exportconstTemplateResourcesTable:FC<React.PropsWithChildren<TemplateResourcesProps>>=({
27+
resources,
28+
})=>{
2729
conststyles=useStyles()
2830

2931
return(

‎site/src/components/TemplateStats/TemplateStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface TemplateStatsProps {
1818
activeVersion:TemplateVersion
1919
}
2020

21-
exportconstTemplateStats:FC<React.PropsWithChildren<TemplateStatsProps>>=({ template, activeVersion})=>{
21+
exportconstTemplateStats:FC<TemplateStatsProps>=({ template, activeVersion})=>{
2222
conststyles=useStyles()
2323

2424
return(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp