chore: migrate fe 250722
This commit is contained in:
@@ -26,7 +26,7 @@ export interface CreatorProps {
|
||||
|
||||
export const Creator: FC<CreatorProps> = ({ avatar, name, extra }) => (
|
||||
<div className="flex items-center gap-x-[4px] h-[16px] coz-fg-secondary text-[12px] leading-16px">
|
||||
{/* 社区版无多人协作功能,不展示资源所有者信息 */}
|
||||
{/* 开源版无多人协作功能,不展示资源所有者信息 */}
|
||||
{IS_OPEN_SOURCE ? null : (
|
||||
<>
|
||||
<Avatar className="w-[16px] h-[16px] flex-shrink-0" src={avatar} />
|
||||
|
||||
@@ -38,7 +38,7 @@ export const IntelligenceTag: React.FC<IntelligenceTagProps> = ({
|
||||
</Tag>
|
||||
);
|
||||
}
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
if (intelligenceType === IntelligenceType.DouyinAvatarBot) {
|
||||
return (
|
||||
<Tag color="red" size="small" className="w-fit">
|
||||
|
||||
@@ -29,7 +29,7 @@ export enum DevelopCustomTypeStatus {
|
||||
All = 0,
|
||||
Project = 1,
|
||||
Agent = 2,
|
||||
DouyinAvatarBot = 3, // single agent 类型的抖音分身 社区版暂不支持该功能
|
||||
DouyinAvatarBot = 3, // single agent 类型的抖音分身 开源版暂不支持该功能
|
||||
}
|
||||
|
||||
export interface DraftIntelligenceList {
|
||||
|
||||
@@ -39,7 +39,7 @@ export const KnowledgeUploadPage = () => {
|
||||
UnitType.TEXT_DOC) as UnitType;
|
||||
const opt = (locationSearchParams.get('opt') || OptType.ADD) as OptType;
|
||||
const docID = locationSearchParams.get('doc_id') || '';
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
const isDouyinBot =
|
||||
locationSearchParams.get('is_douyin') === 'true' ? true : false;
|
||||
const { dataset_id, space_id } = useParams();
|
||||
|
||||
@@ -75,7 +75,7 @@ export const usePromptConfig: UseEntityConfigHook = ({
|
||||
usePromptConfiguratorModal({
|
||||
spaceId,
|
||||
source: 'resource_library',
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
enableDiff: FLAGS['bot.studio.prompt_diff'],
|
||||
onUpdateSuccess: reloadList,
|
||||
onDiff: ({ libraryId }) => {
|
||||
|
||||
@@ -77,7 +77,7 @@ export const useWorkflowConfig: UseEntityConfigHook = ({
|
||||
>
|
||||
{I18n.t('library_resource_type_workflow')}
|
||||
</Menu.Item>
|
||||
{/* 社区版本暂时不支持对话流 */}
|
||||
{/* 开源版本暂时不支持对话流 */}
|
||||
{!IS_OPEN_SOURCE ? (
|
||||
<Menu.Item
|
||||
data-testid="workspace.library.header.create.chatflow"
|
||||
|
||||
@@ -91,7 +91,7 @@ export const PublishButton = ({
|
||||
intelligenceId: projectId,
|
||||
spaceId,
|
||||
enable: !!(
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
(
|
||||
FLAGS['bot.studio.publish_management'] &&
|
||||
hasPublished &&
|
||||
@@ -186,7 +186,7 @@ export const PublishButton = ({
|
||||
<Divider />
|
||||
</div>
|
||||
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE ? (
|
||||
<div>
|
||||
<div className="coz-fg-secondary font-[500] px-[8px] pt-[4px] pb-0 mb-[2px]">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @file 社区版暂不支持商店渠道绑定,用于未来拓展
|
||||
// @file 开源版暂不支持商店渠道绑定,用于未来拓展
|
||||
import { type MouseEventHandler } from 'react';
|
||||
|
||||
import { useShallow } from 'zustand/react/shallow';
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @file 社区版暂不支持模版渠道绑定,用于未来拓展
|
||||
// @file 开源版暂不支持模版渠道绑定,用于未来拓展
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { type MouseEventHandler, useEffect, useRef, useState } from 'react';
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ export const TemplateConfigForm = forwardRef<
|
||||
// eslint-disable-next-line @coze-arch/max-line-per-function
|
||||
>(({ record, userInfo }, ref) => {
|
||||
const [FLAGS] = useFlags();
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
const customRequest = FLAGS['bot.studio.project_publish_imagex']
|
||||
? uploadCustomRequestImageX
|
||||
: uploadCustomRequest;
|
||||
|
||||
@@ -155,7 +155,7 @@ export function ConnectorAction(props: ConnectorActionProps) {
|
||||
onClick={stopEventPropagation}
|
||||
/>
|
||||
);
|
||||
// 社区版暂不支持商店渠道绑定,用于未来拓展
|
||||
// 开源版暂不支持商店渠道绑定,用于未来拓展
|
||||
case ConnectorBindType.StoreBind:
|
||||
return (
|
||||
<StoreBind
|
||||
@@ -164,7 +164,7 @@ export function ConnectorAction(props: ConnectorActionProps) {
|
||||
onClick={stopEventPropagation}
|
||||
/>
|
||||
);
|
||||
// 社区版暂不支持模板渠道绑定,用于未来拓展
|
||||
// 开源版暂不支持模板渠道绑定,用于未来拓展
|
||||
// bind_type=9 用作扣子第一方渠道的标识,需要按照渠道 ID 展示绑定方式
|
||||
// TODO 后端更新 ConnectorBindType 类型定义
|
||||
case ConnectorBindType.TemplateBind: {
|
||||
|
||||
@@ -172,7 +172,7 @@ export function ConnectorCard({
|
||||
connectorPublishConfig,
|
||||
connectorConfigMap: connectors,
|
||||
});
|
||||
// 社区版暂不支持社交平台渠道,用于未来拓展。
|
||||
// 开源版暂不支持社交平台渠道,用于未来拓展。
|
||||
// 社交渠道未选择“处理消息的对话流”时,需要将整个卡片展示为禁用态
|
||||
const cardDisabled = disabledConfig?.reason === DisabledReason.SocialPlatform;
|
||||
|
||||
@@ -334,7 +334,7 @@ export function ConnectorCard({
|
||||
onClick={stopEventPropagation}
|
||||
/>
|
||||
) : null}
|
||||
{/* 社区版暂不支持MCP服务渠道,用于未来拓展 */}
|
||||
{/* 开源版暂不支持MCP服务渠道,用于未来拓展 */}
|
||||
{connectorInfo.connector_classification ===
|
||||
ConnectorClassification.CozeSpaceExtensionLibrary &&
|
||||
connectorInfo.bind_type === ConnectorBindType.TemplateBind && (
|
||||
|
||||
@@ -64,7 +64,7 @@ export function PublishConnectors() {
|
||||
const { project_id = '' } = useParams<DynamicParams>();
|
||||
|
||||
const {
|
||||
connectorList, // 社区版仅支持API 和 Chat SDK 渠道
|
||||
connectorList, // 开源版仅支持API 和 Chat SDK 渠道
|
||||
connectorUnionMap,
|
||||
monetizeConfig,
|
||||
selectedConnectorIds,
|
||||
@@ -189,7 +189,7 @@ export function PublishConnectors() {
|
||||
))}
|
||||
</ConnectorTabbar>
|
||||
{connectorGroups.map((i, index) => {
|
||||
// 社区版暂不支持社交平台渠道
|
||||
// 开源版暂不支持社交平台渠道
|
||||
const isSocialPlatform =
|
||||
i.type === ConnectorClassification.SocialPlatform;
|
||||
return (
|
||||
@@ -208,7 +208,7 @@ export function PublishConnectors() {
|
||||
closeAnimation(i.type);
|
||||
}}
|
||||
/>
|
||||
{/* 社区版暂不支持社交平台渠道 */}
|
||||
{/* 开源版暂不支持社交平台渠道 */}
|
||||
{isSocialPlatform ? (
|
||||
<SocialPlatformChatflow className="mb-8px" />
|
||||
) : null}
|
||||
|
||||
@@ -44,7 +44,7 @@ export const PublishRecord: FC<{
|
||||
type: IntelligenceType.Project,
|
||||
spaceId,
|
||||
intelligenceId: projectId,
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
enable: FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE,
|
||||
});
|
||||
|
||||
@@ -58,7 +58,7 @@ export const PublishRecord: FC<{
|
||||
<div className="text-[12px] coz-fg-dim leading-[16px]">
|
||||
{I18n.t('project_release_already_released_desc')}
|
||||
</div>
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE ? (
|
||||
<div className="text-[12px] coz-fg-dim leading-[16px]">
|
||||
{I18n.t('release_management_detail1', {
|
||||
|
||||
Reference in New Issue
Block a user