mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: use #lib instead of $lib
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { apiUrl } from '$lib/server/api';
|
||||
import { getServerToken, clearServerTokens, roles, getUserFromToken } from '$lib/utils/auth';
|
||||
import type { Report } from '$lib/types/report';
|
||||
import { apiUrl } from '#lib/server/api';
|
||||
import { getServerToken, clearServerTokens, roles, getUserFromToken } from '#lib/utils/auth';
|
||||
import type { Report } from '#lib/types/report';
|
||||
|
||||
export const load: PageServerLoad = async ({ fetch, cookies, params, url, request }) => {
|
||||
const token = getServerToken(cookies);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script lang="ts">
|
||||
import type { PageData } from './$types';
|
||||
import { resolve } from '$app/paths';
|
||||
import { reportStatusLabels, reportTargetLabels, reportTypeLabels } from '$lib/types/report';
|
||||
import { tooltip } from '$lib/utils/misc';
|
||||
import { getToken } from '$lib/utils/auth';
|
||||
import { reportStatusLabels, reportTargetLabels, reportTypeLabels } from '#lib/types/report';
|
||||
import { tooltip } from '#lib/utils/misc';
|
||||
import { getToken } from '#lib/utils/auth';
|
||||
|
||||
interface Props {
|
||||
data: PageData;
|
||||
|
||||
Reference in New Issue
Block a user