修改资源URL模式,不再存储https://domain 前缀

This commit is contained in:
2025-10-25 12:19:53 +08:00
parent f94ef73518
commit e4339a5b91
27 changed files with 347 additions and 137 deletions
@@ -89,7 +89,7 @@ export function useBackgroundCanvas({
ctx.drawImage(sourceElement, offsetX, offsetY, drawWidth, drawHeight);
};
const intervalId = setInterval(drawMediaToCanvas, 20);
const intervalId = setInterval(drawMediaToCanvas, 34);
return () => {
clearInterval(intervalId);
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from "react";
import type { RefObject } from "react";
import { useRouter } from "next/navigation";
import type { ImageData, LoopMode, Neighbors } from "../types";
import type { ImageData, LoopMode, Neighbors } from "../types.ts";
interface UseImageCarouselProps {
images: ImageData["images"];
+1 -1
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef } from "react";
import type { RefObject } from "react";
import { useRouter } from "next/navigation";
import type { Neighbors } from "../types";
import type { Neighbors } from "../types.ts";
interface UseNavigationProps {
neighbors: Neighbors;
+1 -1
View File
@@ -1,5 +1,5 @@
import { useEffect, useState } from "react";
import type { LoopMode, ObjectFit } from "../types";
import type { LoopMode, ObjectFit } from "../types.ts";
import { getNumberFromStorage, getStringFromStorage, saveToStorage } from "../utils";
export function usePlayerState() {
+1 -1
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef } from "react";
import type { RefObject } from "react";
import { useRouter } from "next/navigation";
import type { LoopMode, Neighbors } from "../types";
import type { LoopMode, Neighbors } from "../types.ts";
interface UseVideoPlayerProps {
awemeId: string;