Merge branch 'fix/release_web_yjp' into release/v0.2.4

This commit is contained in:
yujiangping
2026-02-10 15:31:25 +08:00
4 changed files with 11 additions and 5 deletions

View File

@@ -766,6 +766,9 @@ export const en = {
toWorkspace: 'Authorization to workspace',
shareTitle:'Please select the workspace you want to share',
shareNote:'Note: Sharing is not possible when workspace app is closed',
shareSpace:'Manage Sharing',
shareSpaceTitle:'Shared with the following workspaces',
shareSpaceNote: 'Note sharing is turned off, others will no longer have access.',
authorizedPerson:'Authorized person',
chunkList:'Chunk List',
delimiter:'Text paragraph delimiter',

View File

@@ -305,6 +305,9 @@ export const zh = {
toWorkspace: '授权到工作空间',
shareTitle: '请选择要分享的工作空间',
shareNote: '注意:工作空间应用关闭时无法分享',
shareSpace:'管理共享',
shareSpaceTitle:'已共享至以下工作空间',
shareSpaceNote: '注意:关闭共享后对方将无法访问',
authorizedPerson: '授权人',
chunkList: '分块列表',
delimiter: '文本段落分隔符',

View File

@@ -579,7 +579,7 @@ const CreateModal = forwardRef<CreateModalRef, CreateModalRefProps>(({
{currentType === 'Third-party' && (
<>
<Form.Item
name={['parser_config', 'third_party_platform']}
name={['parser_config', '_third_party_platform']}
label={t('knowledgeBase.createForm.platform')}
rules={[{ required: true, message: t('knowledgeBase.createForm.platformRequired') }]}
initialValue="yuque"

View File

@@ -4,7 +4,7 @@
* @Author: yujiangping
* @Date: 2025-11-10 18:52:55
* @LastEditors: yujiangping
* @LastEditTime: 2026-02-03 17:08:00
* @LastEditTime: 2026-02-10 15:18:32
*/
import { forwardRef, useImperativeHandle, useState, useRef } from 'react';
import { Switch } from 'antd';
@@ -93,7 +93,7 @@ const ShareModal = forwardRef<ShareModalRef,ShareModalRefProps>(({ handleShare:
<>
{contextHolder}
<RbModal
title={t('knowledgeBase.toWorkspace')}
title={t('knowledgeBase.shareSpace')}
open={visible}
onCancel={handleClose}
okText={t('knowledgeBase.share')}
@@ -101,8 +101,8 @@ const ShareModal = forwardRef<ShareModalRef,ShareModalRefProps>(({ handleShare:
confirmLoading={loading}
>
<div className='rb:flex rb:flex-col rb:text-left'>
<h4 className='rb:text-sm rb:font-medium rb:text-gray-800'>{t('knowledgeBase.shareTitle')}</h4>
<span className='rb:text-xs rb:text-gray-500'>{t('knowledgeBase.shareNote')}</span>
<h4 className='rb:text-sm rb:font-medium rb:text-gray-800'>{t('knowledgeBase.shareSpaceTitle')}</h4>
<span className='rb:text-xs rb:text-gray-500'>{t('knowledgeBase.shareSpaceNote')}</span>
<div className='rb:flex rb:flex-col rb:text-left rb:gap-4 rb:mt-4 '>
{spaceList.length === 0 && (
<NoData />