🎨 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:
Daniel 2023-06-12 12:23:14 +08:00
parent a64b95f98e
commit 85f3bfa51f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 16 additions and 3 deletions

View file

@ -240,17 +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"
html = window.siyuan.languages._kernel[82].replace("%s", dayjs(response.data.synced).format("YYYY-MM-DD HH:mm")) + "\n"
html += response.data.stat;
if (response.data.kernels.length > 0) {
html += "\n\n"
html += window.siyuan.languages.currentKernel + "\n"
html += " " + response.data.kernel + "/" + window.siyuan.config.system.kernelVersion + " (" + window.siyuan.config.system.os + "/" + window.siyuan.config.system.name + ")\n"
html += window.siyuan.languages.otherOnlineKernels + "\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 += ` ${item.id}/${item.ver} (${item.os}/${item.hostname}) \n`
})
}
}

View file

@ -555,6 +555,7 @@ interface IConfig {
port: string
scheme: string
}
name: string
kernelVersion: string
isInsider: boolean
appDir: string