chore(server): get printing template in order

This commit is contained in:
Elian Doran 2025-10-18 20:23:17 +03:00
parent 63bcd80375
commit e83eacb18b
No known key found for this signature in database
3 changed files with 6 additions and 4 deletions

1
apps/client/src/print.ts Normal file
View File

@ -0,0 +1 @@
console.log("Print script is here.");

View File

@ -76,7 +76,8 @@ export default defineConfig(() => ({
setup: join(__dirname, "src", "setup.ts"),
share: join(__dirname, "src", "share.ts"),
set_password: join(__dirname, "src", "set_password.ts"),
runtime: join(__dirname, "src", "runtime.ts")
runtime: join(__dirname, "src", "runtime.ts"),
print: join(__dirname, "src", "print.ts")
},
output: {
entryFileNames: "src/[name].js",

View File

@ -6,9 +6,9 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
<link rel="manifest" crossorigin="use-credentials" href="../manifest.webmanifest">
<title>Trilium Notes</title>
<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="../<%= appPath %>/runtime.js" crossorigin type="module"></script>
</head>
<body
id="trilium-print"
@ -24,7 +24,7 @@
<!-- Required for correct loading of scripts in Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="<%= appPath %>/print.js" crossorigin type="module"></script>
<script src="../<%= appPath %>/print.js" crossorigin type="module"></script>
</body>
</html>