jwtbutler 1.8.5 → 1.8.7
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.
- package/_js/_build/_helpers.js +0 -2
- package/_js/_build/script.js +19 -1
- package/package.json +7 -7
package/_js/_build/_helpers.js
CHANGED
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
require("core-js/modules/es.regexp.constructor.js");
|
|
8
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
9
7
|
class helpers {
|
|
10
8
|
static cookieExists(cookie_name) {
|
|
11
9
|
if (document.cookie !== undefined && this.cookieGet(cookie_name) !== null) {
|
package/_js/_build/script.js
CHANGED
|
@@ -275,7 +275,25 @@ class jwtbutler {
|
|
|
275
275
|
}
|
|
276
276
|
buildUpLoginFormHtml() {
|
|
277
277
|
if (!('login_form' in this.config) || this.config.login_form == '') {
|
|
278
|
-
this.config.login_form =
|
|
278
|
+
this.config.login_form = `<div class="login-form">
|
|
279
|
+
<div class="login-form__inner">
|
|
280
|
+
<form class="login-form__form">
|
|
281
|
+
<ul class="login-form__items">
|
|
282
|
+
<li class="login-form__item">
|
|
283
|
+
<label class="login-form__label login-form__label--${this.config.auth_login}" for="login-form__label--${this.config.auth_login}">${this.config.auth_login === 'email' ? 'E-Mail-Adresse' : this.config.auth_login === 'username' ? 'Benutzername' : this.config.auth_login}</label>
|
|
284
|
+
<input class="login-form__input login-form__input--${this.config.auth_login}" id="login-form__label--${this.config.auth_login}" type="text" required="required" autocomplete="${this.config.auth_login}" name="${this.config.auth_login}" />
|
|
285
|
+
</li>
|
|
286
|
+
<li class="login-form__item">
|
|
287
|
+
<label class="login-form__label login-form__label--password" for="login-form__label--password">Passwort</label>
|
|
288
|
+
<input class="login-form__input login-form__input--password" id="login-form__label--password" type="password" required="required" autocomplete="current-password" name="password" />
|
|
289
|
+
</li>
|
|
290
|
+
<li class="login-form__item">
|
|
291
|
+
<input class="login-form__submit" type="submit" value="Anmelden" />
|
|
292
|
+
</li>
|
|
293
|
+
</ul>
|
|
294
|
+
</form>
|
|
295
|
+
</div>
|
|
296
|
+
</div>`;
|
|
279
297
|
}
|
|
280
298
|
let dom = new DOMParser().parseFromString(this.config.login_form, 'text/html').body.childNodes[0];
|
|
281
299
|
this.config.login_form_class = dom.getAttribute('class').split(' ')[0];
|
package/package.json
CHANGED
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"babel-plugin-array-includes": "^2.0.3",
|
|
42
42
|
"babelify": "^10.0.0",
|
|
43
43
|
"browser-sync": "^3.0.4",
|
|
44
|
-
"vite": "^
|
|
44
|
+
"vite": "^8.0.0",
|
|
45
45
|
"cli-error-notifier": "^3.0.2",
|
|
46
46
|
"concat": "^1.0.3",
|
|
47
47
|
"core-js": "^3.48.0",
|
|
48
48
|
"cross-env": "^10.1.0",
|
|
49
|
-
"cssnano": "^7.1.
|
|
49
|
+
"cssnano": "^7.1.3",
|
|
50
50
|
"del-cli": "^7.0.0",
|
|
51
51
|
"dotenv": "^17.3.1",
|
|
52
52
|
"element-closest": "^3.0.2",
|
|
53
53
|
"env-cmd": "^11.0.0",
|
|
54
|
-
"eslint": "^10.0.
|
|
54
|
+
"eslint": "^10.0.3",
|
|
55
55
|
"exit": "^0.1.2",
|
|
56
56
|
"from-env": "^1.1.4",
|
|
57
57
|
"highlight.js": "^11.11.1",
|
|
58
|
-
"hlp": "^3.7.
|
|
58
|
+
"hlp": "^3.7.2",
|
|
59
59
|
"ismobilejs": "^1.1.1",
|
|
60
60
|
"jest": "^30",
|
|
61
61
|
"jest-cli": "^30",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"npm-check-updates": "^19.6.3",
|
|
67
67
|
"npm-run-all": "^4.1.5",
|
|
68
68
|
"onchange": "^7.1.0",
|
|
69
|
-
"postcss": "^8.5.
|
|
69
|
+
"postcss": "^8.5.8",
|
|
70
70
|
"postcss-cli": "^11.0.1",
|
|
71
71
|
"prettier": "^3.8.1",
|
|
72
|
-
"puppeteer": "^24.
|
|
72
|
+
"puppeteer": "^24.39.1",
|
|
73
73
|
"regenerator-runtime": "^0.14.1",
|
|
74
74
|
"replace-in-file": "^8.4.0",
|
|
75
75
|
"run-sequence": "^2.2.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {},
|
|
82
82
|
"name": "jwtbutler",
|
|
83
|
-
"version": "1.8.
|
|
83
|
+
"version": "1.8.7",
|
|
84
84
|
"description": "",
|
|
85
85
|
"main": "_js/_build/script.js",
|
|
86
86
|
"files": [
|