Compare commits

..

2 Commits

Author SHA1 Message Date
5da7cfa089 Lib: Migrate to page from $app/state
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 27s
2025-03-15 12:08:18 +01:00
6b3c0716b0 Skeleton: Migrate to page from $app/state 2025-03-15 12:08:12 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<script lang="ts">
import { page } from "$app/stores";
import { page } from "$app/state";
import type { Snippet } from "svelte";
import { popup, type PopupSettings } from "@skeletonlabs/skeleton";
const is_at_path = (path: string): boolean => {
const pathname: string = $page.url.pathname;
const pathname: string = page.url.pathname;
// return pathname === path;
return pathname.endsWith(path);
};

View File

@ -2,7 +2,7 @@
import "../app.css";
import { onDestroy, onMount, type Snippet } from "svelte";
import type { LayoutData } from "./$types";
import { page } from "$app/stores";
import { page } from "$app/state";
import {
Button,
MenuDrawerIcon,
@ -578,7 +578,7 @@
<Button
color="primary"
onclick={data_drawer}
activate={$page.url.pathname.startsWith("/data")}>Data</Button
activate={page.url.pathname.startsWith("/data")}>Data</Button
>
{#if !$pbUser}