用户组增加权限控制

This commit is contained in:
mtvpls
2026-04-22 16:22:17 +08:00
parent 2734de0c85
commit 0916e4ff08
61 changed files with 617 additions and 165 deletions
+21 -10
View File
@@ -148,6 +148,7 @@ function PlayPageClient() {
// 网盘搜索弹窗状态
const [showPansouDialog, setShowPansouDialog] = useState(false);
const [netdiskSearchEnabled, setNetdiskSearchEnabled] = useState(false);
// AI问片状态
const [showAIChat, setShowAIChat] = useState(false);
@@ -218,6 +219,14 @@ function PlayPageClient() {
}
}, []);
useEffect(() => {
if (typeof window !== 'undefined') {
setNetdiskSearchEnabled(
!!(window as any).RUNTIME_CONFIG?.NETDISK_SEARCH_ENABLED
);
}
}, []);
// 网页全屏状态 - 控制导航栏的显示隐藏
const [isWebFullscreen, setIsWebFullscreen] = useState(false);
// 原生全屏状态
@@ -9503,16 +9512,18 @@ function PlayPageClient() {
<FavoriteIcon filled={favorited} />
</button>
{/* 网盘搜索按钮 */}
<button
onClick={(e) => {
e.stopPropagation();
openDrawer('pansou');
}}
className='flex-shrink-0 hover:opacity-80 transition-opacity'
title='搜索网盘资源'
>
<Cloud className='h-6 w-6 text-gray-700 dark:text-gray-300' />
</button>
{netdiskSearchEnabled && (
<button
onClick={(e) => {
e.stopPropagation();
openDrawer('pansou');
}}
className='flex-shrink-0 hover:opacity-80 transition-opacity'
title='搜索网盘资源'
>
<Cloud className='h-6 w-6 text-gray-700 dark:text-gray-300' />
</button>
)}
{/* AI问片按钮 */}
{aiEnabled && detail && (
<button