chore: migrate fe 250724

main
tecvan 3 months ago
parent 5300947c43
commit 12f7762797
  1. 1
      frontend/packages/arch/idl/src/auto-generated/fornax_ml_flow/namespaces/model.ts
  2. 1
      frontend/packages/arch/idl/src/auto-generated/stone_coze_space/namespaces/landing_page.ts
  3. 3
      frontend/packages/community/component/src/card/template/index.module.less
  4. 30
      frontend/packages/community/component/src/card/template/index.tsx
  5. 4
      frontend/packages/foundation/account-ui-adapter/src/pages/login-page/index.tsx

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

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

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

@ -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<explore.product_common.ProductEntityType, string>
> = {
[ProductEntityType.BotTemplate]: 'agent',
[ProductEntityType.WorkflowTemplateV2]: 'workflow',
[ProductEntityType.ImageflowTemplateV2]: 'workflow',
[ProductEntityType.ProjectTemplate]: 'project',
};
export const TemplateCard: FC<TemplateCardProps> = props => {
const [visible, setVisible] = useState(false);
return (
@ -64,25 +53,10 @@ export const TemplateCard: FC<TemplateCardProps> = props => {
onClick={() => {
setVisible(true);
}}
className="w-full"
>
{I18n.t('copy')}
</CardButton>
<CardButton
onClick={() => {
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')}
</CardButton>
</Space>
</div>
{visible ? (

@ -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 = () => {
<div className="mt-[12px] flex justify-center">
<a
data-testid="login.link.terms"
href="https://spdx.org/licenses/Apache-2.0.html"
href="https://github.com/coze-dev/coze-studio?tab=Apache-2.0-1-ov-file"
target="_blank"
className="no-underline coz-fg-hglt"
>

Loading…
Cancel
Save