From f6d9b429110d106f7b4b34241df9a7f0e70a46a4 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 21 Feb 2025 22:21:49 +0100 Subject: [PATCH] entrypoint: add missing, currently required set_password entry point TODO: I think this can actually be part of the setup entrypoint/view at some point --- src/public/app/set_password.ts | 6 ++++++ src/views/set_password.ejs | 6 ++---- webpack.config.ts | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 src/public/app/set_password.ts diff --git a/src/public/app/set_password.ts b/src/public/app/set_password.ts new file mode 100644 index 000000000..ebf6b68a4 --- /dev/null +++ b/src/public/app/set_password.ts @@ -0,0 +1,6 @@ +import "../stylesheets/bootstrap.scss"; + +// @TriliumNextTODO: is this even needed anymore? +// @ts-ignore - module = undefined +// Required for correct loading of scripts in Electron +if (typeof module === 'object') {window.module = module; module = undefined;} diff --git a/src/views/set_password.ejs b/src/views/set_password.ejs index 9b958f79f..7ad7900a7 100644 --- a/src/views/set_password.ejs +++ b/src/views/set_password.ejs @@ -45,9 +45,7 @@ - + + diff --git a/webpack.config.ts b/webpack.config.ts index faaf000f2..69a22c7c3 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -12,7 +12,9 @@ const config: Configuration = { setup: "./src/public/app/setup.js", mobile: "./src/public/app/mobile.js", desktop: "./src/public/app/desktop.js", - share: "./src/public/app/share.js" + share: "./src/public/app/share.js", + // TriliumNextTODO: integrate set_password into setup entry point/view + set_password: "./src/public/app/set_password.js" }, output: { publicPath: `${assetPath}/app-dist/`,