编写v203更新日志
This commit is contained in:
@@ -27,6 +27,7 @@ import PageLayout from '@/components/PageLayout';
|
||||
import ScrollableRow from '@/components/ScrollableRow';
|
||||
import { useSite } from '@/components/SiteProvider';
|
||||
import VideoCard from '@/components/VideoCard';
|
||||
import HttpWarningDialog from '@/components/HttpWarningDialog';
|
||||
|
||||
function HomeClient() {
|
||||
const [activeTab, setActiveTab] = useState<'home' | 'favorites'>('home');
|
||||
@@ -41,6 +42,7 @@ function HomeClient() {
|
||||
const { announcement } = useSite();
|
||||
|
||||
const [showAnnouncement, setShowAnnouncement] = useState(false);
|
||||
const [showHttpWarning, setShowHttpWarning] = useState(true);
|
||||
|
||||
// 检查公告弹窗状态
|
||||
useEffect(() => {
|
||||
@@ -507,6 +509,11 @@ function HomeClient() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* HTTP 环境警告弹窗 */}
|
||||
{showHttpWarning && (
|
||||
<HttpWarningDialog onClose={() => setShowHttpWarning(false)} />
|
||||
)}
|
||||
|
||||
{/* 公告弹窗 */}
|
||||
{showAnnouncement && (
|
||||
<div className='fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4'>
|
||||
|
||||
Reference in New Issue
Block a user