Minor fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { getChannel, getChannelContent } from '$lib/api/index';
|
||||
import type { ChannelContentVideos, Video } from '$lib/api/model';
|
||||
import { excludeDuplicateFeeds } from '$lib/misc.js';
|
||||
import { channelCacheStore } from '$lib/store.js';
|
||||
import { excludeDuplicateFeeds } from '$lib/misc';
|
||||
import { channelCacheStore } from '$lib/store';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { _ } from '$lib/i18n';
|
||||
import InfiniteLoading, { type InfiniteEvent } from 'svelte-infinite-loading';
|
||||
import ItemsList from '$lib/components/ItemsList.svelte';
|
||||
import type { SearchOptions, SearchResults } from '$lib/api/model.js';
|
||||
import type { SearchOptions, SearchResults } from '$lib/api/model';
|
||||
|
||||
let { data } = $props();
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
import LikesDislikes from '$lib/components/watch/LikesDislikes.svelte';
|
||||
import Comment from '$lib/components/watch/Comment.svelte';
|
||||
import { expandSummery, isYTBackend } from '$lib/misc';
|
||||
import { humanizeSeconds, relativeTimestamp } from '$lib/time.js';
|
||||
import { getWatchDetails } from '$lib/watch.js';
|
||||
import { humanizeSeconds, relativeTimestamp } from '$lib/time';
|
||||
import { getWatchDetails } from '$lib/watch';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let { data = $bindable() } = $props();
|
||||
|
||||
@@ -18,8 +18,8 @@ import { get, type Writable } from 'svelte/store';
|
||||
import { Capacitor } from '@capacitor/core';
|
||||
import { Preferences } from '@capacitor/preferences';
|
||||
import { deserialize } from '@macfja/serializer';
|
||||
import { isYTBackend } from '$lib/misc.js';
|
||||
import { isOwnBackend } from '$lib/shared/index.js';
|
||||
import { isYTBackend } from '$lib/misc';
|
||||
import { isOwnBackend } from '$lib/shared/index';
|
||||
|
||||
export const ssr = false;
|
||||
export const prerender = false;
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { IGetChallengeResponse } from 'youtubei.js';
|
||||
import BG, { buildURL, GOOG_API_KEY, USER_AGENT, type WebPoSignalOutput } from 'bgutils-js';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import z from 'zod';
|
||||
import { isOwnBackend } from '$lib/shared/index.js';
|
||||
import { isOwnBackend } from '$lib/shared/index';
|
||||
|
||||
const zPoTokenGenSchema = z.object({
|
||||
requestKey: z.string(),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { isOwnBackend } from '$lib/shared';
|
||||
import { createUser } from '$lib/server/user.js';
|
||||
import { createUser } from '$lib/server/user';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import z from 'zod';
|
||||
import { setAuthCookie } from '$lib/server/misc.js';
|
||||
import { setAuthCookie } from '$lib/server/misc';
|
||||
import { verifyCaptcha } from '$lib/server/captcha';
|
||||
|
||||
const zUserCreate = z.object({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getUser } from '$lib/server/user.js';
|
||||
import { getUser } from '$lib/server/user';
|
||||
import { error } from '@sveltejs/kit';
|
||||
|
||||
export async function GET({ locals }) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { error, json } from '@sveltejs/kit';
|
||||
import z from 'zod';
|
||||
import { isOwnBackend } from '$lib/shared';
|
||||
import { setAuthCookie } from '$lib/server/misc';
|
||||
import { verifyCaptcha } from '$lib/server/captcha.js';
|
||||
import { verifyCaptcha } from '$lib/server/captcha';
|
||||
|
||||
const zUserLogin = z.object({
|
||||
username: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user