@pronto-tools-and-more/components 10.20.0 → 10.22.0
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/dist/main.js
CHANGED
|
@@ -427,6 +427,58 @@ var EPaperLink = ({ message } = {}) => {
|
|
|
427
427
|
return /* @__PURE__ */ React.createElement("div", { className: "EPaperLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
+
// src/parts/ErrorPage/ErrorPage.tsx
|
|
431
|
+
var defaultNotFoundMessage = "Seite nicht gefunden.<br><br>Die gew\xFCnschte Seite existiert nicht.";
|
|
432
|
+
var defaultServerErrorMessage = "Die Webseite kann nicht erreicht werden.<br><br>Bitte \xFCberpr\xFCfen Sie Ihre Internetverbindung.";
|
|
433
|
+
var defaultGoHome = "Zur Startseite";
|
|
434
|
+
var ErrorPage = ({
|
|
435
|
+
notFoundMessage = defaultNotFoundMessage,
|
|
436
|
+
serverErrorMessage = defaultServerErrorMessage,
|
|
437
|
+
goHome = defaultGoHome
|
|
438
|
+
} = {}) => {
|
|
439
|
+
const json = {
|
|
440
|
+
content: [
|
|
441
|
+
{
|
|
442
|
+
tag: "div",
|
|
443
|
+
type: "html",
|
|
444
|
+
content: `404 - ${notFoundMessage}`
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
tag: "div",
|
|
448
|
+
type: "html",
|
|
449
|
+
content: `410 - ${notFoundMessage}`,
|
|
450
|
+
condition: {
|
|
451
|
+
value: "$context.errorCode",
|
|
452
|
+
operation: "EQUALS",
|
|
453
|
+
compareValue: "410"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
tag: "div",
|
|
458
|
+
type: "html",
|
|
459
|
+
content: `503 - ${serverErrorMessage}`,
|
|
460
|
+
condition: {
|
|
461
|
+
value: "$context.errorCode",
|
|
462
|
+
operation: "EQUALS",
|
|
463
|
+
compareValue: "503"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
type: "button",
|
|
468
|
+
tap: {
|
|
469
|
+
type: "navigate",
|
|
470
|
+
path: "home"
|
|
471
|
+
},
|
|
472
|
+
message: goHome,
|
|
473
|
+
buttonClass: "button-404"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
type: "section",
|
|
477
|
+
class: "errorMessage"
|
|
478
|
+
};
|
|
479
|
+
return /* @__PURE__ */ React.createElement("div", { className: "ErrorPage" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
|
480
|
+
};
|
|
481
|
+
|
|
430
482
|
// src/parts/MenuItems/MenuItems.tsx
|
|
431
483
|
var MenuItems = ({ menuName }) => {
|
|
432
484
|
const json = {
|
|
@@ -904,6 +956,7 @@ export {
|
|
|
904
956
|
DossierList,
|
|
905
957
|
DossierSwiper,
|
|
906
958
|
EPaperLink,
|
|
959
|
+
ErrorPage,
|
|
907
960
|
FooterItemsList,
|
|
908
961
|
FooterSocialLink,
|
|
909
962
|
FooterSocialLinks,
|
|
@@ -11,6 +11,7 @@ export * from "../DateHelper/DateHelper.ts";
|
|
|
11
11
|
export * from "../DossierList/DossierList.tsx";
|
|
12
12
|
export * from "../DossierSwiper/DossierSwiper.tsx";
|
|
13
13
|
export * from "../EPaperLink/EPaperLink.tsx";
|
|
14
|
+
export * from "../ErrorPage/ErrorPage.tsx";
|
|
14
15
|
export * from "../FooterItemsList/FooterItemsList.tsx";
|
|
15
16
|
export * from "../FooterSocialLink/FooterSocialLink.tsx";
|
|
16
17
|
export * from "../FooterSocialLinks/FooterSocialLinks.tsx";
|