Merge pull request #5776 from menloresearch/fix/download-icon
🐛fix: download icon when left panel close
This commit is contained in:
commit
f083fafcfd
@ -1,7 +1,7 @@
|
||||
@echo off
|
||||
|
||||
set CORTEX_VERSION=1.0.14
|
||||
set ENGINE_VERSION=b5509
|
||||
set ENGINE_VERSION=b5857
|
||||
set ENGINE_DOWNLOAD_URL=https://github.com/menloresearch/llama.cpp/releases/download/%ENGINE_VERSION%/llama-%ENGINE_VERSION%-bin-win
|
||||
set ENGINE_DOWNLOAD_GGML_URL=https://github.com/ggml-org/llama.cpp/releases/download/%ENGINE_VERSION%/llama-%ENGINE_VERSION%-bin-win
|
||||
set CUDA_DOWNLOAD_URL=https://github.com/menloresearch/llama.cpp/releases/download/%ENGINE_VERSION%
|
||||
@ -35,7 +35,7 @@ for %%F in (%SUBFOLDERS%) do (
|
||||
|
||||
@REM Move cu*.dll files
|
||||
for %%D in (.\engines\engines\llama.cpp\%%F\%ENGINE_VERSION%\cu*.dll) do (
|
||||
move "%%D" "%BIN_PATH%"
|
||||
move "%%D" "%BIN_PATH%"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@ -258,7 +258,7 @@ export function DownloadManagement() {
|
||||
<div className="fixed bottom-4 left-4 z-50 size-10 bg-main-view border-2 border-main-view-fg/10 rounded-full shadow-md cursor-pointer flex items-center justify-center">
|
||||
<div className="relative">
|
||||
<IconDownload
|
||||
className="text-left-panel-fg/50 -mt-1"
|
||||
className="text-main-view-fg/50 -mt-1"
|
||||
size={20}
|
||||
/>
|
||||
<div className="bg-primary font-bold size-5 rounded-full absolute -top-4 -right-4 flex items-center justify-center text-primary-fg">
|
||||
|
||||
@ -10,7 +10,6 @@ import { Button } from '@/components/ui/button'
|
||||
import { useToolApproval } from '@/hooks/useToolApproval'
|
||||
import { AlertTriangle } from 'lucide-react'
|
||||
import { useTranslation } from '@/i18n/react-i18next-compat'
|
||||
import { Trans } from 'react-i18next'
|
||||
|
||||
export default function ToolApproval() {
|
||||
const { t } = useTranslation()
|
||||
@ -52,11 +51,8 @@ export default function ToolApproval() {
|
||||
<div>
|
||||
<DialogTitle>{t('tools:toolApproval.title')}</DialogTitle>
|
||||
<DialogDescription className="mt-1 text-main-view-fg/70">
|
||||
<Trans
|
||||
i18nKey="tools:toolApproval.description"
|
||||
values={{ toolName }}
|
||||
components={{ strong: <strong className="font-semibold" /> }}
|
||||
/>
|
||||
{t('tools:toolApproval.description')}{' '}
|
||||
<span className="font-semibold">{toolName}</span>
|
||||
</DialogDescription>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"assistants": "Assistants",
|
||||
"hardware": "Hardware",
|
||||
"mcp-servers": "Mcp Servers",
|
||||
"mcp-servers": "MCP Servers",
|
||||
"local_api_server": "Local API Server",
|
||||
"https_proxy": "HTTPS Proxy",
|
||||
"extensions": "Extensions",
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
{
|
||||
"toolApproval": {
|
||||
"title": "Tool Approval Required",
|
||||
"description": "The assistant wants to use <strong>{{toolName}}</strong>",
|
||||
"securityNotice": "This tool wants to perform an action. Please review and approve.",
|
||||
"description": "The assistant wants to use",
|
||||
"securityNotice": "Malicious tools or conversation content could potentially trick the assistant into attempting harmful actions. Review each tool call carefully before approving.",
|
||||
"deny": "Deny",
|
||||
"allowOnce": "Allow Once",
|
||||
"alwaysAllow": "Always Allow"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"title": "Permintaan Panggilan Alat",
|
||||
"description": "Asisten ingin menggunakan alat: <strong>{{toolName}}</strong>",
|
||||
"securityNotice": "<strong>Pemberitahuan Keamanan:</strong> Alat berbahaya atau konten percakapan berpotensi menipu asisten untuk mencoba tindakan berbahaya. Tinjau setiap panggilan alat dengan cermat sebelum menyetujui.",
|
||||
"securityNotice": "<strong>Pemberitahuan Keamanan:</strong> Alat berbahaya atau konten percakapan dapat menipu asisten untuk mencoba melakukan tindakan yang merugikan. Tinjau setiap permintaan penggunaan alat dengan cermat sebelum menyetujui.",
|
||||
"deny": "Tolak",
|
||||
"allowOnce": "Izinkan Sekali",
|
||||
"alwaysAllow": "Selalu Izinkan",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"assistants": "Trợ lý",
|
||||
"hardware": "Phần cứng",
|
||||
"mcp-servers": "Máy chủ Mcp",
|
||||
"mcp-servers": "Máy chủ MCP",
|
||||
"local_api_server": "Máy chủ API cục bộ",
|
||||
"https_proxy": "Proxy HTTPS",
|
||||
"extensions": "Tiện ích mở rộng",
|
||||
|
||||
@ -5,7 +5,6 @@ import HeaderPage from '@/containers/HeaderPage'
|
||||
import { Switch } from '@/components/ui/switch'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Card, CardItem } from '@/containers/Card'
|
||||
import LanguageSwitcher from '@/containers/LanguageSwitcher'
|
||||
import { useTranslation } from '@/i18n/react-i18next-compat'
|
||||
import { useGeneralSetting } from '@/hooks/useGeneralSetting'
|
||||
import { useAppUpdater } from '@/hooks/useAppUpdater'
|
||||
@ -239,10 +238,10 @@ function General() {
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
<CardItem
|
||||
{/* <CardItem
|
||||
title={t('common:language')}
|
||||
actions={<LanguageSwitcher />}
|
||||
/>
|
||||
/> */}
|
||||
</Card>
|
||||
|
||||
{/* Advanced */}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user