mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Added debug statements
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
|
import { logger } from "$lib/server/logger.js";
|
||||||
|
|
||||||
export const navigation = {
|
export const navigation = {
|
||||||
toHome: () => goto("/"),
|
toHome: () => goto("/"),
|
||||||
toAbout: () => goto("/about"),
|
toAbout: () => goto("/about"),
|
||||||
toContact: () => goto("/contact"),
|
toContact: () => goto("/contact"),
|
||||||
toRepository: () => goto("/repo"),
|
toRepository: () => {
|
||||||
|
logger.debug("Entering '/lib/navigation.js'.toRepository");
|
||||||
|
goto("/repo");
|
||||||
|
logger.debug("Exiting '/lib/navigation.js'.toRepository");
|
||||||
|
},
|
||||||
to404: () => {
|
to404: () => {
|
||||||
throw error(404, 'Page not found');
|
throw error(404, 'Page not found');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import { logger } from "$lib/server/logger.js";
|
||||||
|
|
||||||
function navigateToRepo() {
|
function navigateToRepo() {
|
||||||
|
logger.debug("Entering '/repo/+page.svelte'.navigateToRepo");
|
||||||
window.location.href = "https://am-d-model.eu/repo";
|
window.location.href = "https://am-d-model.eu/repo";
|
||||||
|
logger.debug("Exiting '/repo/+page.svelte'.navigateToRepo");
|
||||||
}
|
}
|
||||||
|
|
||||||
navigateToRepo();
|
navigateToRepo();
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
|
import { logger } from "$lib/server/logger.js";
|
||||||
import { redirect } from '@sveltejs/kit';
|
import { redirect } from '@sveltejs/kit';
|
||||||
|
|
||||||
export function GET() {
|
export function GET() {
|
||||||
|
logger.debug("Entering '/repo/+server.js'.GET");
|
||||||
throw redirect(302, "https://localhost/repo");
|
throw redirect(302, "https://localhost/repo");
|
||||||
|
logger.debug("Exiting '/repo/+server.js'.GET");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user