mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 Improve the mouse hove data sync button information on the desktop and browser https://github.com/siyuan-note/siyuan/issues/8521
This commit is contained in:
parent
b4a93ea799
commit
9fc86593f4
1 changed files with 12 additions and 12 deletions
|
|
@ -240,19 +240,19 @@ export const initBar = (app: App) => {
|
||||||
if (!window.siyuan.config.sync.enabled || (0 === window.siyuan.config.sync.provider && needSubscribe(""))) {
|
if (!window.siyuan.config.sync.enabled || (0 === window.siyuan.config.sync.provider && needSubscribe(""))) {
|
||||||
html = response.data.stat;
|
html = response.data.stat;
|
||||||
} else {
|
} else {
|
||||||
html = window.siyuan.languages._kernel[82].replace("%s", dayjs(response.data.synced).format("YYYY-MM-DD HH:mm")) + " " + response.data.kernel + "\n\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) {
|
||||||
response.data.kernels.forEach((item: {
|
response.data.kernels.forEach((item: {
|
||||||
os: string;
|
os: string;
|
||||||
ver: string;
|
ver: string;
|
||||||
hostname: string;
|
hostname: string;
|
||||||
id: string;
|
id: string;
|
||||||
}) => {
|
}) => {
|
||||||
|
html += "\n\n"
|
||||||
html += `${item.os}-${item.ver} ${item.hostname} ${item.id}\n`
|
html += `${item.os}-${item.ver} ${item.hostname} ${item.id}\n`
|
||||||
})
|
})
|
||||||
if (response.data.kernels.length > 0) {
|
|
||||||
html += "\n"
|
|
||||||
}
|
}
|
||||||
html += response.data.stat;
|
|
||||||
}
|
}
|
||||||
barSyncElement.setAttribute("aria-label", escapeAttr(html));
|
barSyncElement.setAttribute("aria-label", escapeAttr(html));
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue