Add software and hardware statistics

This commit is contained in:
2023-12-06 18:30:10 +08:00
parent 46ce9823e2
commit eb264e2b85
16 changed files with 1310 additions and 105 deletions

View File

@@ -5,6 +5,7 @@ import { COLOR_FONT_MAIN } from '@/constants/common.constants'
interface LoadingMaskProps extends React.PropsWithChildren {
hidden?: boolean
maskContent?: React.ReactNode
}
const LoadingMask: React.FC<LoadingMaskProps> = (props) => {
const loadingIcon = (
@@ -21,7 +22,7 @@ const LoadingMask: React.FC<LoadingMaskProps> = (props) => {
) : (
<>
<div className={'loading-mask'}>
<AntdSpin indicator={loadingIcon} />
{props.maskContent || <AntdSpin indicator={loadingIcon} />}
</div>
</>
)

View File

@@ -1,5 +1,5 @@
import React from 'react'
import { hasPermission } from '@/util/auth.tsx'
import { hasPermission } from '@/util/auth'
interface PermissionProps extends React.PropsWithChildren {
operationCode?: string