tabby-group-server-stats 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PUBLISHING.zh-CN.md +6 -6
- package/README.en.md +9 -3
- package/README.md +9 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/components/metric-strip.component.d.ts +6 -0
- package/typings/metric-display.d.ts +11 -0
package/PUBLISHING.zh-CN.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# 打包、本地测试与发布
|
|
2
2
|
|
|
3
|
-
本文面向 `tabby-group-server-stats 1.7.
|
|
3
|
+
本文面向 `tabby-group-server-stats 1.7.2` 的维护者。源码目录为 `D:\tabby-group-server-stats`;功能与预设说明见 [中文 README](README.md) / [English README](README.en.md)。
|
|
4
4
|
|
|
5
|
-
1.7.
|
|
5
|
+
1.7.2 修正网速 MB/s 三位小数、底栏紧凑竖排和容量数字分列对齐。
|
|
6
6
|
|
|
7
7
|
1.7.0 增加 GitHub 预设导入、内置项持久化排序、清晰分区与卡片边框、紧凑组分隔,并更新磁盘汇总、登录会话名单、双向网络速率及累计量和默认颜色阈值。版本号不表示已经推送或发布。
|
|
8
8
|
|
|
@@ -46,10 +46,10 @@ TypeScript、Angular 和 Webpack 使用项目内依赖,不需要全局安装
|
|
|
46
46
|
```powershell
|
|
47
47
|
npm.cmd pack --dry-run
|
|
48
48
|
npm.cmd pack
|
|
49
|
-
tar -tf .\tabby-group-server-stats-1.7.
|
|
49
|
+
tar -tf .\tabby-group-server-stats-1.7.2.tgz
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
`prepack` 自动执行类型检查、普通测试和正式构建;任一失败会阻止打包。浏览器测试需另外运行。产物为 `tabby-group-server-stats-1.7.
|
|
52
|
+
`prepack` 自动执行类型检查、普通测试和正式构建;任一失败会阻止打包。浏览器测试需另外运行。产物为 `tabby-group-server-stats-1.7.2.tgz`,后续本地验收与发布应使用同一份已检查的包。[npm pack 文档](https://docs.npmjs.com/cli/v11/commands/npm-pack/)
|
|
53
53
|
|
|
54
54
|
确认包内包含:
|
|
55
55
|
|
|
@@ -72,7 +72,7 @@ Tabby 1.0.238 在发现 `Tabby.exe` 同级的 `data` 目录时将用户数据放
|
|
|
72
72
|
```powershell
|
|
73
73
|
Set-Location -LiteralPath 'D:\tabby-group-server-stats'
|
|
74
74
|
$testRoot = Join-Path (Get-Location).Path 'work\tabby-portable-test'
|
|
75
|
-
$archive = (Resolve-Path -LiteralPath '.\tabby-group-server-stats-1.7.
|
|
75
|
+
$archive = (Resolve-Path -LiteralPath '.\tabby-group-server-stats-1.7.2.tgz').Path
|
|
76
76
|
|
|
77
77
|
if (-not (Test-Path -LiteralPath (Join-Path $testRoot 'Tabby.exe'))) {
|
|
78
78
|
throw '请先将 Tabby 便携版解压到测试目录。'
|
|
@@ -126,7 +126,7 @@ npm.cmd whoami --registry=https://registry.npmjs.org/
|
|
|
126
126
|
验收通过后,手动发布刚才测试的同一个包:
|
|
127
127
|
|
|
128
128
|
```powershell
|
|
129
|
-
npm.cmd publish .\tabby-group-server-stats-1.7.
|
|
129
|
+
npm.cmd publish .\tabby-group-server-stats-1.7.2.tgz --access public --registry=https://registry.npmjs.org/
|
|
130
130
|
npm.cmd view tabby-group-server-stats version dist.tarball --registry=https://registry.npmjs.org/
|
|
131
131
|
```
|
|
132
132
|
|
package/README.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[中文](README.md) | English
|
|
4
4
|
|
|
5
|
-
Editable server metrics, hover details and metric groups for [Tabby](https://github.com/Eugeny/tabby). The current version is **1.7.
|
|
5
|
+
Editable server metrics, hover details and metric groups for [Tabby](https://github.com/Eugeny/tabby). The current version is **1.7.2**, with more compact static rows, three-decimal MB/s rates, and aligned capacity columns.
|
|
6
6
|
|
|
7
7
|
This is an MIT-licensed fork of [Akkariin's tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats). The version number alone does not mean that the package has been published to npm.
|
|
8
8
|
|
|
@@ -85,7 +85,7 @@ Use each card's up/down buttons to reorder CPU, memory, disk and network. The or
|
|
|
85
85
|
|
|
86
86
|
**Restore defaults** removes only the selected built-in's override, preserving its top-level enable switch and ordering, and leaving other built-ins and custom labels untouched. Restoring network resets that group's main/child definitions to their factory configuration.
|
|
87
87
|
|
|
88
|
-
Built-in CPU, memory, disk and network commands support Linux/macOS; most other library presets target Linux. Download and upload show the current received/sent rates in KiB/s. Each direction's hover detail shows its own cumulative GiB and the interfaces included. Default-route interfaces are preferred; without a usable default route, eligible non-loopback interfaces are used. **Totals cover the time since interface creation or counter reset, not since the current SSH login.**
|
|
88
|
+
Built-in CPU, memory, disk and network commands support Linux/macOS; most other library presets target Linux. Download and upload show the current received/sent rates in decimal MB/s with three fractional digits and thousands separators. Commands still return KiB/s; thresholds continue to use raw values. Each direction's hover detail shows its own cumulative GiB and the interfaces included. Default-route interfaces are preferred; without a usable default route, eligible non-loopback interfaces are used. **Totals cover the time since interface creation or counter reset, not since the current SSH login.**
|
|
89
89
|
|
|
90
90
|
The target system needs `timeout`, `gtimeout` or `setsid` for bounded command execution.
|
|
91
91
|
|
|
@@ -161,7 +161,7 @@ npm.cmd run test:ui
|
|
|
161
161
|
npm.cmd pack
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
`npm pack` reruns type checking, unit tests and the production build, producing `tabby-group-server-stats-1.7.
|
|
164
|
+
`npm pack` reruns type checking, unit tests and the production build, producing `tabby-group-server-stats-1.7.2.tgz`; compiled files are in `dist/`. Browser tests use real Angular components with simulated data, while command tests use a local shell. Live SSH command validation and desktop split-pane acceptance need their own recorded results.
|
|
165
165
|
|
|
166
166
|
This fork retains `plugin.serverStats` configuration compatibility. **Enable either the upstream plugin or this fork in a Tabby instance**, to avoid duplicate collection. An isolated portable Tabby installation is recommended for initial testing. See the [packaging, local-installation and publishing guide (Chinese)](PUBLISHING.zh-CN.md) for commands and acceptance checks.
|
|
167
167
|
|
|
@@ -170,3 +170,9 @@ This fork retains `plugin.serverStats` configuration compatibility. **Enable eit
|
|
|
170
170
|
Original project: [kasuganosoras/tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats), by Akkariin, Copyright (c) 2023 Akkariin Meiko. [LICENSE](LICENSE) preserves the original MIT text, and [NOTICE](NOTICE) describes this fork's attribution and changes. The 26 new monitoring icons use MIT as well; dependencies retain their own licenses and notices.
|
|
171
171
|
|
|
172
172
|
Report problems or suggest improvements through [this project's Issues](https://github.com/lishuainan0209/tabby-group-server-stats/issues). Shared presets should state required tools, metric meaning and source licenses.
|
|
173
|
+
|
|
174
|
+
### 1.7.2 display fixes
|
|
175
|
+
|
|
176
|
+
- Convert KiB/s readings to MB/s with three fractional digits.
|
|
177
|
+
- Remove gaps between static vertical rows, add thin separators, and reduce bottom-bar padding.
|
|
178
|
+
- Right-align numeric columns and both sides of capacity ratios; hover popups retain comfortable spacing.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
中文 | [English](README.en.md)
|
|
4
4
|
|
|
5
|
-
为 [Tabby](https://github.com/Eugeny/tabby) 提供可编辑的服务器指标、悬停详情和多标签组。当前版本为 **1.7.
|
|
5
|
+
为 [Tabby](https://github.com/Eugeny/tabby) 提供可编辑的服务器指标、悬停详情和多标签组。当前版本为 **1.7.2**,进一步压缩静态底栏高度,支持网速 MB/s 三位小数及容量数字分列对齐。
|
|
6
6
|
|
|
7
7
|
本项目基于 [Akkariin 的 tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats) 二次开发,继续使用 MIT 许可证。版本号不代表已经发布到 npm。
|
|
8
8
|
|
|
@@ -85,7 +85,7 @@ CPU、内存、磁盘是单标签;网络是静态竖排标签组,默认显
|
|
|
85
85
|
|
|
86
86
|
“恢复默认”只删除当前内置项的自定义覆盖,保留它的顶层启用开关和排列顺序,不影响其他内置项或自定义标签。网络恢复默认会恢复该组的出厂主、子标签配置。
|
|
87
87
|
|
|
88
|
-
内置 CPU、内存、磁盘和网络均包含 Linux/macOS 适配,多数其他离线预设面向 Linux
|
|
88
|
+
内置 CPU、内存、磁盘和网络均包含 Linux/macOS 适配,多数其他离线预设面向 Linux。网络下载、上传主值分别是当前接收、发送速率,显示单位为 MB/s(十进制),固定三位小数并带千位逗号;采集命令仍输出 KiB/s,颜色规则继续按原始数值判断;各自悬停显示对应方向的累计 GiB 和参与统计的网卡。默认优先选择默认路由网卡,没有可用默认路由时回退到符合条件的非回环网卡。**累计量从接口建立或计数器重置起计算,不是本次 SSH 登录后的流量**。
|
|
89
89
|
|
|
90
90
|
目标系统需要提供 `timeout`、`gtimeout` 或 `setsid` 之一,用于命令超时保护。
|
|
91
91
|
|
|
@@ -161,7 +161,7 @@ npm.cmd run test:ui
|
|
|
161
161
|
npm.cmd pack
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
`npm pack` 会再次执行类型检查、普通测试和正式构建,生成 `tabby-group-server-stats-1.7.
|
|
164
|
+
`npm pack` 会再次执行类型检查、普通测试和正式构建,生成 `tabby-group-server-stats-1.7.2.tgz`;构建文件在 `dist/`。浏览器测试使用真实 Angular 组件与模拟数据,命令测试在本机 shell 运行;真实 SSH 命令验证与 Tabby 分屏验收需要分别记录结果。
|
|
165
165
|
|
|
166
166
|
本 fork 继续使用 `plugin.serverStats` 配置,方便沿用已有指标。**同一个 Tabby 实例只启用原版或本 fork 其中一个**,避免重复采集。推荐先使用独立便携版测试。完整的本地安装命令、验收项目和 npm/Tabby 发布步骤见 [打包、测试与发布](PUBLISHING.zh-CN.md)。
|
|
167
167
|
|
|
@@ -170,3 +170,9 @@ npm.cmd pack
|
|
|
170
170
|
原项目为 [kasuganosoras/tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats),原作者 Akkariin,版权声明为 Copyright (c) 2023 Akkariin Meiko。[LICENSE](LICENSE) 保留原始 MIT 全文,[NOTICE](NOTICE) 说明本 fork 的修改和来源。新增 26 款监控图标同样采用 MIT 许可证;依赖及其许可证声明保留各自要求。
|
|
171
171
|
|
|
172
172
|
问题反馈和改进建议请提交到 [本项目 Issues](https://github.com/lishuainan0209/tabby-group-server-stats/issues)。分享预设时请附命令所需工具、显示含义和来源许可证。
|
|
173
|
+
|
|
174
|
+
### 1.7.2 显示修正
|
|
175
|
+
|
|
176
|
+
- 网速由 KiB/s 换算为 MB/s,固定三位小数。
|
|
177
|
+
- 静态竖排标签取消行间空隙,用细线分隔;底栏上下留白缩小。
|
|
178
|
+
- 同组数值右对齐,容量详情中斜杠两侧数字分别对齐,悬停弹窗保留较宽松行距。
|