mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-25 15:12:29 +08:00
refactor(service)!: remove the development service channel workflow (#8727)
* perf(traffic): shorten sidebar graph animation * refactor(service)!: remove the development service channel workflow Delete the verge-dev/dev-sidecar features, the dev.mjs script family, and the CLASH_VERGE_DEV_SERVICE_DIR staging chain. Debug builds keep the isolated .dev application data directory and dev sidecar IPC names through #[cfg(debug_assertions)] instead of the removed feature. Point clash_verge_service_ipc at tag v2.8.2. * chore(service): track the development-channel removal draft Point clash_verge_service_ipc at the removal branch while its PR is open; flip to tag v2.8.2 once the service side merges. * chore(service): track the released service 2.8.2 The removal branch merged as clash-verge-rev/clash-verge-service-ipc#105 (with the digest opt-in from clash-verge-rev/clash-verge-service-ipc#106 and the 2.8.2 release bump on top), so track the service repository's main directly instead of the draft branch.
This commit is contained in:
@@ -13,7 +13,8 @@ const upLineWidth = 4
|
||||
const downLineAlpha = 1
|
||||
const downLineWidth = 4
|
||||
const sampleIntervalMs = 1000
|
||||
const animationDurationMs = sampleIntervalMs
|
||||
const animationDurationMs = 150
|
||||
const scrollTransform = `translateX(${-100 / (maxPoint + 1)}%)`
|
||||
|
||||
const zeroTraffic: Traffic = { up: 0, down: 0, upTotal: 0, downTotal: 0 }
|
||||
const createDefaultList = () =>
|
||||
@@ -203,12 +204,8 @@ export function TrafficGraph({ ref }: { ref?: Ref<TrafficRef> }) {
|
||||
performance.now() - animationStartRef.current,
|
||||
animationDurationMs,
|
||||
)
|
||||
const step = canvas.getBoundingClientRect().width / (maxPoint + 1)
|
||||
animation = canvas.animate(
|
||||
[
|
||||
{ transform: 'translateX(0)' },
|
||||
{ transform: `translateX(${-step}px)` },
|
||||
],
|
||||
[{ transform: 'translateX(0)' }, { transform: scrollTransform }],
|
||||
{ duration: animationDurationMs, easing: 'linear', fill: 'forwards' },
|
||||
)
|
||||
animation.currentTime = elapsed
|
||||
|
||||
Reference in New Issue
Block a user