feat: community backends page

This commit is contained in:
jialin
2026-01-30 20:48:55 +08:00
committed by Lawrence Li
parent 2dab5093dc
commit b6bd9cd7dd
22 changed files with 783 additions and 124 deletions
+1
View File
@@ -72,6 +72,7 @@ interface Configuration {
checked: boolean;
}
// default need to pass content and operation
const DeleteModal = forwardRef((props, ref) => {
const intl = useIntl();
const { styles } = useStyles();
+1 -1
View File
@@ -2,7 +2,7 @@ import { createFromIconfontCN } from '@ant-design/icons';
// import './iconfont/iconfont.js';
const IconFont = createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/c/font_4613488_339f1qeidmn.js'
scriptUrl: '//at.alicdn.com/t/c/font_4613488_mis8x88kojd.js'
});
export default IconFont;
+5
View File
@@ -156,6 +156,11 @@ export const FilterBar: React.FC<FilterBarProps> = (props) => {
{handleClickPrimary ? (
actionType === 'dropdown' ? (
<DropDownActions
styles={{
root: {
minWidth: 140
}
}}
menu={{
items: actionItems,
onClick: handleClickPrimary
+22 -13
View File
@@ -1,7 +1,14 @@
import { Skeleton } from 'antd';
import React from 'react';
import styled from 'styled-components';
import ResizeContainer from '../resize-container';
const SkeletonWrapper = styled.div`
.ant-skeleton-paragraph {
margin-bottom: 0;
}
`;
interface CatalogSkeltonProps {
skeletonProps?: any;
skeletonStyle?: React.CSSProperties;
@@ -12,19 +19,21 @@ const CardSkelton: React.FC<CatalogSkeltonProps> = (props) => {
<ResizeContainer
dataList={Array(6).fill({ label: 'skeleton' })}
renderItem={() => (
<Skeleton
avatar={{
size: 32
}}
paragraph={{ rows: 2 }}
style={{
border: '1px solid var(--ant-color-border)',
borderRadius: 'var(--border-radius-base)',
padding: '16px 16px',
...props.skeletonStyle
}}
{...(props.skeletonProps || {})}
></Skeleton>
<SkeletonWrapper>
<Skeleton
avatar={{
size: 32
}}
paragraph={{ rows: 2 }}
style={{
border: '1px solid var(--ant-color-border)',
borderRadius: 'var(--border-radius-base)',
padding: '16px 16px',
...props.skeletonStyle
}}
{...(props.skeletonProps || {})}
></Skeleton>
</SkeletonWrapper>
)}
></ResizeContainer>
);