Skip to content

Build your personal knowledge base with Trilium Notes

chore(sql_console): link stylesheet

Elian Doran0740788cc83b
diff --git a/apps/client/src/widgets/sql_result.css b/apps/client/src/widgets/type_widgets/SqlConsole.css
similarity index 100%
rename from apps/client/src/widgets/sql_result.css
rename to apps/client/src/widgets/type_widgets/SqlConsole.css
diff --git a/apps/client/src/widgets/type_widgets/SqlConsole.tsx b/apps/client/src/widgets/type_widgets/SqlConsole.tsx
index 06b30c462c..8c92002994 100644
--- a/apps/client/src/widgets/type_widgets/SqlConsole.tsx
+++ b/apps/client/src/widgets/type_widgets/SqlConsole.tsx
@@ -1,3 +1,5 @@
+import "./SqlConsole.css";
+
import { SqlExecuteResults } from "@triliumnext/commons";
import { useState } from "preact/hooks";
diff --git a/apps/server/src/app.ts b/apps/server/src/app.ts
index d3d09c5c70..0ab7a620c8 100644
--- a/apps/server/src/app.ts
+++ b/apps/server/src/app.ts
@@ -3,6 +3,7 @@ import "./becca/becca_loader.js";
import compression from "compression";
import cookieParser from "cookie-parser";
+import { renderFile } from "ejs";
import express from "express";
import { auth } from "express-openid-connect";
import helmet from "helmet";
@@ -34,8 +35,7 @@ export default async function buildApp() {
// view engine setup
app.set("views", path.join(assetsDir, "views"));
- const ejs = await import("ejs");
- app.engine("ejs", (filePath, options, callback) => ejs.renderFile(filePath, options, callback));
+ app.engine("ejs", (filePath, options, callback) => renderFile(filePath, options, callback));
app.set("view engine", "ejs");
app.use((req, res, next) => {