Skip to content

Commit 3dfcd2b

Browse files
authored
Merge pull request #7 from JSREP/dev
优化挑战列表项UI布局,提升移动端和桌面端的信息呈现结构
2 parents 5686722 + 4675b92 commit 3dfcd2b

32 files changed

+1512
-390
lines changed

docs/TODO.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
作者这个字段,是要能够自动补全的,单击输入的就要把平台上所有的作者都下拉展开(按照出现次数倒序排列),然后根据用户的输入自动筛选补全,当然用户也可以不选择已有的作者,选择输入新的作者都是可以的,下拉仅仅只是为了补全,减少用户输入的工作量
1+
作者这个字段,是要能够自动补全的,单击输入的就要把平台上所有的作者都下拉展开(按照出现次数倒序排列),然后根据用户的输入自动筛选补全,当然用户也可以不选择已有的作者,选择输入新的作者都是可以的,下拉仅仅只是为了补全,减少用户输入的工作量
2+
3+
4+
5+
6+
7+
8+
检查docs/challenges下所有的yaml文件:
9+
1. 如果缺少name_en或者name_en为空,则将name字段的值翻译为英文作为此字段的值;
10+
2.
11+
12+
13+
14+
15+
16+

docs/challenges/Kasada.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
id: 110
2+
id-alias: Kasada
3+
platform: Web
4+
name: Kasada防护
5+
name_en: ""
6+
difficulty-level: 3
7+
description-markdown: Kasada防护
8+
base64-url: aHR0cHM6Ly93d3cua2FzYWRhLmlvL3Byb2R1Y3Qv
9+
is-expired: false
10+
tags:
11+
- js-reverse
12+
solutions: []
13+
create-time: 2025-04-13 08:00:31
14+
update-time: 2025-04-13 08:00:31

docs/challenges/中国五矿集团有限公司供应链管理平台.yml

Lines changed: 15 additions & 0 deletions
Large diffs are not rendered by default.

docs/challenges/佛冈通请求头x-itouchtv-ca-key加密.yml

Lines changed: 14 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
id: 108
2+
id-alias: ""
3+
platform: Web
4+
name: 力哥爱英语开发者工具打开检测
5+
name_en: ""
6+
difficulty-level: 1
7+
description-markdown: 按F12和打开开发者工具之后都有防护
8+
base64-url: aHR0cHM6Ly9pZW5nbGlzaDUyMS5jb20v
9+
is-expired: false
10+
tags:
11+
- js-reverse
12+
solutions: []
13+
create-time: 2025-04-13 07:45:34
14+
update-time: 2025-04-13 07:45:34
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
id: 106
2+
id-alias: ""
3+
platform: Web
4+
name: 商丘市教育体育局鼠标移动设置Cookie
5+
name_en: ""
6+
difficulty-level: 1
7+
description-markdown: |+
8+
9+
第一次访问网站的时候,让移动鼠标,移动鼠标的时候会设置cookie。
10+
11+
如果不是第一次访问,隐身模式访问即可。
12+
13+
14+
15+
base64-url: aHR0cHM6Ly9qeXR5ai5zaGFuZ3FpdS5nb3YuY24vendnay9mZHpkZ2tuci96ZmNnMzFzcXNqeXR5ai96YmdnMzFzcXNqeXR5ag==
16+
is-expired: false
17+
tags:
18+
- js-reverse
19+
solutions: []
20+
create-time: 2025-04-13 07:29:54
21+
update-time: 2025-04-13 07:29:54

docs/challenges/成都市中小学教师继续教育网登录密码加密.yml

Lines changed: 15 additions & 0 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 56 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"dependencies": {
1616
"@ant-design/icons": "^5.6.1",
1717
"@types/markdown-it": "^14.1.2",
18+
"@types/react-responsive": "^8.0.8",
1819
"antd": "^5.16.4",
1920
"fuse.js": "^7.1.0",
2021
"i18next": "^24.2.2",
@@ -26,6 +27,7 @@
2627
"react-i18next": "^15.4.1",
2728
"react-markdown": "^10.1.0",
2829
"react-markdown-editor-lite": "^1.3.4",
30+
"react-responsive": "^10.0.1",
2931
"react-router-dom": "^6.23.1",
3032
"react-syntax-highlighter": "^15.6.1",
3133
"rehype-raw": "^7.0.0",

src/App.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,44 @@
9292
.read-the-docs {
9393
color: #888;
9494
}
95+
96+
/* 移动端响应式样式 */
97+
@media (max-width: 768px) {
98+
/* 导航栏调整 */
99+
.navbar-container {
100+
width: 100%;
101+
padding: 0 16px;
102+
}
103+
104+
/* 移动端内容区域调整 */
105+
.content-wrapper {
106+
padding: 10px 0 !important;
107+
}
108+
109+
/* 移动端卡片样式调整 */
110+
.ant-card {
111+
border-radius: 8px;
112+
}
113+
114+
/* 移动端表格调整 */
115+
.ant-table {
116+
font-size: 12px;
117+
}
118+
119+
/* 移动端表单样式 */
120+
.ant-form-item-label {
121+
padding-bottom: 4px;
122+
}
123+
124+
/* 移动端按钮样式 */
125+
.ant-btn {
126+
font-size: 14px;
127+
height: 32px;
128+
padding: 0 15px;
129+
}
130+
131+
/* 防止溢出 */
132+
.mobile-container {
133+
overflow-x: hidden;
134+
}
135+
}

0 commit comments

Comments
 (0)