mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
fix: formatting
This commit is contained in:
parent
acf6a8e456
commit
16d19367ef
4 changed files with 21 additions and 21 deletions
|
|
@ -12,7 +12,7 @@ export const handleFetch: HandleFetch = async ({ request, fetch, event }) => {
|
||||||
|
|
||||||
const url = new URL(request.url);
|
const url = new URL(request.url);
|
||||||
|
|
||||||
url.protocol = "http:";
|
url.protocol = 'http:';
|
||||||
|
|
||||||
url.host = process.env.PORTFOLIO_API_HOST ?? '127.0.0.1:8000';
|
url.host = process.env.PORTFOLIO_API_HOST ?? '127.0.0.1:8000';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{#each candidates as candidate}
|
{#each candidates as candidate}
|
||||||
<tr class="border-b bg-white hover:cursor-pointer">
|
<tr class="border-b bg-white hover:cursor-pointer">
|
||||||
<td class="text-gray-900 hover:text-sspsBlue hover:font-bold"
|
<td class="hover:text-sspsBlue text-gray-900 hover:font-bold"
|
||||||
><a
|
><a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
|
|
|
||||||
|
|
@ -122,15 +122,15 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
type FormErrorType = {
|
type FormErrorType = {
|
||||||
[K in keyof typeof formInitialValues]: typeof formInitialValues[K] extends Record<
|
[K in keyof typeof formInitialValues]: (typeof formInitialValues)[K] extends Record<
|
||||||
string,
|
string,
|
||||||
unknown
|
unknown
|
||||||
>
|
>
|
||||||
? {
|
? {
|
||||||
[K2 in keyof typeof formInitialValues[K]]: string;
|
[K2 in keyof (typeof formInitialValues)[K]]: string;
|
||||||
}
|
}
|
||||||
: typeof formInitialValues[K] extends Array<Record<string, unknown>>
|
: (typeof formInitialValues)[K] extends Array<Record<string, unknown>>
|
||||||
? Array<{ [K3 in keyof typeof formInitialValues[K][number]]: string }>
|
? Array<{ [K3 in keyof (typeof formInitialValues)[K][number]]: string }>
|
||||||
: string;
|
: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -207,7 +207,7 @@
|
||||||
'--toastBackground': '#b91c1c',
|
'--toastBackground': '#b91c1c',
|
||||||
'--toastBarBackground': '#7f1d1d'
|
'--toastBarBackground': '#7f1d1d'
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
throw new Error('Rodné číslo neodpovídá datumu narození');
|
throw new Error('Rodné číslo neodpovídá datumu narození');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -340,7 +340,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SplitLayout>
|
<SplitLayout>
|
||||||
<SvelteToast></SvelteToast>
|
<SvelteToast />
|
||||||
<div class="form relative">
|
<div class="form relative">
|
||||||
<div class="bottom-3/12 absolute flex w-full flex-col md:h-auto">
|
<div class="bottom-3/12 absolute flex w-full flex-col md:h-auto">
|
||||||
<div class="<md:h-24 <md:w-24 mb-4 h-32 w-32 self-center">
|
<div class="<md:h-24 <md:w-24 mb-4 h-32 w-32 self-center">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue