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,15 +1,15 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { apiUrl } from '$lib/server/api';
|
||||
import { apiUrl } from '#lib/server/api';
|
||||
import {
|
||||
getServerToken,
|
||||
getUserFromToken,
|
||||
clearServerTokens,
|
||||
hasRole,
|
||||
roles
|
||||
} from '$lib/utils/auth';
|
||||
import type { ReportListResponse } from '$lib/types/report';
|
||||
import { extractError } from '$lib/utils/misc';
|
||||
} from '#lib/utils/auth';
|
||||
import type { ReportListResponse } from '#lib/types/report';
|
||||
import { extractError } from '#lib/utils/misc';
|
||||
|
||||
function normalizeTarget(value: string | null): 'all' | 'pastes' | 'users' {
|
||||
if (value === 'pastes' || value === 'users') return value;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
import type { PageData } from './$types';
|
||||
import { resolve } from '$app/paths';
|
||||
import { goto } from '$app/navigation';
|
||||
import { reportStatusLabels, reportTargetLabels, reportTypeLabels } from '$lib/types/report';
|
||||
import { tooltip } from '$lib/utils/misc';
|
||||
import { reportStatusLabels, reportTargetLabels, reportTypeLabels } from '#lib/types/report';
|
||||
import { tooltip } from '#lib/utils/misc';
|
||||
import { SvelteURLSearchParams } from 'svelte/reactivity';
|
||||
|
||||
interface Props {
|
||||
|
||||
Reference in New Issue
Block a user