docs: add comments to the src/components directory

This commit is contained in:
zhaoying
2026-02-02 16:14:39 +08:00
parent 9a38e8a4a0
commit a191e32f71
55 changed files with 1417 additions and 375 deletions

View File

@@ -1,11 +1,30 @@
/*
* @Author: ZhaoYing
* @Date: 2026-02-02 15:13:55
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-02 15:52:17
*/
/**
* NoAuthLayout Component
*
* A minimal layout wrapper for public pages that don't require authentication.
* Provides a simple container without navigation UI or authentication checks.
*
* @component
*/
import { Outlet } from 'react-router-dom';
import { type FC } from 'react';
// 基础布局组件,用于展示内容并保留用户信息获取功能
/**
* No-authentication layout component for public pages.
* Renders child routes in a simple full-size container without any auth requirements.
*/
const NoAuthLayout: FC = () => {
return (
<div className="rb:relative rb:h-full rb:w-full">
{/* Render public pages without authentication */}
<Outlet />
</div>
)