feat(web): app share
This commit is contained in:
@@ -1423,6 +1423,7 @@ export const en = {
|
|||||||
souceStatus: 'Source App Status',
|
souceStatus: 'Source App Status',
|
||||||
confirmCopyDesc: 'Are you sure to copy 【{{app}}】 app?',
|
confirmCopyDesc: 'Are you sure to copy 【{{app}}】 app?',
|
||||||
noShareAuth: 'No permission to share apps',
|
noShareAuth: 'No permission to share apps',
|
||||||
|
appCount: '{{count}} apps shared to this space',
|
||||||
},
|
},
|
||||||
userMemory: {
|
userMemory: {
|
||||||
userMemory: 'User Memory',
|
userMemory: 'User Memory',
|
||||||
|
|||||||
@@ -807,6 +807,7 @@ export const zh = {
|
|||||||
souceStatus: '源应用状态',
|
souceStatus: '源应用状态',
|
||||||
confirmCopyDesc: '确定复制【{{app}}】应用?',
|
confirmCopyDesc: '确定复制【{{app}}】应用?',
|
||||||
noShareAuth: '无共享应用的权限',
|
noShareAuth: '无共享应用的权限',
|
||||||
|
appCount: '{{count}}个应用共享到此空间',
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
totalRecords: '共 {{total}} 条记录'
|
totalRecords: '共 {{total}} 条记录'
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* @Author: ZhaoYing
|
* @Author: ZhaoYing
|
||||||
* @Date: 2026-02-03 16:34:12
|
* @Date: 2026-02-03 16:34:12
|
||||||
* @Last Modified by: ZhaoYing
|
* @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 React, { useState, useEffect, useMemo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
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 clsx from 'clsx';
|
||||||
|
|
||||||
import type { MySharedOutItem } from './types';
|
import type { MySharedOutItem } from './types';
|
||||||
@@ -88,14 +88,15 @@ const MySharing: React.FC = () => {
|
|||||||
{workspace.target_workspace_name[0]}
|
{workspace.target_workspace_name[0]}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<span className="rb:font-medium">{workspace.target_workspace_name}</span>
|
<div>
|
||||||
<Tag color="blue">{t('application.appCount', { count: items.length })}</Tag>
|
<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>
|
</Flex>
|
||||||
),
|
),
|
||||||
extra: (
|
extra: (
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
danger
|
|
||||||
onClick={e => { e.stopPropagation(); handleAllCancel(workspace); }}
|
onClick={e => { e.stopPropagation(); handleAllCancel(workspace); }}
|
||||||
>
|
>
|
||||||
{t('application.allCancel')}
|
{t('application.allCancel')}
|
||||||
|
|||||||
Reference in New Issue
Block a user