refactor(app): move route screens out of components

Exclude test and spec files from generated barrels so page imports do not load test modules at runtime.
This commit is contained in:
2026-06-17 14:13:42 +08:00
parent cda76a1651
commit 287affa34a
16 changed files with 53 additions and 47 deletions
-1
View File
@@ -8,4 +8,3 @@ export * from "./splash-content";
export * from "./splash-loading";
export * from "./splash-logo";
export * from "./splash-progress";
export * from "./splash-screen";
+1 -1
View File
@@ -1,4 +1,4 @@
import { SplashScreen } from "@/app/splash/components/splash-screen";
import { SplashScreen } from "@/app/splash/splash-screen";
export default function SplashPage() {
return <SplashScreen />;
@@ -3,18 +3,20 @@
import { useEffect } from "react";
import { useRouter } from "next/navigation";
import { MobileShell } from "@/app/_components/core/mobile-shell";
import { MobileShell } from "@/app/_components/core";
import { useAuthDispatch, useAuthState } from "@/stores/auth/auth-context";
import { useUserDispatch } from "@/stores/user/user-context";
import { AuthStorage } from "@/data/storage/auth/auth_storage";
import { ROUTES } from "@/router/routes";
import { pwaUtil } from "@/utils/pwa";
import { SplashBackground } from "./splash-background";
import { SplashLogo } from "./splash-logo";
import { SplashContent } from "./splash-content";
import { SplashButton } from "./splash-button";
import styles from "./splash-screen.module.css";
import {
SplashBackground,
SplashButton,
SplashContent,
SplashLogo,
} from "./components";
import styles from "./components/splash-screen.module.css";
// 尽量早地缓存 beforeinstallprompt,避免用户停留 splash 时浏览器事件已触发并丢失。
if (typeof window !== "undefined") {