docs(frontend): use new doc styles (#17)
* docs: use new doc styles * docs: use new doc styles * docs: use new doc styles
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
@@ -36,7 +36,7 @@ const Sql = () => {
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
{/* The community version does not currently support the AI-generated SQL function for future expansion */}
|
||||
{/* will support soon */}
|
||||
{!readonly && !IS_OPEN_SOURCE ? (
|
||||
<AutoGenerate
|
||||
className={styles['auto-generate']}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { INTENT_NODE_MODE } from '@coze-workflow/nodes';
|
||||
@@ -22,7 +22,7 @@ import { I18n } from '@coze-arch/i18n';
|
||||
import { INTENT_MODE } from '@/node-registries/intent/constants';
|
||||
import { RadioSetterField } from '@/node-registries/common/fields';
|
||||
export default function ModeRadio() {
|
||||
// The community version does not support the fast mode of intent recognition for future expansion
|
||||
// will support soon
|
||||
if (IS_OPEN_SOURCE) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { get, isNil, omit } from 'lodash-es';
|
||||
import { type NodeFormContext } from '@flowgram-adapter/free-layout-editor';
|
||||
import { variableUtils } from '@coze-workflow/variable';
|
||||
@@ -54,7 +54,7 @@ export const transformOnInit = (
|
||||
const inputParameters = get(inputs, 'inputParameters', []);
|
||||
|
||||
// - If it is a new node, the default is fast mode, otherwise it is determined according to the backend return value (if there is no backend mode field, it means it is historical data, then it is standard mode)
|
||||
// - The community version does not support the fast mode of intent recognition for future expansion
|
||||
// - will support soon
|
||||
const intentModeInInit =
|
||||
isNewCreateInInit && !IS_OPEN_SOURCE
|
||||
? INTENT_NODE_MODE.MINIMAL
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { omit, isUndefined } from 'lodash-es';
|
||||
@@ -45,7 +45,7 @@ export const transformOnInit = (
|
||||
|
||||
let trigger;
|
||||
|
||||
// The community version does not support the project trigger feature, for future expansion
|
||||
// will support soon
|
||||
if (projectId && !IS_OPEN_SOURCE) {
|
||||
const triggerService =
|
||||
context.node.getService<TriggerService>(TriggerService);
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { TriggerForm } from '@coze-workflow/nodes';
|
||||
import { FILE_TYPES, ViewVariableType } from '@coze-workflow/base';
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { useFlags } from '@coze-arch/bot-flags';
|
||||
import { Switch } from '@coze-arch/coze-design';
|
||||
import { useFlags } from '@coze-arch/bot-flags';
|
||||
|
||||
import { withNodeConfigForm } from '@/node-registries/common/hocs';
|
||||
import { useGlobalState } from '@/hooks';
|
||||
@@ -41,7 +41,6 @@ export const FormRender = withNodeConfigForm(() => {
|
||||
|
||||
let hiddenTypes = isBindDouyin ? FILE_TYPES : [];
|
||||
|
||||
// The community version does not support the Voice feature, for future expansion
|
||||
if (IS_OPEN_SOURCE) {
|
||||
hiddenTypes = [ViewVariableType.Voice, ViewVariableType.ArrayVoice];
|
||||
}
|
||||
@@ -71,7 +70,7 @@ export const FormRender = withNodeConfigForm(() => {
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{/* The community version does not support the project trigger feature, for future expansion */}
|
||||
{/* will support soon */}
|
||||
{(projectId || IS_BOT_OP) && !IS_OPEN_SOURCE ? (
|
||||
<RadioSetterField
|
||||
name={'trigger.tab'}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
DEFAULT_NODE_META_PATH,
|
||||
DEFAULT_OUTPUTS_PATH,
|
||||
@@ -39,7 +39,7 @@ export const START_NODE_REGISTRY: WorkflowNodeRegistry<NodeTestMeta> = {
|
||||
copyDisable: true,
|
||||
headerReadonly: true,
|
||||
showTrigger: ({ projectId }) =>
|
||||
// The community version does not support the project trigger feature, for future expansion
|
||||
// will support soon
|
||||
(!!projectId || IS_BOT_OP) && !IS_OPEN_SOURCE,
|
||||
nodeMetaPath: DEFAULT_NODE_META_PATH,
|
||||
outputsPath: DEFAULT_OUTPUTS_PATH,
|
||||
|
||||
Reference in New Issue
Block a user