mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-27 07:40:05 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b685531a6 |
Generated
-1
@@ -1124,7 +1124,6 @@ dependencies = [
|
||||
"rfd 0.18.0",
|
||||
"runas",
|
||||
"rustls",
|
||||
"semver 1.0.28",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"serde_yaml_ng",
|
||||
|
||||
+3
-2
@@ -56,6 +56,7 @@
|
||||
"@tauri-apps/plugin-updater": "2.14.1",
|
||||
"ahooks": "^3.10.0",
|
||||
"cidr-block": "^2.3.0",
|
||||
"compare-versions": "^6.1.1",
|
||||
"dayjs": "1.11.23",
|
||||
"foxact": "^0.3.12",
|
||||
"foxts": "^5.9.1",
|
||||
@@ -78,7 +79,7 @@
|
||||
"rehype-sanitize": "^6.0.0",
|
||||
"swr": "^2.5.1",
|
||||
"tauri-plugin-mihomo-api": "github:clash-verge-rev/tauri-plugin-mihomo#main",
|
||||
"tldts": "7.5.5",
|
||||
"tldts": "7.6.0",
|
||||
"types-pac": "^1.0.3",
|
||||
"validator": "^13.15.35"
|
||||
},
|
||||
@@ -90,7 +91,7 @@
|
||||
"@tauri-apps/cli": "2.12.6",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^26.0.0",
|
||||
"@types/react": "19.3.0",
|
||||
"@types/react": "19.3.3",
|
||||
"@types/react-dom": "19.3.0",
|
||||
"@types/validator": "^13.15.10",
|
||||
"@vitejs/plugin-legacy": "^8.2.3",
|
||||
|
||||
Generated
+70
-67
@@ -199,10 +199,10 @@ importers:
|
||||
version: 0.5.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
'@emotion/react':
|
||||
specifier: ^11.14.0
|
||||
version: 11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
version: 11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled':
|
||||
specifier: ^11.14.1
|
||||
version: 11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
version: 11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@juggle/resize-observer':
|
||||
specifier: ^3.4.0
|
||||
version: 3.4.0
|
||||
@@ -211,10 +211,10 @@ importers:
|
||||
version: 4.7.0(monaco-editor@0.58.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
'@mui/icons-material':
|
||||
specifier: ^9.4.0
|
||||
version: 9.4.0(@mui/material@9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(@types/react@19.3.0)(react@19.3.1)
|
||||
version: 9.4.0(@mui/material@9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(@types/react@19.3.3)(react@19.3.1)
|
||||
'@mui/material':
|
||||
specifier: ^9.4.0
|
||||
version: 9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
version: 9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
'@tanstack/react-virtual':
|
||||
specifier: ^3.14.13
|
||||
version: 3.14.13(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
@@ -245,6 +245,9 @@ importers:
|
||||
cidr-block:
|
||||
specifier: ^2.3.0
|
||||
version: 2.3.0
|
||||
compare-versions:
|
||||
specifier: ^6.1.1
|
||||
version: 6.1.1
|
||||
dayjs:
|
||||
specifier: 1.11.23
|
||||
version: 1.11.23
|
||||
@@ -286,16 +289,16 @@ importers:
|
||||
version: 19.3.1(react@19.3.1)
|
||||
react-error-boundary:
|
||||
specifier: 6.1.6
|
||||
version: 6.1.6(@types/react@19.3.0)(react@19.3.1)
|
||||
version: 6.1.6(@types/react@19.3.3)(react@19.3.1)
|
||||
react-hook-form:
|
||||
specifier: ^7.88.0
|
||||
version: 7.88.0(react@19.3.1)
|
||||
react-i18next:
|
||||
specifier: 18.0.3
|
||||
version: 18.0.3(@types/react@19.3.0)(i18next@27.0.1(typescript@6.0.3))(react@19.3.1)(typescript@6.0.3)
|
||||
version: 18.0.3(@types/react@19.3.3)(i18next@27.0.1(typescript@6.0.3))(react@19.3.1)(typescript@6.0.3)
|
||||
react-markdown:
|
||||
specifier: 10.1.0
|
||||
version: 10.1.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
version: 10.1.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
react-router:
|
||||
specifier: ^8.4.0
|
||||
version: 8.4.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
@@ -312,8 +315,8 @@ importers:
|
||||
specifier: github:clash-verge-rev/tauri-plugin-mihomo#main
|
||||
version: https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f
|
||||
tldts:
|
||||
specifier: 7.5.5
|
||||
version: 7.5.5
|
||||
specifier: 7.6.0
|
||||
version: 7.6.0
|
||||
types-pac:
|
||||
specifier: ^1.0.3
|
||||
version: 1.0.3
|
||||
@@ -343,11 +346,11 @@ importers:
|
||||
specifier: ^26.0.0
|
||||
version: 26.6.5
|
||||
'@types/react':
|
||||
specifier: 19.3.0
|
||||
version: 19.3.0
|
||||
specifier: 19.3.3
|
||||
version: 19.3.3
|
||||
'@types/react-dom':
|
||||
specifier: 19.3.0
|
||||
version: 19.3.0(@types/react@19.3.0)
|
||||
version: 19.3.0(@types/react@19.3.3)
|
||||
'@types/validator':
|
||||
specifier: ^13.15.10
|
||||
version: 13.15.10
|
||||
@@ -2283,8 +2286,8 @@ packages:
|
||||
peerDependencies:
|
||||
'@types/react': '*'
|
||||
|
||||
'@types/react@19.3.0':
|
||||
resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
|
||||
'@types/react@19.3.3':
|
||||
resolution: {integrity: sha512-K8uWpJc4teiuOPdiP1umjeA9rGMgVPiXuoL66fcS1QlwBT1WMqY8PORmub9FadopIs+RCW6siYEs7Lpq+vDlog==}
|
||||
|
||||
'@types/trusted-types@2.0.7':
|
||||
resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}
|
||||
@@ -4057,11 +4060,11 @@ packages:
|
||||
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
|
||||
tldts-core@7.5.5:
|
||||
resolution: {integrity: sha512-rEJz/8cJFY/bdF354gl14yxavbrIbvM+FcbkYVQ6CSCMQTJdUFUIm39TTWSiGPvcpQh7/F6qHrD3SkwwdgtDCw==}
|
||||
tldts-core@7.6.0:
|
||||
resolution: {integrity: sha512-0By9U6fw2hNzfJAbBMuo1bsX/OyVlsj0wjGyMPV50RZKoLCRwXBOX0FQqgZDaMo2WjjaEW/ZGyVXicLUFTmXqQ==}
|
||||
|
||||
tldts@7.5.5:
|
||||
resolution: {integrity: sha512-Hy6IImaWALzJOgCIss4gIFi4G0M9lqk95pFKCUVxQPZw+biZ1Pv6f28JpYgahpJB+BufA0HYsIU/aP/WIx3KRg==}
|
||||
tldts@7.6.0:
|
||||
resolution: {integrity: sha512-IFk9SJW/EhTZMpJA1zRdP+69JK4NmJbMx1aRdJvLBR9em1k62eWiwolSWlDRpRdkaAnZ1dDCwFPmRPBNuLGGHA==}
|
||||
hasBin: true
|
||||
|
||||
trim-lines@3.0.1:
|
||||
@@ -5201,7 +5204,7 @@ snapshots:
|
||||
|
||||
'@emotion/memoize@0.9.0': {}
|
||||
|
||||
'@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)':
|
||||
'@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@emotion/babel-plugin': 11.13.5(supports-color@7.2.0)
|
||||
@@ -5213,7 +5216,7 @@ snapshots:
|
||||
hoist-non-react-statics: 3.3.2
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@@ -5227,18 +5230,18 @@ snapshots:
|
||||
|
||||
'@emotion/sheet@1.4.0': {}
|
||||
|
||||
'@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)':
|
||||
'@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@emotion/babel-plugin': 11.13.5(supports-color@7.2.0)
|
||||
'@emotion/is-prop-valid': 1.4.0
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/serialize': 1.3.3
|
||||
'@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.3.1)
|
||||
'@emotion/utils': 1.4.2
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@@ -5519,23 +5522,23 @@ snapshots:
|
||||
|
||||
'@mui/core-downloads-tracker@9.4.0': {}
|
||||
|
||||
'@mui/icons-material@9.4.0(@mui/material@9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(@types/react@19.3.0)(react@19.3.1)':
|
||||
'@mui/icons-material@9.4.0(@mui/material@9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(@types/react@19.3.3)(react@19.3.1)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@mui/material': 9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
'@mui/material': 9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@mui/material@9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
|
||||
'@mui/material@9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@mui/core-downloads-tracker': 9.4.0
|
||||
'@mui/system': 9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)
|
||||
'@mui/types': 9.4.0(@types/react@19.3.0)
|
||||
'@mui/utils': 9.4.0(@types/react@19.3.0)(react@19.3.1)
|
||||
'@mui/system': 9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)
|
||||
'@mui/types': 9.4.0(@types/react@19.3.3)
|
||||
'@mui/utils': 9.4.0(@types/react@19.3.3)(react@19.3.1)
|
||||
'@popperjs/core': 2.11.8
|
||||
'@types/react-transition-group': 4.4.12(@types/react@19.3.0)
|
||||
'@types/react-transition-group': 4.4.12(@types/react@19.3.3)
|
||||
clsx: 2.1.1
|
||||
csstype: 3.2.3
|
||||
prop-types: 15.8.1
|
||||
@@ -5544,20 +5547,20 @@ snapshots:
|
||||
react-is: 19.3.0
|
||||
react-transition-group: 4.4.5(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
optionalDependencies:
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@types/react': 19.3.0
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@mui/private-theming@9.4.0(@types/react@19.3.0)(react@19.3.1)':
|
||||
'@mui/private-theming@9.4.0(@types/react@19.3.3)(react@19.3.1)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@mui/utils': 9.4.0(@types/react@19.3.0)(react@19.3.1)
|
||||
'@mui/utils': 9.4.0(@types/react@19.3.3)(react@19.3.1)
|
||||
prop-types: 15.8.1
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@mui/styled-engine@9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(react@19.3.1)':
|
||||
'@mui/styled-engine@9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(react@19.3.1)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@emotion/cache': 11.14.0
|
||||
@@ -5567,42 +5570,42 @@ snapshots:
|
||||
prop-types: 15.8.1
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
|
||||
'@mui/system@9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)':
|
||||
'@mui/system@9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@mui/private-theming': 9.4.0(@types/react@19.3.0)(react@19.3.1)
|
||||
'@mui/styled-engine': 9.4.0(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(react@19.3.1)
|
||||
'@mui/types': 9.4.0(@types/react@19.3.0)
|
||||
'@mui/utils': 9.4.0(@types/react@19.3.0)(react@19.3.1)
|
||||
'@mui/private-theming': 9.4.0(@types/react@19.3.3)(react@19.3.1)
|
||||
'@mui/styled-engine': 9.4.0(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(react@19.3.1)
|
||||
'@mui/types': 9.4.0(@types/react@19.3.3)
|
||||
'@mui/utils': 9.4.0(@types/react@19.3.3)(react@19.3.1)
|
||||
clsx: 2.1.1
|
||||
csstype: 3.2.3
|
||||
prop-types: 15.8.1
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@types/react': 19.3.0
|
||||
'@emotion/react': 11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0))(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0)
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@mui/types@9.4.0(@types/react@19.3.0)':
|
||||
'@mui/types@9.4.0(@types/react@19.3.3)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@mui/utils@9.4.0(@types/react@19.3.0)(react@19.3.1)':
|
||||
'@mui/utils@9.4.0(@types/react@19.3.3)(react@19.3.1)':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
'@mui/types': 9.4.0(@types/react@19.3.0)
|
||||
'@mui/types': 9.4.0(@types/react@19.3.3)
|
||||
'@types/prop-types': 15.7.15
|
||||
clsx: 2.1.1
|
||||
prop-types: 15.8.1
|
||||
react: 19.3.1
|
||||
react-is: 19.3.0
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)':
|
||||
dependencies:
|
||||
@@ -6134,15 +6137,15 @@ snapshots:
|
||||
|
||||
'@types/prop-types@15.7.15': {}
|
||||
|
||||
'@types/react-dom@19.3.0(@types/react@19.3.0)':
|
||||
'@types/react-dom@19.3.0(@types/react@19.3.3)':
|
||||
dependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@types/react-transition-group@4.4.12(@types/react@19.3.0)':
|
||||
'@types/react-transition-group@4.4.12(@types/react@19.3.3)':
|
||||
dependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
'@types/react@19.3.0':
|
||||
'@types/react@19.3.3':
|
||||
dependencies:
|
||||
csstype: 3.2.3
|
||||
|
||||
@@ -7894,11 +7897,11 @@ snapshots:
|
||||
react: 19.3.1
|
||||
scheduler: 0.28.0
|
||||
|
||||
react-error-boundary@6.1.6(@types/react@19.3.0)(react@19.3.1):
|
||||
react-error-boundary@6.1.6(@types/react@19.3.3)(react@19.3.1):
|
||||
dependencies:
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
|
||||
react-fast-compare@3.2.2: {}
|
||||
|
||||
@@ -7906,24 +7909,24 @@ snapshots:
|
||||
dependencies:
|
||||
react: 19.3.1
|
||||
|
||||
react-i18next@18.0.3(@types/react@19.3.0)(i18next@27.0.1(typescript@6.0.3))(react@19.3.1)(typescript@6.0.3):
|
||||
react-i18next@18.0.3(@types/react@19.3.3)(i18next@27.0.1(typescript@6.0.3))(react@19.3.1)(typescript@6.0.3):
|
||||
dependencies:
|
||||
html-parse-stringify: 4.0.1
|
||||
i18next: 27.0.1(typescript@6.0.3)
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
typescript: 6.0.3
|
||||
|
||||
react-is@16.13.1: {}
|
||||
|
||||
react-is@19.3.0: {}
|
||||
|
||||
react-markdown@10.1.0(@types/react@19.3.0)(react@19.3.1)(supports-color@7.2.0):
|
||||
react-markdown@10.1.0(@types/react@19.3.3)(react@19.3.1)(supports-color@7.2.0):
|
||||
dependencies:
|
||||
'@types/hast': 3.0.5
|
||||
'@types/mdast': 4.0.4
|
||||
'@types/react': 19.3.0
|
||||
'@types/react': 19.3.3
|
||||
devlop: 1.1.0
|
||||
hast-util-to-jsx-runtime: 2.3.6(supports-color@7.2.0)
|
||||
html-url-attributes: 3.0.1
|
||||
@@ -8170,11 +8173,11 @@ snapshots:
|
||||
fdir: 6.5.0(picomatch@4.0.7)
|
||||
picomatch: 4.0.7
|
||||
|
||||
tldts-core@7.5.5: {}
|
||||
tldts-core@7.6.0: {}
|
||||
|
||||
tldts@7.5.5:
|
||||
tldts@7.6.0:
|
||||
dependencies:
|
||||
tldts-core: 7.5.5
|
||||
tldts-core: 7.6.0
|
||||
|
||||
trim-lines@3.0.1: {}
|
||||
|
||||
|
||||
@@ -64,7 +64,6 @@ chrono = { workspace = true }
|
||||
boa_engine = "0.22.0"
|
||||
http-body-util = "0.1.5"
|
||||
percent-encoding = "2.3.2"
|
||||
semver = "1.0"
|
||||
reqwest = { workspace = true }
|
||||
sysproxy = { git = "https://github.com/clash-verge-rev/sysproxy-rs.git", rev = "2c9d0a538052aac6e44ad413156a6e848da262b9", version = "0.7.2", features = [
|
||||
"guard",
|
||||
|
||||
@@ -6,6 +6,8 @@ pub mod notification;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, specta::Type)]
|
||||
pub enum NoticeStatus {
|
||||
#[serde(rename = "info")]
|
||||
Info,
|
||||
#[serde(rename = "import_sub_url::ok")]
|
||||
ImportSubUrlOk,
|
||||
#[serde(rename = "import_sub_url::error")]
|
||||
@@ -81,7 +83,8 @@ impl NoticeStatus {
|
||||
/// test both derive their variant list from here; expected strings stay
|
||||
/// hand-written in the test so renames cannot slip through.
|
||||
#[cfg(test)]
|
||||
pub const ALL: [Self; 33] = [
|
||||
pub const ALL: [Self; 34] = [
|
||||
Self::Info,
|
||||
Self::ImportSubUrlOk,
|
||||
Self::ImportSubUrlError,
|
||||
Self::SetConfigError,
|
||||
@@ -126,6 +129,7 @@ mod tests {
|
||||
fn notice_status_wire_contract() -> Result<(), serde_json::Error> {
|
||||
let statuses = NoticeStatus::ALL;
|
||||
let expected = [
|
||||
"info",
|
||||
"import_sub_url::ok",
|
||||
"import_sub_url::error",
|
||||
"set_config::error",
|
||||
|
||||
@@ -387,11 +387,11 @@ fn sample_frontend_events(uid: &str) -> Vec<(FrontendEvent<'_>, &'static str, se
|
||||
),
|
||||
(
|
||||
FrontendEvent::NoticeMessage {
|
||||
status: NoticeStatus::UpdateFailed,
|
||||
status: NoticeStatus::Info,
|
||||
message: Arc::from("ok"),
|
||||
},
|
||||
"verge://notice-message",
|
||||
json!(["update_failed", "ok"]),
|
||||
json!(["info", "ok"]),
|
||||
),
|
||||
(
|
||||
FrontendEvent::TimerUpdated { profile_index: uid },
|
||||
|
||||
+135
-162
@@ -1,20 +1,21 @@
|
||||
use crate::{config::Config, singleton, utils::dirs};
|
||||
use anyhow::{Context as _, Result};
|
||||
use chrono::Utc;
|
||||
use clash_verge_logging::{Type, logging};
|
||||
use parking_lot::Mutex;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
path::PathBuf,
|
||||
sync::atomic::{AtomicU64, Ordering},
|
||||
sync::atomic::{AtomicBool, AtomicU64, Ordering},
|
||||
time::Duration,
|
||||
};
|
||||
use tauri_plugin_updater::{Update, UpdaterExt as _};
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
pub struct SilentUpdater {
|
||||
update_ready: AtomicBool,
|
||||
manual_cancel: Mutex<Option<CancellationToken>>,
|
||||
background_cancel: Mutex<Option<CancellationToken>>,
|
||||
download_lock: tokio::sync::Mutex<()>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, specta::Type)]
|
||||
@@ -30,16 +31,21 @@ singleton!(SilentUpdater, SILENT_UPDATER);
|
||||
impl SilentUpdater {
|
||||
const fn new() -> Self {
|
||||
Self {
|
||||
update_ready: AtomicBool::new(false),
|
||||
manual_cancel: Mutex::new(None),
|
||||
background_cancel: Mutex::new(None),
|
||||
download_lock: tokio::sync::Mutex::const_new(()),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_update_ready(&self) -> bool {
|
||||
self.update_ready.load(Ordering::Acquire)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct UpdateCacheMeta {
|
||||
version: String,
|
||||
downloaded_at: String,
|
||||
}
|
||||
|
||||
impl SilentUpdater {
|
||||
@@ -47,45 +53,36 @@ impl SilentUpdater {
|
||||
Ok(dirs::app_home_dir()?.join("update_cache"))
|
||||
}
|
||||
|
||||
/// Writes the payload through a temp file so a crash leaves no partial `pending_update.bin`;
|
||||
/// installer-sized IO stays off the async runtime.
|
||||
async fn write_cache(bytes: Vec<u8>, version: &str) -> Result<()> {
|
||||
fn write_cache(bytes: &[u8], version: &str) -> Result<()> {
|
||||
let cache_dir = Self::cache_dir()?;
|
||||
let version = version.to_owned();
|
||||
tokio::task::spawn_blocking(move || -> Result<()> {
|
||||
std::fs::create_dir_all(&cache_dir)
|
||||
.with_context(|| format!("failed to create update cache directory {}", cache_dir.display()))?;
|
||||
std::fs::create_dir_all(&cache_dir)
|
||||
.with_context(|| format!("failed to create update cache directory {}", cache_dir.display()))?;
|
||||
|
||||
let bin_path = cache_dir.join("pending_update.bin");
|
||||
let tmp_path = cache_dir.join("pending_update.bin.tmp");
|
||||
std::fs::write(&tmp_path, &bytes)
|
||||
.with_context(|| format!("failed to write update cache {}", tmp_path.display()))?;
|
||||
std::fs::rename(&tmp_path, &bin_path)
|
||||
.with_context(|| format!("failed to rename update cache {}", bin_path.display()))?;
|
||||
let bin_path = cache_dir.join("pending_update.bin");
|
||||
std::fs::write(&bin_path, bytes)
|
||||
.with_context(|| format!("failed to write update cache {}", bin_path.display()))?;
|
||||
|
||||
let meta = UpdateCacheMeta { version };
|
||||
let meta_path = cache_dir.join("pending_update.json");
|
||||
std::fs::write(&meta_path, serde_json::to_string_pretty(&meta)?)
|
||||
.with_context(|| format!("failed to write update metadata {}", meta_path.display()))?;
|
||||
let meta = UpdateCacheMeta {
|
||||
version: version.to_string(),
|
||||
downloaded_at: Utc::now().to_rfc3339(),
|
||||
};
|
||||
let meta_path = cache_dir.join("pending_update.json");
|
||||
std::fs::write(&meta_path, serde_json::to_string_pretty(&meta)?)
|
||||
.with_context(|| format!("failed to write update metadata {}", meta_path.display()))?;
|
||||
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
"Update cache written: version={}, size={} bytes",
|
||||
meta.version,
|
||||
bytes.len()
|
||||
);
|
||||
Ok(())
|
||||
})
|
||||
.await?
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
"Update cache written: version={}, size={} bytes",
|
||||
version,
|
||||
bytes.len()
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn read_cache_bytes() -> Result<Vec<u8>> {
|
||||
fn read_cache_bytes() -> Result<Vec<u8>> {
|
||||
let bin_path = Self::cache_dir()?.join("pending_update.bin");
|
||||
tokio::task::spawn_blocking(move || {
|
||||
std::fs::read(&bin_path).with_context(|| format!("failed to read update cache {}", bin_path.display()))
|
||||
})
|
||||
.await?
|
||||
std::fs::read(&bin_path).with_context(|| format!("failed to read update cache {}", bin_path.display()))
|
||||
}
|
||||
|
||||
fn read_cache_meta() -> Result<UpdateCacheMeta> {
|
||||
@@ -94,24 +91,28 @@ impl SilentUpdater {
|
||||
Ok(serde_json::from_str(&content)?)
|
||||
}
|
||||
|
||||
async fn delete_cache() {
|
||||
fn delete_cache() {
|
||||
if let Ok(cache_dir) = Self::cache_dir()
|
||||
&& cache_dir.exists()
|
||||
{
|
||||
let display = cache_dir.display().to_string();
|
||||
match tokio::task::spawn_blocking(move || std::fs::remove_dir_all(&cache_dir)).await {
|
||||
Ok(Ok(())) => logging!(info, Type::System, "Update cache deleted"),
|
||||
Ok(Err(e)) => logging!(warn, Type::System, "Failed to delete update cache {display}: {e}"),
|
||||
Err(e) => logging!(warn, Type::System, "Failed to delete update cache {display}: {e}"),
|
||||
if let Err(e) = std::fs::remove_dir_all(&cache_dir) {
|
||||
logging!(
|
||||
warn,
|
||||
Type::System,
|
||||
"Failed to delete update cache {}: {e}",
|
||||
cache_dir.display()
|
||||
);
|
||||
} else {
|
||||
logging!(info, Type::System, "Update cache deleted");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the cached installer for `update`, deleting a cache that does not match it.
|
||||
async fn verified_cache(update: &Update) -> Option<Vec<u8>> {
|
||||
fn verified_cache(update: &Update) -> Option<Vec<u8>> {
|
||||
let meta = Self::read_cache_meta().ok()?;
|
||||
let bytes = if meta.version == update.version {
|
||||
Self::read_cache_bytes().await.and_then(|bytes| {
|
||||
Self::read_cache_bytes().and_then(|bytes| {
|
||||
update.verify(&bytes)?;
|
||||
Ok(bytes)
|
||||
})
|
||||
@@ -127,7 +128,7 @@ impl SilentUpdater {
|
||||
"Update cache v{} is unusable: {e:#}, cleaning up",
|
||||
meta.version
|
||||
);
|
||||
Self::delete_cache().await;
|
||||
Self::delete_cache();
|
||||
None
|
||||
}
|
||||
}
|
||||
@@ -141,13 +142,33 @@ pub fn is_build_to_stable(current: &str, remote: &str) -> bool {
|
||||
!build.is_empty() && !base.contains('-') && base == remote.trim_start_matches('v')
|
||||
}
|
||||
|
||||
/// Order by semver; versions that fail to parse order only by exact match.
|
||||
/// Compares numeric version components after stripping version suffixes.
|
||||
fn version_lte(a: &str, b: &str) -> bool {
|
||||
let parse = |v: &str| semver::Version::parse(v.trim_start_matches('v'));
|
||||
match (parse(a), parse(b)) {
|
||||
(Ok(a), Ok(b)) => a <= b,
|
||||
_ => a == b,
|
||||
let parse = |v: &str| -> Vec<u64> {
|
||||
v.trim_start_matches('v')
|
||||
.split(['-', '+'])
|
||||
.next()
|
||||
.unwrap_or("0")
|
||||
.split('.')
|
||||
.filter_map(|part| part.parse::<u64>().ok())
|
||||
.collect()
|
||||
};
|
||||
|
||||
let a_parts = parse(a);
|
||||
let b_parts = parse(b);
|
||||
let len = a_parts.len().max(b_parts.len());
|
||||
|
||||
for i in 0..len {
|
||||
let av = a_parts.get(i).copied().unwrap_or(0);
|
||||
let bv = b_parts.get(i).copied().unwrap_or(0);
|
||||
if av < bv {
|
||||
return true;
|
||||
}
|
||||
if av > bv {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
true // equal
|
||||
}
|
||||
|
||||
/// Maps UI language to one of the three NSIS translations, defaulting to English.
|
||||
@@ -160,8 +181,7 @@ fn nsis_language_id(app_language: &str) -> &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
/// Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
|
||||
/// install starts.
|
||||
/// Same wire shape as the updater plugin's JS `DownloadEvent`.
|
||||
#[derive(Clone, Serialize, specta::Type)]
|
||||
#[serde(tag = "event", content = "data")]
|
||||
pub enum DownloadEvent {
|
||||
@@ -174,19 +194,12 @@ pub enum DownloadEvent {
|
||||
chunk_length: usize,
|
||||
},
|
||||
Finished,
|
||||
Installing,
|
||||
}
|
||||
|
||||
const MIRRORS: [&str; 2] = ["https://update.hwdns.net/", "https://gh-proxy.org/"];
|
||||
/// A source delivering less than this per window is dropped for the next one.
|
||||
const MIN_PROGRESS: u64 = 1024 * 1024;
|
||||
const PROGRESS_WINDOW: Duration = Duration::from_secs(30);
|
||||
/// Bounds the startup check so a black-holed endpoint cannot stall startup.
|
||||
const CHECK_TIMEOUT: Duration = Duration::from_secs(30);
|
||||
#[cfg(target_os = "windows")]
|
||||
const INSTALL_TIMEOUT: Duration = Duration::from_secs(30);
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
const INSTALL_TIMEOUT: Duration = Duration::from_secs(120);
|
||||
|
||||
/// The manifest's URL, then the other mirror, then GitHub itself.
|
||||
fn download_sources(url: &tauri::Url) -> Vec<tauri::Url> {
|
||||
@@ -279,24 +292,14 @@ impl SilentUpdater {
|
||||
Ok(updater_builder.build()?.check().await?)
|
||||
}
|
||||
|
||||
/// Installs verified bytes, dropping the cache first so a failure leaves nothing to
|
||||
/// re-trigger. A timeout abandons the await, not the detached install task; a successful
|
||||
/// Windows install exits the process inside the plugin (#2558).
|
||||
async fn install(update: Update, bytes: Vec<u8>) -> Result<()> {
|
||||
Self::delete_cache().await;
|
||||
let install = tokio::task::spawn_blocking(move || update.install(&bytes));
|
||||
match tokio::time::timeout(INSTALL_TIMEOUT, install).await {
|
||||
Ok(result) => Ok(result??),
|
||||
Err(_) => Err(anyhow::anyhow!(
|
||||
"install timed out after {INSTALL_TIMEOUT:?}; it may still finish in the background"
|
||||
)),
|
||||
}
|
||||
Ok(tokio::task::spawn_blocking(move || update.install(&bytes)).await??)
|
||||
}
|
||||
|
||||
/// Installs a newer cached update before normal startup, if the user confirms.
|
||||
pub async fn try_install_on_startup(&self, app_handle: &tauri::AppHandle) -> bool {
|
||||
if !Config::verge().await.latest_arc().auto_check_update.unwrap_or(true) {
|
||||
Self::delete_cache().await;
|
||||
Self::delete_cache();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -304,11 +307,7 @@ impl SilentUpdater {
|
||||
|
||||
let meta = match Self::read_cache_meta() {
|
||||
Ok(meta) => meta,
|
||||
Err(_) => {
|
||||
// A bin without its meta is a torn write from a previous session.
|
||||
Self::delete_cache().await;
|
||||
return false;
|
||||
}
|
||||
Err(_) => return false, // No cache, nothing to do
|
||||
};
|
||||
|
||||
let cached_version = &meta.version;
|
||||
@@ -321,73 +320,71 @@ impl SilentUpdater {
|
||||
cached_version,
|
||||
current_version
|
||||
);
|
||||
Self::delete_cache().await;
|
||||
Self::delete_cache();
|
||||
return false;
|
||||
}
|
||||
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
"Update cache version ({}) > current ({}), checking the server",
|
||||
"Update cache version ({}) > current ({}), asking user to install",
|
||||
cached_version,
|
||||
current_version
|
||||
);
|
||||
|
||||
// Installing requires the server manifest's signature, so an offline launch keeps
|
||||
// the cache and waits for a connected one.
|
||||
let checked = tokio::time::timeout(CHECK_TIMEOUT, Self::check(app_handle)).await;
|
||||
let update = match checked {
|
||||
Ok(Ok(Some(u))) => u,
|
||||
Ok(Ok(None)) => {
|
||||
// Preserve the cache when skipped so the next launch asks again.
|
||||
if !Self::ask_user_to_install(app_handle, cached_version).await {
|
||||
logging!(info, Type::System, "User skipped update install, starting normally");
|
||||
return false;
|
||||
}
|
||||
|
||||
let update = match Self::check(app_handle).await {
|
||||
Ok(Some(u)) => u,
|
||||
Ok(None) => {
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
"No update available from server, cache may be stale, cleaning up"
|
||||
);
|
||||
Self::delete_cache().await;
|
||||
Self::delete_cache();
|
||||
return false;
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
Err(e) => {
|
||||
logging!(
|
||||
warn,
|
||||
Type::System,
|
||||
"Failed to check for update at startup: {e:#}, will retry next launch"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
Err(_) => {
|
||||
logging!(
|
||||
warn,
|
||||
Type::System,
|
||||
"Startup update check timed out, will retry next launch"
|
||||
);
|
||||
return false;
|
||||
return false; // Keep cache for next attempt
|
||||
}
|
||||
};
|
||||
|
||||
let Some(bytes) = Self::verified_cache(&update).await else {
|
||||
let Some(bytes) = Self::verified_cache(&update) else {
|
||||
return false;
|
||||
};
|
||||
|
||||
let version = update.version.clone();
|
||||
|
||||
// Preserve the cache when skipped so the next launch asks again.
|
||||
if !Self::ask_user_to_install(app_handle, &version).await {
|
||||
logging!(info, Type::System, "User skipped update install, starting normally");
|
||||
return false;
|
||||
}
|
||||
|
||||
logging!(info, Type::System, "Installing cached update v{version} at startup...");
|
||||
|
||||
Self::show_update_splash(app_handle, &version);
|
||||
|
||||
match Self::install(update, bytes).await {
|
||||
// `install()` may hang (#2558); on Windows NSIS can take over without returning.
|
||||
let install = tokio::time::timeout(std::time::Duration::from_secs(30), Self::install(update, bytes));
|
||||
match install
|
||||
.await
|
||||
.unwrap_or_else(|_| Err(anyhow::anyhow!("install timed out (30s)")))
|
||||
{
|
||||
Ok(()) => {
|
||||
logging!(info, Type::System, "Update v{version} installed at startup");
|
||||
logging!(info, Type::System, "Update v{version} install triggered at startup");
|
||||
Self::delete_cache();
|
||||
true
|
||||
}
|
||||
Err(e) => {
|
||||
logging!(warn, Type::System, "Startup install failed: {e:#}");
|
||||
logging!(
|
||||
warn,
|
||||
Type::System,
|
||||
"Startup install failed: {e:#}, will retry next launch"
|
||||
);
|
||||
Self::close_update_splash(app_handle);
|
||||
false
|
||||
}
|
||||
@@ -403,13 +400,9 @@ impl SilentUpdater {
|
||||
on_event: impl Fn(DownloadEvent) + Sync,
|
||||
) -> Result<InstallUpdateOutcome> {
|
||||
let cancel = CancellationToken::new();
|
||||
{
|
||||
let mut slot = self.manual_cancel.lock();
|
||||
anyhow::ensure!(slot.is_none(), "an update install is already in progress");
|
||||
*slot = Some(cancel.clone());
|
||||
}
|
||||
*self.manual_cancel.lock() = Some(cancel.clone());
|
||||
let prepared = tokio::select! {
|
||||
prepared = self.prepare_install(app_handle, version, &on_event) => Some(prepared),
|
||||
prepared = Self::prepare_install(app_handle, version, on_event) => Some(prepared),
|
||||
() = cancel.cancelled() => None,
|
||||
};
|
||||
// `cancel_download` cancels under the lock, so once the token is taken back its state is
|
||||
@@ -424,16 +417,15 @@ impl SilentUpdater {
|
||||
};
|
||||
|
||||
logging!(info, Type::System, "Installing update v{version}...");
|
||||
on_event(DownloadEvent::Installing);
|
||||
Self::install(update, bytes).await?;
|
||||
Self::delete_cache();
|
||||
Ok(InstallUpdateOutcome::Installed)
|
||||
}
|
||||
|
||||
async fn prepare_install(
|
||||
&self,
|
||||
app_handle: &tauri::AppHandle,
|
||||
version: &str,
|
||||
on_event: &(impl Fn(DownloadEvent) + Sync),
|
||||
on_event: impl Fn(DownloadEvent) + Sync,
|
||||
) -> Result<Option<(Update, Vec<u8>)>> {
|
||||
let Some(update) = Self::check(app_handle)
|
||||
.await?
|
||||
@@ -441,8 +433,7 @@ impl SilentUpdater {
|
||||
else {
|
||||
return Ok(None);
|
||||
};
|
||||
let _download_guard = self.download_lock.lock().await;
|
||||
let bytes = match Self::verified_cache(&update).await {
|
||||
let bytes = match Self::verified_cache(&update) {
|
||||
Some(bytes) => bytes,
|
||||
None => download(&update, on_event).await?,
|
||||
};
|
||||
@@ -457,12 +448,13 @@ impl SilentUpdater {
|
||||
}
|
||||
|
||||
/// Drops the downloaded update and aborts a background download in flight.
|
||||
pub async fn discard_pending(&self) {
|
||||
pub fn discard_pending(&self) {
|
||||
let cancel = self.background_cancel.lock().take();
|
||||
if let Some(cancel) = cancel {
|
||||
cancel.cancel();
|
||||
}
|
||||
Self::delete_cache().await;
|
||||
self.update_ready.store(false, Ordering::Release);
|
||||
Self::delete_cache();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -584,6 +576,11 @@ impl SilentUpdater {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if self.is_update_ready() {
|
||||
logging!(debug, Type::System, "Silent update skipped: update already pending");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
logging!(info, Type::System, "Silent updater: checking for updates...");
|
||||
|
||||
let updater = app_handle.updater()?;
|
||||
@@ -602,13 +599,22 @@ impl SilentUpdater {
|
||||
let version = update.version.as_str();
|
||||
logging!(info, Type::System, "Silent updater: update available: v{version}");
|
||||
|
||||
let download_guard = self.download_lock.lock().await;
|
||||
// A discard that arrived while waiting for the lock must not start a doomed download.
|
||||
if cancel.is_cancelled() {
|
||||
if let Some(body) = &update.body
|
||||
&& body.to_lowercase().contains("break change")
|
||||
{
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
"Silent updater: breaking change detected in v{version}, notifying frontend"
|
||||
);
|
||||
super::handle::Handle::notice(
|
||||
super::notify::NoticeStatus::Info,
|
||||
format!("New version v{version} contains breaking changes. Please update manually."),
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if Self::verified_cache(&update).await.is_some() {
|
||||
if Self::verified_cache(&update).is_some() {
|
||||
logging!(info, Type::System, "Silent updater: v{version} already cached");
|
||||
} else {
|
||||
logging!(info, Type::System, "Silent updater: downloading v{version}...");
|
||||
@@ -622,26 +628,23 @@ impl SilentUpdater {
|
||||
};
|
||||
let bytes = bytes?;
|
||||
logging!(info, Type::System, "Silent updater: download complete");
|
||||
Self::write_cache(bytes, version).await?;
|
||||
Self::write_cache(&bytes, version)?;
|
||||
}
|
||||
drop(download_guard);
|
||||
|
||||
// Serialized with `discard_pending` in the verge patch, which holds the same lock;
|
||||
// the deletion itself is idempotent, so it runs after the lock.
|
||||
let discard = {
|
||||
let _config_write = Config::lock_config_write().await;
|
||||
cancel.is_cancelled() || !Config::verge().await.latest_arc().auto_check_update.unwrap_or(true)
|
||||
};
|
||||
if discard {
|
||||
// Serialized with `discard_pending` in the verge patch, which holds the same lock.
|
||||
let _config_write = Config::lock_config_write().await;
|
||||
if cancel.is_cancelled() || !Config::verge().await.latest_arc().auto_check_update.unwrap_or(true) {
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
"Silent updater: auto check was disabled, discarding v{version}"
|
||||
);
|
||||
Self::delete_cache().await;
|
||||
Self::delete_cache();
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
self.update_ready.store(true, Ordering::Release);
|
||||
|
||||
logging!(
|
||||
info,
|
||||
Type::System,
|
||||
@@ -665,33 +668,3 @@ impl SilentUpdater {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{is_build_to_stable, version_lte};
|
||||
|
||||
#[test]
|
||||
fn version_lte_orders_prereleases_below_their_release() {
|
||||
assert!(version_lte("2.2.0-beta.1", "2.2.0"));
|
||||
assert!(!version_lte("2.2.0", "2.2.0-alpha.1"));
|
||||
assert!(version_lte("2.2.0", "2.2.0"));
|
||||
assert!(version_lte("2.1.9", "2.2.0"));
|
||||
assert!(!version_lte("2.2.1", "2.2.0"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn version_lte_strips_prefixes_and_falls_back_to_equality() {
|
||||
assert!(version_lte("v2.2.0", "2.2.0"));
|
||||
assert!(version_lte("2.2.0+5", "2.2.1"));
|
||||
assert!(version_lte("2.1.1臻fix", "2.1.1臻fix"));
|
||||
assert!(!version_lte("2.1.1臻fix", "2.2.0"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn is_build_to_stable_matches_build_metadata_to_the_same_base() {
|
||||
assert!(is_build_to_stable("2.4.3+5", "2.4.3"));
|
||||
assert!(!is_build_to_stable("2.4.3+5", "2.4.4"));
|
||||
assert!(!is_build_to_stable("2.4.3", "2.4.3"));
|
||||
assert!(!is_build_to_stable("2.4.3-beta+5", "2.4.3"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ pub(super) async fn apply(config_write: &MutexGuard<'_, ()>, patch: Patch<'_>, e
|
||||
match patch {
|
||||
Patch::Verge { patch, .. } => {
|
||||
if patch.auto_check_update == Some(false) {
|
||||
SilentUpdater::global().discard_pending().await;
|
||||
SilentUpdater::global().discard_pending();
|
||||
}
|
||||
if effects.contains(&Effect::ClashConfig) {
|
||||
announce(Refresh::Clash);
|
||||
|
||||
@@ -267,9 +267,6 @@ export function UpdateViewer({ ref }: { ref?: Ref<UpdateViewerRef> }) {
|
||||
})
|
||||
const { downloaded, total } = download
|
||||
|
||||
// Install cannot be cancelled; only the download can.
|
||||
const [installing, setInstalling] = useState(false)
|
||||
|
||||
const progress = total <= 0 ? 0 : Math.min((downloaded / total) * 100, 100)
|
||||
|
||||
useImperativeHandle(ref, () => ({
|
||||
@@ -306,8 +303,19 @@ export function UpdateViewer({ ref }: { ref?: Ref<UpdateViewerRef> }) {
|
||||
return updateInfo?.body
|
||||
}, [activeLanguage, t, updateInfo])
|
||||
|
||||
const breakChangeFlag = useMemo(() => {
|
||||
if (!updateInfo?.body) {
|
||||
return false
|
||||
}
|
||||
return updateInfo?.body.toLowerCase().includes('break change')
|
||||
}, [updateInfo])
|
||||
|
||||
const onUpdate = useLockFn(async () => {
|
||||
if (!updateInfo?.body) return
|
||||
if (breakChangeFlag) {
|
||||
showNotice.error('settings.modals.update.messages.breakChangeError')
|
||||
return
|
||||
}
|
||||
if (updateState) return
|
||||
setUpdateState(true)
|
||||
setDownload({ downloaded: 0, total: 0 })
|
||||
@@ -325,8 +333,6 @@ export function UpdateViewer({ ref }: { ref?: Ref<UpdateViewerRef> }) {
|
||||
...prev,
|
||||
total: prev.total || prev.downloaded,
|
||||
}))
|
||||
} else if (event.event === 'Installing') {
|
||||
setInstalling(true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -360,7 +366,6 @@ export function UpdateViewer({ ref }: { ref?: Ref<UpdateViewerRef> }) {
|
||||
} finally {
|
||||
setUpdateState(false)
|
||||
setDownload({ downloaded: 0, total: 0 })
|
||||
setInstalling(false)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -414,7 +419,6 @@ export function UpdateViewer({ ref }: { ref?: Ref<UpdateViewerRef> }) {
|
||||
}}
|
||||
okBtn={t('settings.modals.update.actions.update')}
|
||||
cancelBtn={t('shared.actions.cancel')}
|
||||
disableCancel={installing}
|
||||
onClose={() => setOpen(false)}
|
||||
onCancel={() => {
|
||||
if (updateState) {
|
||||
@@ -556,7 +560,7 @@ export function UpdateViewer({ ref }: { ref?: Ref<UpdateViewerRef> }) {
|
||||
</Box>
|
||||
{updateState && (
|
||||
<LinearProgress
|
||||
variant={total > 0 && !installing ? 'determinate' : 'indeterminate'}
|
||||
variant={total > 0 ? 'determinate' : 'indeterminate'}
|
||||
value={progress}
|
||||
sx={{ mt: 1 }}
|
||||
/>
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
} from '@/services/cmds'
|
||||
import { mutate } from '@/services/mutate'
|
||||
import { showNotice } from '@/services/notice-service'
|
||||
import { checkForUpdate as checkUpdate } from '@/services/update'
|
||||
import { checkUpdateSafe as checkUpdate } from '@/services/update'
|
||||
import { version } from '@root/package.json'
|
||||
|
||||
import { BackupViewer } from './mods/backup-viewer'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { fetchCacheData, setCacheData, useQuery } from '@/services/query-client'
|
||||
import { checkForUpdate } from '@/services/update'
|
||||
import { checkUpdateSafe } from '@/services/update'
|
||||
|
||||
import { useVerge } from './use-verge'
|
||||
|
||||
@@ -26,7 +26,7 @@ export const useUpdate = (enabled: boolean = true) => {
|
||||
const shouldCheck = enabled && auto_check_update !== false
|
||||
|
||||
const fetchUpdate = async () => {
|
||||
const result = await checkForUpdate()
|
||||
const result = await checkUpdateSafe()
|
||||
updateLastCheckTime()
|
||||
return result
|
||||
}
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "تحديث"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "هذا الإصدار هو تحديث رئيسي ولا يدعم التحديث داخل التطبيق. يرجى إلغاء التثبيت وتنزيل الإصدار الجديد وتثبيته يدويًا",
|
||||
"available": "يتوفّر إصدار جديد"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Aktualisieren"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Dies ist eine wichtige Aktualisierung. Die In-App-Aktualisierung wird nicht unterstützt. Bitte deinstallieren Sie die Software und laden Sie die neue Version manuell herunter und installieren Sie sie.",
|
||||
"available": "Eine neue Version ist verfügbar"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Update"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "This version is a major update and does not support in-app updates. Please uninstall it and manually download and install the new version",
|
||||
"available": "A new version is available"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Actualizar"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Esta es una actualización importante y no se admite la actualización desde dentro de la aplicación. Desinstale e instale manualmente la nueva versión.",
|
||||
"available": "Hay una nueva versión disponible"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "بهروزرسانی"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "این نسخه یک بهروزرسانی اساسی است و پشتیبانی از بهروزرسانی درون برنامه را پشتیبانی نمیکند. لطفاً پس از حذف، دستی دانلود و نصب کنید.",
|
||||
"available": "نسخه جدیدی در دسترس است"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Perbarui"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Versi ini adalah pembaruan besar dan tidak mendukung pembaruan dalam aplikasi. Harap hapus instalasi dan unduh serta instal versi baru secara manual",
|
||||
"available": "Versi baru tersedia"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "更新"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "このバージョンは重大な更新であり、アプリケーション内での更新はサポートされていません。アンインストールしてから手動でダウンロードしてインストールしてください。",
|
||||
"available": "新しいバージョンが利用可能です"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "업데이트"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "이 버전은 메이저 업데이트로 앱 내 업데이트를 지원하지 않습니다. 프로그램을 제거한 뒤 새 버전을 수동으로 설치하세요",
|
||||
"available": "새 버전을 사용할 수 있습니다"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Atualizar"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Esta versão é uma atualização importante e não oferece suporte a atualizações dentro do aplicativo. Desinstale-a e baixe e instale a nova versão manualmente",
|
||||
"available": "Uma nova versão está disponível"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Обновить"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Это крупное обновление, которое не поддерживает обновление внутри приложения. Пожалуйста, удалите текущую версию и загрузите установочный файл вручную.",
|
||||
"available": "Доступна новая версия"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Güncelle"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Bu sürüm büyük bir güncellemedir ve uygulama içi güncellemeleri desteklemez. Lütfen kaldırın ve yeni sürümü manuel olarak indirip kurun",
|
||||
"available": "Yeni bir sürüm mevcut"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "Яңарту"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "Бу зур яңарту, ул кушымта эчендә яңартылмый. Борып алып ташлап, яңадан урнаштыру сорала.",
|
||||
"available": "Яңа версия бар"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "更新"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "此版本为重大更新,不支持应用内更新,请卸载后手动下载安装",
|
||||
"available": "有新版本可用"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -445,6 +445,7 @@
|
||||
"update": "更新"
|
||||
},
|
||||
"messages": {
|
||||
"breakChangeError": "此版本為重大更新,不支援應用程式內更新,請解除安裝後手動下載安裝",
|
||||
"available": "有新版本可用"
|
||||
},
|
||||
"alerts": {
|
||||
|
||||
@@ -260,16 +260,10 @@ export type DnsOverrideOutcome =
|
||||
| { status: 'applied' }
|
||||
| { status: 'confirmation_required'; source: string }
|
||||
|
||||
/**
|
||||
* Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
|
||||
* install starts.
|
||||
*/
|
||||
/** Same wire shape as the updater plugin's JS `DownloadEvent`. */
|
||||
export type DownloadEvent = DownloadEvent_Serialize | DownloadEvent_Deserialize
|
||||
|
||||
/**
|
||||
* Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
|
||||
* install starts.
|
||||
*/
|
||||
/** Same wire shape as the updater plugin's JS `DownloadEvent`. */
|
||||
export type DownloadEvent_Deserialize =
|
||||
| {
|
||||
event: 'Started'
|
||||
@@ -284,12 +278,8 @@ export type DownloadEvent_Deserialize =
|
||||
}
|
||||
}
|
||||
| { event: 'Finished' }
|
||||
| { event: 'Installing' }
|
||||
|
||||
/**
|
||||
* Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
|
||||
* install starts.
|
||||
*/
|
||||
/** Same wire shape as the updater plugin's JS `DownloadEvent`. */
|
||||
export type DownloadEvent_Serialize =
|
||||
| {
|
||||
event: 'Started'
|
||||
@@ -304,7 +294,6 @@ export type DownloadEvent_Serialize =
|
||||
}
|
||||
}
|
||||
| { event: 'Finished' }
|
||||
| { event: 'Installing' }
|
||||
|
||||
/** Operation associated with a pending failure. */
|
||||
export type FailedOperation =
|
||||
@@ -621,6 +610,7 @@ export type NetworkInterfaceView_Serialize = {
|
||||
}
|
||||
|
||||
export type NoticeStatus =
|
||||
| 'info'
|
||||
| 'import_sub_url::ok'
|
||||
| 'import_sub_url::error'
|
||||
| 'set_config::error'
|
||||
|
||||
@@ -35,6 +35,9 @@ const handlers: Record<
|
||||
NoticeStatus,
|
||||
(msg: string, navigate: NavigateFunction) => void
|
||||
> = {
|
||||
info: (msg) => {
|
||||
if (msg) showNotice.info(msg)
|
||||
},
|
||||
'import_sub_url::ok': (_msg, navigate) => {
|
||||
// 空 msg 传入,我们不希望导致 后端-前端-后端 死循环,这里只做提醒。
|
||||
// 未来细分事件通知时,可以考虑传入订阅 ID 或其他标识符
|
||||
|
||||
+44
-4
@@ -3,11 +3,51 @@ import {
|
||||
type CheckOptions,
|
||||
type Update,
|
||||
} from '@tauri-apps/plugin-updater'
|
||||
import { compareVersions as compareSemver } from 'compare-versions'
|
||||
|
||||
// The plugin's version comparator is overridden in src-tauri/src/lib.rs, so an update
|
||||
// returned by `check` is already installable and needs no extra filtering here.
|
||||
export const checkForUpdate = async (
|
||||
import { version as appVersion } from '@root/package.json'
|
||||
|
||||
const normalizeVersion = (input: string | null | undefined): string | null => {
|
||||
if (typeof input !== 'string') return null
|
||||
const trimmed = input.trim()
|
||||
if (!trimmed) return null
|
||||
return trimmed.replace(/^v/i, '')
|
||||
}
|
||||
|
||||
const compareVersions = (a: string | null, b: string | null): number | null => {
|
||||
if (!a || !b) return null
|
||||
try {
|
||||
return compareSemver(a, b)
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
const localVersionNormalized = normalizeVersion(appVersion)
|
||||
|
||||
export const checkUpdateSafe = async (
|
||||
options?: CheckOptions,
|
||||
): Promise<Update | null> => {
|
||||
return check(options ?? {})
|
||||
const result = await check(options ?? {})
|
||||
if (!result) return null
|
||||
|
||||
const remoteVersion = result.version
|
||||
const comparison = compareVersions(remoteVersion, localVersionNormalized)
|
||||
|
||||
const isBuildToStable =
|
||||
/^\d+\.\d+\.\d+\+[0-9A-Za-z.-]+$/.test(localVersionNormalized ?? '') &&
|
||||
remoteVersion === localVersionNormalized?.split('+')[0]
|
||||
|
||||
if (comparison !== null && comparison <= 0 && !isBuildToStable) {
|
||||
try {
|
||||
await result.close()
|
||||
} catch (err) {
|
||||
console.warn('[updater] failed to close stale update resource', err)
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
export type { CheckOptions }
|
||||
|
||||
@@ -709,6 +709,7 @@ export const translationKeys = [
|
||||
'settings.modals.update.title',
|
||||
'settings.modals.update.actions.goToRelease',
|
||||
'settings.modals.update.actions.update',
|
||||
'settings.modals.update.messages.breakChangeError',
|
||||
'settings.modals.update.messages.available',
|
||||
'settings.modals.update.alerts.note',
|
||||
'settings.modals.update.alerts.tip',
|
||||
|
||||
@@ -1263,6 +1263,7 @@ export interface TranslationResources {
|
||||
}
|
||||
messages: {
|
||||
available: string
|
||||
breakChangeError: string
|
||||
}
|
||||
title: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user