🎨 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

@ -1,4 +1,6 @@
{
"currentKernel": "Current kernel",
"otherOnlineKernels": "Other online kernels",
"syncPerception": "⚗\uFE0F Sync perception",
"syncPerceptionTip": "After enabling, it will automatically receive and send data sync signals, so that data sync can be performed for all online devices as much as possible in real time (this feature is currently in the experimental stage)",
"hide": "Hide",

View file

@ -1,4 +1,6 @@
{
"currentKernel": "Núcleo actual",
"otherOnlineKernels": "Otros núcleos en línea",
"syncPerception": "⚗\uFE0F Percepción de sincronización",
"syncPerceptionTip": "Después de habilitarlo, automáticamente recibirá y enviará señales de sincronización de datos, de modo que la sincronización de datos se pueda realizar para todos los dispositivos en línea tanto como sea posible en tiempo real (esta función se encuentra actualmente en etapa experimental)",
"hide": "Ocultar",

View file

@ -1,4 +1,6 @@
{
"currentKernel": "Noyau actuel",
"otherOnlineKernels": "Autres noyaux en ligne",
"syncPerception": "⚗\uFE0F Perception de la synchronisation",
"syncPerceptionTip": "Après l'activation, il recevra et enverra automatiquement des signaux de synchronisation des données, afin que la synchronisation des données puisse être effectuée pour tous les appareils en ligne autant que possible en temps réel (cette fonctionnalité est actuellement en phase expérimentale)",
"hide": "Masquer",

View file

@ -1,4 +1,6 @@
{
"currentKernel": "當前內核",
"otherOnlineKernels": "其他聯機內核",
"syncPerception": "⚗\uFE0F 同步感知",
"syncPerceptionTip": "啟用後將自動接收和發送數據同步信號,這樣可以盡量實時地為所有在線設備進行數據同步(該特性目前處於實驗階段)",
"hide": "隱藏",

View file

@ -1,4 +1,6 @@
{
"currentKernel": "当前内核",
"otherOnlineKernels": "其他联机内核",
"syncPerception": "⚗\uFE0F 同步感知",
"syncPerceptionTip": "启用后将自动接收和发送数据同步信号,这样可以尽量实时地为所有在线设备进行数据同步(该特性目前处于实验阶段)",
"hide": "隐藏",

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