Skip to content

Commit 88fa567

Browse files
whalewhale
authored andcommitted
fix: 文案修改
1 parent 59aa34c commit 88fa567

4 files changed

Lines changed: 8 additions & 66 deletions

File tree

app/renderer/src/main/public/locales/en/webFuzzer.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,9 @@
100100
"parameter": "Parameter",
101101
"trafficAnalysisMode": "TrafficAnalysis Mode",
102102
"trafficAnalysis": "TrafficAnalysis",
103-
"aiCasualReplaceReviewHintLine": "Inline diff vs the request captured when Q&A started. Use Abandon / Apply next to each change, then Apply merged round. ⌘Y / Ctrl+Y apply, ⌘N / Ctrl+N discard round.",
104103
"aiCasualRejectAll": "Reject all",
105104
"aiCasualAcceptAll": "Accept all",
106-
"aiCasualAbandonRound": "Discard round",
107-
"aiCasualApplyRound": "Apply merged round",
108-
"aiCasualHunkInsert": "Insert: {{lines}}",
109-
"aiCasualHunkDelete": "Delete: {{lines}}",
110-
"aiCasualHunkModify": "Change from \"{{from}}\" to \"{{to}}\"",
111-
"aiCasualHunkReject": "Reject",
112-
"aiCasualHunkAccept": "Accept",
113-
"aiCasualHunkChosenAccept": "Accepted",
114-
"aiCasualHunkChosenReject": "Rejected",
115-
"aiCasualInlineNav": "{{current}} of {{total}}",
116-
"aiCasualInlineKeep": "Keep",
117-
"aiCasualInlineUndo": "Undo",
105+
118106
"aiCasualAcceptAllMetaTitle": "Setting to apply"
119107
},
120108
"FuzzerExtraShow": {

app/renderer/src/main/public/locales/zh/webFuzzer.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,9 @@
100100
"parameter": "参数",
101101
"trafficAnalysisMode": "流量分析模式",
102102
"trafficAnalysis": "流量分析",
103-
"aiCasualReplaceReviewHintLine": "与「问答开始前请求」的内联对比;每处变更旁有「放弃 / 引用」按钮。全部选完后点「应用本轮合并」;⌘Y / Ctrl+Y 应用,⌘N / Ctrl+N 放弃本轮。",
104103
"aiCasualRejectAll": "全部放弃",
105-
"aiCasualAcceptAll": "全部引用",
106-
"aiCasualAbandonRound": "放弃本轮",
107-
"aiCasualApplyRound": "应用本轮合并",
108-
"aiCasualHunkInsert": "插入:{{lines}}",
109-
"aiCasualHunkDelete": "删除:{{lines}}",
110-
"aiCasualHunkModify": "由「{{from}}」改为「{{to}}」",
111-
"aiCasualHunkReject": "放弃",
112-
"aiCasualHunkAccept": "引用",
113-
"aiCasualHunkChosenAccept": "已引用",
114-
"aiCasualHunkChosenReject": "已放弃",
115-
"aiCasualInlineNav": "{{current}} / {{total}}",
116-
"aiCasualInlineKeep": "保留",
117-
"aiCasualInlineUndo": "撤销",
104+
"aiCasualAcceptAll": "全部应用",
105+
118106
"aiCasualAcceptAllMetaTitle": "即将应用的配置"
119107
},
120108
"FuzzerExtraShow": {

app/renderer/src/main/src/pages/fuzzer/WebFuzzerCasualReplaceReviewOverlay.module.scss

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,39 +29,6 @@
2929
box-shadow: 0 6px 24px var(--Colors-Use-Basic-Shadow);
3030
}
3131

32-
.bulkReject,
33-
.bulkAccept {
34-
height: 28px;
35-
border: none;
36-
border-radius: 6px;
37-
padding: 0 12px;
38-
font-size: 12px;
39-
cursor: pointer;
40-
}
41-
42-
.bulkReject {
43-
color: var(--Colors-Use-Neutral-Text-3-Secondary);
44-
background: transparent;
45-
}
46-
47-
.bulkReject:hover {
48-
color: var(--Colors-Use-Neutral-Text-1-Title);
49-
background: var(--Colors-Use-Neutral-Bg-Hover);
50-
}
51-
52-
.bulkAcceptWrap {
53-
position: relative;
54-
}
55-
56-
.bulkAccept {
57-
color: var(--Colors-Use-Main-On-Primary);
58-
background: var(--Colors-Use-Main-Primary);
59-
}
60-
61-
.bulkAccept:hover {
62-
filter: brightness(1.05);
63-
}
64-
6532
.acceptMetaCard {
6633
position: absolute;
6734
right: -8px;

app/renderer/src/main/src/pages/fuzzer/WebFuzzerCasualReplaceReviewOverlay.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { computeCasualLineHunks, mergeCasualLineHunks } from '@/pages/fuzzer/web
99
import styles from './WebFuzzerCasualReplaceReviewOverlay.module.scss'
1010
import { CopyComponents } from '@/components/yakitUI/YakitTag/YakitTag'
1111
import classNames from 'classnames'
12+
import { YakitButton } from '@/components/yakitUI/YakitButton/YakitButton'
1213

1314
function norm(s: string): string {
1415
return s.replace(/\r\n/g, '\n').replace(/\r/g, '\n')
@@ -200,19 +201,17 @@ const WebFuzzerCasualReplaceReviewOverlay = memo(function WebFuzzerCasualReplace
200201
</div>
201202
{hunks.length > 0 && (
202203
<div className={styles['bulkBar']}>
203-
<button type="button" className={styles['bulkReject']} onClick={handleRejectAll}>
204+
<YakitButton type="text2" onClick={handleRejectAll}>
204205
{t('HTTPFuzzerPage.aiCasualRejectAll')}
205-
</button>
206+
</YakitButton>
206207
<div className={styles['bulkAcceptWrap']}>
207-
<button
208-
type="button"
209-
className={styles['bulkAccept']}
208+
<YakitButton
210209
onClick={handleAcceptAll}
211210
onMouseEnter={handleAcceptMetaEnter}
212211
onMouseLeave={handleAcceptMetaLeave}
213212
>
214213
{t('HTTPFuzzerPage.aiCasualAcceptAll')}
215-
</button>
214+
</YakitButton>
216215
{showAcceptMeta && (
217216
<div
218217
className={styles['acceptMetaCard']}

0 commit comments

Comments
 (0)