Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
7a1aaa43
Commit
7a1aaa43
authored
Sep 29, 2025
by
martin hou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 整理测试页面UI,增加自动连接管理
parent
5ebd2b7a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
794 additions
and
75 deletions
+794
-75
index.css
src/index.css
+41
-4
index.tsx
src/index.tsx
+99
-71
mgr.ts
src/utils/mgr.ts
+654
-0
No files found.
src/index.css
View file @
7a1aaa43
...
...
@@ -11,31 +11,68 @@ button {
outline
:
none
;
border
:
1px
solid
#ccc
;
}
#root
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
button
:hover
{
cursor
:
pointer
;
border
:
solid
1px
#999
;
}
.
result
-container
{
.
btn
-container
{
display
:
flex
;
flex-direction
:
row
;
gap
:
16px
;
padding
:
16px
;
align-items
:
center
;
flex-wrap
:
wrap
;
/* 移除高度限制,保持自适应 */
}
/* 让#root成为flex容器,纵向排列,撑满body */
#root
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
/* result-container占据剩余空间 */
.result-container
{
display
:
flex
;
flex-direction
:
row
;
flex
:
1
1
0%
;
/* 占据剩余空间 */
width
:
100%
;
min-height
:
0
;
/* 防止溢出 */
padding
:
20px
;
box-sizing
:
border-box
;
}
.list-container
,
.log-container
{
height
:
100%
;
}
.list-container
{
width
:
50%
;
height
:
100%
;
overflow
:
scroll
;
}
.log-container
{
width
:
50%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.log-container
textarea
{
width
:
100%
;
height
:
100%
;
min-height
:
800px
;
min-height
:
0
;
border
:
solid
1px
#ccc
;
border-radius
:
5px
;
outline
:
none
;
...
...
src/index.tsx
View file @
7a1aaa43
This diff is collapsed.
Click to expand it.
src/utils/mgr.ts
0 → 100644
View file @
7a1aaa43
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment