From 0740788cc83b31da2f6edcbc1d08f890e00022d6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 17 Jan 2026 20:32:28 +0200 Subject: [PATCH] chore(sql_console): link stylesheet --- .../widgets/{sql_result.css => type_widgets/SqlConsole.css} | 0 apps/client/src/widgets/type_widgets/SqlConsole.tsx | 2 ++ apps/server/src/app.ts | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) rename apps/client/src/widgets/{sql_result.css => type_widgets/SqlConsole.css} (100%) 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 06b30c462..8c9200299 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 d3d09c5c7..0ab7a620c 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) => {