mirror of
https://github.com/zadam/trilium.git
synced 2026-02-11 08:14:39 +01:00
chore(sql_console): link stylesheet
This commit is contained in:
parent
9bac07ce62
commit
0740788cc8
@ -1,3 +1,5 @@
|
||||
import "./SqlConsole.css";
|
||||
|
||||
import { SqlExecuteResults } from "@triliumnext/commons";
|
||||
import { useState } from "preact/hooks";
|
||||
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user