mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
🚨
This commit is contained in:
parent
a80c0434e6
commit
31e1798ff2
9 changed files with 8 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import {exportLayout, JSONToLayout, resetLayout, resizeTopBar, saveLayout} from "../layout/util";
|
import {exportLayout, JSONToLayout, resetLayout, resizeTopBar} from "../layout/util";
|
||||||
import {resizeTabs} from "../layout/tabUtil";
|
import {resizeTabs} from "../layout/tabUtil";
|
||||||
import {setStorageVal} from "../protyle/util/compatibility";
|
import {setStorageVal} from "../protyle/util/compatibility";
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
|
|
|
||||||
|
|
@ -543,7 +543,7 @@ export abstract class Constants {
|
||||||
"codeBlock": false,
|
"codeBlock": false,
|
||||||
"mathBlock": false,
|
"mathBlock": false,
|
||||||
"htmlBlock": false
|
"htmlBlock": false
|
||||||
}
|
};
|
||||||
|
|
||||||
// image
|
// image
|
||||||
public static readonly SIYUAN_IMAGE_VIP: string = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
public static readonly SIYUAN_IMAGE_VIP: string = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ export class Wnd {
|
||||||
} else {
|
} else {
|
||||||
oldTab.parent.children.push(tempTab);
|
oldTab.parent.children.push(tempTab);
|
||||||
}
|
}
|
||||||
saveLayout()
|
saveLayout();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.element.addEventListener("dragenter", (event: DragEvent & { target: HTMLElement }) => {
|
this.element.addEventListener("dragenter", (event: DragEvent & { target: HTMLElement }) => {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Tab} from "./Tab";
|
import {Tab} from "./Tab";
|
||||||
import {exportLayout, getInstanceById, newModelByInitData, saveLayout} from "./util";
|
import {getInstanceById, newModelByInitData, saveLayout} from "./util";
|
||||||
import {getAllModels, getAllTabs} from "./getAll";
|
import {getAllModels, getAllTabs} from "./getAll";
|
||||||
import {hideAllElements, hideElements} from "../protyle/ui/hideElements";
|
import {hideAllElements, hideElements} from "../protyle/ui/hideElements";
|
||||||
import {pdfResize} from "../asset/renderAssets";
|
import {pdfResize} from "../asset/renderAssets";
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ export const resetLayout = () => {
|
||||||
|
|
||||||
let saveCount = 0;
|
let saveCount = 0;
|
||||||
export const saveLayout = () => {
|
export const saveLayout = () => {
|
||||||
const breakObj = {}
|
const breakObj = {};
|
||||||
let layoutJSON: any = {};
|
let layoutJSON: any = {};
|
||||||
if (isWindow()) {
|
if (isWindow()) {
|
||||||
layoutJSON = {
|
layoutJSON = {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||||
import {confirmDialog} from "../dialog/confirmDialog";
|
import {confirmDialog} from "../dialog/confirmDialog";
|
||||||
import {App} from "../index";
|
import {App} from "../index";
|
||||||
import {isBrowser} from "../util/functions";
|
import {isBrowser} from "../util/functions";
|
||||||
import {unbindSaveUI} from "../boot/onGetConfig";
|
|
||||||
import {openRecentDocs} from "../business/openRecentDocs";
|
import {openRecentDocs} from "../business/openRecentDocs";
|
||||||
|
|
||||||
const togglePinDock = (dock: Dock, icon: string) => {
|
const togglePinDock = (dock: Dock, icon: string) => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {fetchSyncPost} from "../util/fetch";
|
||||||
import {App} from "../index";
|
import {App} from "../index";
|
||||||
import {Plugin} from "./index";
|
import {Plugin} from "./index";
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
import {exportLayout, resizeTopBar, saveLayout} from "../layout/util";
|
import {resizeTopBar} from "../layout/util";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {API} from "./API";
|
import {API} from "./API";
|
||||||
import {getFrontend, isMobile, isWindow} from "../util/functions";
|
import {getFrontend, isMobile, isWindow} from "../util/functions";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
import {App} from "../index";
|
import {App} from "../index";
|
||||||
import {Plugin} from "../plugin";
|
import {Plugin} from "../plugin";
|
||||||
import {getAllModels} from "../layout/getAll";
|
import {getAllModels} from "../layout/getAll";
|
||||||
import {exportLayout, resizeTopBar, saveLayout} from "../layout/util";
|
import {resizeTopBar} from "../layout/util";
|
||||||
import {Constants} from "../constants";
|
|
||||||
|
|
||||||
export const uninstall = (app: App, name: string) => {
|
export const uninstall = (app: App, name: string) => {
|
||||||
app.plugins.find((plugin: Plugin, index) => {
|
app.plugins.find((plugin: Plugin, index) => {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import {openEditorTab} from "../../../menus/util";
|
||||||
import {copySubMenu} from "../../../menus/commonMenuItem";
|
import {copySubMenu} from "../../../menus/commonMenuItem";
|
||||||
import {getCellText, getTypeByCellElement, popTextCell} from "./cell";
|
import {getCellText, getTypeByCellElement, popTextCell} from "./cell";
|
||||||
import {getColIconByType, showColMenu} from "./col";
|
import {getColIconByType, showColMenu} from "./col";
|
||||||
import {deleteRow, insertAttrViewBlockAnimation, setPageSize, stickyRow, updateHeader} from "./row";
|
import {deleteRow, insertAttrViewBlockAnimation, setPageSize, updateHeader} from "./row";
|
||||||
import {emitOpenMenu} from "../../../plugin/EventBus";
|
import {emitOpenMenu} from "../../../plugin/EventBus";
|
||||||
import {addCol} from "./col";
|
import {addCol} from "./col";
|
||||||
import {openMenuPanel} from "./openMenuPanel";
|
import {openMenuPanel} from "./openMenuPanel";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue