Improve popup window support.
All checks were successful
continuous-integration/drone/push Build is passing

Switching to new views_repo with new build system
This commit is contained in:
Fabian Stamm
2020-11-03 23:29:56 +01:00
parent 6b4ad81940
commit dd10cae1cd
19 changed files with 163 additions and 1800 deletions

View File

@ -40,13 +40,13 @@ ViewRouter.get("/register", (req, res) => {
ViewRouter.use(
"/login",
addCache,
ServeStatic("./views_repo/build/login", { cacheControl: false })
ServeStatic("./views_repo/build/Login", { cacheControl: false })
);
ViewRouter.use(
"/user",
addCache,
ServeStatic("./views_repo/build/user", { cacheControl: false })
ServeStatic("./views_repo/build/User", { cacheControl: false })
);
ViewRouter.get("/code", (req, res) => {
@ -69,9 +69,15 @@ ViewRouter.get(
ViewRouter.get("/auth", GetAuthRoute(true));
ViewRouter.get("/popup", UserMiddleware, (req, res) => {
res.send(GetPopupPage(req.__));
});
ViewRouter.use(
"/popup",
addCache,
ServeStatic("./views_repo/build/Popup", { cacheControl: false })
);
// ViewRouter.get("/popup", UserMiddleware, (req, res) => {
// res.send(GetPopupPage(req.__));
// });
// if (config.core.dev) {
// const logo =