编写v203更新日志

This commit is contained in:
mtvpls
2025-12-17 22:09:09 +08:00
parent 6a12951753
commit 020197201a
6 changed files with 167 additions and 2 deletions
+7
View File
@@ -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'>