mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
0e2971c43f
commit
7f2cb0c48b
2 changed files with 2 additions and 9 deletions
|
|
@ -9,7 +9,6 @@ import {hideMessage, showMessage} from "./message";
|
||||||
import {Dialog} from "./index";
|
import {Dialog} from "./index";
|
||||||
import {isMobile} from "../util/functions";
|
import {isMobile} from "../util/functions";
|
||||||
import {confirmDialog} from "./confirmDialog";
|
import {confirmDialog} from "./confirmDialog";
|
||||||
import {renderStatusbarCounter} from "../layout/status";
|
|
||||||
|
|
||||||
export const lockFile = (id: string) => {
|
export const lockFile = (id: string) => {
|
||||||
const html = `<div class="b3-dialog__scrim"></div>
|
const html = `<div class="b3-dialog__scrim"></div>
|
||||||
|
|
@ -188,10 +187,6 @@ export const progressStatus = (data: IWebSocketData) => {
|
||||||
document.querySelector("#status .status__msg").innerHTML = data.msg;
|
document.querySelector("#status .status__msg").innerHTML = data.msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const handleStatusbarCounter = (data: IWebSocketData) => {
|
|
||||||
renderStatusbarCounter(data.data);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const progressLoading = (data: IWebSocketData) => {
|
export const progressLoading = (data: IWebSocketData) => {
|
||||||
let progressElement = document.getElementById("progress");
|
let progressElement = document.getElementById("progress");
|
||||||
if (!progressElement) {
|
if (!progressElement) {
|
||||||
|
|
@ -263,6 +258,7 @@ export const setTitle = (title: string) => {
|
||||||
dragElement.textContent = versionTitle;
|
dragElement.textContent = versionTitle;
|
||||||
dragElement.setAttribute("title", versionTitle);
|
dragElement.setAttribute("title", versionTitle);
|
||||||
} else {
|
} else {
|
||||||
|
title = title || "Untitled";
|
||||||
document.title = title + " - " + window.siyuan.languages.siyuanNote + " v" + Constants.SIYUAN_VERSION;
|
document.title = title + " - " + window.siyuan.languages.siyuanNote + " v" + Constants.SIYUAN_VERSION;
|
||||||
dragElement.textContent = title;
|
dragElement.textContent = title;
|
||||||
dragElement.setAttribute("title", title);
|
dragElement.setAttribute("title", title);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import {addBaseURL, setNoteBook} from "./util/pathName";
|
||||||
import {openFileById} from "./editor/util";
|
import {openFileById} from "./editor/util";
|
||||||
import {
|
import {
|
||||||
bootSync,
|
bootSync,
|
||||||
downloadProgress, handleStatusbarCounter,
|
downloadProgress,
|
||||||
progressLoading,
|
progressLoading,
|
||||||
progressStatus,
|
progressStatus,
|
||||||
setTitle,
|
setTitle,
|
||||||
|
|
@ -48,9 +48,6 @@ class App {
|
||||||
case"statusbar":
|
case"statusbar":
|
||||||
progressStatus(data);
|
progressStatus(data);
|
||||||
break;
|
break;
|
||||||
case"statusbarCounter":
|
|
||||||
handleStatusbarCounter(data);
|
|
||||||
break;
|
|
||||||
case"downloadProgress":
|
case"downloadProgress":
|
||||||
downloadProgress(data.data);
|
downloadProgress(data.data);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue