@aller/cyclops-frontend-vanilla
Advanced tools
Comparing version 1.4.0-alpha.7 to 1.4.0-alpha.8
import { defaultLoginBox } from "../interfaces/loginBox"; | ||
import { cyclopsLoginRelativeURL } from "@aller/cyclops-frontend-api/lib/cyclops/constants"; | ||
import { cyclopsLoginRelativeURLServer } from "@aller/cyclops-frontend-api/lib/cyclops/constants"; | ||
import { updateToDefaults } from "../helper/spreader"; | ||
@@ -7,3 +7,3 @@ export var generateLoginBox = function (pathname, textClasses, domain) { | ||
textClasses = updateToDefaults(defaultLoginBox, textClasses); | ||
return "\n <div class=\"login-box " + ((_b = (_a = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _a === void 0 ? void 0 : _a.container) !== null && _b !== void 0 ? _b : "") + "\">\n <h1 class=\"hi-title " + ((_d = (_c = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : "") + "\">\n " + ((_e = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _e === void 0 ? void 0 : _e.loginText) + "\n </h1>\n <h3 class=\"hi-subtitle " + ((_g = (_f = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _f === void 0 ? void 0 : _f.subtitle) !== null && _g !== void 0 ? _g : "") + "\">\n " + ((_h = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _h === void 0 ? void 0 : _h.toSeeText) + "\n </h3>\n <div>\n <a href=\"" + cyclopsLoginRelativeURL(pathname, domain) + "\" class=\"login " + ((_k = (_j = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _j === void 0 ? void 0 : _j.loginButton) !== null && _k !== void 0 ? _k : "") + "\">\n " + ((_l = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _l === void 0 ? void 0 : _l.loginaID) + "\n </a>\n </div>\n\n <p class=\"p-text\">" + ((_m = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _m === void 0 ? void 0 : _m.ifNoPre) + "</p>\n\t\t<p class=\"p-text\">\n\t\t\t<a href=\"" + cyclopsLoginRelativeURL(pathname, domain) + "\" class=\"register-text " + ((_p = (_o = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _o === void 0 ? void 0 : _o.register) !== null && _p !== void 0 ? _p : "") + "\">" + ((_q = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _q === void 0 ? void 0 : _q.registerText) + "</a>\n\t\t\t" + ((_r = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _r === void 0 ? void 0 : _r.itsFree) + "\n\t\t</p>\n </div>"; | ||
return "\n <div class=\"login-box " + ((_b = (_a = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _a === void 0 ? void 0 : _a.container) !== null && _b !== void 0 ? _b : "") + "\">\n <h1 class=\"hi-title " + ((_d = (_c = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : "") + "\">\n " + ((_e = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _e === void 0 ? void 0 : _e.loginText) + "\n </h1>\n <h3 class=\"hi-subtitle " + ((_g = (_f = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _f === void 0 ? void 0 : _f.subtitle) !== null && _g !== void 0 ? _g : "") + "\">\n " + ((_h = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _h === void 0 ? void 0 : _h.toSeeText) + "\n </h3>\n <div>\n <a href=\"" + cyclopsLoginRelativeURLServer(pathname, domain) + "\" class=\"login " + ((_k = (_j = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _j === void 0 ? void 0 : _j.loginButton) !== null && _k !== void 0 ? _k : "") + "\">\n " + ((_l = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _l === void 0 ? void 0 : _l.loginaID) + "\n </a>\n </div>\n\n <p class=\"p-text\">" + ((_m = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _m === void 0 ? void 0 : _m.ifNoPre) + "</p>\n\t\t<p class=\"p-text\">\n\t\t\t<a href=\"" + cyclopsLoginRelativeURLServer(pathname, domain) + "\" class=\"register-text " + ((_p = (_o = textClasses === null || textClasses === void 0 ? void 0 : textClasses.classes) === null || _o === void 0 ? void 0 : _o.register) !== null && _p !== void 0 ? _p : "") + "\">" + ((_q = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _q === void 0 ? void 0 : _q.registerText) + "</a>\n\t\t\t" + ((_r = textClasses === null || textClasses === void 0 ? void 0 : textClasses.texts) === null || _r === void 0 ? void 0 : _r.itsFree) + "\n\t\t</p>\n </div>"; | ||
}; |
{ | ||
"name": "@aller/cyclops-frontend-vanilla", | ||
"version": "1.4.0-alpha.7", | ||
"version": "1.4.0-alpha.8", | ||
"description": "Vanilla JS implementation of login-button", | ||
@@ -28,3 +28,3 @@ "author": "kasperrt <kasper@kasperrt.no>", | ||
"dependencies": { | ||
"@aller/cyclops-frontend-api": "^1.4.0-alpha.7", | ||
"@aller/cyclops-frontend-api": "^1.4.0-alpha.8", | ||
"a11y-dialog": "^5.3.1", | ||
@@ -50,3 +50,3 @@ "promise-polyfill": "^8.1.3" | ||
}, | ||
"gitHead": "03dd6f3555f3696a17c056c9596bd5ee3247b533" | ||
"gitHead": "9ff93ae1769155db09d9d726b46e344f71ecacb3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50171