Files
jiang13-forum/frontend/src/components/PageLoader.tsx
freefire 822eef96be 新增 OIDC/SSO、邮件验证码与 Gitea 项目同步,并强化 Feed 与管理后台。
作为 OIDC Provider 对接 Gitea;注册支持邮件验证码/验证码;侧栏同步公开仓库;Feed 分页、文章大纲、标签云与站点品牌设置。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-31 16:58:22 +08:00

21 lines
587 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Spinner } from '@/components/ui/spinner';
import { cn } from '@/lib/utils';
type PageLoaderProps = {
/** 独立全屏路由(登录/注册)占满视口居中 */
fullScreen?: boolean;
};
/** 通用路由懒加载占位;首页请用 FeedPageSkeleton避免非 Feed 页闪出鱼骨骨架 */
export default function PageLoader({ fullScreen = false }: PageLoaderProps) {
return (
<div
className={cn('page-loader', fullScreen && 'page-loader--viewport')}
aria-busy="true"
aria-label="加载中"
>
<Spinner size="lg" />
</div>
);
}