mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-18 16:30:32 +08:00
Compare commits
1 Commits
e404e025fd
...
24176f5597
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24176f5597 |
10
.github/workflows/autobuild.yml
vendored
10
.github/workflows/autobuild.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
|||||||
run: bash ./scripts/extract_update_logs.sh
|
run: bash ./scripts/extract_update_logs.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6.0.0
|
- uses: pnpm/action-setup@v5.0.0
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -179,7 +179,7 @@ jobs:
|
|||||||
echo "OPENSSL_LIB_DIR=$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV
|
echo "OPENSSL_LIB_DIR=$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV
|
||||||
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
|
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6.0.0
|
- uses: pnpm/action-setup@v5.0.0
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -278,7 +278,7 @@ jobs:
|
|||||||
cache-workspace-crates: true
|
cache-workspace-crates: true
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v6.0.0
|
uses: pnpm/action-setup@v5.0.0
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
@ -423,7 +423,7 @@ jobs:
|
|||||||
cache-workspace-crates: true
|
cache-workspace-crates: true
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v6.0.0
|
uses: pnpm/action-setup@v5.0.0
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6.0.0
|
- uses: pnpm/action-setup@v5.0.0
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|||||||
2
.github/workflows/cross_check.yaml
vendored
2
.github/workflows/cross_check.yaml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|||||||
2
.github/workflows/dev.yml
vendored
2
.github/workflows/dev.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libxslt1.1 libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libxslt1.1 libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
if: github.event.inputs[matrix.input] == 'true'
|
if: github.event.inputs[matrix.input] == 'true'
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/frontend-check.yml
vendored
2
.github/workflows/frontend-check.yml
vendored
@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
if: steps.check_frontend.outputs.frontend == 'true'
|
if: steps.check_frontend.outputs.frontend == 'true'
|
||||||
uses: pnpm/action-setup@v6
|
uses: pnpm/action-setup@v5
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
|
|||||||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -199,7 +199,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -284,7 +284,7 @@ jobs:
|
|||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v6
|
uses: pnpm/action-setup@v5
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -507,7 +507,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -533,7 +533,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -595,7 +595,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|||||||
2
.github/workflows/telegram-notify.yml
vendored
2
.github/workflows/telegram-notify.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|||||||
4
.github/workflows/updater.yml
vendored
4
.github/workflows/updater.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.14.1'
|
node-version: '24.14.1'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6
|
- uses: pnpm/action-setup@v5
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|||||||
@ -150,8 +150,9 @@ impl<T> MihomoWsEventStream<T> {
|
|||||||
_ = &mut sleep => {
|
_ = &mut sleep => {
|
||||||
if self.last_valid_event_at.elapsed() >= stale_timeout {
|
if self.last_valid_event_at.elapsed() >= stale_timeout {
|
||||||
return StreamConsumeState::Stale;
|
return StreamConsumeState::Stale;
|
||||||
|
} else {
|
||||||
|
sleep.as_mut().reset(self.last_valid_event_at + stale_timeout);
|
||||||
}
|
}
|
||||||
sleep.as_mut().reset(self.last_valid_event_at + stale_timeout);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@ thread_local! {
|
|||||||
/// 托盘速率富文本属性字典(主线程缓存,避免每帧重建 ObjC 对象)。
|
/// 托盘速率富文本属性字典(主线程缓存,避免每帧重建 ObjC 对象)。
|
||||||
/// 仅在首次调用时初始化,后续复用同一实例。
|
/// 仅在首次调用时初始化,后续复用同一实例。
|
||||||
static TRAY_SPEED_ATTRS: Retained<NSDictionary<NSString, AnyObject>> = build_attributes();
|
static TRAY_SPEED_ATTRS: Retained<NSDictionary<NSString, AnyObject>> = build_attributes();
|
||||||
static LAST_DISPLAY_STR: RefCell<String> = const { RefCell::new(String::new()) };
|
static LAST_DISPLAY_STR: RefCell<String> = RefCell::new(String::new());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 将上行/下行速率格式化为两行定宽文本
|
/// 将上行/下行速率格式化为两行定宽文本
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user