mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
build: let webpack bundle split.js
This commit is contained in:
parent
49a2eb0ccf
commit
559517ace1
@ -1,4 +1,5 @@
|
|||||||
import options from "./options.js";
|
import options from "./options.js";
|
||||||
|
import Split from "split.js"
|
||||||
|
|
||||||
let leftInstance: ReturnType<typeof Split> | null;
|
let leftInstance: ReturnType<typeof Split> | null;
|
||||||
let rightInstance: ReturnType<typeof Split> | null;
|
let rightInstance: ReturnType<typeof Split> | null;
|
||||||
|
7
src/public/app/types.d.ts
vendored
7
src/public/app/types.d.ts
vendored
@ -123,13 +123,6 @@ declare global {
|
|||||||
language: string
|
language: string
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
var Split: (selectors: string[], config: {
|
|
||||||
sizes: [ number, number ];
|
|
||||||
gutterSize: number;
|
|
||||||
onDragEnd: (sizes: [ number, number ]) => void;
|
|
||||||
}) => {
|
|
||||||
destroy();
|
|
||||||
};
|
|
||||||
var renderMathInElement: (element: HTMLElement, options: {
|
var renderMathInElement: (element: HTMLElement, options: {
|
||||||
trust: boolean;
|
trust: boolean;
|
||||||
}) => void;
|
}) => void;
|
||||||
|
@ -70,8 +70,6 @@ async function register(app: express.Application) {
|
|||||||
|
|
||||||
app.use(`/${assetPath}/node_modules/jquery-hotkeys/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/jquery-hotkeys/")));
|
app.use(`/${assetPath}/node_modules/jquery-hotkeys/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/jquery-hotkeys/")));
|
||||||
|
|
||||||
app.use(`/${assetPath}/node_modules/split.js/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/split.js/dist/")));
|
|
||||||
|
|
||||||
app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/panzoom/dist/")));
|
app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/panzoom/dist/")));
|
||||||
|
|
||||||
// i18n
|
// i18n
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
<script src="<%= assetPath %>/node_modules/jquery-hotkeys/jquery-hotkeys.js"></script>
|
<script src="<%= assetPath %>/node_modules/jquery-hotkeys/jquery-hotkeys.js"></script>
|
||||||
|
|
||||||
<script src="<%= assetPath %>/node_modules/autocomplete.js/dist/autocomplete.jquery.min.js"></script>
|
<script src="<%= assetPath %>/node_modules/autocomplete.js/dist/autocomplete.jquery.min.js"></script>
|
||||||
<script src="<%= assetPath %>/node_modules/split.js/dist/split.min.js"></script>
|
|
||||||
|
|
||||||
<link href="<%= assetPath %>/stylesheets/ckeditor-theme.css" rel="stylesheet">
|
<link href="<%= assetPath %>/stylesheets/ckeditor-theme.css" rel="stylesheet">
|
||||||
<link href="api/fonts" rel="stylesheet">
|
<link href="api/fonts" rel="stylesheet">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user