🚨 尝试修复 qodana 报错

This commit is contained in:
目棃
2024-12-13 16:37:05 +08:00
parent 3ed6d503d4
commit 1b817cff5e
6 changed files with 173 additions and 143 deletions

View File

@@ -41,7 +41,6 @@ const vueConfig = {
sourceType: "module", sourceType: "module",
parser: parserVue, parser: parserVue,
parserOptions: { parserOptions: {
project: "tsconfig.json",
parser: eslintTs.parser, parser: eslintTs.parser,
extraFileExtensions: [".vue"], extraFileExtensions: [".vue"],
tsconfigRootDir: ".", tsconfigRootDir: ".",

233
pnpm-lock.yaml generated
View File

@@ -578,8 +578,8 @@ packages:
resolution: {integrity: sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==} resolution: {integrity: sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==}
engines: {node: '>=18.18'} engines: {node: '>=18.18'}
'@jridgewell/gen-mapping@0.3.5': '@jridgewell/gen-mapping@0.3.8':
resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}
engines: {node: '>=6.0.0'} engines: {node: '>=6.0.0'}
'@jridgewell/resolve-uri@3.1.2': '@jridgewell/resolve-uri@3.1.2':
@@ -1172,12 +1172,16 @@ packages:
resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==} resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
call-bound@1.0.2:
resolution: {integrity: sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==}
engines: {node: '>= 0.4'}
callsites@3.1.0: callsites@3.1.0:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'} engines: {node: '>=6'}
caniuse-lite@1.0.30001687: caniuse-lite@1.0.30001688:
resolution: {integrity: sha512-0S/FDhf4ZiqrTUiQ39dKeUjYRjkv7lOZU1Dgif2rIqrTzX/1wV2hfKu9TOm1IHkdSijfLswxTFzl/cvir+SLSQ==} resolution: {integrity: sha512-Nmqpru91cuABu/DTCXbM2NSRHzM2uVHfPnhJ/1zEAJx/ILBRVmz3pzH4N7DZqbdG0gWClsCC05Oj0mJ/1AWMbA==}
chalk@4.1.2: chalk@4.1.2:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
@@ -1383,8 +1387,8 @@ packages:
echarts@5.5.1: echarts@5.5.1:
resolution: {integrity: sha512-Fce8upazaAXUVUVsjgV6mBnGuqgO+JNDlcgF79Dksy4+wgGpQB2lmYoO4TSweFg/mZITdpGHomw/cNBJZj1icA==} resolution: {integrity: sha512-Fce8upazaAXUVUVsjgV6mBnGuqgO+JNDlcgF79Dksy4+wgGpQB2lmYoO4TSweFg/mZITdpGHomw/cNBJZj1icA==}
electron-to-chromium@1.5.72: electron-to-chromium@1.5.73:
resolution: {integrity: sha512-ZpSAUOZ2Izby7qnZluSrAlGgGQzucmFbN0n64dYzocYxnxV5ufurpj3VgEe4cUp7ir9LmeLxNYo8bVnlM8bQHw==} resolution: {integrity: sha512-8wGNxG9tAG5KhGd3eeA0o6ixhiNdgr0DcHWm85XPCphwZgD1lIEoi6t3VERayWao7SF7AAZTw6oARGJeVjH8Kg==}
emoji-regex@10.4.0: emoji-regex@10.4.0:
resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==} resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==}
@@ -1705,8 +1709,8 @@ packages:
resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}
engines: {node: '>=18'} engines: {node: '>=18'}
get-intrinsic@1.2.5: get-intrinsic@1.2.6:
resolution: {integrity: sha512-Y4+pKa7XeRUPWFNvOOYHkRYrfzW07oraURSvjDmRVOJ748OrVmeXtpE4+GCEHncjCjkTxPNRt8kEbxDhsn6VTg==} resolution: {integrity: sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
get-stream@8.0.1: get-stream@8.0.1:
@@ -1879,8 +1883,8 @@ packages:
resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==} resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-boolean-object@1.2.0: is-boolean-object@1.2.1:
resolution: {integrity: sha512-kR5g0+dXf/+kXnqI+lu0URKYPKgICtHGGNCDSB10AaUFj3o/HkB3u7WfpRBJGFopxxY0oH3ux7ZsDjLtK7xqvw==} resolution: {integrity: sha512-l9qO6eFlUETHtuihLcYOaLKByJ1f+N4kthcU9YjHy3N+B3hWv0y/2Nd0mu/7lTFnRQHTrSdXF50HQ3bl5fEnng==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-callable@1.2.7: is-callable@1.2.7:
@@ -1891,12 +1895,12 @@ packages:
resolution: {integrity: sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==} resolution: {integrity: sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-data-view@1.0.1: is-data-view@1.0.2:
resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-date-object@1.0.5: is-date-object@1.1.0:
resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-docker@3.0.0: is-docker@3.0.0:
@@ -1961,8 +1965,8 @@ packages:
resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
is-regex@1.2.0: is-regex@1.2.1:
resolution: {integrity: sha512-B6ohK4ZmoftlUe+uvenXSbPJFo6U37BH7oO1B3nQH8f/7h27N56s85MhUtbFJAziz5dcmuR3i8ovUl35zp8pFA==} resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-set@2.0.3: is-set@2.0.3:
@@ -1985,8 +1989,8 @@ packages:
resolution: {integrity: sha512-PlfzajuF9vSo5wErv3MJAKD/nqf9ngAs1NFQYm16nUYFO2IzxJ2hcm+IOCg+EEopdykNNUhVq5cz35cAUxU8+g==} resolution: {integrity: sha512-PlfzajuF9vSo5wErv3MJAKD/nqf9ngAs1NFQYm16nUYFO2IzxJ2hcm+IOCg+EEopdykNNUhVq5cz35cAUxU8+g==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-symbol@1.1.0: is-symbol@1.1.1:
resolution: {integrity: sha512-qS8KkNNXUZ/I+nX6QT8ZS1/Yx0A444yhzdTKxCzKkNjQ9sHErBxJnJAgh+f5YhusYECEcjo4XcyH87hn6+ks0A==} resolution: {integrity: sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-typed-array@1.1.13: is-typed-array@1.1.13:
@@ -2148,6 +2152,10 @@ packages:
magic-string@0.30.15: magic-string@0.30.15:
resolution: {integrity: sha512-zXeaYRgZ6ldS1RJJUrMrYgNJ4fdwnyI6tVqoiIhyCyv5IVTK9BU8Ic2l253GGETQHxI4HNUwhJ3fjDhKqEoaAw==} resolution: {integrity: sha512-zXeaYRgZ6ldS1RJJUrMrYgNJ4fdwnyI6tVqoiIhyCyv5IVTK9BU8Ic2l253GGETQHxI4HNUwhJ3fjDhKqEoaAw==}
math-intrinsics@1.0.0:
resolution: {integrity: sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==}
engines: {node: '>= 0.4'}
mathml-tag-names@2.1.3: mathml-tag-names@2.1.3:
resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==} resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==}
@@ -2527,12 +2535,12 @@ packages:
rxjs@7.8.1: rxjs@7.8.1:
resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==}
safe-array-concat@1.1.2: safe-array-concat@1.1.3:
resolution: {integrity: sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==} resolution: {integrity: sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==}
engines: {node: '>=0.4'} engines: {node: '>=0.4'}
safe-regex-test@1.0.3: safe-regex-test@1.1.0:
resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
sax@1.4.1: sax@1.4.1:
@@ -2573,8 +2581,20 @@ packages:
resolution: {integrity: sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==} resolution: {integrity: sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
side-channel@1.0.6: side-channel-list@1.0.0:
resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==}
engines: {node: '>= 0.4'}
side-channel-map@1.0.1:
resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}
engines: {node: '>= 0.4'}
side-channel-weakmap@1.0.2:
resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
engines: {node: '>= 0.4'}
side-channel@1.1.0:
resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
signal-exit@4.1.0: signal-exit@4.1.0:
@@ -2628,12 +2648,13 @@ packages:
resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
engines: {node: '>=18'} engines: {node: '>=18'}
string.prototype.trim@1.2.9: string.prototype.trim@1.2.10:
resolution: {integrity: sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==} resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
string.prototype.trimend@1.0.8: string.prototype.trimend@1.0.9:
resolution: {integrity: sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==} resolution: {integrity: sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==}
engines: {node: '>= 0.4'}
string.prototype.trimstart@1.0.8: string.prototype.trimstart@1.0.8:
resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==} resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}
@@ -3062,8 +3083,8 @@ packages:
resolution: {integrity: sha512-Ei7Miu/AXe2JJ4iNF5j/UphAgRoma4trE6PtisM09bPygb3egMH3YLW/befsWb1A1AxvNSFidOFTB18XtnIIng==} resolution: {integrity: sha512-Ei7Miu/AXe2JJ4iNF5j/UphAgRoma4trE6PtisM09bPygb3egMH3YLW/befsWb1A1AxvNSFidOFTB18XtnIIng==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
which-builtin-type@1.2.0: which-builtin-type@1.2.1:
resolution: {integrity: sha512-I+qLGQ/vucCby4tf5HsLmGueEla4ZhwTBSqaooS+Y0BuxN4Cp+okmGuV+8mXZ84KDI9BA+oklo+RzKg0ONdSUA==} resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
which-collection@1.0.2: which-collection@1.0.2:
@@ -3149,7 +3170,7 @@ snapshots:
'@ampproject/remapping@2.3.0': '@ampproject/remapping@2.3.0':
dependencies: dependencies:
'@jridgewell/gen-mapping': 0.3.5 '@jridgewell/gen-mapping': 0.3.8
'@jridgewell/trace-mapping': 0.3.25 '@jridgewell/trace-mapping': 0.3.25
'@antfu/utils@0.7.10': {} '@antfu/utils@0.7.10': {}
@@ -3186,7 +3207,7 @@ snapshots:
dependencies: dependencies:
'@babel/parser': 7.26.3 '@babel/parser': 7.26.3
'@babel/types': 7.26.3 '@babel/types': 7.26.3
'@jridgewell/gen-mapping': 0.3.5 '@jridgewell/gen-mapping': 0.3.8
'@jridgewell/trace-mapping': 0.3.25 '@jridgewell/trace-mapping': 0.3.25
jsesc: 3.1.0 jsesc: 3.1.0
@@ -3488,7 +3509,7 @@ snapshots:
'@humanwhocodes/retry@0.4.1': {} '@humanwhocodes/retry@0.4.1': {}
'@jridgewell/gen-mapping@0.3.5': '@jridgewell/gen-mapping@0.3.8':
dependencies: dependencies:
'@jridgewell/set-array': 1.2.1 '@jridgewell/set-array': 1.2.1
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
@@ -4021,7 +4042,7 @@ snapshots:
define-properties: 1.2.1 define-properties: 1.2.1
es-abstract: 1.23.5 es-abstract: 1.23.5
es-object-atoms: 1.0.0 es-object-atoms: 1.0.0
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
is-string: 1.1.0 is-string: 1.1.0
array-union@2.1.0: {} array-union@2.1.0: {}
@@ -4056,7 +4077,7 @@ snapshots:
define-properties: 1.2.1 define-properties: 1.2.1
es-abstract: 1.23.5 es-abstract: 1.23.5
es-errors: 1.3.0 es-errors: 1.3.0
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
is-array-buffer: 3.0.4 is-array-buffer: 3.0.4
is-shared-array-buffer: 1.0.3 is-shared-array-buffer: 1.0.3
@@ -4095,8 +4116,8 @@ snapshots:
browserslist@4.24.2: browserslist@4.24.2:
dependencies: dependencies:
caniuse-lite: 1.0.30001687 caniuse-lite: 1.0.30001688
electron-to-chromium: 1.5.72 electron-to-chromium: 1.5.73
node-releases: 2.0.19 node-releases: 2.0.19
update-browserslist-db: 1.1.1(browserslist@4.24.2) update-browserslist-db: 1.1.1(browserslist@4.24.2)
@@ -4128,12 +4149,17 @@ snapshots:
dependencies: dependencies:
call-bind-apply-helpers: 1.0.1 call-bind-apply-helpers: 1.0.1
es-define-property: 1.0.1 es-define-property: 1.0.1
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
set-function-length: 1.2.2 set-function-length: 1.2.2
call-bound@1.0.2:
dependencies:
call-bind: 1.0.8
get-intrinsic: 1.2.6
callsites@3.1.0: {} callsites@3.1.0: {}
caniuse-lite@1.0.30001687: {} caniuse-lite@1.0.30001688: {}
chalk@4.1.2: chalk@4.1.2:
dependencies: dependencies:
@@ -4243,19 +4269,19 @@ snapshots:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
es-errors: 1.3.0 es-errors: 1.3.0
is-data-view: 1.0.1 is-data-view: 1.0.2
data-view-byte-length@1.0.1: data-view-byte-length@1.0.1:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
es-errors: 1.3.0 es-errors: 1.3.0
is-data-view: 1.0.1 is-data-view: 1.0.2
data-view-byte-offset@1.0.0: data-view-byte-offset@1.0.0:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
es-errors: 1.3.0 es-errors: 1.3.0
is-data-view: 1.0.1 is-data-view: 1.0.2
debug@3.2.7: debug@3.2.7:
dependencies: dependencies:
@@ -4335,7 +4361,7 @@ snapshots:
tslib: 2.3.0 tslib: 2.3.0
zrender: 5.6.0 zrender: 5.6.0
electron-to-chromium@1.5.72: {} electron-to-chromium@1.5.73: {}
emoji-regex@10.4.0: {} emoji-regex@10.4.0: {}
@@ -4368,7 +4394,7 @@ snapshots:
es-set-tostringtag: 2.0.3 es-set-tostringtag: 2.0.3
es-to-primitive: 1.3.0 es-to-primitive: 1.3.0
function.prototype.name: 1.1.6 function.prototype.name: 1.1.6
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
get-symbol-description: 1.0.2 get-symbol-description: 1.0.2
globalthis: 1.0.4 globalthis: 1.0.4
gopd: 1.2.0 gopd: 1.2.0
@@ -4379,9 +4405,9 @@ snapshots:
internal-slot: 1.0.7 internal-slot: 1.0.7
is-array-buffer: 3.0.4 is-array-buffer: 3.0.4
is-callable: 1.2.7 is-callable: 1.2.7
is-data-view: 1.0.1 is-data-view: 1.0.2
is-negative-zero: 2.0.3 is-negative-zero: 2.0.3
is-regex: 1.2.0 is-regex: 1.2.1
is-shared-array-buffer: 1.0.3 is-shared-array-buffer: 1.0.3
is-string: 1.1.0 is-string: 1.1.0
is-typed-array: 1.1.13 is-typed-array: 1.1.13
@@ -4390,10 +4416,10 @@ snapshots:
object-keys: 1.1.1 object-keys: 1.1.1
object.assign: 4.1.5 object.assign: 4.1.5
regexp.prototype.flags: 1.5.3 regexp.prototype.flags: 1.5.3
safe-array-concat: 1.1.2 safe-array-concat: 1.1.3
safe-regex-test: 1.0.3 safe-regex-test: 1.1.0
string.prototype.trim: 1.2.9 string.prototype.trim: 1.2.10
string.prototype.trimend: 1.0.8 string.prototype.trimend: 1.0.9
string.prototype.trimstart: 1.0.8 string.prototype.trimstart: 1.0.8
typed-array-buffer: 1.0.2 typed-array-buffer: 1.0.2
typed-array-byte-length: 1.0.1 typed-array-byte-length: 1.0.1
@@ -4412,7 +4438,7 @@ snapshots:
es-set-tostringtag@2.0.3: es-set-tostringtag@2.0.3:
dependencies: dependencies:
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
hasown: 2.0.2 hasown: 2.0.2
@@ -4423,8 +4449,8 @@ snapshots:
es-to-primitive@1.3.0: es-to-primitive@1.3.0:
dependencies: dependencies:
is-callable: 1.2.7 is-callable: 1.2.7
is-date-object: 1.0.5 is-date-object: 1.1.0
is-symbol: 1.1.0 is-symbol: 1.1.1
esbuild@0.24.0: esbuild@0.24.0:
optionalDependencies: optionalDependencies:
@@ -4513,7 +4539,7 @@ snapshots:
object.groupby: 1.0.3 object.groupby: 1.0.3
object.values: 1.2.0 object.values: 1.2.0
semver: 6.3.1 semver: 6.3.1
string.prototype.trimend: 1.0.8 string.prototype.trimend: 1.0.9
tsconfig-paths: 3.15.0 tsconfig-paths: 3.15.0
optionalDependencies: optionalDependencies:
'@typescript-eslint/parser': 8.18.0(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2) '@typescript-eslint/parser': 8.18.0(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2)
@@ -4776,16 +4802,18 @@ snapshots:
get-east-asian-width@1.3.0: {} get-east-asian-width@1.3.0: {}
get-intrinsic@1.2.5: get-intrinsic@1.2.6:
dependencies: dependencies:
call-bind-apply-helpers: 1.0.1 call-bind-apply-helpers: 1.0.1
dunder-proto: 1.0.0 dunder-proto: 1.0.0
es-define-property: 1.0.1 es-define-property: 1.0.1
es-errors: 1.3.0 es-errors: 1.3.0
es-object-atoms: 1.0.0
function-bind: 1.1.2 function-bind: 1.1.2
gopd: 1.2.0 gopd: 1.2.0
has-symbols: 1.1.0 has-symbols: 1.1.0
hasown: 2.0.2 hasown: 2.0.2
math-intrinsics: 1.0.0
get-stream@8.0.1: {} get-stream@8.0.1: {}
@@ -4798,7 +4826,7 @@ snapshots:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
es-errors: 1.3.0 es-errors: 1.3.0
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
giget@1.2.3: giget@1.2.3:
dependencies: dependencies:
@@ -4937,12 +4965,12 @@ snapshots:
dependencies: dependencies:
es-errors: 1.3.0 es-errors: 1.3.0
hasown: 2.0.2 hasown: 2.0.2
side-channel: 1.0.6 side-channel: 1.1.0
is-array-buffer@3.0.4: is-array-buffer@3.0.4:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
is-arrayish@0.2.1: {} is-arrayish@0.2.1: {}
@@ -4954,9 +4982,9 @@ snapshots:
dependencies: dependencies:
has-bigints: 1.0.2 has-bigints: 1.0.2
is-boolean-object@1.2.0: is-boolean-object@1.2.1:
dependencies: dependencies:
call-bind: 1.0.8 call-bound: 1.0.2
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
is-callable@1.2.7: {} is-callable@1.2.7: {}
@@ -4965,12 +4993,15 @@ snapshots:
dependencies: dependencies:
hasown: 2.0.2 hasown: 2.0.2
is-data-view@1.0.1: is-data-view@1.0.2:
dependencies: dependencies:
call-bound: 1.0.2
get-intrinsic: 1.2.6
is-typed-array: 1.1.13 is-typed-array: 1.1.13
is-date-object@1.0.5: is-date-object@1.1.0:
dependencies: dependencies:
call-bound: 1.0.2
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
is-docker@3.0.0: {} is-docker@3.0.0: {}
@@ -5016,9 +5047,9 @@ snapshots:
is-plain-object@5.0.0: {} is-plain-object@5.0.0: {}
is-regex@1.2.0: is-regex@1.2.1:
dependencies: dependencies:
call-bind: 1.0.8 call-bound: 1.0.2
gopd: 1.2.0 gopd: 1.2.0
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
hasown: 2.0.2 hasown: 2.0.2
@@ -5038,11 +5069,11 @@ snapshots:
call-bind: 1.0.8 call-bind: 1.0.8
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
is-symbol@1.1.0: is-symbol@1.1.1:
dependencies: dependencies:
call-bind: 1.0.8 call-bound: 1.0.2
has-symbols: 1.1.0 has-symbols: 1.1.0
safe-regex-test: 1.0.3 safe-regex-test: 1.1.0
is-typed-array@1.1.13: is-typed-array@1.1.13:
dependencies: dependencies:
@@ -5059,7 +5090,7 @@ snapshots:
is-weakset@2.0.3: is-weakset@2.0.3:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
is-what@4.1.16: {} is-what@4.1.16: {}
@@ -5196,6 +5227,8 @@ snapshots:
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
math-intrinsics@1.0.0: {}
mathml-tag-names@2.1.3: {} mathml-tag-names@2.1.3: {}
mdn-data@2.12.2: {} mdn-data@2.12.2: {}
@@ -5503,9 +5536,9 @@ snapshots:
dunder-proto: 1.0.0 dunder-proto: 1.0.0
es-abstract: 1.23.5 es-abstract: 1.23.5
es-errors: 1.3.0 es-errors: 1.3.0
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
gopd: 1.2.0 gopd: 1.2.0
which-builtin-type: 1.2.0 which-builtin-type: 1.2.1
regexp.prototype.flags@1.5.3: regexp.prototype.flags@1.5.3:
dependencies: dependencies:
@@ -5572,18 +5605,19 @@ snapshots:
dependencies: dependencies:
tslib: 2.8.1 tslib: 2.8.1
safe-array-concat@1.1.2: safe-array-concat@1.1.3:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
get-intrinsic: 1.2.5 call-bound: 1.0.2
get-intrinsic: 1.2.6
has-symbols: 1.1.0 has-symbols: 1.1.0
isarray: 2.0.5 isarray: 2.0.5
safe-regex-test@1.0.3: safe-regex-test@1.1.0:
dependencies: dependencies:
call-bind: 1.0.8 call-bound: 1.0.2
es-errors: 1.3.0 es-errors: 1.3.0
is-regex: 1.2.0 is-regex: 1.2.1
sax@1.4.1: {} sax@1.4.1: {}
@@ -5600,7 +5634,7 @@ snapshots:
define-data-property: 1.1.4 define-data-property: 1.1.4
es-errors: 1.3.0 es-errors: 1.3.0
function-bind: 1.1.2 function-bind: 1.1.2
get-intrinsic: 1.2.5 get-intrinsic: 1.2.6
gopd: 1.2.0 gopd: 1.2.0
has-property-descriptors: 1.0.2 has-property-descriptors: 1.0.2
@@ -5619,13 +5653,34 @@ snapshots:
shell-quote@1.8.2: {} shell-quote@1.8.2: {}
side-channel@1.0.6: side-channel-list@1.0.0:
dependencies: dependencies:
call-bind: 1.0.8
es-errors: 1.3.0 es-errors: 1.3.0
get-intrinsic: 1.2.5
object-inspect: 1.13.3 object-inspect: 1.13.3
side-channel-map@1.0.1:
dependencies:
call-bound: 1.0.2
es-errors: 1.3.0
get-intrinsic: 1.2.6
object-inspect: 1.13.3
side-channel-weakmap@1.0.2:
dependencies:
call-bound: 1.0.2
es-errors: 1.3.0
get-intrinsic: 1.2.6
object-inspect: 1.13.3
side-channel-map: 1.0.1
side-channel@1.1.0:
dependencies:
es-errors: 1.3.0
object-inspect: 1.13.3
side-channel-list: 1.0.0
side-channel-map: 1.0.1
side-channel-weakmap: 1.0.2
signal-exit@4.1.0: {} signal-exit@4.1.0: {}
sirv@3.0.0: sirv@3.0.0:
@@ -5674,16 +5729,20 @@ snapshots:
get-east-asian-width: 1.3.0 get-east-asian-width: 1.3.0
strip-ansi: 7.1.0 strip-ansi: 7.1.0
string.prototype.trim@1.2.9: string.prototype.trim@1.2.10:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
call-bound: 1.0.2
define-data-property: 1.1.4
define-properties: 1.2.1 define-properties: 1.2.1
es-abstract: 1.23.5 es-abstract: 1.23.5
es-object-atoms: 1.0.0 es-object-atoms: 1.0.0
has-property-descriptors: 1.0.2
string.prototype.trimend@1.0.8: string.prototype.trimend@1.0.9:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
call-bound: 1.0.2
define-properties: 1.2.1 define-properties: 1.2.1
es-object-atoms: 1.0.0 es-object-atoms: 1.0.0
@@ -6165,21 +6224,21 @@ snapshots:
which-boxed-primitive@1.1.0: which-boxed-primitive@1.1.0:
dependencies: dependencies:
is-bigint: 1.1.0 is-bigint: 1.1.0
is-boolean-object: 1.2.0 is-boolean-object: 1.2.1
is-number-object: 1.1.0 is-number-object: 1.1.0
is-string: 1.1.0 is-string: 1.1.0
is-symbol: 1.1.0 is-symbol: 1.1.1
which-builtin-type@1.2.0: which-builtin-type@1.2.1:
dependencies: dependencies:
call-bind: 1.0.8 call-bound: 1.0.2
function.prototype.name: 1.1.6 function.prototype.name: 1.1.6
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
is-async-function: 2.0.0 is-async-function: 2.0.0
is-date-object: 1.0.5 is-date-object: 1.1.0
is-finalizationregistry: 1.1.0 is-finalizationregistry: 1.1.0
is-generator-function: 1.0.10 is-generator-function: 1.0.10
is-regex: 1.2.0 is-regex: 1.2.1
is-weakref: 1.0.2 is-weakref: 1.0.2
isarray: 2.0.5 isarray: 2.0.5
which-boxed-primitive: 1.1.0 which-boxed-primitive: 1.1.0

28
src-tauri/Cargo.lock generated
View File

@@ -3935,9 +3935,9 @@ dependencies = [
[[package]] [[package]]
name = "rustls" name = "rustls"
version = "0.23.19" version = "0.23.20"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b"
dependencies = [ dependencies = [
"once_cell", "once_cell",
"ring", "ring",
@@ -4058,9 +4058,9 @@ dependencies = [
[[package]] [[package]]
name = "semver" name = "semver"
version = "1.0.23" version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba"
dependencies = [ dependencies = [
"serde", "serde",
] ]
@@ -4943,7 +4943,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-deep-link" name = "tauri-plugin-deep-link"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"dunce", "dunce",
"rust-ini", "rust-ini",
@@ -4962,7 +4962,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-dialog" name = "tauri-plugin-dialog"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"log", "log",
"raw-window-handle", "raw-window-handle",
@@ -4979,7 +4979,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-fs" name = "tauri-plugin-fs"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"dunce", "dunce",
@@ -5001,7 +5001,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-http" name = "tauri-plugin-http"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"data-url", "data-url",
"http", "http",
@@ -5022,7 +5022,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-log" name = "tauri-plugin-log"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"android_logger", "android_logger",
"byte-unit", "byte-unit",
@@ -5043,7 +5043,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-os" name = "tauri-plugin-os"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"gethostname", "gethostname",
"log", "log",
@@ -5060,7 +5060,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-process" name = "tauri-plugin-process"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
@@ -5069,7 +5069,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-shell" name = "tauri-plugin-shell"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"encoding_rs", "encoding_rs",
"log", "log",
@@ -5089,7 +5089,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-single-instance" name = "tauri-plugin-single-instance"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
@@ -5103,7 +5103,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-sql" name = "tauri-plugin-sql"
version = "2.2.0" version = "2.2.0"
source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#c9acff99c6632884f475642bb060c4499a017c73" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#802399a969a95c1cdd9ce8076cd1f7cbdf6d1d9e"
dependencies = [ dependencies = [
"futures-core", "futures-core",
"indexmap 2.7.0", "indexmap 2.7.0",

View File

@@ -27,30 +27,12 @@ import { getDS4JS } from "@/web/utils/getRequestHeader.js";
type InvokeArg = { func: string }; type InvokeArg = { func: string };
class Client { class Client {
/**
* @private 监听实例
* @since Beta v0.3.3
* @type {EventEmitter}
*/
private listener: UnlistenFn | undefined; private listener: UnlistenFn | undefined;
/**
* @private 模拟路由
* @since Beta v0.3.4
* @type {string[]}
*/
private route: string[] = []; private route: string[] = [];
/**
* @constructor
* @since Beta v0.3.4
* @description 构造函数
*/
private constructor() { private constructor() {
this.route = []; this.route = [];
this.listener = undefined; this.listener = undefined;
} }
private static instance: Client | null = null; private static instance: Client | null = null;
static getInstance(): Client { static getInstance(): Client {

28
src/vite-env.d.ts vendored
View File

@@ -28,25 +28,13 @@ declare module "vue-json-viewer" {
export default component; export default component;
} }
/** declare type ImportMeta = { readonly env: { MODE: string } };
* @description import.meta.env
* @package vite
* @description 只写了用到的属性
*/
interface ImportMetaEnv {
TAURI_ARCH: string;
TAURI_DEBUG: boolean;
TAURI_FAMILY: string;
TAURI_KEY_PASSWORD: string;
TAURI_PLATFORM: string;
TAURI_PLATFORM_TYPE: string;
BASE_URL: string;
MODE: string;
DEV: boolean;
PROD: boolean;
SSR: boolean;
}
declare interface ImportMeta { declare interface TauriProcessEnv extends NodeJS.ProcessEnv {
readonly env: ImportMetaEnv; TAURI_ARCH?: string;
TAURI_DEBUG?: boolean;
TAURI_FAMILY?: string;
TAURI_KEY_PASSWORD?: string;
TAURI_PLATFORM?: string;
TAURI_PLATFORM_TYPE?: string;
} }

View File

@@ -11,6 +11,8 @@ import vuetify from "vite-plugin-vuetify";
import buildTimePlugin from "./src/utils/TGBuild.js"; import buildTimePlugin from "./src/utils/TGBuild.js";
const env: TauriProcessEnv = process.env;
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue(), vuetify(), buildTimePlugin(), VueDevtools()], plugins: [vue(), vuetify(), buildTimePlugin(), VueDevtools()],
@@ -30,11 +32,11 @@ export default defineConfig({
esbuild: { supported: { "top-level-await": true } }, esbuild: { supported: { "top-level-await": true } },
build: { build: {
// Tauri supports es2021 // Tauri supports es2021
target: process.env.TAURI_PLATFORM === "windows" ? "chrome105" : "safari13", target: env.TAURI_PLATFORM === "windows" ? "chrome105" : "safari13",
// don't minify for debug builds // don't minify for debug builds
minify: !process.env.TAURI_DEBUG ? "esbuild" : false, minify: !env.TAURI_DEBUG ? "esbuild" : false,
// produce sourcemaps for debug builds // produce sourcemaps for debug builds
sourcemap: !!process.env.TAURI_DEBUG, sourcemap: !!env.TAURI_DEBUG,
// chunk size warning limit, default is 500kB,here set 4096KB which is 4MB // chunk size warning limit, default is 500kB,here set 4096KB which is 4MB
chunkSizeWarningLimit: 4096, // KB chunkSizeWarningLimit: 4096, // KB
// rollup options // rollup options