express-sweet-generator 2.0.18 → 2.0.20

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.
@@ -3,18 +3,19 @@
3
3
  {{#contentFor 'style'}}
4
4
  <style>
5
5
  body {
6
- background-image: url('/build/theme/media/auth/bg6.jpg');
6
+ background-image: url('/build/theme/media/misc/auth-bg.png');
7
+ /* background-image: url('/build/theme/media/auth/bg6.jpg'); */
7
8
  }
8
9
 
9
- [data-bs-theme="dark"] body {
10
+ /* [data-bs-theme="dark"] body {
10
11
  background-image: url('/build/theme/media/auth/bg6-dark.jpg');
11
- }
12
+ } */
12
13
  </style>
13
14
  {{/contentFor}}
14
15
  <!--begin::Authentication - Signup Welcome Message -->
15
16
  <div class="d-flex flex-column flex-center flex-column-fluid">
16
17
  <!--begin::Content-->
17
- <div class="d-flex flex-column flex-center text-center p-10">
18
+ <div class="flex flex-column flex-center text-center p-lg-10 p-3">
18
19
  <!--begin::Wrapper-->
19
20
  <div class="card card-flush w-lg-650px py-5">
20
21
  <div class="card-body py-15 py-lg-20">
@@ -3,18 +3,19 @@
3
3
  {{#contentFor 'style'}}
4
4
  <style>
5
5
  body {
6
- background-image: url('/build/theme/media/auth/bg6.jpg');
6
+ background-image: url('/build/theme/media/misc/auth-bg.png');
7
+ /* background-image: url('/build/theme/media/auth/bg6.jpg'); */
7
8
  }
8
9
 
9
- [data-bs-theme="dark"] body {
10
+ /* [data-bs-theme="dark"] body {
10
11
  background-image: url('/build/theme/media/auth/bg6-dark.jpg');
11
- }
12
+ } */
12
13
  </style>
13
14
  {{/contentFor}}
14
15
  <!--begin::Authentication - Signup Welcome Message -->
15
16
  <div class="d-flex flex-column flex-center flex-column-fluid">
16
17
  <!--begin::Content-->
17
- <div class="d-flex flex-column flex-center text-center p-10">
18
+ <div class="flex flex-column flex-center text-center p-lg-10 p-3">
18
19
  <!--begin::Wrapper-->
19
20
  <div class="card card-flush w-lg-650px py-5">
20
21
  <div class="card-body py-15 py-lg-20">
@@ -7,7 +7,7 @@
7
7
  <!--begin::Authentication - Signup Welcome Message -->
8
8
  <div class="d-flex flex-column flex-center flex-column-fluid">
9
9
  <!--begin::Content-->
10
- <div class="d-flex flex-column flex-center text-center p-10">
10
+ <div class="flex flex-column flex-center text-center p-lg-10 p-3">
11
11
  <!--begin::Wrapper-->
12
12
  <div class="card card-flush w-lg-650px py-5">
13
13
  <div class="card-body py-15 py-lg-20">
@@ -12,7 +12,7 @@
12
12
  "deep-fusion": "^1.0.0",
13
13
  "handlebars-extd": "^1.0.4",
14
14
  "js-shared": "^1.0.4",
15
- "metronic-extension": "^3.0.15",
15
+ "metronic-extension": "^3.0.16",
16
16
  "moment": "^2.29.1"
17
17
  },
18
18
  "devDependencies": {
@@ -3793,9 +3793,9 @@
3793
3793
  }
3794
3794
  },
3795
3795
  "node_modules/metronic-extension": {
3796
- "version": "3.0.15",
3797
- "resolved": "https://registry.npmjs.org/metronic-extension/-/metronic-extension-3.0.15.tgz",
3798
- "integrity": "sha512-r969MDQfZDzPwb94E+dr+FX17OC7twfsAROoLCD4aF1xfzBDFq82gppLvNqpecCjmkogmnlXEqqRks6tmw1ANg==",
3796
+ "version": "3.0.16",
3797
+ "resolved": "https://registry.npmjs.org/metronic-extension/-/metronic-extension-3.0.16.tgz",
3798
+ "integrity": "sha512-Sr3sfVv4XC2WgSW3FrIlyNST7+w9+Ha8QY1m0yotXv/WE/W+DUkMxYntA/ZcwjsjZLBGrQp5U1rhAuvu2XJP3A==",
3799
3799
  "license": "MIT",
3800
3800
  "dependencies": {
3801
3801
  "axios": "^1.1.2",
@@ -5124,9 +5124,9 @@
5124
5124
  }
5125
5125
  },
5126
5126
  "node_modules/sweetalert2": {
5127
- "version": "11.15.10",
5128
- "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.15.10.tgz",
5129
- "integrity": "sha512-Sjiwcd5mWiz8X0JFkHsso2EPVQHrLCjVv+xR6Ry2LKf4KY6kSi4U5pM0Tgmn1c7SMfkyDqPal2NWqwj6vck8bw==",
5127
+ "version": "11.16.0",
5128
+ "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.16.0.tgz",
5129
+ "integrity": "sha512-4CGgNMpQHcwV+Gov0j4u3lDc/5lyl04NBsa1vW0Se9cqsrQoUimD6/Z5UyZiRP4kMbwQGyb7wsp0x3ytybti6w==",
5130
5130
  "license": "MIT",
5131
5131
  "funding": {
5132
5132
  "type": "individual",
@@ -8289,9 +8289,9 @@
8289
8289
  "dev": true
8290
8290
  },
8291
8291
  "metronic-extension": {
8292
- "version": "3.0.15",
8293
- "resolved": "https://registry.npmjs.org/metronic-extension/-/metronic-extension-3.0.15.tgz",
8294
- "integrity": "sha512-r969MDQfZDzPwb94E+dr+FX17OC7twfsAROoLCD4aF1xfzBDFq82gppLvNqpecCjmkogmnlXEqqRks6tmw1ANg==",
8292
+ "version": "3.0.16",
8293
+ "resolved": "https://registry.npmjs.org/metronic-extension/-/metronic-extension-3.0.16.tgz",
8294
+ "integrity": "sha512-Sr3sfVv4XC2WgSW3FrIlyNST7+w9+Ha8QY1m0yotXv/WE/W+DUkMxYntA/ZcwjsjZLBGrQp5U1rhAuvu2XJP3A==",
8295
8295
  "requires": {
8296
8296
  "axios": "^1.1.2",
8297
8297
  "clipboard": "^2.0.11",
@@ -9181,9 +9181,9 @@
9181
9181
  }
9182
9182
  },
9183
9183
  "sweetalert2": {
9184
- "version": "11.15.10",
9185
- "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.15.10.tgz",
9186
- "integrity": "sha512-Sjiwcd5mWiz8X0JFkHsso2EPVQHrLCjVv+xR6Ry2LKf4KY6kSi4U5pM0Tgmn1c7SMfkyDqPal2NWqwj6vck8bw=="
9184
+ "version": "11.16.0",
9185
+ "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.16.0.tgz",
9186
+ "integrity": "sha512-4CGgNMpQHcwV+Gov0j4u3lDc/5lyl04NBsa1vW0Se9cqsrQoUimD6/Z5UyZiRP4kMbwQGyb7wsp0x3ytybti6w=="
9187
9187
  },
9188
9188
  "tapable": {
9189
9189
  "version": "2.2.1",
@@ -20,7 +20,7 @@
20
20
  "deep-fusion": "^1.0.0",
21
21
  "handlebars-extd": "^1.0.4",
22
22
  "js-shared": "^1.0.4",
23
- "metronic-extension": "^3.0.15",
23
+ "metronic-extension": "^3.0.16",
24
24
  "moment": "^2.29.1"
25
25
  },
26
26
  "devDependencies": {
@@ -1,7 +1,8 @@
1
1
  body {
2
- background-image: url('/build/theme/media/auth/bg6.jpg');
2
+ background-image: url('/build/theme/media/misc/auth-bg.png');
3
+ /* background-image: url('/build/theme/media/auth/bg6.jpg'); */
3
4
  }
4
5
 
5
- [data-bs-theme="dark"] body {
6
+ /* [data-bs-theme="dark"] body {
6
7
  background-image: url('/build/theme/media/auth/bg6-dark.jpg');
7
- }
8
+ } */
@@ -41,9 +41,17 @@ export default class extends components.Api {
41
41
  errorHook(code, error) {
42
42
  // Check if the error object and request properties exist to avoid runtime errors
43
43
  if (error && error.request && error.request.responseURL) {
44
+ // Log the error details.
45
+ console.error(`API Error: Code ${code}, Message: ${error.message}, URL: ${error.request.responseURL}`);
46
+
47
+ // Get the pathname from the request URL.
44
48
  const {pathname} = new URL(error.request.responseURL);
45
- if (pathname !== '/api/users/login' && code === 401) {
46
- // Redirect to the login page if an authentication error occurs on a non-login request.
49
+
50
+ // Define paths that should be excluded from the redirect.
51
+ const excludedPaths = ['/api/users/login'];
52
+
53
+ // Redirect to the login page if an authentication error occurs on a non-login request.
54
+ if (!excludedPaths.includes(pathname) && code === 401) {
47
55
  location.replace('/');
48
56
  }
49
57
  }
@@ -96,8 +96,11 @@ export default class extends components.Datatable {
96
96
  * @return {void}
97
97
  */
98
98
  ajaxErrorHook(code) {
99
+ // Log the error details.
100
+ console.error(`DataTable AJAX error: Status code ${code}`);
101
+
102
+ // Redirect to login page if authentication error occurs.
99
103
  if (code === 401) {
100
- // Redirect to login page if authentication error occurs.
101
104
  location.replace('/');
102
105
  }
103
106
  }
@@ -1 +1 @@
1
- body{background-image:url(/build/theme/media/auth/bg6.jpg)}[data-bs-theme=dark] body{background-image:url(/build/theme/media/auth/bg6-dark.jpg)}
1
+ body{background-image:url(/build/theme/media/misc/auth-bg.png)}