mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
🎨 重建索引改为后台任务 https://github.com/siyuan-note/siyuan/issues/7153
This commit is contained in:
parent
87f230023c
commit
801bc69820
7 changed files with 34 additions and 18 deletions
|
|
@ -89,12 +89,6 @@ export abstract class Constants {
|
|||
en_US: "20210808180117-6v0mkxr",
|
||||
fr_FR: "20210808180117-6v0mkxr",
|
||||
};
|
||||
public static readonly HELP_START_PATH = {
|
||||
zh_CN: "20200812220555-lj3enxa",
|
||||
zh_CHT: "20211226115423-d5z1joq",
|
||||
en_US: "20200923234011-ieuun1p",
|
||||
fr_FR: "20200923234011-ieuun1p",
|
||||
};
|
||||
|
||||
public static readonly KEYCODE: { [key: string]: string[] } = {
|
||||
"186": [";", ":"],
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import {addBaseURL, setNoteBook} from "./util/pathName";
|
|||
import {openFileById} from "./editor/util";
|
||||
import {
|
||||
bootSync,
|
||||
downloadProgress, processSync,
|
||||
downloadProgress,
|
||||
processSync,
|
||||
progressLoading,
|
||||
progressStatus,
|
||||
setTitle,
|
||||
|
|
@ -114,6 +115,9 @@ class App {
|
|||
case "createdailynote":
|
||||
openFileById({id: data.data.id, action: [Constants.CB_GET_FOCUS]});
|
||||
break;
|
||||
case "openFileById":
|
||||
openFileById({id: data.data.id, action: [Constants.CB_GET_FOCUS]});
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -734,12 +734,6 @@ export class Files extends Model {
|
|||
this.element.insertAdjacentHTML("afterbegin", html);
|
||||
}
|
||||
}
|
||||
if (data.callback === Constants.CB_MOUNT_HELP) {
|
||||
openFileById({
|
||||
id: Constants.HELP_START_PATH[window.siyuan.config.appearance.lang as "zh_CN" | "en_US"],
|
||||
action: [Constants.CB_GET_FOCUS]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -569,9 +569,6 @@ export class MobileFiles extends Model {
|
|||
this.element.insertAdjacentHTML("afterbegin", html);
|
||||
}
|
||||
}
|
||||
if (data.callback === Constants.CB_MOUNT_HELP) {
|
||||
openMobileFileById(Constants.HELP_START_PATH[window.siyuan.config.appearance.lang as "zh_CN" | "en_US"]);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
import {openMobileFileById} from "../editor";
|
||||
import {progressLoading, progressStatus, transactionError} from "../../dialog/processSystem";
|
||||
import {openFileById} from "../../editor/util";
|
||||
import {Constants} from "../../constants";
|
||||
|
||||
export const onMessage = (data: IWebSocketData) => {
|
||||
if (data) {
|
||||
|
|
@ -24,6 +26,9 @@ export const onMessage = (data: IWebSocketData) => {
|
|||
case "createdailynote":
|
||||
openMobileFileById(data.data.id);
|
||||
break;
|
||||
case "openFileById":
|
||||
openMobileFileById(data.data.id, [Constants.CB_GET_FOCUS]);
|
||||
break;
|
||||
case"txerr":
|
||||
transactionError(data);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue