Skip to content

Commit cce1ad4

Browse files
author
lhy
committed
Merge remote-tracking branch 'origin/master'
2 parents 9f2c0ab + aa519c6 commit cce1ad4

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

src/i18n/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
"webview.settings.save.config.success": "PawSQL Setup Completed",
5050
"webview.settings.save.config.failed": "PawSQL Setup Failded",
5151
"form.config.title": "PawSQL Setup",
52-
"form.config.email.label": "PawSQL Email",
52+
"form.config.email.label": "PawSQL Account",
5353
"form.config.password.label": "Password",
54-
"form.config.backendUrl.label": "PawSQL Engine",
54+
"form.config.backendUrl.label": "PawSQL Server Address",
5555
"form.config.frontendUrl.label": "PawSQL Website",
56-
"form.config.description": "PawSQL Client enables developers to access core capabilities of the PawSQL directly within their VS Code development environment. PawSQL provides sophisticated SQL optimization features including smart index recommendations and query rewriting suggestions. More about PawSQL's capabilities, please visit ",
56+
"form.config.description": "PawSQL Client enables developers to access core capabilities of the PawSQL directly within VSCode enviroment. PawSQL provides sophisticated SQL optimization features including smart index recommendations and query rewrites. More about PawSQL's capabilities, please visit ",
5757
"form.config.documentation.link": "docs.pawsql.com",
5858
"form.config.save": "Save",
5959
"workspaces.isLoading": "Loading Workspaces",

src/i18n/zh-cn.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
"webview.settings.save.config.success": "保存成功",
5050
"webview.settings.save.config.failed": "保存配置失败",
5151
"form.config.title": "PawSQL 配置",
52-
"form.config.email.label": "PawSQL注册邮箱",
52+
"form.config.email.label": "PawSQL 账号",
5353
"form.config.password.label": "密码",
54-
"form.config.backendUrl.label": "PawSQL 引擎地址",
54+
"form.config.backendUrl.label": "PawSQL 服务器",
5555
"form.config.frontendUrl.label": "PawSQL 前端地址",
56-
"form.config.description": "PawSQL Client让开发者能够在VS Code开发环境中直接使用PawSQL优化引擎的强大功能,包括智能索引推荐、查询重写建议、自动化性能验证等。想要了解更详细的PawSQL的SQL优化能力,请参考",
56+
"form.config.description": "PawSQL Client让开发者能够在VS Code开发环境中直接使用PawSQL优化引擎的强大功能,包括智能索引推荐、查询重写建议、自动化性能验证等。想要了解更多关于PawSQL的优化能力,请参考",
5757
"form.config.documentation.link": "PawSQL官方文档",
5858
"form.config.save": "保存",
5959
"workspaces.isLoading": "工作空间列表加载中...",

src/webview/components/ConfigForm.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const ConfigForm: React.FC<ConfigFormProps> = ({
105105
variant="body1"
106106
align="center"
107107
color="textSecondary"
108-
sx={{ maxWidth: "460px" }}
108+
sx={{ maxWidth: "560px" }}
109109
>
110110
<FormattedMessage id="form.config.description" />{" "}
111111
<a
@@ -120,60 +120,60 @@ const ConfigForm: React.FC<ConfigFormProps> = ({
120120
</a>
121121
</Typography>
122122
</div>
123-
124-
<form onSubmit={handleSubmit}>
125-
<TextField
123+
<TextField
126124
fullWidth
127-
name="email"
128-
label={formatMessage({ id: "form.config.email.label" })}
125+
name="backendUrl"
126+
label={formatMessage({ id: "form.config.backendUrl.label" })}
129127
variant="outlined"
130128
margin="normal"
131-
value={formState.email}
129+
value={formState.backendUrl}
132130
onChange={handleInputChange}
133131
InputProps={{
134132
startAdornment: (
135133
<InputAdornment position="start">
136-
<PersonIcon sx={{ color: "#666" }} />
134+
<PublicIcon sx={{ color: "#666" }} />
137135
</InputAdornment>
138136
),
139137
}}
140138
sx={{ mb: 2 }}
141139
/>
140+
<form onSubmit={handleSubmit}>
142141
<TextField
143142
fullWidth
144-
name="password"
145-
type="password"
146-
label={formatMessage({ id: "form.config.password.label" })}
143+
name="email"
144+
label={formatMessage({ id: "form.config.email.label" })}
147145
variant="outlined"
148146
margin="normal"
149-
value={formState.password}
147+
value={formState.email}
150148
onChange={handleInputChange}
151149
InputProps={{
152150
startAdornment: (
153151
<InputAdornment position="start">
154-
<LockIcon sx={{ color: "#666" }} />
152+
<PersonIcon sx={{ color: "#666" }} />
155153
</InputAdornment>
156154
),
157155
}}
158156
sx={{ mb: 2 }}
159157
/>
160158
<TextField
161159
fullWidth
162-
name="backendUrl"
163-
label={formatMessage({ id: "form.config.backendUrl.label" })}
160+
name="password"
161+
type="password"
162+
label={formatMessage({ id: "form.config.password.label" })}
164163
variant="outlined"
165164
margin="normal"
166-
value={formState.backendUrl}
165+
value={formState.password}
167166
onChange={handleInputChange}
168167
InputProps={{
169168
startAdornment: (
170169
<InputAdornment position="start">
171-
<PublicIcon sx={{ color: "#666" }} />
170+
<LockIcon sx={{ color: "#666" }} />
172171
</InputAdornment>
173172
),
174173
}}
175174
sx={{ mb: 2 }}
176175
/>
176+
177177
<Button
178178
type="submit"
179179
variant="contained"

0 commit comments

Comments
 (0)