Compare commits

...
Author SHA1 Message Date
Tunglies 096de9b7f4 refactor(connections): align perf replay with visible row derivation 2026-11-30 01:16:52 +08:00
Tunglies f90d321f1b perf(connections): build list row views only when mounted 2026-11-30 01:15:53 +08:00
Tunglies 3055a7cbf1 perf(logs): index descending virtual rows without reversing the list 2026-11-30 00:52:36 +08:00
Tunglies 99f0380401 perf(proxy): defer provider candidate lookup until needed 2026-11-30 00:52:35 +08:00
Tunglies d2ad8d6308 perf(connections): sort by column keys without building row snapshots 2026-11-30 00:52:35 +08:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> e04fae62d9 chore(deps): update dependency tar to v8 (#8769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-29 14:25:03 +00:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 4ce69ec2b1 chore(deps): update dependency knip to v6.49.0 (#8768)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-29 14:19:06 +00:00
❤是纱雾酱哟~ 8d242b5732 chore(agents): adds instructions for GitHub Copilot (#8765)
- Create `.github/copilot-instructions.md` as agent-specific instruction
  file for GitHub Copilot
- Use "one-line-wrapper" prompt to `AGENTS.md`, like `GEMINI.md`
- Use "at annotation syntax" for instructions importing, like
  `CLAUDE.md`

Assisted-by: Copilot Fusion (High), actually GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-11-29 08:30:36 +00:00
10 changed files with 238 additions and 266 deletions
+5
View File
@@ -0,0 +1,5 @@
# GitHub Copilot Instructions
Read and follow [AGENTS.md](../AGENTS.md) before working in this repository.
@../AGENTS.md
+2 -2
View File
@@ -113,10 +113,10 @@
"https-proxy-agent": "^9.1.0", "https-proxy-agent": "^9.1.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"jiti": "^2.7.0", "jiti": "^2.7.0",
"knip": "6.48.0", "knip": "6.49.0",
"lint-staged": "^17.5.1", "lint-staged": "^17.5.1",
"sass": "^1.104.1", "sass": "^1.104.1",
"tar": "^7.5.22", "tar": "^8.0.0",
"terser": "^5.51.2", "terser": "^5.51.2",
"tsrs": "0.20.0-ts7.1.0-beta", "tsrs": "0.20.0-ts7.1.0-beta",
"typescript": "^6.0.3", "typescript": "^6.0.3",
+131 -141
View File
@@ -412,8 +412,8 @@ importers:
specifier: ^2.7.0 specifier: ^2.7.0
version: 2.7.0 version: 2.7.0
knip: knip:
specifier: 6.48.0 specifier: 6.49.0
version: 6.48.0 version: 6.49.0
lint-staged: lint-staged:
specifier: ^17.5.1 specifier: ^17.5.1
version: 17.5.1 version: 17.5.1
@@ -421,8 +421,8 @@ importers:
specifier: ^1.104.1 specifier: ^1.104.1
version: 1.104.1 version: 1.104.1
tar: tar:
specifier: ^7.5.22 specifier: ^8.0.0
version: 7.5.22 version: 8.0.2
terser: terser:
specifier: ^5.51.2 specifier: ^5.51.2
version: 5.51.2 version: 5.51.2
@@ -1387,10 +1387,6 @@ packages:
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
engines: {node: '>=18.18'} engines: {node: '>=18.18'}
'@isaacs/fs-minipass@4.0.1':
resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
engines: {node: '>=18.0.0'}
'@jridgewell/gen-mapping@0.3.13': '@jridgewell/gen-mapping@0.3.13':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
@@ -1578,124 +1574,124 @@ packages:
'@octokit/types@18.0.0': '@octokit/types@18.0.0':
resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==} resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==}
'@oxc-parser/binding-android-arm-eabi@0.156.0': '@oxc-parser/binding-android-arm-eabi@0.160.0':
resolution: {integrity: sha512-RMq7DKNzEp1T51QKNLTn0NryNEt2IYfh7mZBlIdi2Ju52ltOEDMeIXv0XBpA6dL7j7ChjlcovtGcc1Jv4qMipg==} resolution: {integrity: sha512-IGhHufQ5uRhivrpzCcUJ92Mj4kYyFVhghaWk9hgZP/b+7WxdzdhFqBbH+PwEcfssDdIW10YHXcFvWib3kMX4Zg==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm] cpu: [arm]
os: [android] os: [android]
'@oxc-parser/binding-android-arm64@0.156.0': '@oxc-parser/binding-android-arm64@0.160.0':
resolution: {integrity: sha512-mwkWKhOBpmh8fWc3m4MiLsmEAtx0YuHmvyo9ff557cnb3QZ2kt2eauSz75wCGIpiZG3gUsJ4WwzEjm4R4/BHig==} resolution: {integrity: sha512-VxqVDFdTJG/QrJJ5pc/JIocKExtxCGcKf9qBsjIMS2VymVnHNdDu58d35pkgxIMFhxJ92YD79+66SBv86GXfCw==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64] cpu: [arm64]
os: [android] os: [android]
'@oxc-parser/binding-darwin-arm64@0.156.0': '@oxc-parser/binding-darwin-arm64@0.160.0':
resolution: {integrity: sha512-6pGR5fUszM9M4eBBapqpGjCRJolFwuCldx8bRQjqXyM09cQysBTWVF2Ttg4UNJVxYSaw5RRINbveCOOCrsuGvA==} resolution: {integrity: sha512-W5ULJkX2YAZAi6h2gkWCZCq1Ws5ZTIejBXjQP3tdf/UOeJaNQes4Vo5659/szYrFoBTef+WWcOU4HaY3TT4OYQ==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
'@oxc-parser/binding-darwin-x64@0.156.0': '@oxc-parser/binding-darwin-x64@0.160.0':
resolution: {integrity: sha512-M9QghL7uCAqMKjYJv1rDGblfEvkeQu3QzTPd7Uwo16gG3uO7m9ikVQ9OL8FZTnKzU4vbCEby6kTlEkqN+JeEMA==} resolution: {integrity: sha512-NNV6qakT/DX8SLqpe/gJ2ab2yDVJ+y6DKdJrbyTAdkpMjTP1KljiUxtAwoKVlHVPqfGMFPpSHIU9yL3FAWG/3w==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
'@oxc-parser/binding-freebsd-x64@0.156.0': '@oxc-parser/binding-freebsd-x64@0.160.0':
resolution: {integrity: sha512-lX0ANxSwAOrpOT7NHB+YsrBqDJ8sOVon5m7GS9eQtkuUeNzQMMGpFsJLsStawTbrdwOF5KDVxgPWcKmt/DIZUQ==} resolution: {integrity: sha512-P1Ay7bTnFJarHefoBOOrzZ8ynRluk0w92p/+PwkAYgg38Fh5Z2eQN2slzYqODyNQRDd2YrdecLV038V6KmqfXw==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64] cpu: [x64]
os: [freebsd] os: [freebsd]
'@oxc-parser/binding-linux-arm-gnueabihf@0.156.0': '@oxc-parser/binding-linux-arm-gnueabihf@0.160.0':
resolution: {integrity: sha512-iPgYpasRcqk7X3TGncQg7B+6RotDvG8weug0UrgF+FXLf4KmaNDyT91BKONlqbHcNgK9Nryp7AEZGuQn32fP6g==} resolution: {integrity: sha512-jw16rzFMeyaGRTVoHTiKAe5qHa6T5v54GX0TGoAvbEskN+hQcK0pZQ+pi5n3yGZ7b1+vTF2eBuqQP98mgcd6XA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
'@oxc-parser/binding-linux-arm-musleabihf@0.156.0': '@oxc-parser/binding-linux-arm-musleabihf@0.160.0':
resolution: {integrity: sha512-sJqJDEZevtkEfoxrXfaRTkSt6Itckr549cIfBbs11UgXv8bFyqQsXTQa6iKm8mTiWYmCDDFJf7TLnqxcbqzPOw==} resolution: {integrity: sha512-B55bnJn8XMC8NDBbEsL6Za2ZuFx6RIG49GMSlHYfpIc2pWQ6sbJRwarP+iKXnPgpJ1N7wfOAotMp58NUYjzQaQ==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
'@oxc-parser/binding-linux-arm64-gnu@0.156.0': '@oxc-parser/binding-linux-arm64-gnu@0.160.0':
resolution: {integrity: sha512-mrQs5OdRiqKskRuWEORPKT6YGIFhrpVvCvL9hqVaIh60EzgR4qjPvSsV6hWZcOfyWHBTbdEvfnDJPh/eQlxPRQ==} resolution: {integrity: sha512-YKVHxONDpWXTPfilLv2MKvaI7VbYnKHARr5wJ3KKKGk0OkauDc0tVFyZlKFwIy9+br46fh8AjTVCnz6+9gKxVA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
libc: [glibc] libc: [glibc]
'@oxc-parser/binding-linux-arm64-musl@0.156.0': '@oxc-parser/binding-linux-arm64-musl@0.160.0':
resolution: {integrity: sha512-ZtPqgCU3+wpU7dvX7YbaEiw71r0UdguzuPhcx4PIEZSs4XFqc6F5wXCtNdb6M7m3DMErlxrwosryoXrzYOY/Gg==} resolution: {integrity: sha512-uiVA0AemCVB3+oZ3JmjQCSEqiGIgl+o3+bLqORIfviJbyYlVUChoRh6cVbyyDG6zm4fW0RtQIdKq3fVYuNTA3Q==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
libc: [musl] libc: [musl]
'@oxc-parser/binding-linux-ppc64-gnu@0.156.0': '@oxc-parser/binding-linux-ppc64-gnu@0.160.0':
resolution: {integrity: sha512-ZuGRT/adReZZJn3PYNneb1HQIOH0iIZ2fzFgC1/XJYpMQ5KsRKmWIEzy3wEFsUwIOTomCmnmTZ/zbFYo9z9VeA==} resolution: {integrity: sha512-h/tr4lWGdRXs4rUktl84Z0CprQhdDlxN4D82/cCcoKr0Kb4TEIJriXZVqHPznp12/uBWcV+BiihUBPbeyZm1KQ==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64] cpu: [ppc64]
os: [linux] os: [linux]
libc: [glibc] libc: [glibc]
'@oxc-parser/binding-linux-riscv64-gnu@0.156.0': '@oxc-parser/binding-linux-riscv64-gnu@0.160.0':
resolution: {integrity: sha512-T+iWCeAOoEAJpHqr6/pogHIv98g9p8Ctccysm/h962hG4ayX5OL2c0Ih4oYe+JuFndLXy/OASvwMlTPe76sIiw==} resolution: {integrity: sha512-bA/Ba24KZYxorIUBHF2NbXM0OVY24xowGu4L0YBzpXhivt+ks1z8BT/c+BYGSfdFFqWrfNkC5TJjQGWdRkUHWQ==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
libc: [glibc] libc: [glibc]
'@oxc-parser/binding-linux-riscv64-musl@0.156.0': '@oxc-parser/binding-linux-riscv64-musl@0.160.0':
resolution: {integrity: sha512-wL55bI2kVKfwdxScbw60zVgzAqbQbmE5zpSPWPZoZ9RSG8egm6ITE/UWE5mDWlglxz1QElJCcUbpaJCtHD11BQ==} resolution: {integrity: sha512-1uI9RghjO7/JQzkL9M/EDnG0Egy5z4v3k5TCUbPESZVUawHEmC52MMnCLe7f2CjMtiLjsm879CnO2HkRtsECNA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
libc: [musl] libc: [musl]
'@oxc-parser/binding-linux-s390x-gnu@0.156.0': '@oxc-parser/binding-linux-s390x-gnu@0.160.0':
resolution: {integrity: sha512-+D+JilhLqwrDLODYEl4qtovVwgxKALb23FkAWBiPvgmUWYgjCV83KKuwwxZJM8GCdKlNA1vt3iKtow8HUFjXtg==} resolution: {integrity: sha512-1gaVKLXjT+UML8w8ypK93KUJurvUUmegqgQ/7qijDNpGCuogmTOIu0KgsYqL2hH//amY3AtfQhTTMlw9l363wA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x] cpu: [s390x]
os: [linux] os: [linux]
libc: [glibc] libc: [glibc]
'@oxc-parser/binding-linux-x64-gnu@0.156.0': '@oxc-parser/binding-linux-x64-gnu@0.160.0':
resolution: {integrity: sha512-jRfwpN4xKrsEpC+SgrUPY5k0mINYZn7aLrt22I3uQFoumiSgHgsLYgS9f84ntbkvSydH4HiwGuDa2b1XCHaJzw==} resolution: {integrity: sha512-v44/JCrzpIof2jAJwF9W1j9l7mZKEaKihd8vBECBaNyIPcOiO4dtkeGX51MxnGmrJbsltdvTJb60VXLyMyAD2w==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [glibc] libc: [glibc]
'@oxc-parser/binding-linux-x64-musl@0.156.0': '@oxc-parser/binding-linux-x64-musl@0.160.0':
resolution: {integrity: sha512-P/ajnypgLmxmuRRyCIZcp2o4lOwmCaXYH5+eqDTcCW+MCTI+csKSw/Zc6GB67jZoVa4ey3q1jXEt7S60adBEMQ==} resolution: {integrity: sha512-NOT9x+x27Aitn+z6PggidaeHiKOpbglRXwzcHg+3VqbMT7nv/C3fnXKeVESy4o0u3Yb3mEocwPrtzlT5O53JSA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [musl] libc: [musl]
'@oxc-parser/binding-openharmony-arm64@0.156.0': '@oxc-parser/binding-openharmony-arm64@0.160.0':
resolution: {integrity: sha512-WSN6rQZZc9KqgZ4lMfjVDvqKhVOCjey/YEZIPisGXmwBqwgWOzru207dyiH50LHcf1n9LO2oceGk/id6RL9v0g==} resolution: {integrity: sha512-kXFdUqEkbB1E66dfqu7sk65w0CaDVp+uPeJ4eOacxBuVgKk/poy+b8/XpFfV443UNB8LUUvzgTzyWLxDQte2Dw==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64] cpu: [arm64]
os: [openharmony] os: [openharmony]
'@oxc-parser/binding-win32-arm64-msvc@0.156.0': '@oxc-parser/binding-win32-arm64-msvc@0.160.0':
resolution: {integrity: sha512-l21Tz6tjraGBC3JefVeJZ9pojD0fCiB62PydAv+i9nrqJX7z/pDmyDNYLamDr/PRcQ4UQbFwkSnz7NKBB9UMLw==} resolution: {integrity: sha512-tzYHz6BOwmKCY2c8txeV06CkMzwEVQhFwug8OR75q2UVRMfksf9yD5UBjAeauPEiFhzNogg1RRyk8UZ0bjMXvg==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
'@oxc-parser/binding-win32-ia32-msvc@0.156.0': '@oxc-parser/binding-win32-ia32-msvc@0.160.0':
resolution: {integrity: sha512-CUq0ZFl/RODqPiIgfNNSamkpTj5x8AjBTkR/y1DNVIQiTGnmWqjHcn3o08ZW3q/LgkI4g9G9g6UirmmQFvuOZw==} resolution: {integrity: sha512-vyYZ4gcWUPuPANDj66eBnZ7+CFzUU0pzX28a5armxejWxM7onM3awHkM4PB/al8eEZ3MH8l0AprX/1jXrfGh7Q==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ia32] cpu: [ia32]
os: [win32] os: [win32]
'@oxc-parser/binding-win32-x64-msvc@0.156.0': '@oxc-parser/binding-win32-x64-msvc@0.160.0':
resolution: {integrity: sha512-dcpx5Y1x2v/cs7U/q3SZMvmxfyXjVvqC86jMuw2ZZUbHDd7W2cW7uSMQfg3GLVaE68Su3H9xd/Pc4v6QNyeSRg==} resolution: {integrity: sha512-KvENUAjmLfLBJBTF9yQ2wb5/DH41+FPM45oM7NMTgW0R3kN49NUj314SaDqqqkba+4cNTBt8NA2Ux5dekZB68w==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
@@ -1703,6 +1699,9 @@ packages:
'@oxc-project/types@0.156.0': '@oxc-project/types@0.156.0':
resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==}
'@oxc-project/types@0.160.0':
resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==}
'@oxc-resolver/binding-android-arm-eabi@11.24.2': '@oxc-resolver/binding-android-arm-eabi@11.24.2':
resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==} resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==}
cpu: [arm] cpu: [arm]
@@ -2005,6 +2004,9 @@ packages:
rollup: rollup:
optional: true optional: true
'@standard-schema/spec@1.1.0':
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
'@svgr/babel-plugin-add-jsx-attribute@8.0.0': '@svgr/babel-plugin-add-jsx-attribute@8.0.0':
resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==} resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==}
engines: {node: '>=14'} engines: {node: '>=14'}
@@ -2661,10 +2663,6 @@ packages:
resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
engines: {node: '>= 20.19.0'} engines: {node: '>= 20.19.0'}
chownr@3.0.0:
resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}
engines: {node: '>=18'}
cidr-block@2.3.0: cidr-block@2.3.0:
resolution: {integrity: sha512-U5NE6QJKNOhIsVrI6sicbwGtEmEORbrz9B5Mbl+Mi05sz1Ic4egoLGV4DkJp56VWva61WxOf+vzIxTKEmRazqg==} resolution: {integrity: sha512-U5NE6QJKNOhIsVrI6sicbwGtEmEORbrz9B5Mbl+Mi05sz1Ic4egoLGV4DkJp56VWva61WxOf+vzIxTKEmRazqg==}
engines: {node: '>=16'} engines: {node: '>=16'}
@@ -3106,9 +3104,9 @@ packages:
resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==} resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
formatly@0.11.4: formatly@0.12.3:
resolution: {integrity: sha512-TeCC10lP8KCgoX+Fe5lryILIT0/Dy+nP0OSVnsuB5CwXoLuOdqxCYlPFF1inR8S/zTy1ec7TjhS2TeRKWzzImA==} resolution: {integrity: sha512-jGtjZLVw6OXvfwqxrxYBc+x+CxmOcMT/KjZagmkrYCQTEtQxJPablRqZPFSNq75drNsHsadjb1djIsE9KE705w==}
engines: {node: '>=18.14.0'} engines: {node: ^20.12.0 || >=22}
hasBin: true hasBin: true
foxact@0.3.12: foxact@0.3.12:
@@ -3358,8 +3356,8 @@ packages:
keyv@5.6.0: keyv@5.6.0:
resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==} resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==}
knip@6.48.0: knip@6.49.0:
resolution: {integrity: sha512-v+Gfp6uiOeXaaj+Khk2Z7/fTTZYWLnDwxZapQUyy8WoQFLYXiUHXqRdFJTwRnrKNA1gPXTPi5NGTKKLXyImVrg==} resolution: {integrity: sha512-8Gf4R0xcJx1NdNKfr6gOGgSVBE1flB+KHPKPybDTKJ/hPtnswxyFE7Zpsk71kBvzAKReezakbe3DbQ0qAT4vzA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true hasBin: true
@@ -3601,14 +3599,6 @@ packages:
resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}
engines: {node: 18 || 20 || >=22} engines: {node: 18 || 20 || >=22}
minipass@7.1.3:
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
engines: {node: '>=16 || 14 >=14.17'}
minizlib@3.1.0:
resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}
engines: {node: '>= 18'}
monaco-editor@0.58.0: monaco-editor@0.58.0:
resolution: {integrity: sha512-Lj5hlfT4zdM5GSG9VxTHslWnwibGBvO6d9Mq/+9zmb1CkTZnib4+uAZUKl1zg+tMHRgY2OGax6hHKZNBtldR1g==} resolution: {integrity: sha512-Lj5hlfT4zdM5GSG9VxTHslWnwibGBvO6d9Mq/+9zmb1CkTZnib4+uAZUKl1zg+tMHRgY2OGax6hHKZNBtldR1g==}
@@ -3677,8 +3667,8 @@ packages:
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
oxc-parser@0.156.0: oxc-parser@0.160.0:
resolution: {integrity: sha512-7JhjgOfZjrIFJH5TlHrpRua864Si5GvwrPr5+eIRCY2sszhKXo6pyhP0HQKOGTtfO4UowwZ72XTGba0+lZphOQ==} resolution: {integrity: sha512-IIc9PydmdnTcH1hucWCHfTUbAuHWPDEs8+WlmW7td3jJnaYrbzvPQgcc99FEJc0gURrVU8EskpAr2VMyJ8VbzA==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
oxc-resolver@11.24.2: oxc-resolver@11.24.2:
@@ -3706,6 +3696,15 @@ packages:
resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
engines: {node: '>=8'} engines: {node: '>=8'}
parse-standard-args@0.3.0:
resolution: {integrity: sha512-SH663jox6V7vxSZgroZJw9DgvSbcNHWOnjHjgvsPyj0/+OIbFraNJyDQbA+ATaAUIi0OGAmV27bIGUgcAEM41g==}
engines: {node: '>=18.7.0'}
peerDependencies:
'@clack/prompts': '>=0.11'
peerDependenciesMeta:
'@clack/prompts':
optional: true
parse5@7.3.0: parse5@7.3.0:
resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}
@@ -4024,9 +4023,9 @@ packages:
systemjs@6.15.1: systemjs@6.15.1:
resolution: {integrity: sha512-Nk8c4lXvMB98MtbmjX7JwJRgJOL8fluecYCfCeYBznwmpOs8Bf15hLM6z4z71EDAhQVrQrI+wt1aLWSXZq+hXA==} resolution: {integrity: sha512-Nk8c4lXvMB98MtbmjX7JwJRgJOL8fluecYCfCeYBznwmpOs8Bf15hLM6z4z71EDAhQVrQrI+wt1aLWSXZq+hXA==}
tar@7.5.22: tar@8.0.2:
resolution: {integrity: sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==} resolution: {integrity: sha512-1keL/dBVXwzliTinVjILeV/qZ2K3NNVFpg4JM1h3REOUJFamSLZmzVbCJXS6mF91//NwSaCbQ0gqmNwzE+ExCA==}
engines: {node: '>=18'} engines: {node: '>=22'}
tauri-plugin-mihomo-api@https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f: tauri-plugin-mihomo-api@https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f:
resolution: {gitHosted: true, integrity: sha512-4nRJ9eBOdd+mT9KaqEhUNya8bh/zaHHAJMBRgFR62KxSZ0S77mcjkB6Bz2xmHqPdYrhbi58aD6UcybEp4a6UyA==, tarball: https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f} resolution: {gitHosted: true, integrity: sha512-4nRJ9eBOdd+mT9KaqEhUNya8bh/zaHHAJMBRgFR62KxSZ0S77mcjkB6Bz2xmHqPdYrhbi58aD6UcybEp4a6UyA==, tarball: https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f}
@@ -4113,8 +4112,8 @@ packages:
engines: {node: '>=14.17'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
unbash@6.0.4: unbash@6.0.5:
resolution: {integrity: sha512-t3OptUArewg9OpYGDskTSlxhyLDahfmZ4d36hE44Efb1y3HRLLpzsVqwH+AwBVymP4t7pP71xN+nnduudn2awA==} resolution: {integrity: sha512-5P8o+nYRueKpHxmemofYqZRZCSWAi+Tqy31MQS8l/sT54Z+Axn55N9CnWPo19BxxJD4wYYf6RqlcURhWkrFXew==}
engines: {node: '>=14'} engines: {node: '>=14'}
undici-types@8.9.0: undici-types@8.9.0:
@@ -4320,10 +4319,6 @@ packages:
yallist@3.1.1: yallist@3.1.1:
resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
yallist@5.0.0:
resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}
engines: {node: '>=18'}
yaml@1.10.3: yaml@1.10.3:
resolution: {integrity: sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==} resolution: {integrity: sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
@@ -5468,10 +5463,6 @@ snapshots:
'@humanwhocodes/retry@0.4.3': {} '@humanwhocodes/retry@0.4.3': {}
'@isaacs/fs-minipass@4.0.1':
dependencies:
minipass: 7.1.3
'@jridgewell/gen-mapping@0.3.13': '@jridgewell/gen-mapping@0.3.13':
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.6.0 '@jridgewell/sourcemap-codec': 1.6.0
@@ -5676,65 +5667,67 @@ snapshots:
dependencies: dependencies:
'@octokit/openapi-types': 29.0.1 '@octokit/openapi-types': 29.0.1
'@oxc-parser/binding-android-arm-eabi@0.156.0': '@oxc-parser/binding-android-arm-eabi@0.160.0':
optional: true optional: true
'@oxc-parser/binding-android-arm64@0.156.0': '@oxc-parser/binding-android-arm64@0.160.0':
optional: true optional: true
'@oxc-parser/binding-darwin-arm64@0.156.0': '@oxc-parser/binding-darwin-arm64@0.160.0':
optional: true optional: true
'@oxc-parser/binding-darwin-x64@0.156.0': '@oxc-parser/binding-darwin-x64@0.160.0':
optional: true optional: true
'@oxc-parser/binding-freebsd-x64@0.156.0': '@oxc-parser/binding-freebsd-x64@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-arm-gnueabihf@0.156.0': '@oxc-parser/binding-linux-arm-gnueabihf@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-arm-musleabihf@0.156.0': '@oxc-parser/binding-linux-arm-musleabihf@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-arm64-gnu@0.156.0': '@oxc-parser/binding-linux-arm64-gnu@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-arm64-musl@0.156.0': '@oxc-parser/binding-linux-arm64-musl@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-ppc64-gnu@0.156.0': '@oxc-parser/binding-linux-ppc64-gnu@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-riscv64-gnu@0.156.0': '@oxc-parser/binding-linux-riscv64-gnu@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-riscv64-musl@0.156.0': '@oxc-parser/binding-linux-riscv64-musl@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-s390x-gnu@0.156.0': '@oxc-parser/binding-linux-s390x-gnu@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-x64-gnu@0.156.0': '@oxc-parser/binding-linux-x64-gnu@0.160.0':
optional: true optional: true
'@oxc-parser/binding-linux-x64-musl@0.156.0': '@oxc-parser/binding-linux-x64-musl@0.160.0':
optional: true optional: true
'@oxc-parser/binding-openharmony-arm64@0.156.0': '@oxc-parser/binding-openharmony-arm64@0.160.0':
optional: true optional: true
'@oxc-parser/binding-win32-arm64-msvc@0.156.0': '@oxc-parser/binding-win32-arm64-msvc@0.160.0':
optional: true optional: true
'@oxc-parser/binding-win32-ia32-msvc@0.156.0': '@oxc-parser/binding-win32-ia32-msvc@0.160.0':
optional: true optional: true
'@oxc-parser/binding-win32-x64-msvc@0.156.0': '@oxc-parser/binding-win32-x64-msvc@0.160.0':
optional: true optional: true
'@oxc-project/types@0.156.0': {} '@oxc-project/types@0.156.0': {}
'@oxc-project/types@0.160.0': {}
'@oxc-resolver/binding-android-arm-eabi@11.24.2': '@oxc-resolver/binding-android-arm-eabi@11.24.2':
optional: true optional: true
@@ -5912,6 +5905,8 @@ snapshots:
estree-walker: 2.0.2 estree-walker: 2.0.2
picomatch: 4.0.7 picomatch: 4.0.7
'@standard-schema/spec@1.1.0': {}
'@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.29.7(supports-color@7.2.0))': '@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.29.7(supports-color@7.2.0))':
dependencies: dependencies:
'@babel/core': 7.29.7(supports-color@7.2.0) '@babel/core': 7.29.7(supports-color@7.2.0)
@@ -6501,8 +6496,6 @@ snapshots:
dependencies: dependencies:
readdirp: 5.1.1 readdirp: 5.1.1
chownr@3.0.0: {}
cidr-block@2.3.0: {} cidr-block@2.3.0: {}
cli-color@2.0.4: cli-color@2.0.4:
@@ -7045,10 +7038,15 @@ snapshots:
hasown: 2.0.4 hasown: 2.0.4
mime-types: 2.1.35 mime-types: 2.1.35
formatly@0.11.4: formatly@0.12.3:
dependencies: dependencies:
fd-package-json: 2.0.0 fd-package-json: 2.0.0
package-manager-detector: 1.8.0 package-manager-detector: 1.8.0
parse-standard-args: 0.3.0
tinyexec: 1.3.1
zod: 4.6.5
transitivePeerDependencies:
- '@clack/prompts'
foxact@0.3.12(react-dom@19.3.1(react@19.3.1))(react@19.3.1): foxact@0.3.12(react-dom@19.3.1(react@19.3.1))(react@19.3.1):
dependencies: dependencies:
@@ -7319,19 +7317,21 @@ snapshots:
dependencies: dependencies:
'@keyv/serialize': 1.1.1 '@keyv/serialize': 1.1.1
knip@6.48.0: knip@6.49.0:
dependencies: dependencies:
formatly: 0.11.4 formatly: 0.12.3
get-tsconfig: 4.14.3 get-tsconfig: 4.14.3
jiti: 2.7.0 jiti: 2.7.0
oxc-parser: 0.156.0 oxc-parser: 0.160.0
oxc-resolver: 11.24.2 oxc-resolver: 11.24.2
picomatch: 4.0.7 picomatch: 4.0.7
smol-toml: 1.9.1 smol-toml: 1.9.1
strip-json-comments: 5.0.3 strip-json-comments: 5.0.3
tinyglobby: 0.2.17 tinyglobby: 0.2.17
unbash: 6.0.4 unbash: 6.0.5
yaml: 2.9.1 yaml: 2.9.1
transitivePeerDependencies:
- '@clack/prompts'
levn@0.4.1: levn@0.4.1:
dependencies: dependencies:
@@ -7680,12 +7680,6 @@ snapshots:
dependencies: dependencies:
brace-expansion: 5.0.12 brace-expansion: 5.0.12
minipass@7.1.3: {}
minizlib@3.1.0:
dependencies:
minipass: 7.1.3
monaco-editor@0.58.0: monaco-editor@0.58.0:
dependencies: dependencies:
'@vscode/diff': 0.0.2-145 '@vscode/diff': 0.0.2-145
@@ -7760,29 +7754,29 @@ snapshots:
type-check: 0.4.0 type-check: 0.4.0
word-wrap: 1.2.5 word-wrap: 1.2.5
oxc-parser@0.156.0: oxc-parser@0.160.0:
dependencies: dependencies:
'@oxc-project/types': 0.156.0 '@oxc-project/types': 0.160.0
optionalDependencies: optionalDependencies:
'@oxc-parser/binding-android-arm-eabi': 0.156.0 '@oxc-parser/binding-android-arm-eabi': 0.160.0
'@oxc-parser/binding-android-arm64': 0.156.0 '@oxc-parser/binding-android-arm64': 0.160.0
'@oxc-parser/binding-darwin-arm64': 0.156.0 '@oxc-parser/binding-darwin-arm64': 0.160.0
'@oxc-parser/binding-darwin-x64': 0.156.0 '@oxc-parser/binding-darwin-x64': 0.160.0
'@oxc-parser/binding-freebsd-x64': 0.156.0 '@oxc-parser/binding-freebsd-x64': 0.160.0
'@oxc-parser/binding-linux-arm-gnueabihf': 0.156.0 '@oxc-parser/binding-linux-arm-gnueabihf': 0.160.0
'@oxc-parser/binding-linux-arm-musleabihf': 0.156.0 '@oxc-parser/binding-linux-arm-musleabihf': 0.160.0
'@oxc-parser/binding-linux-arm64-gnu': 0.156.0 '@oxc-parser/binding-linux-arm64-gnu': 0.160.0
'@oxc-parser/binding-linux-arm64-musl': 0.156.0 '@oxc-parser/binding-linux-arm64-musl': 0.160.0
'@oxc-parser/binding-linux-ppc64-gnu': 0.156.0 '@oxc-parser/binding-linux-ppc64-gnu': 0.160.0
'@oxc-parser/binding-linux-riscv64-gnu': 0.156.0 '@oxc-parser/binding-linux-riscv64-gnu': 0.160.0
'@oxc-parser/binding-linux-riscv64-musl': 0.156.0 '@oxc-parser/binding-linux-riscv64-musl': 0.160.0
'@oxc-parser/binding-linux-s390x-gnu': 0.156.0 '@oxc-parser/binding-linux-s390x-gnu': 0.160.0
'@oxc-parser/binding-linux-x64-gnu': 0.156.0 '@oxc-parser/binding-linux-x64-gnu': 0.160.0
'@oxc-parser/binding-linux-x64-musl': 0.156.0 '@oxc-parser/binding-linux-x64-musl': 0.160.0
'@oxc-parser/binding-openharmony-arm64': 0.156.0 '@oxc-parser/binding-openharmony-arm64': 0.160.0
'@oxc-parser/binding-win32-arm64-msvc': 0.156.0 '@oxc-parser/binding-win32-arm64-msvc': 0.160.0
'@oxc-parser/binding-win32-ia32-msvc': 0.156.0 '@oxc-parser/binding-win32-ia32-msvc': 0.160.0
'@oxc-parser/binding-win32-x64-msvc': 0.156.0 '@oxc-parser/binding-win32-x64-msvc': 0.160.0
oxc-resolver@11.24.2: oxc-resolver@11.24.2:
optionalDependencies: optionalDependencies:
@@ -7837,6 +7831,10 @@ snapshots:
json-parse-even-better-errors: 2.3.1 json-parse-even-better-errors: 2.3.1
lines-and-columns: 1.2.4 lines-and-columns: 1.2.4
parse-standard-args@0.3.0:
dependencies:
'@standard-schema/spec': 1.1.0
parse5@7.3.0: parse5@7.3.0:
dependencies: dependencies:
entities: 6.0.1 entities: 6.0.1
@@ -8135,13 +8133,7 @@ snapshots:
systemjs@6.15.1: {} systemjs@6.15.1: {}
tar@7.5.22: tar@8.0.2: {}
dependencies:
'@isaacs/fs-minipass': 4.0.1
chownr: 3.0.0
minipass: 7.1.3
minizlib: 3.1.0
yallist: 5.0.0
tauri-plugin-mihomo-api@https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f: tauri-plugin-mihomo-api@https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f:
dependencies: dependencies:
@@ -8221,7 +8213,7 @@ snapshots:
typescript@6.0.3: {} typescript@6.0.3: {}
unbash@6.0.4: {} unbash@6.0.5: {}
undici-types@8.9.0: {} undici-types@8.9.0: {}
@@ -8409,8 +8401,6 @@ snapshots:
yallist@3.1.1: {} yallist@3.1.1: {}
yallist@5.0.0: {}
yaml@1.10.3: {} yaml@1.10.3: {}
yaml@2.9.1: {} yaml@2.9.1: {}
+4 -6
View File
@@ -6,8 +6,7 @@ import { createRoot } from 'react-dom/client'
import { SWRConfig } from 'swr' import { SWRConfig } from 'swr'
import { VirtualList } from '../../src/components/base/virtual-list' import { VirtualList } from '../../src/components/base/virtual-list'
import { ConnectionRowItem } from '../../src/components/connection/connection-row-item' import { VisibleConnectionRowItem } from '../../src/components/connection/connection-row-item'
import { useConnectionRowViews } from '../../src/components/connection/connection-row-view'
import LogItem from '../../src/components/log/log-item' import LogItem from '../../src/components/log/log-item'
import { initializeLanguage } from '../../src/services/i18n' import { initializeLanguage } from '../../src/services/i18n'
import { setPreloadConfig } from '../../src/services/preload' import { setPreloadConfig } from '../../src/services/preload'
@@ -35,10 +34,9 @@ export function Components() {
}), }),
[], [],
) )
const rows = useConnectionRowViews(connections)
return ( return (
<VirtualList <VirtualList
count={scenario === 'logs' ? logs.length : rows.length} count={scenario === 'logs' ? logs.length : connections.length}
estimateSize={scenario === 'logs' ? 50 : 56} estimateSize={scenario === 'logs' ? 50 : 56}
style={{ height: 640, margin: 24 }} style={{ height: 640, margin: 24 }}
renderItem={(index) => renderItem={(index) =>
@@ -48,8 +46,8 @@ export function Components() {
searchState={searchState} searchState={searchState}
/> />
) : ( ) : (
<ConnectionRowItem <VisibleConnectionRowItem
row={rows[index]} connection={connections[index]}
closed={false} closed={false}
onShowDetail={() => {}} onShowDetail={() => {}}
/> />
+10 -8
View File
@@ -210,7 +210,7 @@ impl<'a> MemberResolver<'a> {
.collect() .collect()
} }
fn resolve(&self, name: String, scoped: Option<&String>) -> ProxyMemberRef { fn resolve(&self, name: String, scoped: impl FnOnce(&str) -> Option<&'a String>) -> ProxyMemberRef {
if self.group_names.contains(&name) { if self.group_names.contains(&name) {
ProxyMemberRef::Group { name } ProxyMemberRef::Group { name }
} else if let Some(record_id) = self.core_node_ids.get(&name) { } else if let Some(record_id) = self.core_node_ids.get(&name) {
@@ -225,7 +225,7 @@ impl<'a> MemberResolver<'a> {
} }
} else { } else {
let candidates = self.provider_candidates.get(&name).map_or(&[][..], Vec::as_slice); let candidates = self.provider_candidates.get(&name).map_or(&[][..], Vec::as_slice);
match (scoped, candidates) { match (scoped(&name), candidates) {
(Some(record_id), _) | (None, [(_, record_id)]) => ProxyMemberRef::Node { (Some(record_id), _) | (None, [(_, record_id)]) => ProxyMemberRef::Node {
name, name,
record_id: record_id.clone(), record_id: record_id.clone(),
@@ -415,12 +415,14 @@ fn build_group(name: String, proxy: Proxy, resolver: &MemberResolver<'_>) -> Pro
.unwrap_or_default() .unwrap_or_default()
.into_iter() .into_iter()
.map(|member| { .map(|member| {
let (occurrence, scoped) = seen resolver.resolve(member, |member| {
.entry(member.clone()) let (occurrence, scoped) = seen
.or_insert_with(|| (0, resolver.scoped_candidates(&name, &member))); .entry(member.to_owned())
let picked = scoped.get(*occurrence).or_else(|| scoped.first()).copied(); .or_insert_with(|| (0, resolver.scoped_candidates(&name, member)));
*occurrence += 1; let picked = scoped.get(*occurrence).or_else(|| scoped.first()).copied();
resolver.resolve(member, picked) *occurrence += 1;
picked
})
}) })
.collect(); .collect();
@@ -1,12 +1,15 @@
import { CloseRounded } from '@mui/icons-material' import { CloseRounded } from '@mui/icons-material'
import { IconButton } from '@mui/material' import { IconButton } from '@mui/material'
import { useLockFn } from 'ahooks' import { useLockFn } from 'ahooks'
import { memo, useCallback } from 'react' import { memo, useCallback, useMemo } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { closeConnection } from 'tauri-plugin-mihomo-api' import { closeConnection } from 'tauri-plugin-mihomo-api'
import { RelativeTime } from './connection-relative-time' import { RelativeTime } from './connection-relative-time'
import type { ConnectionRowView } from './connection-row-view' import {
createConnectionRowView,
type ConnectionRowView,
} from './connection-row-view'
import type { ConnectionRuleKind } from './connection-rule' import type { ConnectionRuleKind } from './connection-rule'
interface Props { interface Props {
@@ -70,7 +73,7 @@ const actionStyle = {
transform: 'translateY(-50%)', transform: 'translateY(-50%)',
} as const } as const
export const ConnectionRowItem = memo( const ConnectionRowItem = memo(
function ConnectionRowItem({ row, closed, onShowDetail }: Props) { function ConnectionRowItem({ row, closed, onShowDetail }: Props) {
const { t } = useTranslation() const { t } = useTranslation()
const onDelete = useLockFn(async () => closeConnection(row.id)) const onDelete = useLockFn(async () => closeConnection(row.id))
@@ -129,3 +132,11 @@ export const ConnectionRowItem = memo(
prev.closed === next.closed && prev.closed === next.closed &&
prev.onShowDetail === next.onShowDetail, prev.onShowDetail === next.onShowDetail,
) )
export const VisibleConnectionRowItem = memo(function VisibleConnectionRowItem({
connection,
...props
}: Omit<Props, 'row'> & { connection: IConnectionsItem }) {
const row = useMemo(() => createConnectionRowView(connection), [connection])
return <ConnectionRowItem row={row} {...props} />
})
@@ -1,5 +1,3 @@
import { useMemo, useRef } from 'react'
const TRAFFIC_UNITS = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] const TRAFFIC_UNITS = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
export interface ConnectionRowView { export interface ConnectionRowView {
@@ -85,7 +83,7 @@ export const getConnectionTypeLabel = (connection: IConnectionsItem) => {
export const getConnectionStartTime = (connection: IConnectionsItem) => export const getConnectionStartTime = (connection: IConnectionsItem) =>
Date.parse(connection.start || '') || 0 Date.parse(connection.start || '') || 0
const createConnectionRowView = (connection: IConnectionsItem) => { export const createConnectionRowView = (connection: IConnectionsItem) => {
const uploadSpeed = connection.curUpload ?? 0 const uploadSpeed = connection.curUpload ?? 0
const downloadSpeed = connection.curDownload ?? 0 const downloadSpeed = connection.curDownload ?? 0
@@ -114,66 +112,3 @@ const createConnectionRowView = (connection: IConnectionsItem) => {
searchableProcess: connection.metadata.process || '', searchableProcess: connection.metadata.process || '',
} satisfies ConnectionRowView } satisfies ConnectionRowView
} }
const sameConnectionRowView = (
left: ConnectionRowView,
right: ConnectionRowView,
) =>
left.host === right.host &&
left.process === right.process &&
left.network === right.network &&
left.type === right.type &&
left.chains === right.chains &&
left.rule === right.rule &&
left.time === right.time &&
left.source === right.source &&
left.destination === right.destination &&
left.uploadText === right.uploadText &&
left.downloadText === right.downloadText &&
left.uploadSpeedText === right.uploadSpeedText &&
left.downloadSpeedText === right.downloadSpeedText &&
left.upload === right.upload &&
left.download === right.download &&
left.uploadSpeed === right.uploadSpeed &&
left.downloadSpeed === right.downloadSpeed &&
left.searchableHost === right.searchableHost &&
left.searchableDestinationIP === right.searchableDestinationIP &&
left.searchableProcess === right.searchableProcess
export const useConnectionRowViews = (connections: IConnectionsItem[]) => {
const previousRowsRef = useRef(new Map<string, ConnectionRowView>())
const previousConnectionsRef = useRef(new Map<string, IConnectionsItem>())
return useMemo(() => {
const previousRows = previousRowsRef.current
const previousConnections = previousConnectionsRef.current
const nextRows = new Map<string, ConnectionRowView>()
const nextConnections = new Map<string, IConnectionsItem>()
const rows: ConnectionRowView[] = []
connections.forEach((connection) => {
nextConnections.set(connection.id, connection)
const previousRow = previousRows.get(connection.id)
const previousConnection = previousConnections.get(connection.id)
let row: ConnectionRowView
if (previousRow && previousConnection === connection) {
row = previousRow
} else {
const nextRow = createConnectionRowView(connection)
row =
previousRow && sameConnectionRowView(previousRow, nextRow)
? previousRow
: nextRow
}
nextRows.set(connection.id, row)
rows.push(row)
})
previousRowsRef.current = nextRows
previousConnectionsRef.current = nextConnections
return rows
}, [connections])
}
+58 -18
View File
@@ -218,11 +218,51 @@ const getConnectionCellValue = (
} }
} }
const compareConnectionCellValue = ( type TrafficSortField = 'download' | 'upload' | 'dlSpeed' | 'ulSpeed'
field: ColumnField, type DisplaySortField = Exclude<ColumnField, TrafficSortField>
const connectionSortKey = (field: DisplaySortField, row: IConnectionsItem) => {
switch (field) {
case 'host':
return getConnectionHost(row)
case 'process':
return getConnectionProcess(row)
case 'source':
return getConnectionSource(row)
case 'remoteDestination':
return getConnectionDestination(row)
case 'chains':
return formatConnectionChains(row.chains)
case 'rule':
return getConnectionRule(row)
case 'type':
return getConnectionTypeLabel(row)
case 'time':
return getConnectionStartTime(row)
}
}
const sortByConnectionKey = (
connections: IConnectionsItem[],
field: DisplaySortField,
direction: number,
) => {
return connections
.map((row) => ({ row, key: connectionSortKey(field, row) }))
.sort((a, b) => {
const order =
typeof a.key === 'number'
? (Number(a.key) || 0) - (Number(b.key) || 0)
: String(a.key).localeCompare(String(b.key))
return order * direction
})
.map(({ row }) => row)
}
const compareConnectionTraffic = (
field: TrafficSortField,
left: IConnectionsItem, left: IConnectionsItem,
right: IConnectionsItem, right: IConnectionsItem,
getSnapshot: (row: IConnectionsItem) => TableRowSnapshot,
) => { ) => {
switch (field) { switch (field) {
case 'download': case 'download':
@@ -234,14 +274,6 @@ const compareConnectionCellValue = (
case 'ulSpeed': case 'ulSpeed':
return (left.curUpload ?? 0) - (right.curUpload ?? 0) return (left.curUpload ?? 0) - (right.curUpload ?? 0)
} }
const leftValue = getConnectionCellValue(field, getSnapshot(left))
const rightValue = getConnectionCellValue(field, getSnapshot(right))
if (typeof leftValue === 'number' || typeof rightValue === 'number') {
return (Number(leftValue) || 0) - (Number(rightValue) || 0)
}
return String(leftValue ?? '').localeCompare(String(rightValue ?? ''))
} }
const renderCell = ( const renderCell = (
@@ -597,13 +629,21 @@ export const ConnectionTable = (props: Props) => {
const sortedConnections = useMemo(() => { const sortedConnections = useMemo(() => {
if (!sorting) return connections if (!sorting) return connections
const direction = sorting.desc ? -1 : 1 const { id, desc } = sorting
return [...connections].sort( const direction = desc ? -1 : 1
(left, right) => if (
compareConnectionCellValue(sorting.id, left, right, getRowSnapshot) * id === 'download' ||
direction, id === 'upload' ||
) id === 'dlSpeed' ||
}, [connections, sorting, getRowSnapshot]) id === 'ulSpeed'
) {
return [...connections].sort(
(left, right) => compareConnectionTraffic(id, left, right) * direction,
)
}
return sortByConnectionKey(connections, id, direction)
}, [connections, sorting])
const tableWidth = useMemo( const tableWidth = useMemo(
() => visibleColumns.reduce((total, column) => total + column.size, 0), () => visibleColumns.reduce((total, column) => total + column.size, 0),
+5 -12
View File
@@ -30,11 +30,8 @@ import {
ConnectionDetail, ConnectionDetail,
ConnectionDetailRef, ConnectionDetailRef,
} from '@/components/connection/connection-detail' } from '@/components/connection/connection-detail'
import { ConnectionRowItem } from '@/components/connection/connection-row-item' import { VisibleConnectionRowItem } from '@/components/connection/connection-row-item'
import { import { getConnectionStartTime } from '@/components/connection/connection-row-view'
getConnectionStartTime,
useConnectionRowViews,
} from '@/components/connection/connection-row-view'
import type { ConnectionRuleKind } from '@/components/connection/connection-rule' import type { ConnectionRuleKind } from '@/components/connection/connection-rule'
import { ConnectionTable } from '@/components/connection/connection-table' import { ConnectionTable } from '@/components/connection/connection-table'
import { useConnectionData } from '@/hooks/use-connection-data' import { useConnectionData } from '@/hooks/use-connection-data'
@@ -145,10 +142,6 @@ const ConnectionsPage = () => {
curOrderOpt, curOrderOpt,
]) ])
const displayRows = useConnectionRowViews(
isTableLayout ? EMPTY_CONNECTIONS : filterConn,
)
const detailRef = useRef<ConnectionDetailRef>(null!) const detailRef = useRef<ConnectionDetailRef>(null!)
const selectConnectionsType = useCallback( const selectConnectionsType = useCallback(
@@ -339,11 +332,11 @@ const ConnectionsPage = () => {
) : ( ) : (
<VirtualList <VirtualList
key={connectionsType} key={connectionsType}
count={displayRows.length} count={filterConn.length}
estimateSize={56} estimateSize={56}
renderItem={(i) => ( renderItem={(i) => (
<ConnectionRowItem <VisibleConnectionRowItem
row={displayRows[i]} connection={filterConn[i]}
closed={connectionsType === 'closed'} closed={connectionsType === 'closed'}
onShowDetail={showDetailById} onShowDetail={showDetailById}
/> />
+8 -10
View File
@@ -52,21 +52,16 @@ const LogPage = () => {
}) })
}, [logData, logState, match, searchState.text]) }, [logData, logState, match, searchState.text])
const filteredLogs = useMemo(
() => (isDescending ? [...filterLogs].reverse() : filterLogs),
[filterLogs, isDescending],
)
const scrollRef = useRef({ isNearBottom: true }) const scrollRef = useRef({ isNearBottom: true })
const virtuosoRef = useRef<VirtualListHandle>(null) const virtuosoRef = useRef<VirtualListHandle>(null)
useEffect(() => { useEffect(() => {
if (!isDescending && scrollRef.current.isNearBottom) { if (!isDescending && scrollRef.current.isNearBottom) {
virtuosoRef.current?.scrollToIndex(filteredLogs.length - 1, { virtuosoRef.current?.scrollToIndex(filterLogs.length - 1, {
behavior: 'smooth', behavior: 'smooth',
}) })
} }
}, [isDescending, filteredLogs.length]) }, [isDescending, filterLogs.length])
const handleLogLevelChange = (newLevel: LogFilter) => { const handleLogLevelChange = (newLevel: LogFilter) => {
setClashLog((pre) => ({ ...pre!, logFilter: newLevel })) setClashLog((pre) => ({ ...pre!, logFilter: newLevel }))
@@ -176,13 +171,16 @@ const LogPage = () => {
/> />
</Box> </Box>
{filteredLogs.length > 0 ? ( {filterLogs.length > 0 ? (
<VirtualList <VirtualList
ref={virtuosoRef} ref={virtuosoRef}
count={filteredLogs.length} count={filterLogs.length}
estimateSize={50} estimateSize={50}
renderItem={(i) => ( renderItem={(i) => (
<LogItem value={filteredLogs[i]} searchState={searchState} /> <LogItem
value={filterLogs[isDescending ? filterLogs.length - 1 - i : i]}
searchState={searchState}
/>
)} )}
onScroll={(event) => { onScroll={(event) => {
const element = event.currentTarget as HTMLDivElement const element = event.currentTarget as HTMLDivElement