Fixed some (not all) formatting issues occurring

during pnpm test
This commit is contained in:
Sammie Zhang 2025-01-31 16:43:43 -08:00
parent 804fec074d
commit 95781176ca
No known key found for this signature in database
GPG key ID: 94E117FC99C11E1A
9 changed files with 261 additions and 256 deletions

View file

@ -35,14 +35,14 @@
"devDependencies": { "devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@stylistic/eslint-plugin": "^2.13.0", "@stylistic/eslint-plugin": "^2.13.0",
"@types/node": "^22.10.7", "@types/node": "^22.13.0",
"@types/react": "^18.3.12", "@types/react": "^18.3.18",
"@vencord/types": "^1.8.4", "@vencord/types": "^1.8.4",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"electron": "^34.0.1", "electron": "^34.0.2",
"electron-builder": "^25.1.8", "electron-builder": "^25.1.8",
"esbuild": "^0.24.2", "esbuild": "^0.24.2",
"eslint": "^9.18.0", "eslint": "^9.19.0",
"eslint-import-resolver-alias": "^1.1.2", "eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-path-alias": "^2.1.0", "eslint-plugin-path-alias": "^2.1.0",
"eslint-plugin-prettier": "^5.2.3", "eslint-plugin-prettier": "^5.2.3",
@ -54,8 +54,8 @@
"tsx": "^4.19.2", "tsx": "^4.19.2",
"type-fest": "^4.33.0", "type-fest": "^4.33.0",
"typescript": "^5.7.3", "typescript": "^5.7.3",
"typescript-eslint": "^8.21.0", "typescript-eslint": "^8.22.0",
"xml-formatter": "^3.6.3" "xml-formatter": "^3.6.4"
}, },
"packageManager": "pnpm@9.1.0", "packageManager": "pnpm@9.1.0",
"engines": { "engines": {

365
pnpm-lock.yaml generated
View file

@ -29,12 +29,12 @@ importers:
version: 2.1.2 version: 2.1.2
'@stylistic/eslint-plugin': '@stylistic/eslint-plugin':
specifier: ^2.13.0 specifier: ^2.13.0
version: 2.13.0(eslint@9.18.0)(typescript@5.7.3) version: 2.13.0(eslint@9.19.0)(typescript@5.7.3)
'@types/node': '@types/node':
specifier: ^22.10.7 specifier: ^22.13.0
version: 22.10.7 version: 22.13.0
'@types/react': '@types/react':
specifier: ^18.3.12 specifier: ^18.3.18
version: 18.3.18 version: 18.3.18
'@vencord/types': '@vencord/types':
specifier: ^1.8.4 specifier: ^1.8.4
@ -43,8 +43,8 @@ importers:
specifier: ^16.4.7 specifier: ^16.4.7
version: 16.4.7 version: 16.4.7
electron: electron:
specifier: ^34.0.1 specifier: ^34.0.2
version: 34.0.1 version: 34.0.2
electron-builder: electron-builder:
specifier: ^25.1.8 specifier: ^25.1.8
version: 25.1.8(electron-builder-squirrel-windows@25.1.8(dmg-builder@25.1.8)) version: 25.1.8(electron-builder-squirrel-windows@25.1.8(dmg-builder@25.1.8))
@ -52,26 +52,26 @@ importers:
specifier: ^0.24.2 specifier: ^0.24.2
version: 0.24.2 version: 0.24.2
eslint: eslint:
specifier: ^9.18.0 specifier: ^9.19.0
version: 9.18.0 version: 9.19.0
eslint-import-resolver-alias: eslint-import-resolver-alias:
specifier: ^1.1.2 specifier: ^1.1.2
version: 1.1.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)) version: 1.1.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0))
eslint-plugin-path-alias: eslint-plugin-path-alias:
specifier: ^2.1.0 specifier: ^2.1.0
version: 2.1.0(eslint@9.18.0) version: 2.1.0(eslint@9.19.0)
eslint-plugin-prettier: eslint-plugin-prettier:
specifier: ^5.2.3 specifier: ^5.2.3
version: 5.2.3(eslint-config-prettier@10.0.1(eslint@9.18.0))(eslint@9.18.0)(prettier@3.4.2) version: 5.2.3(eslint-config-prettier@10.0.1(eslint@9.19.0))(eslint@9.19.0)(prettier@3.4.2)
eslint-plugin-simple-header: eslint-plugin-simple-header:
specifier: ^1.2.1 specifier: ^1.2.1
version: 1.2.1(eslint@9.18.0) version: 1.2.1(eslint@9.19.0)
eslint-plugin-simple-import-sort: eslint-plugin-simple-import-sort:
specifier: ^12.1.1 specifier: ^12.1.1
version: 12.1.1(eslint@9.18.0) version: 12.1.1(eslint@9.19.0)
eslint-plugin-unused-imports: eslint-plugin-unused-imports:
specifier: ^4.1.4 specifier: ^4.1.4
version: 4.1.4(@typescript-eslint/eslint-plugin@8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0) version: 4.1.4(@typescript-eslint/eslint-plugin@8.22.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)
prettier: prettier:
specifier: ^3.4.2 specifier: ^3.4.2
version: 3.4.2 version: 3.4.2
@ -88,11 +88,11 @@ importers:
specifier: ^5.7.3 specifier: ^5.7.3
version: 5.7.3 version: 5.7.3
typescript-eslint: typescript-eslint:
specifier: ^8.21.0 specifier: ^8.22.0
version: 8.21.0(eslint@9.18.0)(typescript@5.7.3) version: 8.22.0(eslint@9.19.0)(typescript@5.7.3)
xml-formatter: xml-formatter:
specifier: ^3.6.3 specifier: ^3.6.4
version: 3.6.3 version: 3.6.4
packages: packages:
@ -434,8 +434,8 @@ packages:
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
'@eslint/config-array@0.19.1': '@eslint/config-array@0.19.2':
resolution: {integrity: sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==} resolution: {integrity: sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/core@0.10.0': '@eslint/core@0.10.0':
@ -446,12 +446,12 @@ packages:
resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/js@9.18.0': '@eslint/js@9.19.0':
resolution: {integrity: sha512-fK6L7rxcq6/z+AaQMtiFTkvbHkBLNlwyRxHpKawP0x3u9+NC6MQTnFW+AdpwC6gfHTW0051cokQgtTN2FqlxQA==} resolution: {integrity: sha512-rbq9/g38qjfqFLOVPvwjIvFFdNziEC5S65jmjPw5r6A//QH+W91akh9irMwjDN8zKUTak6W9EsAv4m/7Wnw0UQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/object-schema@2.1.5': '@eslint/object-schema@2.1.6':
resolution: {integrity: sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==} resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/plugin-kit@0.2.5': '@eslint/plugin-kit@0.2.5':
@ -570,20 +570,20 @@ packages:
'@types/keyv@3.1.4': '@types/keyv@3.1.4':
resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}
'@types/lodash@4.17.14': '@types/lodash@4.17.15':
resolution: {integrity: sha512-jsxagdikDiDBeIRaPYtArcT8my4tN1og7MtMRquFT3XNA6axxyHDRUemqDz/taRDdOUn0GnGHRCuff4q48sW9A==} resolution: {integrity: sha512-w/P33JFeySuhN6JLkysYUK2gEmy9kHHFN7E8ro0tkfmlDOgxBDzWEZ/J8cWA+fHqFevpswDTFZnDx+R9lbL6xw==}
'@types/ms@2.1.0': '@types/ms@2.1.0':
resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
'@types/node@18.19.71': '@types/node@18.19.74':
resolution: {integrity: sha512-evXpcgtZm8FY4jqBSN8+DmOTcVkkvTmAayeo4Wf3m1xAruyVGzGuDh/Fb/WWX2yLItUiho42ozyJjB0dw//Tkw==} resolution: {integrity: sha512-HMwEkkifei3L605gFdV+/UwtpxP6JSzM+xFk2Ia6DNFSwSVBRh9qp5Tgf4lNFOMfPVuU0WnkcWpXZpgn5ufO4A==}
'@types/node@20.17.14': '@types/node@20.17.16':
resolution: {integrity: sha512-w6qdYetNL5KRBiSClK/KWai+2IMEJuAj+EujKCumalFOwXtvOXaEan9AuwcRID2IcOIAWSIfR495hBtgKlx2zg==} resolution: {integrity: sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw==}
'@types/node@22.10.7': '@types/node@22.13.0':
resolution: {integrity: sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==} resolution: {integrity: sha512-ClIbNe36lawluuvq3+YYhnIN2CELi+6q8NpnM7PYp4hBn/TatfboPgVSm2rwKRfnV2M+Ty9GWDFI64KEe+kysA==}
'@types/plist@3.0.5': '@types/plist@3.0.5':
resolution: {integrity: sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==} resolution: {integrity: sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==}
@ -611,51 +611,51 @@ packages:
'@types/yauzl@2.10.3': '@types/yauzl@2.10.3':
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
'@typescript-eslint/eslint-plugin@8.21.0': '@typescript-eslint/eslint-plugin@8.22.0':
resolution: {integrity: sha512-eTH+UOR4I7WbdQnG4Z48ebIA6Bgi7WO8HvFEneeYBxG8qCOYgTOFPSg6ek9ITIDvGjDQzWHcoWHCDO2biByNzA==} resolution: {integrity: sha512-4Uta6REnz/xEJMvwf72wdUnC3rr4jAQf5jnTkeRQ9b6soxLxhDEbS/pfMPoJLDfFPNVRdryqWUIV/2GZzDJFZw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/parser@8.21.0': '@typescript-eslint/parser@8.22.0':
resolution: {integrity: sha512-Wy+/sdEH9kI3w9civgACwabHbKl+qIOu0uFZ9IMKzX3Jpv9og0ZBJrZExGrPpFAY7rWsXuxs5e7CPPP17A4eYA==} resolution: {integrity: sha512-MqtmbdNEdoNxTPzpWiWnqNac54h8JDAmkWtJExBVVnSrSmi9z+sZUt0LfKqk9rjqmKOIeRhO4fHHJ1nQIjduIQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/scope-manager@8.21.0': '@typescript-eslint/scope-manager@8.22.0':
resolution: {integrity: sha512-G3IBKz0/0IPfdeGRMbp+4rbjfSSdnGkXsM/pFZA8zM9t9klXDnB/YnKOBQ0GoPmoROa4bCq2NeHgJa5ydsQ4mA==} resolution: {integrity: sha512-/lwVV0UYgkj7wPSw0o8URy6YI64QmcOdwHuGuxWIYznO6d45ER0wXUbksr9pYdViAofpUCNJx/tAzNukgvaaiQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/type-utils@8.21.0': '@typescript-eslint/type-utils@8.22.0':
resolution: {integrity: sha512-95OsL6J2BtzoBxHicoXHxgk3z+9P3BEcQTpBKriqiYzLKnM2DeSqs+sndMKdamU8FosiadQFT3D+BSL9EKnAJQ==} resolution: {integrity: sha512-NzE3aB62fDEaGjaAYZE4LH7I1MUwHooQ98Byq0G0y3kkibPJQIXVUspzlFOmOfHhiDLwKzMlWxaNv+/qcZurJA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/types@8.21.0': '@typescript-eslint/types@8.22.0':
resolution: {integrity: sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A==} resolution: {integrity: sha512-0S4M4baNzp612zwpD4YOieP3VowOARgK2EkN/GBn95hpyF8E2fbMT55sRHWBq+Huaqk3b3XK+rxxlM8sPgGM6A==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.21.0': '@typescript-eslint/typescript-estree@8.22.0':
resolution: {integrity: sha512-x+aeKh/AjAArSauz0GiQZsjT8ciadNMHdkUSwBB9Z6PrKc/4knM4g3UfHml6oDJmKC88a6//cdxnO/+P2LkMcg==} resolution: {integrity: sha512-SJX99NAS2ugGOzpyhMza/tX+zDwjvwAtQFLsBo3GQxiGcvaKlqGBkmZ+Y1IdiSi9h4Q0Lr5ey+Cp9CGWNY/F/w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/utils@8.21.0': '@typescript-eslint/utils@8.22.0':
resolution: {integrity: sha512-xcXBfcq0Kaxgj7dwejMbFyq7IOHgpNMtVuDveK7w3ZGwG9owKzhALVwKpTF2yrZmEwl9SWdetf3fxNzJQaVuxw==} resolution: {integrity: sha512-T8oc1MbF8L+Bk2msAvCUzjxVB2Z2f+vXYfcucE2wOmYs7ZUwco5Ep0fYZw8quNwOiw9K8GYVL+Kgc2pETNTLOg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0' typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/visitor-keys@8.21.0': '@typescript-eslint/visitor-keys@8.22.0':
resolution: {integrity: sha512-BkLMNpdV6prozk8LlyK/SOoWLmUFi+ZD+pcqti9ILCbVvHGk1ui1g4jJOc2WDLaeExz2qWwojxlPce5PljcT3w==} resolution: {integrity: sha512-AWpYAXnUgvLNabGTy3uBylkgZoosva/miNd1I8Bz3SjotmQPbVqhO4Cczo8AsZ44XVErEBPr/CRSgaj8sG7g0w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@vencord/types@1.8.4': '@vencord/types@1.8.4':
@ -813,6 +813,10 @@ packages:
resolution: {integrity: sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==} resolution: {integrity: sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==}
engines: {node: '>=0.12.0'} engines: {node: '>=0.12.0'}
async-function@1.0.0:
resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
engines: {node: '>= 0.4'}
async@3.2.6: async@3.2.6:
resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}
@ -1185,8 +1189,8 @@ packages:
electron-updater@6.3.9: electron-updater@6.3.9:
resolution: {integrity: sha512-2PJNONi+iBidkoC5D1nzT9XqsE8Q1X28Fn6xRQhO3YX8qRRyJ3mkV4F1aQsuRnYPqq6Hw+E51y27W75WgDoofw==} resolution: {integrity: sha512-2PJNONi+iBidkoC5D1nzT9XqsE8Q1X28Fn6xRQhO3YX8qRRyJ3mkV4F1aQsuRnYPqq6Hw+E51y27W75WgDoofw==}
electron@34.0.1: electron@34.0.2:
resolution: {integrity: sha512-aArw5tAM80i3CKwEREnyZSM1SkARf5Jd1yBMTIdOL4pB1M+p/oDeyWSFI9Dl+vujyfJKiK4SS5+j19wna1onMw==} resolution: {integrity: sha512-u3F+DSUlg9NaGS+9qnYmSRN8VjAnc3LJDDk1ye1uISJnh4gjG76y3681qLowsPMx4obvCP2eBINnmbLo0yT5WA==}
engines: {node: '>= 12.20.55'} engines: {node: '>= 12.20.55'}
hasBin: true hasBin: true
@ -1353,8 +1357,8 @@ packages:
resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==} resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint@9.18.0: eslint@9.19.0:
resolution: {integrity: sha512-+waTfRWQlSbpt3KWE+CjrPPYnbq9kfZIYUqapc0uBXyjTp8aYXZDsUH16m39Ryq3NjAVP4tjuF7KaukeqoCoaA==} resolution: {integrity: sha512-ug92j0LepKlbbEv6hD911THhoRHmbdXt2gX+VDABAW/Ir7D3nqKdv5Pf5vtlyY6HQMTEP2skXY43ueqTCWssEA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
@ -1423,8 +1427,8 @@ packages:
fast-levenshtein@2.0.6: fast-levenshtein@2.0.6:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
fastq@1.18.0: fastq@1.19.0:
resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==} resolution: {integrity: sha512-7SFSRCNjBQIZH/xZR3iy5iQYR8aGBE0h3VG6/cwlbrpdciNYBMotQav8c1XI3HjHH+NikUpP53nPdlZSdWmFzA==}
fd-slicer@1.1.0: fd-slicer@1.1.0:
resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
@ -1468,8 +1472,9 @@ packages:
debug: debug:
optional: true optional: true
for-each@0.3.3: for-each@0.3.4:
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} resolution: {integrity: sha512-kKaIINnFpzW6ffJNDjjyjrk21BkDx38c0xa/klsT8VzLCaMEefv4ZTacrcVR4DmgTeBra++jMDAfS/tS799YDw==}
engines: {node: '>= 0.4'}
for-in@1.0.2: for-in@1.0.2:
resolution: {integrity: sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==} resolution: {integrity: sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==}
@ -1752,8 +1757,8 @@ packages:
resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==} resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-async-function@2.1.0: is-async-function@2.1.1:
resolution: {integrity: sha512-GExz9MtyhlZyXYLxzlJRj5WUCE661zhDa1Yna52CN57AJsymh+DvXXjyveSioqSRdxvUrdKdvqB1b5cVKsNpWQ==} resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
is-bigint@1.1.0: is-bigint@1.1.0:
@ -2009,6 +2014,7 @@ packages:
lodash.isequal@4.5.0: lodash.isequal@4.5.0:
resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
lodash.isplainobject@4.0.6: lodash.isplainobject@4.0.6:
resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
@ -2180,8 +2186,8 @@ packages:
resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==} resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==}
engines: {node: '>= 0.6'} engines: {node: '>= 0.6'}
node-abi@3.73.0: node-abi@3.74.0:
resolution: {integrity: sha512-z8iYzQGBu35ZkTQ9mtR8RqugJZ9RCLn8fv3d7LsgDBzOijGQP3RdKTX4LA7LXw03ZhU5z0l4xfhIMgSES31+cg==} resolution: {integrity: sha512-c5XK0MjkGBrQPGYG24GBADZud0NCbznxNx0ZkS+ebUTrmV1qTDxPxSL8zEAPURXSbLRWVexxmP4986BziahL5w==}
engines: {node: '>=10'} engines: {node: '>=10'}
node-addon-api@1.7.2: node-addon-api@1.7.2:
@ -2531,8 +2537,8 @@ packages:
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
hasBin: true hasBin: true
semver@7.6.3: semver@7.7.0:
resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} resolution: {integrity: sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ==}
engines: {node: '>=10'} engines: {node: '>=10'}
hasBin: true hasBin: true
@ -2802,8 +2808,8 @@ packages:
resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
typescript-eslint@8.21.0: typescript-eslint@8.22.0:
resolution: {integrity: sha512-txEKYY4XMKwPXxNkN8+AxAdX6iIJAPiJbHE/FpQccs/sxw8Lf26kqwC3cn0xkHlW8kEbLhkhCsjWuMveaY9Rxw==} resolution: {integrity: sha512-Y2rj210FW1Wb6TWXzQc5+P+EWI9/zdS57hLEc0gnyuvdzWo8+Y8brKlbj0muejonhMI/xAZCnZZwjbIfv1CkOw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies: peerDependencies:
eslint: ^8.57.0 || ^9.0.0 eslint: ^8.57.0 || ^9.0.0
@ -2933,8 +2939,8 @@ packages:
utf-8-validate: utf-8-validate:
optional: true optional: true
xml-formatter@3.6.3: xml-formatter@3.6.4:
resolution: {integrity: sha512-++x1TlRO1FRlQ82AZ4WnoCSufaI/PT/sycn4K8nRl4gnrNC1uYY2VV/67aALZ2m0Q4Q/BLj/L69K360Itw9NNg==} resolution: {integrity: sha512-vkvTNw4u9mp72lMmJHw771NE9EJLX0kfwIcP+ZEo9eJ6HmotX23vmykyROyIQ9Y3a+ckdUdhxIE2ZO66rYuPrg==}
engines: {node: '>= 16'} engines: {node: '>= 16'}
xml-parser-xo@4.1.3: xml-parser-xo@4.1.3:
@ -3027,12 +3033,12 @@ snapshots:
detect-libc: 2.0.3 detect-libc: 2.0.3
fs-extra: 10.1.0 fs-extra: 10.1.0
got: 11.8.6 got: 11.8.6
node-abi: 3.73.0 node-abi: 3.74.0
node-api-version: 0.2.0 node-api-version: 0.2.0
node-gyp: 9.4.1 node-gyp: 9.4.1
ora: 5.4.1 ora: 5.4.1
read-binary-file-arch: 1.0.6 read-binary-file-arch: 1.0.6
semver: 7.6.3 semver: 7.7.0
tar: 6.2.1 tar: 6.2.1
yargs: 17.7.2 yargs: 17.7.2
transitivePeerDependencies: transitivePeerDependencies:
@ -3198,16 +3204,16 @@ snapshots:
'@esbuild/win32-x64@0.24.2': '@esbuild/win32-x64@0.24.2':
optional: true optional: true
'@eslint-community/eslint-utils@4.4.1(eslint@9.18.0)': '@eslint-community/eslint-utils@4.4.1(eslint@9.19.0)':
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
eslint-visitor-keys: 3.4.3 eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.1': {} '@eslint-community/regexpp@4.12.1': {}
'@eslint/config-array@0.19.1': '@eslint/config-array@0.19.2':
dependencies: dependencies:
'@eslint/object-schema': 2.1.5 '@eslint/object-schema': 2.1.6
debug: 4.4.0 debug: 4.4.0
minimatch: 3.1.2 minimatch: 3.1.2
transitivePeerDependencies: transitivePeerDependencies:
@ -3231,9 +3237,9 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@eslint/js@9.18.0': {} '@eslint/js@9.19.0': {}
'@eslint/object-schema@2.1.5': {} '@eslint/object-schema@2.1.6': {}
'@eslint/plugin-kit@0.2.5': '@eslint/plugin-kit@0.2.5':
dependencies: dependencies:
@ -3289,12 +3295,12 @@ snapshots:
'@nodelib/fs.walk@1.2.8': '@nodelib/fs.walk@1.2.8':
dependencies: dependencies:
'@nodelib/fs.scandir': 2.1.5 '@nodelib/fs.scandir': 2.1.5
fastq: 1.18.0 fastq: 1.19.0
'@npmcli/fs@2.1.2': '@npmcli/fs@2.1.2':
dependencies: dependencies:
'@gar/promisify': 1.1.3 '@gar/promisify': 1.1.3
semver: 7.6.3 semver: 7.7.0
'@npmcli/move-file@2.0.1': '@npmcli/move-file@2.0.1':
dependencies: dependencies:
@ -3310,10 +3316,10 @@ snapshots:
'@sindresorhus/is@4.6.0': {} '@sindresorhus/is@4.6.0': {}
'@stylistic/eslint-plugin@2.13.0(eslint@9.18.0)(typescript@5.7.3)': '@stylistic/eslint-plugin@2.13.0(eslint@9.19.0)(typescript@5.7.3)':
dependencies: dependencies:
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/utils': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
eslint: 9.18.0 eslint: 9.19.0
eslint-visitor-keys: 4.2.0 eslint-visitor-keys: 4.2.0
espree: 10.3.0 espree: 10.3.0
estraverse: 5.3.0 estraverse: 5.3.0
@ -3332,7 +3338,7 @@ snapshots:
dependencies: dependencies:
'@types/http-cache-semantics': 4.0.4 '@types/http-cache-semantics': 4.0.4
'@types/keyv': 3.1.4 '@types/keyv': 3.1.4
'@types/node': 22.10.7 '@types/node': 22.13.0
'@types/responselike': 1.0.3 '@types/responselike': 1.0.3
'@types/debug@4.1.12': '@types/debug@4.1.12':
@ -3343,7 +3349,7 @@ snapshots:
'@types/fs-extra@9.0.13': '@types/fs-extra@9.0.13':
dependencies: dependencies:
'@types/node': 22.10.7 '@types/node': 22.13.0
'@types/http-cache-semantics@4.0.4': {} '@types/http-cache-semantics@4.0.4': {}
@ -3353,27 +3359,27 @@ snapshots:
'@types/keyv@3.1.4': '@types/keyv@3.1.4':
dependencies: dependencies:
'@types/node': 22.10.7 '@types/node': 22.13.0
'@types/lodash@4.17.14': {} '@types/lodash@4.17.15': {}
'@types/ms@2.1.0': {} '@types/ms@2.1.0': {}
'@types/node@18.19.71': '@types/node@18.19.74':
dependencies: dependencies:
undici-types: 5.26.5 undici-types: 5.26.5
'@types/node@20.17.14': '@types/node@20.17.16':
dependencies: dependencies:
undici-types: 6.19.8 undici-types: 6.19.8
'@types/node@22.10.7': '@types/node@22.13.0':
dependencies: dependencies:
undici-types: 6.20.0 undici-types: 6.20.0
'@types/plist@3.0.5': '@types/plist@3.0.5':
dependencies: dependencies:
'@types/node': 22.10.7 '@types/node': 22.13.0
xmlbuilder: 15.1.1 xmlbuilder: 15.1.1
optional: true optional: true
@ -3395,25 +3401,25 @@ snapshots:
'@types/responselike@1.0.3': '@types/responselike@1.0.3':
dependencies: dependencies:
'@types/node': 22.10.7 '@types/node': 22.13.0
'@types/verror@1.10.10': '@types/verror@1.10.10':
optional: true optional: true
'@types/yauzl@2.10.3': '@types/yauzl@2.10.3':
dependencies: dependencies:
'@types/node': 22.10.7 '@types/node': 22.13.0
optional: true optional: true
'@typescript-eslint/eslint-plugin@8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)(typescript@5.7.3)': '@typescript-eslint/eslint-plugin@8.22.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)(typescript@5.7.3)':
dependencies: dependencies:
'@eslint-community/regexpp': 4.12.1 '@eslint-community/regexpp': 4.12.1
'@typescript-eslint/parser': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/parser': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
'@typescript-eslint/scope-manager': 8.21.0 '@typescript-eslint/scope-manager': 8.22.0
'@typescript-eslint/type-utils': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/type-utils': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/utils': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
'@typescript-eslint/visitor-keys': 8.21.0 '@typescript-eslint/visitor-keys': 8.22.0
eslint: 9.18.0 eslint: 9.19.0
graphemer: 1.4.0 graphemer: 1.4.0
ignore: 5.3.2 ignore: 5.3.2
natural-compare: 1.4.0 natural-compare: 1.4.0
@ -3422,70 +3428,70 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3)': '@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3)':
dependencies: dependencies:
'@typescript-eslint/scope-manager': 8.21.0 '@typescript-eslint/scope-manager': 8.22.0
'@typescript-eslint/types': 8.21.0 '@typescript-eslint/types': 8.22.0
'@typescript-eslint/typescript-estree': 8.21.0(typescript@5.7.3) '@typescript-eslint/typescript-estree': 8.22.0(typescript@5.7.3)
'@typescript-eslint/visitor-keys': 8.21.0 '@typescript-eslint/visitor-keys': 8.22.0
debug: 4.4.0 debug: 4.4.0
eslint: 9.18.0 eslint: 9.19.0
typescript: 5.7.3 typescript: 5.7.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/scope-manager@8.21.0': '@typescript-eslint/scope-manager@8.22.0':
dependencies: dependencies:
'@typescript-eslint/types': 8.21.0 '@typescript-eslint/types': 8.22.0
'@typescript-eslint/visitor-keys': 8.21.0 '@typescript-eslint/visitor-keys': 8.22.0
'@typescript-eslint/type-utils@8.21.0(eslint@9.18.0)(typescript@5.7.3)': '@typescript-eslint/type-utils@8.22.0(eslint@9.19.0)(typescript@5.7.3)':
dependencies: dependencies:
'@typescript-eslint/typescript-estree': 8.21.0(typescript@5.7.3) '@typescript-eslint/typescript-estree': 8.22.0(typescript@5.7.3)
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/utils': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
debug: 4.4.0 debug: 4.4.0
eslint: 9.18.0 eslint: 9.19.0
ts-api-utils: 2.0.0(typescript@5.7.3) ts-api-utils: 2.0.0(typescript@5.7.3)
typescript: 5.7.3 typescript: 5.7.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/types@8.21.0': {} '@typescript-eslint/types@8.22.0': {}
'@typescript-eslint/typescript-estree@8.21.0(typescript@5.7.3)': '@typescript-eslint/typescript-estree@8.22.0(typescript@5.7.3)':
dependencies: dependencies:
'@typescript-eslint/types': 8.21.0 '@typescript-eslint/types': 8.22.0
'@typescript-eslint/visitor-keys': 8.21.0 '@typescript-eslint/visitor-keys': 8.22.0
debug: 4.4.0 debug: 4.4.0
fast-glob: 3.3.3 fast-glob: 3.3.3
is-glob: 4.0.3 is-glob: 4.0.3
minimatch: 9.0.5 minimatch: 9.0.5
semver: 7.6.3 semver: 7.7.0
ts-api-utils: 2.0.0(typescript@5.7.3) ts-api-utils: 2.0.0(typescript@5.7.3)
typescript: 5.7.3 typescript: 5.7.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/utils@8.21.0(eslint@9.18.0)(typescript@5.7.3)': '@typescript-eslint/utils@8.22.0(eslint@9.19.0)(typescript@5.7.3)':
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0) '@eslint-community/eslint-utils': 4.4.1(eslint@9.19.0)
'@typescript-eslint/scope-manager': 8.21.0 '@typescript-eslint/scope-manager': 8.22.0
'@typescript-eslint/types': 8.21.0 '@typescript-eslint/types': 8.22.0
'@typescript-eslint/typescript-estree': 8.21.0(typescript@5.7.3) '@typescript-eslint/typescript-estree': 8.22.0(typescript@5.7.3)
eslint: 9.18.0 eslint: 9.19.0
typescript: 5.7.3 typescript: 5.7.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@typescript-eslint/visitor-keys@8.21.0': '@typescript-eslint/visitor-keys@8.22.0':
dependencies: dependencies:
'@typescript-eslint/types': 8.21.0 '@typescript-eslint/types': 8.22.0
eslint-visitor-keys: 4.2.0 eslint-visitor-keys: 4.2.0
'@vencord/types@1.8.4': '@vencord/types@1.8.4':
dependencies: dependencies:
'@types/lodash': 4.17.14 '@types/lodash': 4.17.15
'@types/node': 18.19.71 '@types/node': 18.19.74
'@types/react': 18.3.18 '@types/react': 18.3.18
'@types/react-dom': 18.3.5(@types/react@18.3.18) '@types/react-dom': 18.3.5(@types/react@18.3.18)
discord-types: 1.3.26 discord-types: 1.3.26
@ -3584,7 +3590,7 @@ snapshots:
minimatch: 10.0.1 minimatch: 10.0.1
resedit: 1.7.2 resedit: 1.7.2
sanitize-filename: 1.6.3 sanitize-filename: 1.6.3
semver: 7.6.3 semver: 7.7.0
tar: 6.2.1 tar: 6.2.1
temp-file: 3.4.0 temp-file: 3.4.0
transitivePeerDependencies: transitivePeerDependencies:
@ -3706,6 +3712,8 @@ snapshots:
async-exit-hook@2.0.1: {} async-exit-hook@2.0.1: {}
async-function@1.0.0: {}
async@3.2.6: {} async@3.2.6: {}
asynckit@0.4.0: {} asynckit@0.4.0: {}
@ -3926,7 +3934,7 @@ snapshots:
node-api-headers: 1.5.0 node-api-headers: 1.5.0
npmlog: 6.0.2 npmlog: 6.0.2
rc: 1.2.8 rc: 1.2.8
semver: 7.6.3 semver: 7.7.0
tar: 6.2.1 tar: 6.2.1
url-join: 4.0.1 url-join: 4.0.1
which: 2.0.2 which: 2.0.2
@ -4189,15 +4197,15 @@ snapshots:
lazy-val: 1.0.5 lazy-val: 1.0.5
lodash.escaperegexp: 4.1.2 lodash.escaperegexp: 4.1.2
lodash.isequal: 4.5.0 lodash.isequal: 4.5.0
semver: 7.6.3 semver: 7.7.0
tiny-typed-emitter: 2.1.0 tiny-typed-emitter: 2.1.0
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
electron@34.0.1: electron@34.0.2:
dependencies: dependencies:
'@electron/get': 2.0.3 '@electron/get': 2.0.3
'@types/node': 20.17.14 '@types/node': 20.17.16
extract-zip: 2.0.1 extract-zip: 2.0.1
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
@ -4360,14 +4368,14 @@ snapshots:
escape-string-regexp@4.0.0: {} escape-string-regexp@4.0.0: {}
eslint-config-prettier@10.0.1(eslint@9.18.0): eslint-config-prettier@10.0.1(eslint@9.19.0):
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
optional: true optional: true
eslint-import-resolver-alias@1.1.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)): eslint-import-resolver-alias@1.1.2(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)):
dependencies: dependencies:
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0) eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)
eslint-import-resolver-node@0.3.9: eslint-import-resolver-node@0.3.9:
dependencies: dependencies:
@ -4377,17 +4385,17 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint@9.18.0): eslint-module-utils@2.12.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint@9.19.0):
dependencies: dependencies:
debug: 3.2.7 debug: 3.2.7
optionalDependencies: optionalDependencies:
'@typescript-eslint/parser': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/parser': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
eslint: 9.18.0 eslint: 9.19.0
eslint-import-resolver-node: 0.3.9 eslint-import-resolver-node: 0.3.9
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0): eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0):
dependencies: dependencies:
'@rtsao/scc': 1.1.0 '@rtsao/scc': 1.1.0
array-includes: 3.1.8 array-includes: 3.1.8
@ -4396,9 +4404,9 @@ snapshots:
array.prototype.flatmap: 1.3.3 array.prototype.flatmap: 1.3.3
debug: 3.2.7 debug: 3.2.7
doctrine: 2.1.0 doctrine: 2.1.0
eslint: 9.18.0 eslint: 9.19.0
eslint-import-resolver-node: 0.3.9 eslint-import-resolver-node: 0.3.9
eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint@9.18.0) eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint@9.19.0)
hasown: 2.0.2 hasown: 2.0.2
is-core-module: 2.16.1 is-core-module: 2.16.1
is-glob: 4.0.3 is-glob: 4.0.3
@ -4410,43 +4418,43 @@ snapshots:
string.prototype.trimend: 1.0.9 string.prototype.trimend: 1.0.9
tsconfig-paths: 3.15.0 tsconfig-paths: 3.15.0
optionalDependencies: optionalDependencies:
'@typescript-eslint/parser': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/parser': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
transitivePeerDependencies: transitivePeerDependencies:
- eslint-import-resolver-typescript - eslint-import-resolver-typescript
- eslint-import-resolver-webpack - eslint-import-resolver-webpack
- supports-color - supports-color
eslint-plugin-path-alias@2.1.0(eslint@9.18.0): eslint-plugin-path-alias@2.1.0(eslint@9.19.0):
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
find-pkg: 2.0.0 find-pkg: 2.0.0
get-tsconfig: 4.10.0 get-tsconfig: 4.10.0
nanomatch: 1.2.13 nanomatch: 1.2.13
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
eslint-plugin-prettier@5.2.3(eslint-config-prettier@10.0.1(eslint@9.18.0))(eslint@9.18.0)(prettier@3.4.2): eslint-plugin-prettier@5.2.3(eslint-config-prettier@10.0.1(eslint@9.19.0))(eslint@9.19.0)(prettier@3.4.2):
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
prettier: 3.4.2 prettier: 3.4.2
prettier-linter-helpers: 1.0.0 prettier-linter-helpers: 1.0.0
synckit: 0.9.2 synckit: 0.9.2
optionalDependencies: optionalDependencies:
eslint-config-prettier: 10.0.1(eslint@9.18.0) eslint-config-prettier: 10.0.1(eslint@9.19.0)
eslint-plugin-simple-header@1.2.1(eslint@9.18.0): eslint-plugin-simple-header@1.2.1(eslint@9.19.0):
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
eslint-plugin-simple-import-sort@12.1.1(eslint@9.18.0): eslint-plugin-simple-import-sort@12.1.1(eslint@9.19.0):
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0): eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.22.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0):
dependencies: dependencies:
eslint: 9.18.0 eslint: 9.19.0
optionalDependencies: optionalDependencies:
'@typescript-eslint/eslint-plugin': 8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/eslint-plugin': 8.22.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)(typescript@5.7.3)
eslint-scope@8.2.0: eslint-scope@8.2.0:
dependencies: dependencies:
@ -4457,14 +4465,14 @@ snapshots:
eslint-visitor-keys@4.2.0: {} eslint-visitor-keys@4.2.0: {}
eslint@9.18.0: eslint@9.19.0:
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0) '@eslint-community/eslint-utils': 4.4.1(eslint@9.19.0)
'@eslint-community/regexpp': 4.12.1 '@eslint-community/regexpp': 4.12.1
'@eslint/config-array': 0.19.1 '@eslint/config-array': 0.19.2
'@eslint/core': 0.10.0 '@eslint/core': 0.10.0
'@eslint/eslintrc': 3.2.0 '@eslint/eslintrc': 3.2.0
'@eslint/js': 9.18.0 '@eslint/js': 9.19.0
'@eslint/plugin-kit': 0.2.5 '@eslint/plugin-kit': 0.2.5
'@humanfs/node': 0.16.6 '@humanfs/node': 0.16.6
'@humanwhocodes/module-importer': 1.0.1 '@humanwhocodes/module-importer': 1.0.1
@ -4558,7 +4566,7 @@ snapshots:
fast-levenshtein@2.0.6: {} fast-levenshtein@2.0.6: {}
fastq@1.18.0: fastq@1.19.0:
dependencies: dependencies:
reusify: 1.0.4 reusify: 1.0.4
@ -4603,7 +4611,7 @@ snapshots:
debug: 4.4.0 debug: 4.4.0
optional: true optional: true
for-each@0.3.3: for-each@0.3.4:
dependencies: dependencies:
is-callable: 1.2.7 is-callable: 1.2.7
@ -4760,7 +4768,7 @@ snapshots:
es6-error: 4.1.1 es6-error: 4.1.1
matcher: 3.0.0 matcher: 3.0.0
roarr: 2.15.4 roarr: 2.15.4
semver: 7.6.3 semver: 7.7.0
serialize-error: 7.0.1 serialize-error: 7.0.1
optional: true optional: true
@ -4951,8 +4959,9 @@ snapshots:
call-bound: 1.0.3 call-bound: 1.0.3
get-intrinsic: 1.2.7 get-intrinsic: 1.2.7
is-async-function@2.1.0: is-async-function@2.1.1:
dependencies: dependencies:
async-function: 1.0.0
call-bound: 1.0.3 call-bound: 1.0.3
get-proto: 1.0.1 get-proto: 1.0.1
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
@ -5364,9 +5373,9 @@ snapshots:
negotiator@0.6.4: {} negotiator@0.6.4: {}
node-abi@3.73.0: node-abi@3.74.0:
dependencies: dependencies:
semver: 7.6.3 semver: 7.7.0
node-addon-api@1.7.2: node-addon-api@1.7.2:
optional: true optional: true
@ -5379,7 +5388,7 @@ snapshots:
node-api-version@0.2.0: node-api-version@0.2.0:
dependencies: dependencies:
semver: 7.6.3 semver: 7.7.0
node-gyp@9.4.1: node-gyp@9.4.1:
dependencies: dependencies:
@ -5391,7 +5400,7 @@ snapshots:
nopt: 6.0.0 nopt: 6.0.0
npmlog: 6.0.2 npmlog: 6.0.2
rimraf: 3.0.2 rimraf: 3.0.2
semver: 7.6.3 semver: 7.7.0
tar: 6.2.1 tar: 6.2.1
which: 2.0.2 which: 2.0.2
transitivePeerDependencies: transitivePeerDependencies:
@ -5743,7 +5752,7 @@ snapshots:
semver@6.3.1: {} semver@6.3.1: {}
semver@7.6.3: {} semver@7.7.0: {}
serialize-error@7.0.1: serialize-error@7.0.1:
dependencies: dependencies:
@ -5821,7 +5830,7 @@ snapshots:
simple-update-notifier@2.0.0: simple-update-notifier@2.0.0:
dependencies: dependencies:
semver: 7.6.3 semver: 7.7.0
slice-ansi@3.0.0: slice-ansi@3.0.0:
dependencies: dependencies:
@ -5889,7 +5898,7 @@ snapshots:
standalone-electron-types@1.0.0: standalone-electron-types@1.0.0:
dependencies: dependencies:
'@types/node': 18.19.71 '@types/node': 18.19.74
stat-mode@1.0.0: {} stat-mode@1.0.0: {}
@ -6062,7 +6071,7 @@ snapshots:
typed-array-byte-length@1.0.3: typed-array-byte-length@1.0.3:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
for-each: 0.3.3 for-each: 0.3.4
gopd: 1.2.0 gopd: 1.2.0
has-proto: 1.2.0 has-proto: 1.2.0
is-typed-array: 1.1.15 is-typed-array: 1.1.15
@ -6071,7 +6080,7 @@ snapshots:
dependencies: dependencies:
available-typed-arrays: 1.0.7 available-typed-arrays: 1.0.7
call-bind: 1.0.8 call-bind: 1.0.8
for-each: 0.3.3 for-each: 0.3.4
gopd: 1.2.0 gopd: 1.2.0
has-proto: 1.2.0 has-proto: 1.2.0
is-typed-array: 1.1.15 is-typed-array: 1.1.15
@ -6080,18 +6089,18 @@ snapshots:
typed-array-length@1.0.7: typed-array-length@1.0.7:
dependencies: dependencies:
call-bind: 1.0.8 call-bind: 1.0.8
for-each: 0.3.3 for-each: 0.3.4
gopd: 1.2.0 gopd: 1.2.0
is-typed-array: 1.1.15 is-typed-array: 1.1.15
possible-typed-array-names: 1.0.0 possible-typed-array-names: 1.0.0
reflect.getprototypeof: 1.0.10 reflect.getprototypeof: 1.0.10
typescript-eslint@8.21.0(eslint@9.18.0)(typescript@5.7.3): typescript-eslint@8.22.0(eslint@9.19.0)(typescript@5.7.3):
dependencies: dependencies:
'@typescript-eslint/eslint-plugin': 8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.7.3))(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/eslint-plugin': 8.22.0(@typescript-eslint/parser@8.22.0(eslint@9.19.0)(typescript@5.7.3))(eslint@9.19.0)(typescript@5.7.3)
'@typescript-eslint/parser': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/parser': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.7.3) '@typescript-eslint/utils': 8.22.0(eslint@9.19.0)(typescript@5.7.3)
eslint: 9.18.0 eslint: 9.19.0
typescript: 5.7.3 typescript: 5.7.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
@ -6174,7 +6183,7 @@ snapshots:
call-bound: 1.0.3 call-bound: 1.0.3
function.prototype.name: 1.1.8 function.prototype.name: 1.1.8
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
is-async-function: 2.1.0 is-async-function: 2.1.1
is-date-object: 1.1.0 is-date-object: 1.1.0
is-finalizationregistry: 1.1.1 is-finalizationregistry: 1.1.1
is-generator-function: 1.1.0 is-generator-function: 1.1.0
@ -6197,7 +6206,7 @@ snapshots:
available-typed-arrays: 1.0.7 available-typed-arrays: 1.0.7
call-bind: 1.0.8 call-bind: 1.0.8
call-bound: 1.0.3 call-bound: 1.0.3
for-each: 0.3.3 for-each: 0.3.4
gopd: 1.2.0 gopd: 1.2.0
has-tostringtag: 1.0.2 has-tostringtag: 1.0.2
@ -6231,7 +6240,7 @@ snapshots:
ws@8.18.0: {} ws@8.18.0: {}
xml-formatter@3.6.3: xml-formatter@3.6.4:
dependencies: dependencies:
xml-parser-xo: 4.1.3 xml-parser-xo: 4.1.3

View file

@ -6,9 +6,9 @@
import "./ipc"; import "./ipc";
import { join } from "path";
import { app, BrowserWindow, nativeTheme, net, protocol, session } from "electron"; import { app, BrowserWindow, nativeTheme, net, protocol, session } from "electron";
import { autoUpdater } from "electron-updater"; import { autoUpdater } from "electron-updater";
import { join } from "path";
import { DATA_DIR, VESKTOP_SPLASH_DIR } from "./constants"; import { DATA_DIR, VESKTOP_SPLASH_DIR } from "./constants";
import { createFirstLaunchTour } from "./firstLaunch"; import { createFirstLaunchTour } from "./firstLaunch";
@ -85,35 +85,34 @@ function init() {
registerScreenShareHandler(); registerScreenShareHandler();
registerMediaPermissionsHandler(); registerMediaPermissionsHandler();
//register file handler so we can load the custom splash animation from the user's filesystem // register file handler so we can load the custom splash animation from the user's filesystem
protocol.handle("splash-animation", () => { protocol.handle("splash-animation", () => {
const { splashAnimationPath } = Settings.store; const { splashAnimationPath } = Settings.store;
const fullPath = join(VESKTOP_SPLASH_DIR, splashAnimationPath as string); const fullPath = join(VESKTOP_SPLASH_DIR, splashAnimationPath as string);
return net.fetch("file:///"+fullPath); return net.fetch("file:///" + fullPath);
}); });
//this patches the discord csp to allow the splash-animation:// protocol // this patches the discord csp to allow the splash-animation:// protocol
//the vencord:// protocol is already whitelisted, but the code for doing that is in the // the vencord:// protocol is already whitelisted, but the code for doing that is in the
//vencord repo, not the vesktop one. hopefully in the future, the splash image functionality // vencord repo, not the vesktop one. hopefully in the future, the splash image functionality
//can be added to the vencord:// protocol handler, or the vencord:// protocol handler can be moved here // can be added to the vencord:// protocol handler, or the vencord:// protocol handler can be moved here
let otherHandler: any = null; let otherHandler: any = null;
session.defaultSession.webRequest.onHeadersReceived(({responseHeaders, resourceType}, callback) => { session.defaultSession.webRequest.onHeadersReceived(({ responseHeaders, resourceType }, callback) => {
if (responseHeaders && resourceType === "mainFrame" && responseHeaders["content-security-policy"]) { if (responseHeaders && resourceType === "mainFrame" && responseHeaders["content-security-policy"]) {
let csp = responseHeaders["content-security-policy"][0]; let csp = responseHeaders["content-security-policy"][0];
csp = csp.replace("img-src", "img-src splash-animation:"); csp = csp.replace("img-src", "img-src splash-animation:");
responseHeaders["content-security-policy"] = [csp]; responseHeaders["content-security-policy"] = [csp];
} }
if (otherHandler) { if (otherHandler) {
otherHandler({responseHeaders, resourceType}, callback); otherHandler({ responseHeaders, resourceType }, callback);
} } else {
else {
callback({ cancel: false, responseHeaders }); callback({ cancel: false, responseHeaders });
} }
}); });
//we need to overwrite onHeadersReceived because normally electron only allows one handler to be active at a time // we need to overwrite onHeadersReceived because normally electron only allows one handler to be active at a time
session.defaultSession.webRequest.onHeadersReceived = (handler) => { session.defaultSession.webRequest.onHeadersReceived = handler => {
otherHandler = handler; otherHandler = handler;
} };
bootstrap(); bootstrap();

View file

@ -7,12 +7,12 @@
if (process.platform === "linux") import("./venmic"); if (process.platform === "linux") import("./venmic");
import { execFile } from "child_process"; import { execFile } from "child_process";
import { app, BrowserWindow, clipboard, dialog, nativeImage, RelaunchOptions, session, shell } from "electron";
import { mkdirSync, readFileSync, watch, existsSync } from "fs";
import { open, readFile, copyFile, mkdir, rmdir } from "fs/promises";
import { release } from "os";
import { randomBytes } from "crypto"; import { randomBytes } from "crypto";
import { join, extname } from "path"; import { app, BrowserWindow, clipboard, dialog, nativeImage, RelaunchOptions, session, shell } from "electron";
import { existsSync, mkdirSync, readFileSync, watch } from "fs";
import { copyFile, mkdir, open, readFile, rmdir } from "fs/promises";
import { release } from "os";
import { extname, join } from "path";
import { debounce } from "shared/utils/debounce"; import { debounce } from "shared/utils/debounce";
import { IpcEvents } from "../shared/IpcEvents"; import { IpcEvents } from "../shared/IpcEvents";
@ -130,9 +130,7 @@ handle(IpcEvents.SELECT_VENCORD_DIR, async (_e, value?: null) => {
handle(IpcEvents.SELECT_IMAGE_PATH, async () => { handle(IpcEvents.SELECT_IMAGE_PATH, async () => {
const res = await dialog.showOpenDialog(mainWin!, { const res = await dialog.showOpenDialog(mainWin!, {
properties: ["openFile"], properties: ["openFile"],
filters: [ filters: [{ name: "Images", extensions: ["apng", "avif", "gif", "jpeg", "png", "svg", "webp"] }]
{name: "Images", extensions: ["apng", "avif", "gif", "jpeg", "png", "svg", "webp"]}
]
}); });
if (!res.filePaths.length) return "cancelled"; if (!res.filePaths.length) return "cancelled";
@ -142,9 +140,9 @@ handle(IpcEvents.SELECT_IMAGE_PATH, async () => {
const destPath = join(VESKTOP_SPLASH_DIR, imageName); const destPath = join(VESKTOP_SPLASH_DIR, imageName);
if (existsSync(VESKTOP_SPLASH_DIR)) { if (existsSync(VESKTOP_SPLASH_DIR)) {
await rmdir(VESKTOP_SPLASH_DIR, {recursive: true}); await rmdir(VESKTOP_SPLASH_DIR, { recursive: true });
} }
await mkdir(VESKTOP_SPLASH_DIR, {recursive: true}); await mkdir(VESKTOP_SPLASH_DIR, { recursive: true });
await copyFile(originalPath, destPath); await copyFile(originalPath, destPath);
return imageName; return imageName;

View file

@ -39,9 +39,8 @@ export function createSplashWindow(startMinimized = false) {
splash.webContents.executeJavaScript(` splash.webContents.executeJavaScript(`
document.getElementById("animation").src = "splash-animation://img"; document.getElementById("animation").src = "splash-animation://img";
`); `);
} } else {
else { splash.webContents.insertCSS(`img {image-rendering: pixelated}`);
splash.webContents.insertCSS(`img {image-rendering: pixelated}`)
splash.webContents.executeJavaScript(` splash.webContents.executeJavaScript(`
document.getElementById("animation").src = "../shiggy.gif"; document.getElementById("animation").src = "../shiggy.gif";
`); `);

View file

@ -11,45 +11,45 @@ import { SettingsComponent } from "./Settings";
export const CustomSplashAnimation: SettingsComponent = ({ settings }) => { export const CustomSplashAnimation: SettingsComponent = ({ settings }) => {
return ( return (
<> <>
<Forms.FormText>
<Forms.FormText> {settings.splashAnimationPath ? (
{settings.splashAnimationPath ? ( <div
<div style={{ style={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
gap: "16px" gap: "16px"
}}> }}
{/* adding the Math.random() here ensures that a new image is fetched when the user changes the path */} >
<img src={"splash-animation:///" + Math.random()} width="64px" height="64px"></img> {/* adding the Math.random() here ensures that a new image is fetched when the user changes the path */}
<p>The custom splash animation is enabled.</p> <img src={"splash-animation:///" + Math.random()} width="64px" height="64px"></img>
</div> <p>The custom splash animation is enabled.</p>
) : ( </div>
"A custom splash animation is not set." ) : (
)} "A custom splash animation is not set."
</Forms.FormText> )}
<div className="vcd-location-btns" style={{marginBottom: 20}}> </Forms.FormText>
<Button <div className="vcd-location-btns" style={{ marginBottom: 20 }}>
size={Button.Sizes.SMALL} <Button
onClick={async () => { size={Button.Sizes.SMALL}
const choice = await VesktopNative.fileManager.selectImagePath(); onClick={async () => {
if (choice === "cancelled") return; const choice = await VesktopNative.fileManager.selectImagePath();
settings.splashAnimationPath = choice; if (choice === "cancelled") return;
}} settings.splashAnimationPath = choice;
> }}
Change >
</Button> Change
<Button </Button>
size={Button.Sizes.SMALL} <Button
color={Button.Colors.RED} size={Button.Sizes.SMALL}
onClick={() => { color={Button.Colors.RED}
//todo: delete the image after resetting the path? onClick={() => {
settings.splashAnimationPath = undefined // todo: delete the image after resetting the path?
}} settings.splashAnimationPath = undefined;
> }}
Reset >
</Button> Reset
</div> </Button>
</div>
</> </>
); );
}; };

View file

@ -12,11 +12,11 @@ import { Settings, useSettings } from "renderer/settings";
import { isMac, isWindows } from "renderer/utils"; import { isMac, isWindows } from "renderer/utils";
import { AutoStartToggle } from "./AutoStartToggle"; import { AutoStartToggle } from "./AutoStartToggle";
import { CustomSplashAnimation } from "./CustomSplashAnimation";
import { DeveloperOptionsButton } from "./DeveloperOptions"; import { DeveloperOptionsButton } from "./DeveloperOptions";
import { DiscordBranchPicker } from "./DiscordBranchPicker"; import { DiscordBranchPicker } from "./DiscordBranchPicker";
import { NotificationBadgeToggle } from "./NotificationBadgeToggle"; import { NotificationBadgeToggle } from "./NotificationBadgeToggle";
import { WindowsTransparencyControls } from "./WindowsTransparencyControls"; import { WindowsTransparencyControls } from "./WindowsTransparencyControls";
import { CustomSplashAnimation } from "./CustomSplashAnimation";
interface BooleanSetting { interface BooleanSetting {
key: keyof typeof Settings.store; key: keyof typeof Settings.store;
@ -119,7 +119,7 @@ const SettingsOptions: Record<string, Array<BooleanSetting | SettingsComponent>>
defaultValue: false defaultValue: false
} }
], ],
"Custom Splash Animation":[CustomSplashAnimation], "Custom Splash Animation": [CustomSplashAnimation],
"Developer Options": [DeveloperOptionsButton] "Developer Options": [DeveloperOptionsButton]
}; };

View file

@ -25,7 +25,7 @@ export const enum IpcEvents {
GET_VENCORD_DIR = "VCD_GET_VENCORD_DIR", GET_VENCORD_DIR = "VCD_GET_VENCORD_DIR",
SELECT_VENCORD_DIR = "VCD_SELECT_VENCORD_DIR", SELECT_VENCORD_DIR = "VCD_SELECT_VENCORD_DIR",
SELECT_IMAGE_PATH= "VCD_SELECT_IMAGE_PATH", SELECT_IMAGE_PATH = "VCD_SELECT_IMAGE_PATH",
UPDATER_GET_DATA = "VCD_UPDATER_GET_DATA", UPDATER_GET_DATA = "VCD_UPDATER_GET_DATA",
UPDATER_DOWNLOAD = "VCD_UPDATER_DOWNLOAD", UPDATER_DOWNLOAD = "VCD_UPDATER_DOWNLOAD",