mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-26 07:25:27 +08:00
chore(deps): update npm dependencies to v9 (major) (#6819)
* fix: replace DeleteOutline with DeleteOutlined icon in BackupHistoryViewer * chore(deps): update npm dependencies to v9 * refactor: bump @mui to v9 --------- Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Tunglies
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
parent
0dd861fa32
commit
71dc5f0bdb
@@ -30,47 +30,47 @@ export const ClashInfoCard = () => {
|
||||
|
||||
return (
|
||||
<Stack spacing={1.5}>
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.clashInfo.fields.coreVersion')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
{clashVersion || '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.clashInfo.fields.systemProxyAddress')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
{systemProxyAddress}
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.clashInfo.fields.mixedPort')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
{clashConfig.mixedPort || '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.clashInfo.fields.uptime')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
{formattedUptime}
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.clashInfo.fields.rulesCount')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
{rules.length}
|
||||
</Typography>
|
||||
</Stack>
|
||||
|
||||
@@ -930,7 +930,7 @@ export const CurrentProxyCard = () => {
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<Typography variant="body1" fontWeight="medium">
|
||||
<Typography variant="body1" sx={{ fontWeight: 'medium' }}>
|
||||
{currentProxy.name}
|
||||
</Typography>
|
||||
|
||||
@@ -1026,9 +1026,11 @@ export const CurrentProxyCard = () => {
|
||||
disabled={isDirectMode}
|
||||
renderValue={renderProxyValue}
|
||||
MenuProps={{
|
||||
PaperProps: {
|
||||
style: {
|
||||
maxHeight: 500,
|
||||
slotProps: {
|
||||
paper: {
|
||||
style: {
|
||||
maxHeight: 500,
|
||||
},
|
||||
},
|
||||
},
|
||||
}}
|
||||
|
||||
@@ -1245,13 +1245,13 @@ export const EnhancedCanvasTrafficGraph = memo(
|
||||
whiteSpace: 'nowrap',
|
||||
}}
|
||||
>
|
||||
<Box color="text.secondary" mb={0.2}>
|
||||
<Box sx={{ color: 'text.secondary', mb: 0.2 }}>
|
||||
{tooltipData.timestamp}
|
||||
</Box>
|
||||
<Box color="secondary.main" fontWeight="500">
|
||||
<Box sx={{ color: 'secondary.main', fontWeight: 500 }}>
|
||||
↑ {tooltipData.upSpeed}
|
||||
</Box>
|
||||
<Box color="primary.main" fontWeight="500">
|
||||
<Box sx={{ color: 'primary.main', fontWeight: 500 }}>
|
||||
↓ {tooltipData.downSpeed}
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
@@ -90,9 +90,11 @@ export const EnhancedCard = forwardRef<HTMLElement, EnhancedCardProps>(
|
||||
{typeof title === 'string' ? (
|
||||
<Typography
|
||||
variant="h6"
|
||||
fontWeight="medium"
|
||||
fontSize={18}
|
||||
sx={titleTruncateStyle}
|
||||
sx={{
|
||||
...titleTruncateStyle,
|
||||
fontWeight: 'medium',
|
||||
fontSize: 18,
|
||||
}}
|
||||
title={title}
|
||||
>
|
||||
{title}
|
||||
|
||||
@@ -120,9 +120,8 @@ const CompactStatCard = memo(
|
||||
>
|
||||
<Typography
|
||||
variant="body1"
|
||||
fontWeight="bold"
|
||||
noWrap
|
||||
sx={{ mr: 0.5 }}
|
||||
sx={{ mr: 0.5, fontWeight: 'bold' }}
|
||||
>
|
||||
{value}
|
||||
</Typography>
|
||||
|
||||
@@ -103,7 +103,7 @@ const ProfileDetails = ({
|
||||
<Box>
|
||||
<Stack spacing={2}>
|
||||
{current.url && (
|
||||
<Stack direction="row" alignItems="center" spacing={1}>
|
||||
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
|
||||
<DnsOutlined fontSize="small" color="action" />
|
||||
<Typography
|
||||
variant="body2"
|
||||
@@ -115,7 +115,6 @@ const ProfileDetails = ({
|
||||
{current.home ? (
|
||||
<Link
|
||||
component="button"
|
||||
fontWeight="medium"
|
||||
onClick={() => current.home && openWebUrl(current.home)}
|
||||
sx={{
|
||||
display: 'inline-flex',
|
||||
@@ -123,6 +122,7 @@ const ProfileDetails = ({
|
||||
minWidth: 0,
|
||||
maxWidth: 'calc(100% - 40px)',
|
||||
ml: 0.5,
|
||||
fontWeight: 'medium',
|
||||
}}
|
||||
title={parseUrl(current.url)}
|
||||
>
|
||||
@@ -151,7 +151,6 @@ const ProfileDetails = ({
|
||||
) : (
|
||||
<Typography
|
||||
component="span"
|
||||
fontWeight="medium"
|
||||
sx={{
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis',
|
||||
@@ -159,6 +158,7 @@ const ProfileDetails = ({
|
||||
minWidth: 0,
|
||||
flex: 1,
|
||||
ml: 0.5,
|
||||
fontWeight: 'medium',
|
||||
}}
|
||||
title={parseUrl(current.url)}
|
||||
>
|
||||
@@ -170,7 +170,7 @@ const ProfileDetails = ({
|
||||
)}
|
||||
|
||||
{current.updated && (
|
||||
<Stack direction="row" alignItems="center" spacing={1}>
|
||||
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
|
||||
<UpdateOutlined
|
||||
fontSize="small"
|
||||
color="action"
|
||||
@@ -187,7 +187,7 @@ const ProfileDetails = ({
|
||||
onClick={onUpdateProfile}
|
||||
>
|
||||
{t('shared.labels.updateTime')}:{' '}
|
||||
<Box component="span" fontWeight="medium">
|
||||
<Box component="span" sx={{ fontWeight: 'medium' }}>
|
||||
{dayjs(current.updated * 1000).format('YYYY-MM-DD HH:mm')}
|
||||
</Box>
|
||||
</Typography>
|
||||
@@ -196,11 +196,11 @@ const ProfileDetails = ({
|
||||
|
||||
{current.extra && (
|
||||
<>
|
||||
<Stack direction="row" alignItems="center" spacing={1}>
|
||||
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
|
||||
<SpeedOutlined fontSize="small" color="action" />
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('shared.labels.usedTotal')}:{' '}
|
||||
<Box component="span" fontWeight="medium">
|
||||
<Box component="span" sx={{ fontWeight: 'medium' }}>
|
||||
{parseTraffic(usedTraffic)} /{' '}
|
||||
{parseTraffic(current.extra.total)}
|
||||
</Box>
|
||||
@@ -208,11 +208,11 @@ const ProfileDetails = ({
|
||||
</Stack>
|
||||
|
||||
{current.extra.expire > 0 && (
|
||||
<Stack direction="row" alignItems="center" spacing={1}>
|
||||
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
|
||||
<EventOutlined fontSize="small" color="action" />
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('shared.labels.expireTime')}:{' '}
|
||||
<Box component="span" fontWeight="medium">
|
||||
<Box component="span" sx={{ fontWeight: 'medium' }}>
|
||||
{parseExpire(current.extra.expire)}
|
||||
</Box>
|
||||
</Typography>
|
||||
@@ -318,8 +318,6 @@ export const HomeProfileCard = ({
|
||||
<Link
|
||||
component="button"
|
||||
variant="h6"
|
||||
fontWeight="medium"
|
||||
fontSize={18}
|
||||
onClick={() => current.home && openWebUrl(current.home)}
|
||||
sx={{
|
||||
color: 'inherit',
|
||||
@@ -328,6 +326,8 @@ export const HomeProfileCard = ({
|
||||
alignItems: 'center',
|
||||
minWidth: 0,
|
||||
maxWidth: '100%',
|
||||
fontWeight: 'medium',
|
||||
fontSize: 18,
|
||||
'& > span': {
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis',
|
||||
|
||||
@@ -215,24 +215,23 @@ export const SystemInfoCard = () => {
|
||||
}
|
||||
>
|
||||
<Stack spacing={1.5}>
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.systemInfo.fields.osInfo')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
{osInfo}
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack
|
||||
direction="row"
|
||||
justifyContent="space-between"
|
||||
alignItems="center"
|
||||
sx={{ justifyContent: 'space-between', alignItems: 'center' }}
|
||||
>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.systemInfo.fields.autoLaunch')}
|
||||
</Typography>
|
||||
<Stack direction="row" spacing={1} alignItems="center">
|
||||
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
|
||||
<Chip
|
||||
size="small"
|
||||
label={
|
||||
@@ -250,34 +249,32 @@ export const SystemInfoCard = () => {
|
||||
<Divider />
|
||||
<Stack
|
||||
direction="row"
|
||||
justifyContent="space-between"
|
||||
alignItems="center"
|
||||
sx={{ justifyContent: 'space-between', alignItems: 'center' }}
|
||||
>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.systemInfo.fields.runningMode')}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="body2"
|
||||
fontWeight="medium"
|
||||
onClick={handleRunningModeClick}
|
||||
sx={runningModeStyle}
|
||||
sx={{ ...runningModeStyle, fontWeight: 'medium' }}
|
||||
>
|
||||
{getModeIcon()}
|
||||
{getModeText()}
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.systemInfo.fields.lastCheckUpdate')}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="body2"
|
||||
fontWeight="medium"
|
||||
onClick={onCheckUpdate}
|
||||
sx={{
|
||||
cursor: 'pointer',
|
||||
textDecoration: 'underline',
|
||||
fontWeight: 'medium',
|
||||
'&:hover': { opacity: 0.7 },
|
||||
}}
|
||||
>
|
||||
@@ -285,11 +282,11 @@ export const SystemInfoCard = () => {
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Stack direction="row" justifyContent="space-between">
|
||||
<Stack direction="row" sx={{ justifyContent: 'space-between' }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t('home.components.systemInfo.fields.vergeVersion')}
|
||||
</Typography>
|
||||
<Typography variant="body2" fontWeight="medium">
|
||||
<Typography variant="body2" sx={{ fontWeight: 'medium' }}>
|
||||
v{appVersion}
|
||||
</Typography>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user