|
|
|
@ -20,6 +20,7 @@ import LogoSite from '@/app/components/base/logo/logo-site'
|
|
|
|
import type { ConversationItem } from '@/models/share'
|
|
|
|
import type { ConversationItem } from '@/models/share'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import { AccessMode } from '@/models/access-control'
|
|
|
|
import { AccessMode } from '@/models/access-control'
|
|
|
|
|
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
|
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
type Props = {
|
|
|
|
isPanel?: boolean
|
|
|
|
isPanel?: boolean
|
|
|
|
@ -47,7 +48,7 @@ const Sidebar = ({ isPanel }: Props) => {
|
|
|
|
isResponding,
|
|
|
|
isResponding,
|
|
|
|
} = useChatWithHistoryContext()
|
|
|
|
} = useChatWithHistoryContext()
|
|
|
|
const isSidebarCollapsed = sidebarCollapseState
|
|
|
|
const isSidebarCollapsed = sidebarCollapseState
|
|
|
|
|
|
|
|
const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)
|
|
|
|
const [showConfirm, setShowConfirm] = useState<ConversationItem | null>(null)
|
|
|
|
const [showConfirm, setShowConfirm] = useState<ConversationItem | null>(null)
|
|
|
|
const [showRename, setShowRename] = useState<ConversationItem | null>(null)
|
|
|
|
const [showRename, setShowRename] = useState<ConversationItem | null>(null)
|
|
|
|
|
|
|
|
|
|
|
|
@ -147,10 +148,9 @@ const Sidebar = ({ isPanel }: Props) => {
|
|
|
|
'flex shrink-0 items-center gap-1.5 px-2',
|
|
|
|
'flex shrink-0 items-center gap-1.5 px-2',
|
|
|
|
)}>
|
|
|
|
)}>
|
|
|
|
<div className='system-2xs-medium-uppercase text-text-tertiary'>{t('share.chat.poweredBy')}</div>
|
|
|
|
<div className='system-2xs-medium-uppercase text-text-tertiary'>{t('share.chat.poweredBy')}</div>
|
|
|
|
{appData?.custom_config?.replace_webapp_logo && (
|
|
|
|
{systemFeatures.branding.enabled ? (
|
|
|
|
<img src={appData?.custom_config?.replace_webapp_logo} alt='logo' className='block h-5 w-auto' />
|
|
|
|
<img src={systemFeatures.branding.login_page_logo} alt='logo' className='block h-5 w-auto' />
|
|
|
|
)}
|
|
|
|
) : (
|
|
|
|
{!appData?.custom_config?.replace_webapp_logo && (
|
|
|
|
|
|
|
|
<LogoSite className='!h-5' />
|
|
|
|
<LogoSite className='!h-5' />
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|