Skip to content

Commit 2bc1245

Browse files
committed
feat: enhance GroupEditPanel with auto-save functionality and UI improvements
1 parent 3782d7b commit 2bc1245

File tree

6 files changed

+4
-59
lines changed

6 files changed

+4
-59
lines changed

src/main/java/com/laker/postman/panel/collections/right/GroupEditPanel.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,9 @@ private JPanel createHeaderPanel() {
123123
JPanel headerPanel = new JPanel(new BorderLayout(10, 0));
124124
headerPanel.setBorder(new EmptyBorder(15, 20, 15, 20));
125125

126-
// 左侧:标题和图标
126+
// 左侧:标题
127127
JPanel leftPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 10, 0));
128128

129-
JLabel iconLabel = new JLabel("📁");
130-
iconLabel.setFont(new Font("Segoe UI Emoji", Font.PLAIN, 20));
131-
leftPanel.add(iconLabel);
132-
133129
JLabel titleLabel = new JLabel(I18nUtil.getMessage(MessageKeys.GROUP_EDIT_TITLE));
134130
titleLabel.setFont(FontsUtil.getDefaultFont(Font.BOLD, 18));
135131
titleLabel.setForeground(ModernColors.TEXT_PRIMARY);

src/main/resources/icons/http.svg

Lines changed: 1 addition & 1 deletion
Loading

src/main/resources/icons/sse.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

