Skip to content

Commit a40b133

Browse files
committed
build: v3.1.0-beta1
1 parent f7dc0dc commit a40b133

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.goreleaser.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,25 @@ release:
171171
header: |
172172
## NodePassDash {{ .Version }}
173173
174+
- Feature:
175+
- 新的实例详情的实例信息布局、合并实例统计表改为tab切换查看
176+
- 适配核心1.7的config字段,实例详情支持切换url查看全配置url,实例信息增加显示默认值的显示
177+
- logo增加了bage标记dev和beta
178+
- 适配核心1.6 proxy protocol字段的设置
179+
- 适配核心1.7 tags字段的设置和显示
180+
- 新的分组管理配置方式
181+
-
182+
- Update:
183+
- 合并实例管理列表的流量显示,去除每一行的原标签(现分组)设置,优化各个列宽宽度
184+
- 放开实例重命名长度限制
185+
- 更新了主控的SwapFree/MemFree对应的数据
186+
- 二进制文档部分文案更新
187+
- 重构原来的tags标签文案改为分组文案
188+
- 仪表盘每周流量 NaN undefined error
189+
- Fix:
190+
- 修复了新场景创建的指定实例名称失效的问题
191+
- 适配了2.x用户未拉最新compose文件导致public文件夹映射的问题
192+
- sse实时推送但浏览器提前关闭导致的short write error
174193
footer: |
175194
176195
### 📥 下载说明

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "NodePassDash",
33
"private": true,
4-
"version": "3.1.0",
4+
"version": "3.1.0-beta1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

web/src/components/tunnels/rename-tunnel-modal.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { faPen } from "@fortawesome/free-solid-svg-icons";
1313
import { addToast } from "@heroui/toast";
1414

1515
import { buildApiUrl } from "@/lib/utils";
16-
import { useTextLimit, TEXT_LIMITS } from "@/lib/utils/text-limits";
1716

1817
interface RenameTunnelModalProps {
1918
isOpen: boolean;
@@ -33,9 +32,6 @@ export default function RenameTunnelModal({
3332
const [newTunnelName, setNewTunnelName] = useState("");
3433
const [isLoading, setIsLoading] = useState(false);
3534

36-
// 使用公共的文本限制工具
37-
const textLimit = useTextLimit(newTunnelName, TEXT_LIMITS.TUNNEL_NAME);
38-
3935
// 当模态框打开时,设置当前名称
4036
React.useEffect(() => {
4137
if (isOpen) {
@@ -44,7 +40,7 @@ export default function RenameTunnelModal({
4440
}, [isOpen, currentName]);
4541

4642
const handleSubmit = async () => {
47-
if (!newTunnelName.trim() || textLimit.isOverLimit) return;
43+
if (!newTunnelName.trim()) return;
4844

4945
try {
5046
setIsLoading(true);
@@ -101,7 +97,6 @@ export default function RenameTunnelModal({
10197
<ModalBody>
10298
<Input
10399
autoFocus
104-
description={textLimit.description}
105100
isDisabled={isLoading}
106101
label="实例名称"
107102
placeholder="请输入新的实例名称"
@@ -124,8 +119,7 @@ export default function RenameTunnelModal({
124119
color="primary"
125120
isDisabled={
126121
!newTunnelName.trim() ||
127-
newTunnelName.trim() === currentName ||
128-
textLimit.isOverLimit
122+
newTunnelName.trim() === currentName
129123
}
130124
isLoading={isLoading}
131125
onPress={handleSubmit}

0 commit comments

Comments
 (0)