mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🚨
This commit is contained in:
parent
56fe8371d1
commit
aa95c363ef
6 changed files with 1 additions and 6 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
import {fetchPost} from "../util/fetch";
|
import {fetchPost} from "../util/fetch";
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
import {dialog} from "@electron/remote";
|
import {dialog} from "@electron/remote";
|
||||||
import {shell} from "electron";
|
|
||||||
import {afterExport} from "../protyle/export/util";
|
import {afterExport} from "../protyle/export/util";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
/// #endif
|
/// #endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
import {escapeHtml} from "../../util/escape";
|
import {escapeHtml} from "../../util/escape";
|
||||||
import {shell} from "electron";
|
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {hideMessage, showMessage} from "../../dialog/message";
|
import {hideMessage, showMessage} from "../../dialog/message";
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ import {deleteFile} from "../../editor/deleteFile";
|
||||||
import {updateHotkeyTip} from "../util/compatibility";
|
import {updateHotkeyTip} from "../util/compatibility";
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
import {openBacklink, openGraph, openOutline} from "../../layout/dock/util";
|
import {openBacklink, openGraph, openOutline} from "../../layout/dock/util";
|
||||||
import {shell} from "electron";
|
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {Constants} from "../../constants";
|
import {Constants} from "../../constants";
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ const setHTML = (options: {
|
||||||
protyle.scroll.lastScrollTop = protyle.contentElement.scrollTop;
|
protyle.scroll.lastScrollTop = protyle.contentElement.scrollTop;
|
||||||
// 动态加载移除
|
// 动态加载移除
|
||||||
if (!protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select") && !protyle.scroll.keepLazyLoad) {
|
if (!protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select") && !protyle.scroll.keepLazyLoad) {
|
||||||
const removeElements: Element[] = []
|
const removeElements: Element[] = [];
|
||||||
let childCount = protyle.wysiwyg.element.childElementCount;
|
let childCount = protyle.wysiwyg.element.childElementCount;
|
||||||
let scrollHeight = protyle.contentElement.scrollHeight;
|
let scrollHeight = protyle.contentElement.scrollHeight;
|
||||||
let lastElement = protyle.wysiwyg.element.lastElementChild;
|
let lastElement = protyle.wysiwyg.element.lastElementChild;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
import {shell} from "electron";
|
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {Constants} from "../constants";
|
import {Constants} from "../constants";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import {getAllModels} from "../layout/getAll";
|
import {getAllModels} from "../layout/getAll";
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
import {shell} from "electron";
|
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {Constants} from "../constants";
|
import {Constants} from "../constants";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue