docs(frontend): use new doc styles (#11)

* docs: use new doc styles

* docs: remove comment

* docs: remove comment

* docs: remove comment

---------

Co-authored-by: tecvan <tecvan.fe@gmail.com>
This commit is contained in:
tecvan
2025-07-26 12:36:38 +08:00
committed by GitHub
parent d045dea008
commit 9ca1ae506f
49 changed files with 58 additions and 836 deletions

View File

@@ -77,12 +77,12 @@ export const ModelOptionItem: React.FC<OptionItemProps> = ({
const tags: OptionItemTag[] = [];
const shouldShowEndPoint = showEndPointName && endPointName;
// 开源版暂不支持该功能
// 即将支持,敬请期待
const displayName = FLAGS['bot.studio.model_select_switch_end_point_name_pos']
? endPointName || name
: name;
// 开源版暂不支持该功能
// 即将支持,敬请期待
const displayEndPointName = FLAGS[
'bot.studio.model_select_switch_end_point_name_pos'
]

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable max-lines */
/* eslint-disable max-lines-per-function */
@@ -37,15 +37,6 @@ import { useCurrentEnterpriseInfo } from '@coze-foundation/enterprise-store-adap
import { PictureUpload } from '@coze-common/biz-components/picture-upload';
import { logger } from '@coze-arch/logger';
import { I18n } from '@coze-arch/i18n';
import { safeJSONParse } from '@coze-arch/bot-utils';
import { useFlags } from '@coze-arch/bot-flags';
import {
type PrivateLink,
type commonParamSchema,
} from '@coze-arch/bot-api/plugin_develop';
import { FileBizType, IconType } from '@coze-arch/bot-api/developer_api';
import { DeveloperApi, PluginDevelopApi } from '@coze-arch/bot-api';
import { InfoPopover } from '@coze-agent-ide/bot-plugin-tools/infoPopover';
import { IconCozPlus, IconCozTrashCan } from '@coze-arch/coze-design/icons';
import {
Cascader,
@@ -60,6 +51,15 @@ import {
Typography,
withField,
} from '@coze-arch/coze-design';
import { safeJSONParse } from '@coze-arch/bot-utils';
import { useFlags } from '@coze-arch/bot-flags';
import {
type PrivateLink,
type commonParamSchema,
} from '@coze-arch/bot-api/plugin_develop';
import { FileBizType, IconType } from '@coze-arch/bot-api/developer_api';
import { DeveloperApi, PluginDevelopApi } from '@coze-arch/bot-api';
import { InfoPopover } from '@coze-agent-ide/bot-plugin-tools/infoPopover';
import {
findAuthTypeItemV2,
@@ -142,7 +142,6 @@ export const PluginForm: FC<{
{
ready:
compareLevel === UserLevel.Enterprise &&
// 开源版暂不支持该功能
FLAGS['bot.studio.plugin_vpc'] &&
!IS_OPEN_SOURCE,
},
@@ -225,7 +224,6 @@ export const PluginForm: FC<{
if (
editInfo?.meta_info?.private_link_id &&
compareLevel === UserLevel.Enterprise &&
// 开源版暂不支持该功能
FLAGS['bot.studio.plugin_vpc']
) {
setDisableEditUrl(true);
@@ -292,7 +290,6 @@ export const PluginForm: FC<{
return (
<>
{compareLevel === UserLevel.Enterprise &&
// 开源版暂不支持该功能
FLAGS['bot.studio.plugin_vpc'] ? (
<FormSelect
label={{

View File

@@ -443,7 +443,7 @@ export const useGetToolColumns = (props: UseGetToolColumnsProps) => {
visible={record.api_id === showDropdownItem?.api_id}
render={
<Dropdown.Menu className="px-[4px]">
{/* 开源版暂不支持该功能 */}
{/* 即将支持,敬请期待 */}
{FLAGS2['bot.devops.plugin_import_export'] ? (
<Dropdown.Item
disabled={
@@ -459,7 +459,7 @@ export const useGetToolColumns = (props: UseGetToolColumnsProps) => {
{I18n.t('code_snippet')}
</Dropdown.Item>
) : null}
{/* 开源版暂不支持该功能 */}
{/* 即将支持,敬请期待 */}
{FLAGS2['bot.devops.plugin_mockset'] ? (
<Dropdown.Item
className="rounded-[4px]"

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { IntelligenceType } from '@coze-arch/idl/intelligence_api';
import { I18n } from '@coze-arch/i18n';
import { Tag } from '@coze-arch/coze-design';
@@ -38,7 +38,6 @@ export const IntelligenceTag: React.FC<IntelligenceTagProps> = ({
</Tag>
);
}
// 开源版暂不支持该功能
if (intelligenceType === IntelligenceType.DouyinAvatarBot) {
return (
<Tag color="red" size="small" className="w-fit">

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
type IntelligenceData,
type SearchScope,
@@ -29,7 +29,7 @@ export enum DevelopCustomTypeStatus {
All = 0,
Project = 1,
Agent = 2,
DouyinAvatarBot = 3, // single agent 类型的抖音分身 开源版暂不支持该功能
DouyinAvatarBot = 3, // single agent 类型的抖音分身
}
export interface DraftIntelligenceList {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useNavigate, useParams } from 'react-router-dom';
import qs from 'qs';
@@ -39,7 +39,6 @@ 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();

View File

@@ -75,7 +75,7 @@ export const usePromptConfig: UseEntityConfigHook = ({
usePromptConfiguratorModal({
spaceId,
source: 'resource_library',
// 开源版暂不支持该功能
// 即将支持,敬请期待
enableDiff: FLAGS['bot.studio.prompt_diff'],
onUpdateSuccess: reloadList,
onDiff: ({ libraryId }) => {

View File

@@ -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]">

View File

@@ -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;

View File

@@ -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', {