cicy-desktop 2.1.74 → 2.1.76
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/.github/workflows/npm-publish.yml +14 -0
- package/package.json +6 -6
- package/src/backends/homepage-react/assets/{index-C9AZlTew.css → index-CPH-S8uU.css} +1 -1
- package/src/backends/homepage-react/assets/index-DuWX0iug.js +365 -0
- package/src/backends/homepage-react/index.html +2 -2
- package/src/backends/homepage-window.js +2 -0
- package/src/main.js +8 -0
- package/src/utils/app-icon.js +22 -0
- package/src/utils/window-utils.js +2 -0
- package/workers/render/package-lock.json +1132 -321
- package/workers/render/src/App.jsx +11 -3
- package/src/backends/homepage-react/assets/index-BpljolQs.js +0 -365
|
@@ -975,9 +975,17 @@ function LocalTeamCard({ team, onOpen, onRename, onRefresh }) {
|
|
|
975
975
|
const v = JSON.parse(r.body)?.version || null;
|
|
976
976
|
setLatest(v);
|
|
977
977
|
if (manual && v) {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
978
|
+
if (!team.version) {
|
|
979
|
+
// Current version UNKNOWN (daemon stopped, or health returned no
|
|
980
|
+
// version). Do NOT claim "已是最新" and NEVER show the latest as if
|
|
981
|
+
// it were the current version (the old `team.version || v` bug made
|
|
982
|
+
// it say "已是最新 v<latest>" while the running daemon was older).
|
|
983
|
+
setUpToDateMsg(`${tr("sidecar.latestVersionIs", "最新版本")} v${v}·${tr("sidecar.startToCompare", "启动后对比当前版本")}`);
|
|
984
|
+
setTimeout(() => setUpToDateMsg(""), 3500);
|
|
985
|
+
} else if (cmpVer(v, team.version) > 0) {
|
|
986
|
+
// Behind — the 更新 badge/button drives the upgrade; no toast here.
|
|
987
|
+
} else {
|
|
988
|
+
setUpToDateMsg(`${tr("sidecar.upToDate", "已是最新")} v${team.version}`);
|
|
981
989
|
setTimeout(() => setUpToDateMsg(""), 2500);
|
|
982
990
|
}
|
|
983
991
|
}
|