Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve the mouse hove data sync button information on the desktop and browser https://github.com/siyuan-note/siyuan/issues/8521

Daniel9fc86593f4d0
diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts
index da52791b9d..203ec796fb 100644
--- a/app/src/layout/topBar.ts
+++ b/app/src/layout/topBar.ts
@@ -240,19 +240,19 @@ export const initBar = (app: App) => {
if (!window.siyuan.config.sync.enabled || (0 === window.siyuan.config.sync.provider && needSubscribe(""))) {
html = response.data.stat;
} else {
- html = window.siyuan.languages._kernel[82].replace("%s", dayjs(response.data.synced).format("YYYY-MM-DD HH:mm")) + " " + response.data.kernel + "\n\n"
- response.data.kernels.forEach((item: {
- os: string;
- ver: string;
- hostname: string;
- id: string;
- }) => {
- html += `${item.os}-${item.ver} ${item.hostname} ${item.id}\n`
- })
+ html = window.siyuan.languages._kernel[82].replace("%s", dayjs(response.data.synced).format("YYYY-MM-DD HH:mm")) + " " + response.data.kernel + "\n"
+ html += response.data.stat;
if (response.data.kernels.length > 0) {
- html += "\n"
+ response.data.kernels.forEach((item: {
+ os: string;
+ ver: string;
+ hostname: string;
+ id: string;
+ }) => {
+ html += "\n\n"
+ html += `${item.os}-${item.ver} ${item.hostname} ${item.id}\n`
+ })
}
- html += response.data.stat;
}
barSyncElement.setAttribute("aria-label", escapeAttr(html));
})