feat(web): app share

This commit is contained in:
zhaoying
2026-03-13 17:37:13 +08:00
parent 90c8ff35d1
commit 3d9bc7a986
3 changed files with 8 additions and 5 deletions

View File

@@ -1423,6 +1423,7 @@ export const en = {
souceStatus: 'Source App Status',
confirmCopyDesc: 'Are you sure to copy 【{{app}}】 app?',
noShareAuth: 'No permission to share apps',
appCount: '{{count}} apps shared to this space',
},
userMemory: {
userMemory: 'User Memory',

View File

@@ -807,6 +807,7 @@ export const zh = {
souceStatus: '源应用状态',
confirmCopyDesc: '确定复制【{{app}}】应用?',
noShareAuth: '无共享应用的权限',
appCount: '{{count}}个应用共享到此空间',
},
table: {
totalRecords: '共 {{total}} 条记录'

View File

@@ -2,11 +2,11 @@
* @Author: ZhaoYing
* @Date: 2026-02-03 16:34:12
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-13 16:19:37
* @Last Modified time: 2026-03-13 17:36:16
*/
import React, { useState, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Button, App, Flex, Row, Col, Collapse, Tag } from 'antd';
import { Button, App, Flex, Row, Col, Collapse } from 'antd';
import clsx from 'clsx';
import type { MySharedOutItem } from './types';
@@ -88,14 +88,15 @@ const MySharing: React.FC = () => {
{workspace.target_workspace_name[0]}
</div>
}
<span className="rb:font-medium">{workspace.target_workspace_name}</span>
<Tag color="blue">{t('application.appCount', { count: items.length })}</Tag>
<div>
<span className="rb:font-medium">{workspace.target_workspace_name}</span>
<div className="rb:text-[#5B6167] rb:text-[12px]">{t('application.appCount', { count: items.length })}</div>
</div>
</Flex>
),
extra: (
<Button
size="small"
danger
onClick={e => { e.stopPropagation(); handleAllCancel(workspace); }}
>
{t('application.allCancel')}