Skip to content

Commit dfbedc6

Browse files
committed
fmt
1 parent d681457 commit dfbedc6

File tree

45 files changed

+2654
-20
lines changed

Some content is hidden

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

45 files changed

+2654
-20
lines changed

site/e2e/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ type RecursivePartial<T> = {
381381
[P in keyof T]?: T[P] extends (infer U)[]
382382
? RecursivePartial<U>[]
383383
: T[P] extends object | undefined
384-
? RecursivePartial<T[P]>
385-
: T[P];
384+
? RecursivePartial<T[P]>
385+
: T[P];
386386
};
387387

388388
interface EchoProvisionerResponses {

site/src/api/api.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,8 @@ export const updateUserPassword = async (
764764
axios.put(`/api/v2/users/${userId}/password`, updatePassword);
765765

766766
export const getRoles = async (): Promise<Array<TypesGen.AssignableRoles>> => {
767-
const response = await axios.get<Array<TypesGen.AssignableRoles>>(
768-
`/api/v2/users/roles`,
769-
);
767+
const response =
768+
await axios.get<Array<TypesGen.AssignableRoles>>(`/api/v2/users/roles`);
770769
return response.data;
771770
};
772771

@@ -1094,9 +1093,10 @@ export const getFile = async (fileId: string): Promise<ArrayBuffer> => {
10941093
export const getWorkspaceProxyRegions = async (): Promise<
10951094
TypesGen.RegionsResponse<TypesGen.Region>
10961095
> => {
1097-
const response = await axios.get<TypesGen.RegionsResponse<TypesGen.Region>>(
1098-
`/api/v2/regions`,
1099-
);
1096+
const response =
1097+
await axios.get<TypesGen.RegionsResponse<TypesGen.Region>>(
1098+
`/api/v2/regions`,
1099+
);
11001100
return response.data;
11011101
};
11021102

@@ -1277,9 +1277,8 @@ export const updateWorkspace = async (
12771277
getWorkspaceBuildParameters(workspace.latest_build.id),
12781278
]);
12791279
const activeVersionId = template.active_version_id;
1280-
const templateParameters = await getTemplateVersionRichParameters(
1281-
activeVersionId,
1282-
);
1280+
const templateParameters =
1281+
await getTemplateVersionRichParameters(activeVersionId);
12831282
const missingParameters = getMissingParameters(
12841283
oldBuildParameters,
12851284
newBuildParameters,

site/src/api/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ export const getErrorDetail = (error: unknown): string | undefined | null =>
9292
isApiError(error)
9393
? error.response.data.detail
9494
: error instanceof Error
95-
? `Please check the developer console for more details.`
96-
: null;
95+
? `Please check the developer console for more details.`
96+
: null;

site/src/pages/CreateTemplatePage/VariableInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ const VariableField: React.FC<VariableInputProps> = ({
102102
variable.type === "number"
103103
? "number"
104104
: variable.sensitive
105-
? "password"
106-
: "string"
105+
? "password"
106+
: "string"
107107
}
108108
/>
109109
);

site/src/pages/TemplateSettingsPage/TemplateVariablesPage/TemplateVariableField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export const TemplateVariableField: FC<TemplateVariableFieldProps> = ({
5959
templateVersionVariable.type === "number"
6060
? "number"
6161
: templateVersionVariable.sensitive
62-
? "password"
63-
: "string"
62+
? "password"
63+
: "string"
6464
}
6565
disabled={disabled}
6666
autoFocus

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ export const TemplateVersionEditorPage: FC = () => {
121121
tarFile,
122122
newFileTree,
123123
);
124-
const serverFile = await uploadFileMutation.mutateAsync(
125-
newVersionFile,
126-
);
124+
const serverFile =
125+
await uploadFileMutation.mutateAsync(newVersionFile);
127126
const newVersion = await createTemplateVersionMutation.mutateAsync({
128127
provisioner: "terraform",
129128
storage_method: "file",
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// This file was automatically generated. Edits will be overwritten
2+
3+
export interface Typegen0 {
4+
"@@xstate/typegen": true;
5+
internalEvents: {
6+
"done.invoke.getAppearance": {
7+
type: "done.invoke.getAppearance";
8+
data: unknown;
9+
__tip: "See the XState TS docs to learn how to strongly type this.";
10+
};
11+
"done.invoke.setAppearance": {
12+
type: "done.invoke.setAppearance";
13+
data: unknown;
14+
__tip: "See the XState TS docs to learn how to strongly type this.";
15+
};
16+
"error.platform.getAppearance": {
17+
type: "error.platform.getAppearance";
18+
data: unknown;
19+
};
20+
"error.platform.setAppearance": {
21+
type: "error.platform.setAppearance";
22+
data: unknown;
23+
};
24+
"xstate.init": { type: "xstate.init" };
25+
};
26+
invokeSrcNameMap: {
27+
getAppearance: "done.invoke.getAppearance";
28+
setAppearance: "done.invoke.setAppearance";
29+
};
30+
missingImplementations: {
31+
actions: never;
32+
delays: never;
33+
guards: never;
34+
services: never;
35+
};
36+
eventsCausingActions: {
37+
assignAppearance: "done.invoke.getAppearance" | "done.invoke.setAppearance";
38+
assignGetAppearanceError: "error.platform.getAppearance";
39+
assignPreviewAppearance: "SET_PREVIEW_APPEARANCE";
40+
clearGetAppearanceError: "SET_PREVIEW_APPEARANCE" | "xstate.init";
41+
notifyUpdateAppearanceSuccess: "done.invoke.setAppearance";
42+
};
43+
eventsCausingDelays: {};
44+
eventsCausingGuards: {};
45+
eventsCausingServices: {
46+
getAppearance: "xstate.init";
47+
setAppearance: "SAVE_APPEARANCE";
48+
};
49+
matchesStates: "gettingAppearance" | "idle" | "savingAppearance";
50+
tags: never;
51+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// This file was automatically generated. Edits will be overwritten
2+
3+
export interface Typegen0 {
4+
"@@xstate/typegen": true;
5+
internalEvents: {
6+
"done.invoke.authMethods.gettingAuthMethods:invocation[0]": {
7+
type: "done.invoke.authMethods.gettingAuthMethods:invocation[0]";
8+
data: unknown;
9+
__tip: "See the XState TS docs to learn how to strongly type this.";
10+
};
11+
"error.platform.authMethods.gettingAuthMethods:invocation[0]": {
12+
type: "error.platform.authMethods.gettingAuthMethods:invocation[0]";
13+
data: unknown;
14+
};
15+
"xstate.init": { type: "xstate.init" };
16+
};
17+
invokeSrcNameMap: {
18+
getAuthMethods: "done.invoke.authMethods.gettingAuthMethods:invocation[0]";
19+
};
20+
missingImplementations: {
21+
actions: never;
22+
delays: never;
23+
guards: never;
24+
services: never;
25+
};
26+
eventsCausingActions: {
27+
assignAuthMethods: "done.invoke.authMethods.gettingAuthMethods:invocation[0]";
28+
setError: "error.platform.authMethods.gettingAuthMethods:invocation[0]";
29+
};
30+
eventsCausingDelays: {};
31+
eventsCausingGuards: {};
32+
eventsCausingServices: {
33+
getAuthMethods: "xstate.init";
34+
};
35+
matchesStates: "gettingAuthMethods" | "idle";
36+
tags: never;
37+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// This file was automatically generated. Edits will be overwritten
2+
3+
export interface Typegen0 {
4+
"@@xstate/typegen": true;
5+
internalEvents: {
6+
"done.invoke.authState.loadingInitialAuthData:invocation[0]": {
7+
type: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
8+
data: unknown;
9+
__tip: "See the XState TS docs to learn how to strongly type this.";
10+
};
11+
"done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]": {
12+
type: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
13+
data: unknown;
14+
__tip: "See the XState TS docs to learn how to strongly type this.";
15+
};
16+
"done.invoke.signIn": {
17+
type: "done.invoke.signIn";
18+
data: unknown;
19+
__tip: "See the XState TS docs to learn how to strongly type this.";
20+
};
21+
"done.invoke.signOut": {
22+
type: "done.invoke.signOut";
23+
data: unknown;
24+
__tip: "See the XState TS docs to learn how to strongly type this.";
25+
};
26+
"error.platform.authState.loadingInitialAuthData:invocation[0]": {
27+
type: "error.platform.authState.loadingInitialAuthData:invocation[0]";
28+
data: unknown;
29+
};
30+
"error.platform.authState.signedIn.profile.updatingProfile:invocation[0]": {
31+
type: "error.platform.authState.signedIn.profile.updatingProfile:invocation[0]";
32+
data: unknown;
33+
};
34+
"error.platform.signIn": { type: "error.platform.signIn"; data: unknown };
35+
"error.platform.signOut": { type: "error.platform.signOut"; data: unknown };
36+
"xstate.init": { type: "xstate.init" };
37+
};
38+
invokeSrcNameMap: {
39+
loadInitialAuthData: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
40+
signIn: "done.invoke.signIn";
41+
signOut: "done.invoke.signOut";
42+
updateProfile: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
43+
};
44+
missingImplementations: {
45+
actions: never;
46+
delays: never;
47+
guards: never;
48+
services: never;
49+
};
50+
eventsCausingActions: {
51+
assignData:
52+
| "done.invoke.authState.loadingInitialAuthData:invocation[0]"
53+
| "done.invoke.signIn";
54+
assignError:
55+
| "error.platform.authState.loadingInitialAuthData:invocation[0]"
56+
| "error.platform.signIn"
57+
| "error.platform.signOut";
58+
assignUpdateProfileError: "error.platform.authState.signedIn.profile.updatingProfile:invocation[0]";
59+
clearData: "done.invoke.signOut";
60+
clearError:
61+
| "SIGN_IN"
62+
| "done.invoke.authState.loadingInitialAuthData:invocation[0]"
63+
| "done.invoke.signOut";
64+
clearUpdateProfileError: "UPDATE_PROFILE";
65+
notifySuccessProfileUpdate: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
66+
redirect: "done.invoke.signOut";
67+
updateUser: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
68+
};
69+
eventsCausingDelays: {};
70+
eventsCausingGuards: {
71+
hasRedirectUrl: "done.invoke.signOut";
72+
isAuthenticated: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
73+
needSetup: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
74+
};
75+
eventsCausingServices: {
76+
loadInitialAuthData: "xstate.init";
77+
signIn: "SIGN_IN";
78+
signOut: "SIGN_OUT";
79+
updateProfile: "UPDATE_PROFILE";
80+
};
81+
matchesStates:
82+
| "configuringTheFirstUser"
83+
| "loadingInitialAuthData"
84+
| "signedIn"
85+
| "signedIn.profile"
86+
| "signedIn.profile.idle"
87+
| "signedIn.profile.idle.error"
88+
| "signedIn.profile.idle.noError"
89+
| "signedIn.profile.updatingProfile"
90+
| "signedOut"
91+
| "signingIn"
92+
| "signingOut"
93+
| {
94+
signedIn?:
95+
| "profile"
96+
| {
97+
profile?:
98+
| "idle"
99+
| "updatingProfile"
100+
| { idle?: "error" | "noError" };
101+
};
102+
};
103+
tags: never;
104+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// This file was automatically generated. Edits will be overwritten
2+
3+
export interface Typegen0 {
4+
"@@xstate/typegen": true;
5+
internalEvents: {
6+
"done.invoke.getBuildInfo": {
7+
type: "done.invoke.getBuildInfo";
8+
data: unknown;
9+
__tip: "See the XState TS docs to learn how to strongly type this.";
10+
};
11+
"error.platform.getBuildInfo": {
12+
type: "error.platform.getBuildInfo";
13+
data: unknown;
14+
};
15+
"xstate.init": { type: "xstate.init" };
16+
};
17+
invokeSrcNameMap: {
18+
getBuildInfo: "done.invoke.getBuildInfo";
19+
};
20+
missingImplementations: {
21+
actions: never;
22+
delays: never;
23+
guards: never;
24+
services: never;
25+
};
26+
eventsCausingActions: {
27+
assignBuildInfo: "done.invoke.getBuildInfo";
28+
assignGetBuildInfoError: "error.platform.getBuildInfo";
29+
clearBuildInfo: "error.platform.getBuildInfo";
30+
clearGetBuildInfoError: "done.invoke.getBuildInfo";
31+
};
32+
eventsCausingDelays: {};
33+
eventsCausingGuards: {};
34+
eventsCausingServices: {
35+
getBuildInfo: "xstate.init";
36+
};
37+
matchesStates: "failure" | "gettingBuildInfo" | "success";
38+
tags: never;
39+
}

0 commit comments

Comments
 (0)