src/main/resources/messages_en.properties

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,16 @@ workspace.detail.last_commit=Last Commit
7373
# Language
7474
language.changed=Language changed successfully. Some UI elements may require restart to fully update.
7575
# Update related
76-
update.new_version_found=New version found: {0}\nPlease choose upgrade method:
7776
update.new_version_available=New Version Available
7877
update.later=Later
79-
update.now=Update Now
8078
update.view_details=View Details
8179
update.manual_download=Manual Download
82-
update.auto_download=Auto Download & Install
83-
update.cancel=Cancel
8480
update.downloading=Auto Download & Install
8581
update.connecting=Connecting to server...
86-
update.download_progress=Download Progress: {0} / {1}
87-
update.download_speed=Download Speed: {0}
88-
update.estimated_time=Estimated Time: {0}
8982
update.cancel_download=Cancel Download
9083
update.download_cancelled=Download cancelled.
9184
update.download_failed=Download failed: {0}
9285
update.install_prompt=Installation package downloaded. Install now?\nPlease close all EasyPostman programs first, otherwise installation may fail.\nClick "Yes" to close this program and open the installer.
93-
update.open_installer_failed=Failed to open installer: {0}
9486
update.no_installer_found=No installer package (.msi/.dmg) download link found.
9587
# VersionChecker update check messages
9688
update.fetch_release_failed=Failed to fetch release information
@@ -133,7 +125,6 @@ general.info=Information
133125
general.tip=Tip
134126
general.ok=OK
135127
console.title=Console
136-
sidebar.toggle=Toggle Sidebar
137128
# Buttons
138129
button.send=Send
139130
button.save=Save
@@ -164,7 +155,6 @@ tip=Tip
164155
tab.params=Params
165156
tab.authorization=Authorization
166157
tab.scripts=Scripts
167-
tab.cookies=Cookies
168158
tab.tests=Tests
169159
tab.network_log=Network Log
170160
tab.request_headers=Request Headers
@@ -522,9 +512,6 @@ settings.save_now=Save Now
522512
settings.confirm_discard.title=Discard Changes?
523513
settings.confirm_discard.message=You have unsaved changes. Do you want to discard them?
524514
settings.reset_to_default=Reset to default
525-
settings.reset_all_to_defaults=Reset All to Defaults
526-
settings.confirm_reset.title=Reset to Defaults?
527-
settings.confirm_reset.message=This will reset all settings to their default values. Continue?
528515
# Request settings section
529516
settings.request.title=Request
530517
settings.request.max_body_size=Max Response Body Size (KB):
@@ -533,10 +520,8 @@ settings.request.timeout=Request Timeout (ms, 0=never timeout):
533520
settings.request.timeout.tooltip=API request timeout in milliseconds, 0 means no limit
534521
settings.request.max_download_size=Max Response Download Size (MB, 0=unlimited):
535522
settings.request.max_download_size.tooltip=Maximum allowed response body download size, 0 means no limit
536-
settings.request.follow_redirects=Auto Redirect (Follow Redirects):
537523
settings.request.follow_redirects.tooltip=Whether to automatically follow redirects when encountered
538524
settings.request.follow_redirects.checkbox=Auto Redirect
539-
settings.request.ssl_verification=SSL Certificate Verification:
540525
settings.request.ssl_verification.tooltip=Whether to verify SSL certificates for HTTPS requests (disabling may pose security risks)
541526
settings.request.ssl_verification.checkbox=Disable SSL Verification
542527
# JMeter settings section
@@ -562,7 +547,6 @@ settings.general.auto_format_response.tooltip=Automatically format JSON and XML
562547
settings.general.sidebar_expanded=Expand sidebar by default
563548
settings.general.sidebar_expanded.tooltip=Whether to expand the sidebar on startup to show full tab labels
564549
# Validation messages
565-
settings.validation.error.title=Validation Error
566550
settings.validation.max_body_size.error=Response body size cannot be less than 0
567551
settings.validation.timeout.error=Timeout cannot be less than 0
568552
settings.validation.max_download_size.error=Download size cannot be less than 0
@@ -571,18 +555,13 @@ settings.validation.keep_alive.error=Keep alive time must be greater than 0
571555
settings.validation.threshold.error=Progress dialog threshold cannot be less than 0
572556
settings.validation.max_history.error=History count must be greater than 0
573557
settings.validation.max_opened_requests_error=Max opened requests must be a positive integer.
574-
settings.validation.invalid_number=Please enter a valid number
575558
settings.validation.port.error=Port must be between 1 and 65535
576559
settings.validation.update_interval.error=Update interval must be a positive integer
577560
settings.validation.startup_delay.error=Startup delay must be 0 or greater
578561
# Success messages
579-
settings.save.success=Settings saved successfully
580-
settings.save.success.title=Success
581562
settings.save.success.message=Settings saved successfully
582563
# Error messages
583-
settings.save.error.title=Error
584564
settings.save.error.message=Failed to save settings
585-
settings.sidebar.restart.required=Sidebar expansion setting will take effect on next startup
586565
tab.close_others=Close Others
587566
tab.close_all=Close All
588567
tab.close_current=Close Current
@@ -706,7 +685,6 @@ workspace.config.progress.failed=Failed to configure remote repository: {0}
706685
workspace.validation.git.url.invalid=Please enter a valid Git repository URL
707686
# Auto Update Settings
708687
settings.auto_update.title=Auto Update
709-
settings.auto_update.enabled=Enable Auto Update Check:
710688
settings.auto_update.enabled.tooltip=Enable automatic software update checking
711689
settings.auto_update.enabled.checkbox=Auto Check Updates
712690
settings.auto_update.interval=Check Interval (hours):
@@ -718,8 +696,6 @@ settings.update_source.preference.tooltip=Choose the source for checking updates
718696
settings.update_source.auto=Auto-detect (Recommended)
719697
settings.update_source.github=GitHub (International/VPN)
720698
settings.update_source.gitee=Gitee (China Mainland)
721-
settings.validation.auto_update_interval.error=Please enter a valid update check interval (integer greater than 0)
722-
settings.validation.auto_update_startup_delay.error=Please enter a valid startup delay time (integer greater than or equal to 0)
723699
settings.ui.title=UI Settings
724700
websocket.panel.label.send_message=Message
725701
websocket.panel.checkbox.clear=Clear input after send
@@ -1184,7 +1160,6 @@ progress.panel.ready=Ready
11841160
progress.panel.fill_config=Please fill in configuration information
11851161
# Network Proxy Settings
11861162
settings.proxy.title=Network Proxy
1187-
settings.proxy.enabled=Enable Network Proxy:
11881163
settings.proxy.enabled.tooltip=Enable network proxy when accessing public APIs from internal network
11891164
settings.proxy.enabled.checkbox=Enable Network Proxy
11901165
settings.proxy.type=Proxy Type:

