Skip to content

Commit 74a1f68

Browse files
committed
pnpm run format
1 parent e7da311 commit 74a1f68

3 files changed

Lines changed: 22 additions & 15 deletions

File tree

src/routes/(authenticated)/settings/api-tokens/new/+page.svelte

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@
105105
return;
106106
}
107107
108-
const redirectUriReplaced = (windowQueryParams as QueryParamsType).redirectUri.replace('%', tokenSecret);;
108+
const redirectUriReplaced = (windowQueryParams as QueryParamsType).redirectUri.replace(
109+
'%',
110+
tokenSecret
111+
);
109112
110113
console.log('Redirecting to:', redirectUriReplaced);
111114
window.location.href = redirectUriReplaced;
@@ -151,7 +154,12 @@
151154
>
152155
</Card.Content>
153156
<Card.Footer class="flex justify-end space-x-2">
154-
<Button class="m-w-16" onclick={allowRequest} disabled={creatingToken && !tokenSecret} color="yellow">
157+
<Button
158+
class="m-w-16"
159+
onclick={allowRequest}
160+
disabled={creatingToken && !tokenSecret}
161+
color="yellow"
162+
>
155163
{#if tokenSecret}
156164
<span>Open Again</span>
157165
{:else if creatingToken}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { PermissionType } from "$lib/api/internal/v1";
1+
import type { PermissionType } from '$lib/api/internal/v1';
22

33
export type QueryParamsType = {
4-
name: string;
5-
redirectUri: string;
6-
permissions: PermissionType[];
7-
}
4+
name: string;
5+
redirectUri: string;
6+
permissions: PermissionType[];
7+
};

src/routes/t/+server.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import type { RequestHandler } from './$types';
22

33
export const GET: RequestHandler = ({ url }) => {
4-
const redirectUrl = url.origin + '/settings/api-tokens/new?' + url.searchParams.toString();
5-
return new Response(String('Redirecting...'), {
6-
status: 308,
7-
headers: {
8-
'Location': redirectUrl
9-
}
10-
});
4+
const redirectUrl = url.origin + '/settings/api-tokens/new?' + url.searchParams.toString();
5+
return new Response(String('Redirecting...'), {
6+
status: 308,
7+
headers: {
8+
Location: redirectUrl,
9+
},
10+
});
1111
};
12-

0 commit comments

Comments
 (0)