-
-
Notifications
You must be signed in to change notification settings - Fork 953
feat(platform): 优化Windows平台路径处理和SSH配置文件支持 #3220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Cure217
wants to merge
11
commits into
wavetermdev:main
Choose a base branch
from
Cure217:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0574a6a
feat(platform): 优化Windows平台路径处理和SSH配置文件支持
Cure217 42ac2f2
feat(platform): 优化Windows平台路径处理和SSH配置文件支持
Cure217 a71f4de
fix: address review feedback
Cure217 b099994
fix: address additional review feedback
Cure217 2df61d4
feat(context-menu): 添加右键菜单刷新功能并优化终端字体大小设置
Cure217 239e177
feat(filestore): 优化文件存储缓存刷新机制并改进应用关闭流程
Cure217 ec8cf0e
feat(block): 添加飞书应用和网页视图支持
Cure217 1204e0c
feat(build): 更新版本管理并优化启动流程
Cure217 28bc7c6
fix(ui): 优化界面渲染性能和视觉效果
Cure217 14b8a12
feat(term): 修复终端滚轮与输入法位置问题并完善回归测试
Cure217 4028493
feat(term): 更新终端修复决策文档和功能清单
Cure217 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,3 +43,4 @@ docsite/ | |
| .superpowers | ||
| docs/superpowers | ||
| .claude | ||
| .idea/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| import { getWheelLineDelta } from "./termutil"; | ||
|
|
||
| describe("getWheelLineDelta", () => { | ||
| it("returns 0 for zero and non-finite deltas", () => { | ||
| expect(getWheelLineDelta(0, 0, 16, 40)).toBe(0); | ||
| expect(getWheelLineDelta(Number.NaN, 0, 16, 40)).toBe(0); | ||
| expect(getWheelLineDelta(Number.POSITIVE_INFINITY, 0, 16, 40)).toBe(0); | ||
| expect(getWheelLineDelta(Number.NEGATIVE_INFINITY, 0, 16, 40)).toBe(0); | ||
| }); | ||
|
|
||
| it("converts pixel deltas using cell height", () => { | ||
| expect(getWheelLineDelta(32, 0, 16, 40)).toBe(2); | ||
| expect(getWheelLineDelta(-24, 0, 12, 40)).toBe(-2); | ||
| }); | ||
|
|
||
| it("keeps line deltas unchanged", () => { | ||
| expect(getWheelLineDelta(3, 1, 16, 40)).toBe(3); | ||
| expect(getWheelLineDelta(-2, 1, 16, 40)).toBe(-2); | ||
| }); | ||
|
|
||
| it("converts page deltas using row count", () => { | ||
| expect(getWheelLineDelta(1, 2, 16, 30)).toBe(30); | ||
| expect(getWheelLineDelta(-1, 2, 16, 18)).toBe(-18); | ||
| }); | ||
|
|
||
| it("falls back to sane defaults for invalid dimensions", () => { | ||
| expect(getWheelLineDelta(16, 0, 0, 0)).toBe(1); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.