src/main/resources/messages_zh.properties

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,16 @@ workspace.detail.last_commit=最后提交
7373
# 语言
7474
language.changed=语言切换成功。部分界面元素可能需要重启才能完全更新。
7575
# 更新相关
76-
update.new_version_found=发现新版本:{0}\n请选择升级方式:
7776
update.new_version_available=发现新版本
7877
update.later=稍后
79-
update.now=立即更新
8078
update.view_details=查看详情
8179
update.manual_download=手动下载
82-
update.auto_download=自动下载并安装
83-
update.cancel=取消
8480
update.downloading=自动下载并安装
8581
update.connecting=正在连接服务器...
86-
update.download_progress=下载进度:{0} / {1}
87-
update.download_speed=下载速度:{0}
88-
update.estimated_time=预估时间:{0}
8982
update.cancel_download=取消下载
9083
update.download_cancelled=下载已取消
9184
update.download_failed=下载失败:{0}
9285
update.install_prompt=安装包已下载,是否立即打开安装?\n请确保已关闭所有 EasyPostman 程序,否则安装可能失败。\n点击"是"将自动关闭本程序并打开安装包。
93-
update.open_installer_failed=打开安装包失败:{0}
9486
update.no_installer_found=未找到最新安装包(.msi/.dmg)下载链接。
9587
# 版本检查器相关
9688
update.fetch_release_failed=获取版本信息失败
@@ -133,7 +125,6 @@ general.info=信息
133125
general.tip=提示
134126
general.ok=确定
135127
console.title=控制台
136-
sidebar.toggle=展开/收起侧边栏
137128
# Buttons
138129
button.send=发送
139130
button.save=保存
@@ -164,7 +155,6 @@ tip=提示
164155
tab.params=参数
165156
tab.authorization=授权
166157
tab.scripts=脚本
167-
tab.cookies=Cookie
168158
tab.tests=测试结果
169159
tab.network_log=网络日志
170160
tab.request_headers=请求头
@@ -522,9 +512,6 @@ settings.save_now=立即保存
522512
settings.confirm_discard.title=放弃更改?
523513
settings.confirm_discard.message=您有未保存的更改。是否要放弃这些更改?
524514
settings.reset_to_default=重置为默认值
525-
settings.reset_all_to_defaults=全部重置为默认值
526-
settings.confirm_reset.title=重置为默认值?
527-
settings.confirm_reset.message=这将把所有设置重置为默认值。是否继续?
528515
# 请求设置部分
529516
settings.request.title=请求设置
530517
settings.request.max_body_size=响应体最大显示大小 (KB):
@@ -533,10 +520,8 @@ settings.request.timeout=请求超时时间 (ms, 0=永不超时):
533520
settings.request.timeout.tooltip=接口请求超时时间,0 表示不限制
534521
settings.request.max_download_size=最大响应下载大小 (MB, 0=不限制):
535522
settings.request.max_download_size.tooltip=下载响应体最大允许大小,0 表示不限制
536-
settings.request.follow_redirects=自动重定向 (Follow Redirects):
537523
settings.request.follow_redirects.tooltip=请求遇到重定向时是否自动跟随跳转
538524
settings.request.follow_redirects.checkbox=自动重定向
539-
settings.request.ssl_verification=SSL 证书验证 (SSL Certificate Verification):
540525
settings.request.ssl_verification.tooltip=是否验证 HTTPS 请求的 SSL 证书(禁用后可能存在安全风险)
541526
settings.request.ssl_verification.checkbox=禁用 SSL 证书验证
542527
# JMeter设置部分
@@ -562,7 +547,6 @@ settings.general.auto_format_response.tooltip=自动格式化 JSON 和 XML 响
562547
settings.general.sidebar_expanded=默认展开侧边栏
563548
settings.general.sidebar_expanded.tooltip=启动时侧边栏是否展开显示完整标签
564549
# 设置验证
565-
settings.validation.error.title=验证错误
566550
settings.validation.max_body_size.error=响应体大小不能小于0
567551
settings.validation.timeout.error=超时时间不能小于0
568552
settings.validation.max_download_size.error=下载大小不能小于0
@@ -571,15 +555,11 @@ settings.validation.keep_alive.error=连接保活时间必须大于0
571555
settings.validation.threshold.error=进度弹窗阈值不能小于0
572556
settings.validation.max_history.error=历史记录数量必须大于0
573557
settings.validation.max_opened_requests_error=最大打开请求数必须为大于0的整数。
574-
settings.validation.invalid_number=请输入有效的数字
575558
settings.validation.port.error=端口号必须在1到65535之间
576559
settings.validation.update_interval.error=更新检查间隔必须为大于0的整数
577560
settings.validation.startup_delay.error=启动延迟必须为大于等于0的整数
578561
# 成功消息
579-
settings.save.success=设置已保存
580-
settings.save.success.title=成功
581562
settings.save.success.message=设置保存成功
582-
settings.sidebar.restart.required=侧边栏展开设置将在下次启动时生效
583563
tab.close_others=关闭其他
584564
tab.close_all=关闭全部
585565
tab.unsaved_changes.save_current=当前标签有未保存的更改,是否保存后关闭?
@@ -703,7 +683,6 @@ workspace.config.progress.failed=配置远程仓库失败: {0}
703683
workspace.validation.git.url.invalid=请输入有效的 Git 仓库 URL
704684
# 自动更新设置
705685
settings.auto_update.title=自动更新设置
706-
settings.auto_update.enabled=启用自动检查更新:
707686
settings.auto_update.enabled.tooltip=启用后将定期检查软件更新
708687
settings.auto_update.enabled.checkbox=自动检查更新
709688
settings.auto_update.interval=检查间隔(小时):
@@ -715,8 +694,6 @@ settings.update_source.preference.tooltip=选择检查更新和下载的来源
715694
settings.update_source.auto=自动选择(推荐)
716695
settings.update_source.github=GitHub(国外用户/VPN)
717696
settings.update_source.gitee=Gitee(国内用户)
718-
settings.validation.auto_update_interval.error=请输入有效的更新检查间隔时间(大于0的整数)
719-
settings.validation.auto_update_startup_delay.error=请输入有效的启动延迟时间(大于等于0的整数)
720697
settings.ui.title=界面设置
721698
websocket.panel.label.send_message=消息
722699
websocket.panel.checkbox.clear=发送后清空输入
@@ -1133,7 +1110,6 @@ progress.panel.ready=准备就绪
11331110
progress.panel.fill_config=请填写配置信息
11341111
# ============ 代理设置相关 ============
11351112
settings.proxy.title=网络代理设置
1136-
settings.proxy.enabled=启用网络代理:
11371113
settings.proxy.enabled.tooltip=从内网访问公网API时启用网络代理
11381114
settings.proxy.enabled.checkbox=启用网络代理
11391115
settings.proxy.type=代理类型:
@@ -1148,10 +1124,8 @@ settings.proxy.username=用户名(可选):
11481124
settings.proxy.username.tooltip=代理服务器认证用户名
11491125
settings.proxy.password=密码(可选):
11501126
settings.proxy.password.tooltip=代理服务器认证密码
1151-
settings.proxy.ssl.verification=SSL证书验证:
11521127
settings.proxy.ssl.verification.tooltip=禁用SSL证书验证以解决SOCKS代理环境下的SSL握手问题(降低安全性)
11531128
settings.proxy.ssl.verification.checkbox=禁用SSL证书验证
1154-
settings.validation.proxy_port.error=代理端口必须是正整数
11551129
# 内置变量
11561130
builtin.var.guid=生成全局唯一标识符(v4 UUID)
11571131
builtin.var.uuid=生成随机 UUID

0 commit comments

Comments
 (0)