qumra-engine 2.0.57 → 2.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,11 +18,11 @@ const prepareDataMiddleware = (req, res, next) => {
18
18
  //{ themeVersionId: req.session.themeId }
19
19
  let themePath = "";
20
20
  const params = new URLSearchParams();
21
- if (req.session?.themeId) {
22
- params.set("themeVersionId", req.session.themeId);
21
+ if (req.session?.theme) {
22
+ params.set("theme", req.session.theme);
23
23
  }
24
- if (req.query?.appTheme) {
25
- params.set("appTheme", String(req.query.appTheme));
24
+ if (req.query?.themeVersion) {
25
+ params.set("themeVersion", String(req.query.themeVersion));
26
26
  }
27
27
  if (res.locals.themeWidget) {
28
28
  params.set("themeWidget", String(res.locals.themeWidget));
@@ -38,12 +38,12 @@ const startEngine = async ({ mode, getRender, setRender, port = 3000, themesRepo
38
38
  }));
39
39
  app.use((req, res, next) => {
40
40
  if (req.query.theme) {
41
- req.session.themeId = req.query.theme;
41
+ req.session.theme = req.query.theme;
42
42
  return res.redirect("/");
43
43
  }
44
44
  else {
45
45
  if (themeId) {
46
- req.session.themeId = themeId;
46
+ req.session.theme = themeId;
47
47
  }
48
48
  }
49
49
  next();
@@ -11,6 +11,9 @@ function printServerLog({ port, themeId, app }) {
11
11
  if (app) {
12
12
  console.log('🌍 Theme URL =>', cyan(`${app?.url}?theme=${themeId}`));
13
13
  }
14
+ if (app) {
15
+ console.log(' 📦 Customize Theme =>', cyan(`https://app.qumra.cloud/store/${app.subdomain}/themes/${themeId}`));
16
+ }
14
17
  // console.log('📦 Builder ID =>', yellow(`https://qumra.cloud/store/test/themes/${themeId}`));
15
18
  console.log('');
16
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.57",
3
+ "version": "2.0.59",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {