mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +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
a64b95f98e
commit
85f3bfa51f
7 changed files with 16 additions and 3 deletions
|
|
@ -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`
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -555,6 +555,7 @@ interface IConfig {
|
|||
port: string
|
||||
scheme: string
|
||||
}
|
||||
name: string
|
||||
kernelVersion: string
|
||||
isInsider: boolean
|
||||
appDir: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue