express-sweet-generator 2.0.3 → 2.0.4

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.
Files changed (41) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
  3. package/templates/cjs/public/build/editPersonal.js +54 -2
  4. package/templates/cjs/public/build/login.js +54 -2
  5. package/templates/cjs/public/build/users.js +163 -4
  6. package/templates/client/src/api/UserApi.js +1 -1
  7. package/templates/client/src/{pages/editPersonal.js → editPersonal.js} +1 -1
  8. package/templates/client/src/{pages/login.js → login.js} +1 -1
  9. package/templates/client/src/shared/Api.js +51 -0
  10. package/templates/client/src/shared/Datatable.js +104 -0
  11. package/templates/client/src/{pages/users.js → users.js} +4 -3
  12. package/templates/client/webpack.config.js +3 -3
  13. package/templates/esm/public/build/editPersonal.js +54 -2
  14. package/templates/esm/public/build/login.js +54 -2
  15. package/templates/esm/public/build/users.js +163 -4
  16. package/templates/cjs/public/build/theme/js/custom/authentication/sign-in/two-steps.js +0 -140
  17. package/templates/cjs/public/build/theme/js/custom/pages/user-profile/followers.js +0 -97
  18. package/templates/cjs/public/build/theme/js/custom/utilities/modals/create-project.js +0 -0
  19. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.css +0 -1
  20. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.eot +0 -0
  21. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.html +0 -1253
  22. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.scss +0 -361
  23. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.svg +0 -264
  24. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.ttf +0 -0
  25. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.woff +0 -0
  26. package/templates/cjs/public/build/theme/plugins/global/fonts/fonticon/fonticon.woff2 +0 -0
  27. package/templates/esm/public/build/theme/js/custom/authentication/sign-in/two-steps.js +0 -140
  28. package/templates/esm/public/build/theme/js/custom/pages/user-profile/followers.js +0 -97
  29. package/templates/esm/public/build/theme/js/custom/utilities/modals/create-project.js +0 -0
  30. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.css +0 -1
  31. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.eot +0 -0
  32. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.html +0 -1253
  33. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.scss +0 -361
  34. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.svg +0 -264
  35. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.ttf +0 -0
  36. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.woff +0 -0
  37. package/templates/esm/public/build/theme/plugins/global/fonts/fonticon/fonticon.woff2 +0 -0
  38. /package/templates/client/src/{pages/editPersonal.css → editPersonal.css} +0 -0
  39. /package/templates/client/src/{pages/login.css → login.css} +0 -0
  40. /package/templates/client/src/{pages → modals}/UserModal.js +0 -0
  41. /package/templates/client/src/{pages/users.css → users.css} +0 -0
@@ -1,140 +0,0 @@
1
- "use strict";
2
-
3
- // Class Definition
4
- var KTSigninTwoSteps = function() {
5
- // Elements
6
- var form;
7
- var submitButton;
8
-
9
- // Handle form
10
- var handleForm = function(e) {
11
- // Handle form submit
12
- submitButton.addEventListener('click', function (e) {
13
- e.preventDefault();
14
-
15
- var validated = true;
16
-
17
- var inputs = [].slice.call(form.querySelectorAll('input[maxlength="1"]'));
18
- inputs.map(function (input) {
19
- if (input.value === '' || input.value.length === 0) {
20
- validated = false;
21
- }
22
- });
23
-
24
- if (validated === true) {
25
- // Show loading indication
26
- submitButton.setAttribute('data-kt-indicator', 'on');
27
-
28
- // Disable button to avoid multiple click
29
- submitButton.disabled = true;
30
-
31
- // Simulate ajax request
32
- setTimeout(function() {
33
- // Hide loading indication
34
- submitButton.removeAttribute('data-kt-indicator');
35
-
36
- // Enable button
37
- submitButton.disabled = false;
38
-
39
- // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/
40
- Swal.fire({
41
- text: "You have been successfully verified!",
42
- icon: "success",
43
- buttonsStyling: false,
44
- confirmButtonText: "Ok, got it!",
45
- customClass: {
46
- confirmButton: "btn btn-primary"
47
- }
48
- }).then(function (result) {
49
- if (result.isConfirmed) {
50
- inputs.map(function (input) {
51
- input.value = '';
52
- });
53
-
54
- var redirectUrl = form.getAttribute('data-kt-redirect-url');
55
- if (redirectUrl) {
56
- location.href = redirectUrl;
57
- }
58
- }
59
- });
60
- }, 1000);
61
- } else {
62
- swal.fire({
63
- text: "Please enter valid securtiy code and try again.",
64
- icon: "error",
65
- buttonsStyling: false,
66
- confirmButtonText: "Ok, got it!",
67
- customClass: {
68
- confirmButton: "btn fw-bold btn-light-primary"
69
- }
70
- }).then(function() {
71
- KTUtil.scrollTop();
72
- });
73
- }
74
- });
75
- }
76
-
77
- var handleType = function() {
78
- var input1 = form.querySelector("[name=code_1]");
79
- var input2 = form.querySelector("[name=code_2]");
80
- var input3 = form.querySelector("[name=code_3]");
81
- var input4 = form.querySelector("[name=code_4]");
82
- var input5 = form.querySelector("[name=code_5]");
83
- var input6 = form.querySelector("[name=code_6]");
84
-
85
- input1.focus();
86
-
87
- input1.addEventListener("keyup", function() {
88
- if (this.value.length === 1) {
89
- input2.focus();
90
- }
91
- });
92
-
93
- input2.addEventListener("keyup", function() {
94
- if (this.value.length === 1) {
95
- input3.focus();
96
- }
97
- });
98
-
99
- input3.addEventListener("keyup", function() {
100
- if (this.value.length === 1) {
101
- input4.focus();
102
- }
103
- });
104
-
105
- input4.addEventListener("keyup", function() {
106
- if (this.value.length === 1) {
107
- input5.focus();
108
- }
109
- });
110
-
111
- input5.addEventListener("keyup", function() {
112
- if (this.value.length === 1) {
113
- input6.focus();
114
- }
115
- });
116
-
117
- input6.addEventListener("keyup", function() {
118
- if (this.value.length === 1) {
119
- input6.blur();
120
- }
121
- });
122
- }
123
-
124
- // Public functions
125
- return {
126
- // Initialization
127
- init: function() {
128
- form = document.querySelector('#kt_sing_in_two_steps_form');
129
- submitButton = document.querySelector('#kt_sing_in_two_steps_submit');
130
-
131
- handleForm();
132
- handleType();
133
- }
134
- };
135
- }();
136
-
137
- // On document ready
138
- KTUtil.onDOMContentLoaded(function() {
139
- KTSigninTwoSteps.init();
140
- });
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- // Class definition
4
- var KTProfileFollowers = function () {
5
- // init variables
6
- var showMoreButton;
7
- var showMoreCards;
8
- var followBtn;
9
-
10
- // Private functions
11
- var handleShowMore = function () {
12
- if (!showMoreButton) {
13
- return;
14
- }
15
-
16
- // Show more click
17
- showMoreButton.addEventListener('click', function (e) {
18
- showMoreButton.setAttribute('data-kt-indicator', 'on');
19
-
20
- // Disable button to avoid multiple click
21
- showMoreButton.disabled = true;
22
-
23
- setTimeout(function() {
24
- // Hide loading indication
25
- showMoreButton.removeAttribute('data-kt-indicator');
26
-
27
- // Enable button
28
- showMoreButton.disabled = false;
29
-
30
- // Hide button
31
- showMoreButton.classList.add('d-none');
32
-
33
- // Show card
34
- showMoreCards.classList.remove('d-none');
35
-
36
- // Scroll to card
37
- KTUtil.scrollTo(showMoreCards, 200);
38
- }, 2000);
39
- });
40
- }
41
-
42
- // Follow button
43
- var handleUFollow = function() {
44
- if (!followBtn) {
45
- return;
46
- }
47
-
48
- followBtn.addEventListener('click', function(e){
49
- // Prevent default action
50
- e.preventDefault();
51
-
52
- // Show indicator
53
- followBtn.setAttribute('data-kt-indicator', 'on');
54
-
55
- // Disable button to avoid multiple click
56
- followBtn.disabled = true;
57
-
58
- // Check button state
59
- if (followBtn.classList.contains("btn-success")) {
60
- setTimeout(function() {
61
- followBtn.removeAttribute('data-kt-indicator');
62
- followBtn.classList.remove("btn-success");
63
- followBtn.classList.add("btn-light");
64
- followBtn.querySelector(".svg-icon").classList.add("d-none");
65
- followBtn.querySelector(".indicator-label").innerHTML = 'Follow';
66
- followBtn.disabled = false;
67
- }, 1500);
68
- } else {
69
- setTimeout(function() {
70
- followBtn.removeAttribute('data-kt-indicator');
71
- followBtn.classList.add("btn-success");
72
- followBtn.classList.remove("btn-light");
73
- followBtn.querySelector(".svg-icon").classList.remove("d-none");
74
- followBtn.querySelector(".indicator-label").innerHTML = 'Following';
75
- followBtn.disabled = false;
76
- }, 1000);
77
- }
78
- });
79
- }
80
-
81
- // Public methods
82
- return {
83
- init: function () {
84
- showMoreButton = document.querySelector('#kt_followers_show_more_button');
85
- showMoreCards = document.querySelector('#kt_followers_show_more_cards');
86
- followBtn = document.querySelector('#kt_user_follow_button');
87
-
88
- handleShowMore();
89
- handleUFollow();
90
- }
91
- }
92
- }();
93
-
94
- // On document ready
95
- KTUtil.onDOMContentLoaded(function() {
96
- KTProfileFollowers.init();
97
- });
@@ -1 +0,0 @@
1
- @font-face{font-family:fonticon;src:url(fonticon.ttf?d63d4800091cd3eedf4d33622a251715) format("truetype"),url(fonticon.woff?d63d4800091cd3eedf4d33622a251715) format("woff"),url(fonticon.woff2?d63d4800091cd3eedf4d33622a251715) format("woff2"),url(fonticon.eot?d63d4800091cd3eedf4d33622a251715#iefix) format("embedded-opentype"),url(fonticon.svg?d63d4800091cd3eedf4d33622a251715#fonticon) format("svg")}i[class*=" fonticon-"]:before,i[class^=fonticon-]:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fonticon!important;font-style:normal;font-variant:normal;font-weight:400!important;line-height:1;text-transform:none}.fonticon-delivery:before{content:"\f101"}.fonticon-bicycle:before{content:"\f102"}.fonticon-bookmark:before{content:"\f103"}.fonticon-like:before{content:"\f104"}.fonticon-microphone:before{content:"\f105"}.fonticon-location:before{content:"\f106"}.fonticon-gallery:before{content:"\f107"}.fonticon-share:before{content:"\f108"}.fonticon-star:before{content:"\f109"}.fonticon-trash-bin:before{content:"\f10a"}.fonticon-user-2:before{content:"\f10b"}.fonticon-view:before{content:"\f10c"}.fonticon-user:before{content:"\f10d"}.fonticon-pin:before{content:"\f10e"}.fonticon-chat:before{content:"\f10f"}.fonticon-home:before{content:"\f110"}.fonticon-mail:before{content:"\f111"}.fonticon-settings:before{content:"\f112"}.fonticon-alignment-right:before{content:"\f113"}.fonticon-link:before{content:"\f114"}.fonticon-attach:before{content:"\f115"}.fonticon-smile:before{content:"\f116"}.fonticon-moon:before{content:"\f117"}.fonticon-sun:before{content:"\f118"}.fonticon-train:before{content:"\f119"}.fonticon-eclipse:before{content:"\f11a"}.fonticon-drone:before{content:"\f11b"}.fonticon-truck:before{content:"\f11c"}.fonticon-ship:before{content:"\f11d"}.fonticon-offline:before{content:"\f11e"}.fonticon-printer:before{content:"\f11f"}.fonticon-paperclip:before{content:"\f120"}.fonticon-attachments:before{content:"\f121"}.fonticon-attachment:before{content:"\f122"}.fonticon-dogecoin:before{content:"\f123"}.fonticon-bitcoin:before{content:"\f124"}.fonticon-setting:before{content:"\f125"}.fonticon-headset:before{content:"\f126"}.fonticon-play:before{content:"\f127"}.fonticon-pause:before{content:"\f128"}.fonticon-next:before{content:"\f129"}.fonticon-back:before{content:"\f12a"}.fonticon-shuffle:before{content:"\f12b"}.fonticon-repeat:before{content:"\f12c"}.fonticon-outgoing-call:before{content:"\f12d"}.fonticon-incoming-call:before{content:"\f12e"}.fonticon-cash-payment:before{content:"\f12f"}.fonticon-mobile-payment:before{content:"\f130"}.fonticon-card:before{content:"\f131"}.fonticon-like-1:before{content:"\f132"}.fonticon-bank:before{content:"\f133"}.fonticon-telegram:before{content:"\f134"}.fonticon-drive:before{content:"\f135"}.fonticon-remote-control:before{content:"\f136"}.fonticon-house:before{content:"\f137"}.fonticon-image:before{content:"\f138"}.fonticon-app-store:before{content:"\f139"}.fonticon-email:before{content:"\f13a"}.fonticon-stats:before{content:"\f13b"}.fonticon-notification:before{content:"\f13c"}.fonticon-send:before{content:"\f13d"}.fonticon-insurance:before{content:"\f13e"}.fonticon-hourglass:before{content:"\f13f"}.fonticon-calendar:before{content:"\f140"}.fonticon-alarm:before{content:"\f141"}.fonticon-layers:before{content:"\f142"}.fonticon-facebook:before{content:"\f143"}.fonticon-instagram:before{content:"\f144"}.fonticon-linkedin:before{content:"\f145"}.fonticon-globe:before{content:"\f146"}.fonticon-equalizer:before{content:"\f147"}.fonticon-settings-1:before{content:"\f148"}.fonticon-creativity:before{content:"\f149"}.fonticon-content-marketing:before{content:"\f14a"}.fonticon-line-chart:before{content:"\f14b"}.fonticon-cms:before{content:"\f14c"}.fonticon-hello:before{content:"\f14d"}.fonticon-password:before{content:"\f14e"}.fonticon-credit-card:before{content:"\f14f"}.fonticon-enlarge:before{content:"\f150"}.fonticon-24-hours:before{content:"\f151"}.fonticon-heart:before{content:"\f152"}.fonticon-user-experience:before{content:"\f153"}.fonticon-web-design:before{content:"\f154"}