diff --git a/frontend/packages/arch/idl/src/auto-generated/fornax_ml_flow/namespaces/model.ts b/frontend/packages/arch/idl/src/auto-generated/fornax_ml_flow/namespaces/model.ts index a6d5d09b..60c4f8f9 100644 --- a/frontend/packages/arch/idl/src/auto-generated/fornax_ml_flow/namespaces/model.ts +++ b/frontend/packages/arch/idl/src/auto-generated/fornax_ml_flow/namespaces/model.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. /* eslint-disable */ /* tslint:disable */ // @ts-nocheck diff --git a/frontend/packages/arch/idl/src/auto-generated/stone_coze_space/namespaces/landing_page.ts b/frontend/packages/arch/idl/src/auto-generated/stone_coze_space/namespaces/landing_page.ts index aa398f16..dad93b1a 100644 --- a/frontend/packages/arch/idl/src/auto-generated/stone_coze_space/namespaces/landing_page.ts +++ b/frontend/packages/arch/idl/src/auto-generated/stone_coze_space/namespaces/landing_page.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. /* eslint-disable */ /* tslint:disable */ // @ts-nocheck diff --git a/frontend/packages/community/component/src/card/template/index.module.less b/frontend/packages/community/component/src/card/template/index.module.less index e7754d9b..48f243bc 100644 --- a/frontend/packages/community/component/src/card/template/index.module.less +++ b/frontend/packages/community/component/src/card/template/index.module.less @@ -11,14 +11,13 @@ left: 0; display: none; - grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } &:hover { .btn-container { - display: grid; + display: block; } .description { diff --git a/frontend/packages/community/component/src/card/template/index.tsx b/frontend/packages/community/component/src/card/template/index.tsx index 2ebcae16..c4bd3703 100644 --- a/frontend/packages/community/component/src/card/template/index.tsx +++ b/frontend/packages/community/component/src/card/template/index.tsx @@ -21,9 +21,7 @@ import { explore } from '@coze-studio/api-schema'; import { useSpaceList } from '@coze-foundation/space-store'; import { I18n } from '@coze-arch/i18n'; import { Image, Input, Modal, Space, Toast } from '@coze-arch/coze-design'; -import { ProductEntityType } from '@coze-arch/bot-api/product_api'; - -import { cozeBaseUrl } from '@/const/url'; +import { type ProductEntityType } from '@coze-arch/bot-api/product_api'; import { type CardInfoProps } from '../type'; import { CardTag } from '../components/tag'; @@ -36,15 +34,6 @@ import styles from './index.module.less'; export type TemplateCardProps = ProductInfo; -const PATH_MAP: Partial< - Record -> = { - [ProductEntityType.BotTemplate]: 'agent', - [ProductEntityType.WorkflowTemplateV2]: 'workflow', - [ProductEntityType.ImageflowTemplateV2]: 'workflow', - [ProductEntityType.ProjectTemplate]: 'project', -}; - export const TemplateCard: FC = props => { const [visible, setVisible] = useState(false); return ( @@ -64,25 +53,10 @@ export const TemplateCard: FC = props => { onClick={() => { setVisible(true); }} + className="w-full" > {I18n.t('copy')} - { - const pathPrefix = PATH_MAP[props.meta_info.entity_type] || ''; - const pathSuffix = [ - ProductEntityType.WorkflowTemplateV2, - ProductEntityType.ImageflowTemplateV2, - ].includes(props.meta_info.entity_type) - ? `?entity_type=${props.meta_info.entity_type}` - : ''; - window.open( - `${cozeBaseUrl}/template/${pathPrefix}/${props.meta_info.id}${pathSuffix}`, - ); - }} - > - {I18n.t('plugin_usage_limits_modal_view_details')} - {visible ? ( diff --git a/frontend/packages/foundation/account-ui-adapter/src/pages/login-page/index.tsx b/frontend/packages/foundation/account-ui-adapter/src/pages/login-page/index.tsx index 1976ca69..d3239c54 100644 --- a/frontend/packages/foundation/account-ui-adapter/src/pages/login-page/index.tsx +++ b/frontend/packages/foundation/account-ui-adapter/src/pages/login-page/index.tsx @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + import { type FC, useState } from 'react'; import { CozeBrand } from '@coze-studio/components/coze-brand'; @@ -108,7 +108,7 @@ export const LoginPage: FC = () => {