clean up
This commit is contained in:
parent
461fed9c60
commit
6360f78774
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en" class="w-full h-full py-[20px] px-[50px] dark">
|
<html lang="en" class="w-full h-full py-[20px] px-[50px] dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
<link rel="icon" href="%sveltekit.assets%/images/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -11,10 +11,10 @@ interface ServerError extends Error {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const handleError: HandleServerError = ({ error, event }) => {
|
export const handleError: HandleServerError = ({ error, event }) => {
|
||||||
Sentry.captureException(error, { extra: { event } });
|
Sentry.captureException(error, { extra: { event } });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
message: 'Uh oh! An unexpected error occurred.',
|
message: 'Uh oh! An unexpected error occurred.',
|
||||||
code: (error as ServerError)?.code ?? '500',
|
code: (error as ServerError)?.code ?? '500',
|
||||||
};
|
};
|
||||||
};
|
};
|
|
@ -27,6 +27,7 @@
|
||||||
type: 'component',
|
type: 'component',
|
||||||
component: modalComponent,
|
component: modalComponent,
|
||||||
response: (data: typeof extraOptions) => {
|
response: (data: typeof extraOptions) => {
|
||||||
|
if (!data) return;
|
||||||
extraOptions = data;
|
extraOptions = data;
|
||||||
onSave();
|
onSave();
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import ToolBox from '$lib/components/ToolBox.svelte';
|
import ToolBox from '$lib/components/ToolBox.svelte';
|
||||||
import { ChevronRight } from 'svelte-tabler';
|
import { ChevronRight } from 'svelte-tabler';
|
||||||
|
|
||||||
console.log($page);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|
|
@ -7,8 +7,6 @@ export const POST: RequestHandler = async ({ params, request }) => {
|
||||||
const { id } = params;
|
const { id } = params;
|
||||||
const { password } = await request.json();
|
const { password } = await request.json();
|
||||||
|
|
||||||
console.log(password);
|
|
||||||
|
|
||||||
const paste = await pastes.findOne({ id });
|
const paste = await pastes.findOne({ id });
|
||||||
|
|
||||||
if (!paste) {
|
if (!paste) {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB |
Loading…
Reference in New Issue