Merge branch 'develop' into feat/build-initial-hotel-page-component
This commit is contained in:
@@ -33,10 +33,7 @@ export default async function RootLayout({
|
||||
return (
|
||||
<html lang={params.lang}>
|
||||
<head>
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/_static/dist/js/cookie-bot.js?1705409331007"
|
||||
/>
|
||||
<Script data-cookieconsent="ignore" src="/_static/js/cookie-bot.js" />
|
||||
<Script
|
||||
strategy="beforeInteractive"
|
||||
data-blockingmode="auto"
|
||||
|
||||
@@ -39,10 +39,7 @@ export default async function RootLayout({
|
||||
<link rel="stylesheet" href="/_static/css/core.css" />
|
||||
{/* eslint-disable-next-line @next/next/no-css-tags */}
|
||||
<link rel="stylesheet" href="/_static/css/scandic.css" />
|
||||
<Script
|
||||
data-cookieconsent="ignore"
|
||||
src="/_static/dist/js/cookie-bot.js?1705409331007"
|
||||
/>
|
||||
<Script data-cookieconsent="ignore" src="/_static/js/cookie-bot.js" />
|
||||
<Script
|
||||
strategy="beforeInteractive"
|
||||
data-blockingmode="auto"
|
||||
|
||||
62
auth.ts
62
auth.ts
@@ -146,37 +146,37 @@ export const config = {
|
||||
}
|
||||
},
|
||||
},
|
||||
events: {
|
||||
async signIn() {
|
||||
console.log("#### SIGNIN EVENT ARGS ######")
|
||||
console.log(arguments)
|
||||
console.log("#### END - SIGNIN EVENT ARGS ######")
|
||||
},
|
||||
async signOut() {
|
||||
console.log("#### SIGNOUT EVENT ARGS ######")
|
||||
console.log(arguments)
|
||||
console.log("#### END - SIGNOUT EVENT ARGS ######")
|
||||
},
|
||||
async session() {
|
||||
console.log("#### SESSION EVENT ARGS ######")
|
||||
console.log(arguments)
|
||||
console.log("#### END - SESSION EVENT ARGS ######")
|
||||
},
|
||||
},
|
||||
logger: {
|
||||
error(code, ...message) {
|
||||
console.info("ERROR LOGGER")
|
||||
console.error(code, message)
|
||||
},
|
||||
warn(code, ...message) {
|
||||
console.info("WARN LOGGER")
|
||||
console.warn(code, message)
|
||||
},
|
||||
debug(code, ...message) {
|
||||
console.info("DEBUG LOGGER")
|
||||
console.debug(code, message)
|
||||
},
|
||||
},
|
||||
// events: {
|
||||
// async signIn() {
|
||||
// console.log("#### SIGNIN EVENT ARGS ######")
|
||||
// console.log(arguments)
|
||||
// console.log("#### END - SIGNIN EVENT ARGS ######")
|
||||
// },
|
||||
// async signOut() {
|
||||
// console.log("#### SIGNOUT EVENT ARGS ######")
|
||||
// console.log(arguments)
|
||||
// console.log("#### END - SIGNOUT EVENT ARGS ######")
|
||||
// },
|
||||
// async session() {
|
||||
// console.log("#### SESSION EVENT ARGS ######")
|
||||
// console.log(arguments)
|
||||
// console.log("#### END - SESSION EVENT ARGS ######")
|
||||
// },
|
||||
// },
|
||||
// logger: {
|
||||
// error(code, ...message) {
|
||||
// console.info("ERROR LOGGER")
|
||||
// console.error(code, message)
|
||||
// },
|
||||
// warn(code, ...message) {
|
||||
// console.info("WARN LOGGER")
|
||||
// console.warn(code, message)
|
||||
// },
|
||||
// debug(code, ...message) {
|
||||
// console.info("DEBUG LOGGER")
|
||||
// console.debug(code, message)
|
||||
// },
|
||||
// },
|
||||
} satisfies NextAuthConfig
|
||||
|
||||
export const {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#CybotCookiebotDialog * {
|
||||
body #CybotCookiebotDialog * {
|
||||
font-family: Helvetica, Arial, sans-serif !important
|
||||
}
|
||||
|
||||
#CybotCookiebotDialog,
|
||||
#CybotCookiebotDialog * {
|
||||
body #CybotCookiebotDialog,
|
||||
body #CybotCookiebotDialog * {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
#CybotCookiebotDialog {
|
||||
body #CybotCookiebotDialog {
|
||||
border-radius: 0;
|
||||
border: 0;
|
||||
-webkit-box-shadow: 0 0 transparent;
|
||||
@@ -25,69 +25,69 @@
|
||||
overflow-y: auto
|
||||
}
|
||||
|
||||
#CybotCookiebotDialog div,
|
||||
#CybotCookiebotDialog h2 {
|
||||
body #CybotCookiebotDialog div,
|
||||
body #CybotCookiebotDialog h2 {
|
||||
color: #333
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyContent {
|
||||
body #CybotCookiebotDialogBodyContent {
|
||||
padding: 0 !important
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyContentTitle {
|
||||
body #CybotCookiebotDialogBodyContentTitle {
|
||||
font-size: 1.375rem;
|
||||
font-family: BrandonText-Black, Arial, Helvetica, sans-serif !important
|
||||
}
|
||||
|
||||
div#CybotCookiebotDialogBodyContentText {
|
||||
body div#CybotCookiebotDialogBodyContentText {
|
||||
font-size: 1rem;
|
||||
line-height: 1.4rem;
|
||||
margin: 15px 0
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogDetailBody {
|
||||
body #CybotCookiebotDialogDetailBody {
|
||||
max-width: 100%;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogDetailBodyContent {
|
||||
body #CybotCookiebotDialogDetailBodyContent {
|
||||
height: 160px
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogDetailBodyContentTextOverview {
|
||||
body #CybotCookiebotDialogDetailBodyContentTextOverview {
|
||||
max-width: 100%
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogDetailBodyContentCookieContainerTypeDetails {
|
||||
body #CybotCookiebotDialogDetailBodyContentCookieContainerTypeDetails {
|
||||
height: 155px;
|
||||
max-height: 155px
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelButtonsSelectPane {
|
||||
body #CybotCookiebotDialogBodyLevelButtonsSelectPane {
|
||||
border: none;
|
||||
padding: 0 0 30px
|
||||
}
|
||||
|
||||
.CybotCookiebotDialogBodyLevelButtonWrapper {
|
||||
body .CybotCookiebotDialogBodyLevelButtonWrapper {
|
||||
margin: 20px 0 0 !important;
|
||||
padding-right: 25px
|
||||
}
|
||||
|
||||
.CybotCookiebotDialogBodyLevelButtonWrapper label {
|
||||
body .CybotCookiebotDialogBodyLevelButtonWrapper label {
|
||||
font-size: 13px !important;
|
||||
padding-left: 20px !important;
|
||||
background: url(/_static/img/icons/shared/checkbox_unselected.svg) no-repeat left 0 !important
|
||||
}
|
||||
|
||||
input[type=checkbox].CybotCookiebotDialogBodyLevelButton:checked+label {
|
||||
body input[type=checkbox].CybotCookiebotDialogBodyLevelButton:checked+label {
|
||||
background: url(/_static/img/icons/shared/checkbox_selected.svg) no-repeat left 0 !important
|
||||
}
|
||||
|
||||
input[type=checkbox].CybotCookiebotDialogBodyLevelButton.CybotCookiebotDialogBodyLevelButtonDisabled+label {
|
||||
body input[type=checkbox].CybotCookiebotDialogBodyLevelButton.CybotCookiebotDialogBodyLevelButtonDisabled+label {
|
||||
background: url(/_static/img/icons/shared/checkbox_disabled.svg) no-repeat left 0 !important
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelWrapper {
|
||||
body #CybotCookiebotDialogBodyLevelWrapper {
|
||||
display: -ms-flexbox !important;
|
||||
display: flex !important;
|
||||
-ms-flex-direction: column-reverse;
|
||||
@@ -96,20 +96,20 @@ input[type=checkbox].CybotCookiebotDialogBodyLevelButton.CybotCookiebotDialogBod
|
||||
padding: 0 0 5px
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelWrapper>div {
|
||||
body #CybotCookiebotDialogBodyLevelWrapper>div {
|
||||
padding: 0
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelButtons {
|
||||
body #CybotCookiebotDialogBodyLevelButtons {
|
||||
margin: 0 0 20px !important
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelButtonsTable {
|
||||
body #CybotCookiebotDialogBodyLevelButtonsTable {
|
||||
width: auto !important;
|
||||
margin: 0 !important
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelDetailsWrapper {
|
||||
body #CybotCookiebotDialogBodyLevelDetailsWrapper {
|
||||
background: none;
|
||||
border: 0;
|
||||
width: auto;
|
||||
@@ -118,7 +118,7 @@ input[type=checkbox].CybotCookiebotDialogBodyLevelButton.CybotCookiebotDialogBod
|
||||
height: auto
|
||||
}
|
||||
|
||||
a#CybotCookiebotDialogBodyLevelDetailsButton {
|
||||
body a#CybotCookiebotDialogBodyLevelDetailsButton {
|
||||
background: none !important;
|
||||
outline: 0 none;
|
||||
padding: 0 10px 0 0;
|
||||
@@ -128,24 +128,24 @@ a#CybotCookiebotDialogBodyLevelDetailsButton {
|
||||
height: auto
|
||||
}
|
||||
|
||||
a#CybotCookiebotDialogBodyLevelDetailsButton:focus,
|
||||
a#CybotCookiebotDialogBodyLevelDetailsButton:hover {
|
||||
body a#CybotCookiebotDialogBodyLevelDetailsButton:focus,
|
||||
body a#CybotCookiebotDialogBodyLevelDetailsButton:hover {
|
||||
text-decoration: none;
|
||||
color: #00838e
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelDetailsWrapper:after {
|
||||
body #CybotCookiebotDialogBodyLevelDetailsWrapper:after {
|
||||
margin-top: -7px;
|
||||
background-position: 50%;
|
||||
height: 14px
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelDetailsWrapper.active:after {
|
||||
body #CybotCookiebotDialogBodyLevelDetailsWrapper.active:after {
|
||||
-webkit-transform: rotate(180deg);
|
||||
transform: rotate(180deg)
|
||||
}
|
||||
|
||||
a.CybotCookiebotDialogBodyButton {
|
||||
body a.CybotCookiebotDialogBodyButton {
|
||||
width: auto !important;
|
||||
padding: 5px 15px !important;
|
||||
border-radius: 25px;
|
||||
@@ -157,7 +157,7 @@ a.CybotCookiebotDialogBodyButton {
|
||||
line-height: 1.375rem !important
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyUnderlay {
|
||||
body #CybotCookiebotDialogBodyUnderlay {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
@@ -167,30 +167,30 @@ a.CybotCookiebotDialogBodyButton {
|
||||
}
|
||||
|
||||
@media(max-width: 739px) {
|
||||
#CybotCookiebotDialog {
|
||||
body #CybotCookiebotDialog {
|
||||
width: 90% !important
|
||||
}
|
||||
|
||||
a.CybotCookiebotDialogBodyButton {
|
||||
body a.CybotCookiebotDialogBodyButton {
|
||||
width: 100% !important
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: 740px) {
|
||||
#CybotCookiebotDialogBody {
|
||||
body #CybotCookiebotDialogBody {
|
||||
padding: 15px;
|
||||
min-width: 560px
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyContentTitle {
|
||||
body #CybotCookiebotDialogBodyContentTitle {
|
||||
font-size: 1.625rem
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelDetailsButton {
|
||||
body #CybotCookiebotDialogBodyLevelDetailsButton {
|
||||
font-size: 1rem
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelWrapper {
|
||||
body #CybotCookiebotDialogBodyLevelWrapper {
|
||||
-ms-flex-direction: row-reverse;
|
||||
flex-direction: row-reverse;
|
||||
-ms-flex-pack: justify;
|
||||
@@ -200,13 +200,13 @@ a.CybotCookiebotDialogBodyButton {
|
||||
padding: 0
|
||||
}
|
||||
|
||||
#CybotCookiebotDialogBodyLevelButtons {
|
||||
body #CybotCookiebotDialogBodyLevelButtons {
|
||||
margin: 0 !important
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: 940px) {
|
||||
#CybotCookiebotDialog {
|
||||
body #CybotCookiebotDialog {
|
||||
max-width: 810px;
|
||||
width: 810px !important
|
||||
}
|
||||
76
public/_static/dist/js/cookie-bot.js
vendored
76
public/_static/dist/js/cookie-bot.js
vendored
@@ -1,76 +0,0 @@
|
||||
window.addEventListener("CookiebotOnDialogDisplay", (function() {
|
||||
document.querySelector("head").insertAdjacentHTML("beforeend", "<link type='text/css' href='/_static/dist/css/cookie-bot.css?1705919727669' rel='stylesheet' />");
|
||||
var e = function(e) {
|
||||
i = !!(e = !!e) || i;
|
||||
var t = document.querySelector("#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection")
|
||||
, o = document.querySelector("#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll");
|
||||
t.style.display = "none" != t.style.display || e ? "none" : "block",
|
||||
o.style.display = "none" == o.style.display || e ? "block" : "none"
|
||||
};
|
||||
document.querySelector("#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection").style.display = "none",
|
||||
document.querySelector("#CybotCookiebotDialogBodyLevelDetailsWrapper").setAttribute("class", "custom-select");
|
||||
var t = document.querySelector("#CybotCookiebotDialogBody")
|
||||
, o = document.querySelector("#CybotCookiebotDialogBodyLevelWrapper");
|
||||
t.insertBefore(document.querySelector("#CybotCookiebotDialogDetail"), o);
|
||||
var n = document.querySelector("#CybotCookiebotDialogBodyLevelButtonsSelectPane");
|
||||
t.insertBefore(n, o),
|
||||
n.style.display = "none",
|
||||
window.innerWidth > 740 && window.dispatchEvent(new Event("resize")),
|
||||
document.querySelector("#CybotCookiebotDialogBodyLevelDetailsWrapper").addEventListener("click", (function() {
|
||||
n.style.display = "none" == n.style.display ? "block" : "none";
|
||||
var t = document.querySelector("#CybotCookiebotDialogBodyLevelDetailsWrapper").classList;
|
||||
if (t.contains("active"))
|
||||
t.remove("active"),
|
||||
document.querySelector("#CybotCookiebotDialog").classList.remove("expanded"),
|
||||
e(!0);
|
||||
else {
|
||||
t.add("active"),
|
||||
document.querySelector("#CybotCookiebotDialog").classList.add("expanded"),
|
||||
a();
|
||||
var o = document.querySelectorAll(".CybotCookiebotDialogDetailBodyContentCookieTypeTableContainer");
|
||||
if ("none" != o[0].parentElement.style.display)
|
||||
for (var i = o[0].querySelector("table").clientWidth, l = 0; l < o.length; l++)
|
||||
o[l].previousElementSibling.style.minWidth = i + "px",
|
||||
o[l].style.minWidth = i + "px"
|
||||
}
|
||||
}
|
||||
));
|
||||
for (var i = !0, l = document.querySelectorAll("#CybotCookiebotDialogBodyLevelButtonsSelectPane input[type=checkbox]"), a = function() {
|
||||
for (var t = !0, o = 0; o < l.length; o++)
|
||||
l[o].checked || (t = !1);
|
||||
i != t && (i = t,
|
||||
e())
|
||||
}, r = 0; r < l.length; r++)
|
||||
l[r].addEventListener("change", a)
|
||||
}
|
||||
)),
|
||||
window.addEventListener("load", (function() {
|
||||
var e = document.querySelector("#CookieDeclarationChangeConsent > a")
|
||||
, t = document.querySelector("#CookieDeclarationChangeConsent > span > a");
|
||||
if (e)
|
||||
switch (document.documentElement.lang) {
|
||||
default:
|
||||
e.text = "Change your consent",
|
||||
t.text = "Withdraw your consent";
|
||||
break;
|
||||
case "sv":
|
||||
e.text = "Ändra mitt samtycke",
|
||||
t.text = "Ångra mitt samtycke";
|
||||
break;
|
||||
case "no":
|
||||
e.text = "Trække dit samtykke tilbage",
|
||||
t.text = "Trekk tilbake ditt samtykke";
|
||||
break;
|
||||
case "da":
|
||||
e.text = "Ændre dit samtykke",
|
||||
t.text = "Trække dit samtykke tilbage";
|
||||
break;
|
||||
case "de":
|
||||
e.text = "Ihre Einwilligung ändern",
|
||||
t.text = "Ihre Einwilligung zurückziehen";
|
||||
break;
|
||||
case "fi":
|
||||
e.text = "Muuta hyväksyntäsi",
|
||||
t.text = "Peru hyväksyntäsi"
|
||||
}
|
||||
}));
|
||||
3
public/_static/img/icons/shared/checkbox_disabled.svg
Normal file
3
public/_static/img/icons/shared/checkbox_disabled.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.33333 14.6667V1.33333H14.6667V14.6667H1.33333ZM0 0.666667C0 0.298477 0.298477 0 0.666667 0H15.3333C15.7015 0 16 0.298477 16 0.666667V15.3333C16 15.7015 15.7015 16 15.3333 16H0.666667C0.298477 16 0 15.7015 0 15.3333V0.666667ZM12.2327 4.77127L6.57582 10.4281L4.2188 8.0711C3.95845 7.81075 3.53634 7.81075 3.27599 8.0711C3.01564 8.33145 3.01564 8.75356 3.27599 9.01391L6.10442 11.8423C6.36477 12.1027 6.78688 12.1027 7.04723 11.8423L13.1755 5.71408C13.4358 5.45373 13.4358 5.03162 13.1755 4.77127C12.9151 4.51092 12.493 4.51092 12.2327 4.77127Z" fill="#C8C8C8"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 715 B |
85
public/_static/js/cookie-bot.js
Normal file
85
public/_static/js/cookie-bot.js
Normal file
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* Makes some brute force adjustments on the open cookiebot dialog and adds our own styling
|
||||
*/
|
||||
var fixCookieBotDialog = function() {
|
||||
document.querySelector("head").insertAdjacentHTML("beforeend", "<link type='text/css' href='/_static/css/cookie-bot.css' rel='stylesheet' />");
|
||||
var e = function(e) {
|
||||
i = !!(e = !!e) || i;
|
||||
var t = document.querySelector("#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection")
|
||||
, o = document.querySelector("#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll");
|
||||
t.style.display = "none" != t.style.display || e ? "none" : "block",
|
||||
o.style.display = "none" == o.style.display || e ? "block" : "none"
|
||||
};
|
||||
document.querySelector("#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection").style.display = "none",
|
||||
document.querySelector("#CybotCookiebotDialogBodyLevelDetailsWrapper").setAttribute("class", "custom-select");
|
||||
var t = document.querySelector("#CybotCookiebotDialogBody")
|
||||
, o = document.querySelector("#CybotCookiebotDialogBodyLevelWrapper");
|
||||
t.insertBefore(document.querySelector("#CybotCookiebotDialogDetail"), o);
|
||||
var n = document.querySelector("#CybotCookiebotDialogBodyLevelButtonsSelectPane");
|
||||
t.insertBefore(n, o),
|
||||
n.style.display = "none",
|
||||
window.innerWidth > 740 && window.dispatchEvent(new Event("resize")),
|
||||
document.querySelector("#CybotCookiebotDialogBodyLevelDetailsWrapper").addEventListener("click", (function() {
|
||||
n.style.display = "none" == n.style.display ? "block" : "none";
|
||||
var t = document.querySelector("#CybotCookiebotDialogBodyLevelDetailsWrapper").classList;
|
||||
if (t.contains("active"))
|
||||
t.remove("active"),
|
||||
document.querySelector("#CybotCookiebotDialog").classList.remove("expanded"),
|
||||
e(!0);
|
||||
else {
|
||||
t.add("active"),
|
||||
document.querySelector("#CybotCookiebotDialog").classList.add("expanded"),
|
||||
a();
|
||||
var o = document.querySelectorAll(".CybotCookiebotDialogDetailBodyContentCookieTypeTableContainer");
|
||||
if ("none" != o[0].parentElement.style.display)
|
||||
for (var i = o[0].querySelector("table").clientWidth, l = 0; l < o.length; l++)
|
||||
o[l].previousElementSibling.style.minWidth = i + "px",
|
||||
o[l].style.minWidth = i + "px"
|
||||
}
|
||||
}
|
||||
));
|
||||
for (var i = !0, l = document.querySelectorAll("#CybotCookiebotDialogBodyLevelButtonsSelectPane input[type=checkbox]"), a = function() {
|
||||
for (var t = !0, o = 0; o < l.length; o++)
|
||||
l[o].checked || (t = !1);
|
||||
i != t && (i = t,
|
||||
e())
|
||||
}, r = 0; r < l.length; r++)
|
||||
l[r].addEventListener("change", a)
|
||||
};
|
||||
|
||||
window.addEventListener("CookiebotOnDialogDisplay", fixCookieBotDialog);
|
||||
// If the cookiebot dialog was opened before this file was run we run the fix function "manually"
|
||||
if (document.querySelector("#CybotCookiebotDialog")) {
|
||||
fixCookieBotDialog();
|
||||
}
|
||||
|
||||
window.addEventListener("load", (function() {
|
||||
var e = document.querySelector("#CookieDeclarationChangeConsent > a")
|
||||
, t = document.querySelector("#CookieDeclarationChangeConsent > span > a");
|
||||
if (e)
|
||||
switch (document.documentElement.lang) {
|
||||
default:
|
||||
e.text = "Change your consent",
|
||||
t.text = "Withdraw your consent";
|
||||
break;
|
||||
case "sv":
|
||||
e.text = "Ändra mitt samtycke",
|
||||
t.text = "Ångra mitt samtycke";
|
||||
break;
|
||||
case "no":
|
||||
e.text = "Trække dit samtykke tilbage",
|
||||
t.text = "Trekk tilbake ditt samtykke";
|
||||
break;
|
||||
case "da":
|
||||
e.text = "Ændre dit samtykke",
|
||||
t.text = "Trække dit samtykke tilbage";
|
||||
break;
|
||||
case "de":
|
||||
e.text = "Ihre Einwilligung ändern",
|
||||
t.text = "Ihre Einwilligung zurückziehen";
|
||||
break;
|
||||
case "fi":
|
||||
e.text = "Muuta hyväksyntäsi",
|
||||
t.text = "Peru hyväksyntäsi"
|
||||
}
|
||||
}));
|
||||
@@ -19,9 +19,7 @@ export const contentstackBaseProcedure = t.procedure.use(async function (opts) {
|
||||
|
||||
const parsedInput = langInput.safeParse(input)
|
||||
if (!parsedInput.success) {
|
||||
throw badRequestError(
|
||||
`Missing Lang in tRPC context: ${JSON.stringify(opts.ctx)}`
|
||||
)
|
||||
throw badRequestError("Missing Lang in tRPC context")
|
||||
}
|
||||
return opts.next({
|
||||
ctx: {
|
||||
@@ -39,9 +37,7 @@ export const contentstackBaseProcedure = t.procedure.use(async function (opts) {
|
||||
export const contentstackExtendedProcedureUID = contentstackBaseProcedure.use(
|
||||
async function (opts) {
|
||||
if (!opts.ctx.uid) {
|
||||
throw badRequestError(
|
||||
`Missing UID in tRPC context: ${JSON.stringify(opts.ctx)}`
|
||||
)
|
||||
throw badRequestError("Missing UID in tRPC context")
|
||||
}
|
||||
|
||||
return opts.next({
|
||||
|
||||
Reference in New Issue
Block a user