@semcore/errors 4.47.1 → 4.47.2
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/CHANGELOG.md +6 -0
- package/lib/cjs/Error.js +12 -10
- package/lib/cjs/Error.js.map +1 -1
- package/lib/es6/Error.js +12 -10
- package/lib/es6/Error.js.map +1 -1
- package/lib/esm/AccessDenied/index.mjs +37 -34
- package/lib/esm/AccessDenied/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/AccessDenied/translations/de.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/en.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/es.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/fr.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/it.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/ja.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/ko.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/nl.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/pl.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/pt.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/ru.json.mjs +11 -9
- package/lib/esm/AccessDenied/translations/sv.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/tr.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/vi.json.mjs +11 -8
- package/lib/esm/AccessDenied/translations/zh.json.mjs +11 -8
- package/lib/esm/Error.mjs +78 -62
- package/lib/esm/Maintenance/index.mjs +36 -33
- package/lib/esm/Maintenance/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/Maintenance/translations/de.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/en.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/es.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/fr.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/it.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/ja.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/ko.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/nl.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/pl.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/pt.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/ru.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/sv.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/tr.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/vi.json.mjs +11 -8
- package/lib/esm/Maintenance/translations/zh.json.mjs +11 -8
- package/lib/esm/PageError/index.mjs +50 -43
- package/lib/esm/PageError/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/PageError/translations/de.json.mjs +11 -8
- package/lib/esm/PageError/translations/en.json.mjs +11 -8
- package/lib/esm/PageError/translations/es.json.mjs +11 -8
- package/lib/esm/PageError/translations/fr.json.mjs +11 -8
- package/lib/esm/PageError/translations/it.json.mjs +11 -8
- package/lib/esm/PageError/translations/ja.json.mjs +11 -8
- package/lib/esm/PageError/translations/ko.json.mjs +11 -8
- package/lib/esm/PageError/translations/nl.json.mjs +11 -8
- package/lib/esm/PageError/translations/pl.json.mjs +11 -8
- package/lib/esm/PageError/translations/pt.json.mjs +11 -8
- package/lib/esm/PageError/translations/ru.json.mjs +11 -8
- package/lib/esm/PageError/translations/sv.json.mjs +11 -8
- package/lib/esm/PageError/translations/tr.json.mjs +11 -8
- package/lib/esm/PageError/translations/vi.json.mjs +11 -8
- package/lib/esm/PageError/translations/zh.json.mjs +11 -8
- package/lib/esm/PageNotFound/index.mjs +36 -33
- package/lib/esm/PageNotFound/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/PageNotFound/translations/de.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/en.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/es.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/fr.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/it.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/ja.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/ko.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/nl.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/pl.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/pt.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/ru.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/sv.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/tr.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/vi.json.mjs +11 -8
- package/lib/esm/PageNotFound/translations/zh.json.mjs +11 -8
- package/lib/esm/ProjectNotFound/index.mjs +44 -40
- package/lib/esm/ProjectNotFound/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/ProjectNotFound/translations/de.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/en.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/es.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/fr.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/it.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/ja.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/ko.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/nl.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/pl.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/pt.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/ru.json.mjs +14 -11
- package/lib/esm/ProjectNotFound/translations/sv.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/tr.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/vi.json.mjs +14 -10
- package/lib/esm/ProjectNotFound/translations/zh.json.mjs +14 -10
- package/lib/esm/index.mjs +13 -13
- package/lib/esm/style/errors.shadow.css +67 -0
- package/package.json +7 -7
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { localizedMessages
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import createComponent, { assignProps, Component } from "@semcore/core";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import Button from "@semcore/button";
|
|
9
|
+
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
|
+
import Error, { getIconPath } from "../Error.mjs";
|
|
11
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
12
|
+
var RootPageNotFound = /* @__PURE__ */ function(_Component) {
|
|
13
|
+
_inherits(RootPageNotFound2, _Component);
|
|
14
|
+
var _super = _createSuper(RootPageNotFound2);
|
|
15
|
+
function RootPageNotFound2() {
|
|
16
|
+
_classCallCheck(this, RootPageNotFound2);
|
|
17
|
+
return _super.apply(this, arguments);
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
+
_createClass(RootPageNotFound2, [{
|
|
19
20
|
key: "render",
|
|
20
|
-
value: function() {
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
value: function render() {
|
|
22
|
+
var _ref = this.asProps;
|
|
23
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, getI18nText = _this$asProps.getI18nText, homeLink = _this$asProps.homeLink, titleTag = _this$asProps.titleTag;
|
|
24
|
+
return /* @__PURE__ */ React.createElement(Error, assignProps({}, _ref), /* @__PURE__ */ React.createElement(Error.Title, {
|
|
25
|
+
tag: titleTag
|
|
26
|
+
}, getI18nText("title")), /* @__PURE__ */ React.createElement(Error.Description, null, getI18nText("text")), /* @__PURE__ */ React.createElement(Children, null), /* @__PURE__ */ React.createElement(Error.Controls, null, /* @__PURE__ */ React.createElement(Button, {
|
|
25
27
|
tag: "a",
|
|
26
28
|
type: "none",
|
|
27
29
|
size: "l",
|
|
28
30
|
use: "primary",
|
|
29
31
|
theme: "info",
|
|
30
|
-
href:
|
|
31
|
-
},
|
|
32
|
+
href: homeLink
|
|
33
|
+
}, getI18nText("btnHome"))));
|
|
32
34
|
}
|
|
33
|
-
}])
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
}]);
|
|
36
|
+
return RootPageNotFound2;
|
|
37
|
+
}(Component);
|
|
38
|
+
_defineProperty(RootPageNotFound, "displayName", "Maintenance");
|
|
39
|
+
_defineProperty(RootPageNotFound, "enhance", [i18nEnhance(localizedMessages)]);
|
|
40
|
+
_defineProperty(RootPageNotFound, "defaultProps", {
|
|
41
|
+
i18n: localizedMessages,
|
|
39
42
|
locale: "en",
|
|
40
|
-
icon:
|
|
43
|
+
icon: getIconPath("page_not_found"),
|
|
41
44
|
homeLink: "/",
|
|
42
45
|
titleTag: "h2"
|
|
43
46
|
});
|
|
44
|
-
const
|
|
47
|
+
const index = createComponent(RootPageNotFound);
|
|
45
48
|
export {
|
|
46
|
-
|
|
49
|
+
index as default
|
|
47
50
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
var
|
|
17
|
-
de
|
|
18
|
-
en
|
|
19
|
-
es
|
|
20
|
-
fr
|
|
21
|
-
it
|
|
22
|
-
ja
|
|
23
|
-
ko
|
|
24
|
-
nl
|
|
25
|
-
pt
|
|
26
|
-
ru
|
|
27
|
-
tr
|
|
28
|
-
vi
|
|
29
|
-
zh
|
|
30
|
-
pl
|
|
31
|
-
sv
|
|
1
|
+
import de from "./de.json.mjs";
|
|
2
|
+
import en from "./en.json.mjs";
|
|
3
|
+
import es from "./es.json.mjs";
|
|
4
|
+
import fr from "./fr.json.mjs";
|
|
5
|
+
import it from "./it.json.mjs";
|
|
6
|
+
import ja from "./ja.json.mjs";
|
|
7
|
+
import ko from "./ko.json.mjs";
|
|
8
|
+
import nl from "./nl.json.mjs";
|
|
9
|
+
import pt from "./pt.json.mjs";
|
|
10
|
+
import ru from "./ru.json.mjs";
|
|
11
|
+
import tr from "./tr.json.mjs";
|
|
12
|
+
import vi from "./vi.json.mjs";
|
|
13
|
+
import zh from "./zh.json.mjs";
|
|
14
|
+
import pl from "./pl.json.mjs";
|
|
15
|
+
import sv from "./sv.json.mjs";
|
|
16
|
+
var localizedMessages = {
|
|
17
|
+
de,
|
|
18
|
+
en,
|
|
19
|
+
es,
|
|
20
|
+
fr,
|
|
21
|
+
it,
|
|
22
|
+
ja,
|
|
23
|
+
ko,
|
|
24
|
+
nl,
|
|
25
|
+
pt,
|
|
26
|
+
ru,
|
|
27
|
+
tr,
|
|
28
|
+
vi,
|
|
29
|
+
zh,
|
|
30
|
+
pl,
|
|
31
|
+
sv
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
localizedMessages
|
|
35
35
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Fehler";
|
|
2
|
+
const text = "Diese Seite ist nicht vorhanden. Versuchen Sie zurückzugehen oder klicken Sie auf die Schaltfläche unten, um zur Startseite zu gelangen.";
|
|
3
|
+
const btnHome = "Zur Homepage";
|
|
4
|
+
const de = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
de as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "We got lost";
|
|
2
|
+
const text = "It looks like this page doesn't exist. Try going back or click the button below and we'll take you home.";
|
|
3
|
+
const btnHome = "Go to homepage";
|
|
4
|
+
const en = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
en as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Nos hemos perdido";
|
|
2
|
+
const text = "Parece que esta página no existe. Prueba a volver o haz clic en el botón de debajo para ir a la página de inicio.";
|
|
3
|
+
const btnHome = "Ir a la página de inicio";
|
|
4
|
+
const es = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
es as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Une erreur est survenue";
|
|
2
|
+
const text = "Il semble que cette page n'existe pas. Retournez à la page précédente ou cliquez sur le bouton ci-dessous pour revenir à la page d'accueil.";
|
|
3
|
+
const btnHome = "Vers la page d'accueil";
|
|
4
|
+
const fr = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
fr as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Ci siamo persi";
|
|
2
|
+
const text = "Sembra che questa pagina non esista. Prova a tornare indietro o clicca il pulsante sottostante e ti riporteremo alla homepage.";
|
|
3
|
+
const btnHome = "Vai alla homepage";
|
|
4
|
+
const it = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
it as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "分からなくなりました";
|
|
2
|
+
const text = "このページが存在していないようです。戻ってみるか、下のボタンをクリックしてください。";
|
|
3
|
+
const btnHome = "ホームページに行く";
|
|
4
|
+
const ja = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
ja as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "오류가 발생했습니다";
|
|
2
|
+
const text = "존재하지 않는 페이지입니다. 뒤로 돌아가거나 아래 버튼을 클릭해 홈으로 이동하세요.";
|
|
3
|
+
const btnHome = "홈페이지로 이동";
|
|
4
|
+
const ko = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
ko as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "We zijn verdwaald";
|
|
2
|
+
const text = "Het lijkt erop dat deze pagina niet bestaat. Ga terug of klik op de onderstaande knop om naar de homepage te gaan.";
|
|
3
|
+
const btnHome = "Naar homepage";
|
|
4
|
+
const nl = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
nl as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Zgubiliśmy się";
|
|
2
|
+
const text = "Wygląda na to, że ta strona nie istnieje. Spróbuj się cofnąć lub kliknij poniższy przycisk, a zabierzemy Cię na stronę główną.";
|
|
3
|
+
const btnHome = "Przejdź do strony głównej";
|
|
4
|
+
const pl = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
pl as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Nos perdemos";
|
|
2
|
+
const text = "Parece que esta página não existe. Tente voltar ou clique no botão abaixo para ir à página inicial.";
|
|
3
|
+
const btnHome = "Acessar página inicial";
|
|
4
|
+
const pt = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
pt as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Страница не найдена";
|
|
2
|
+
const text = "Страница, которую вы запрашиваете, не существует. Вы можете вернуться на предыдущую страницу или перейти на главную.";
|
|
3
|
+
const btnHome = "На главную страницу";
|
|
4
|
+
const ru = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
ru as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Vi gick vilse";
|
|
2
|
+
const text = "Det verkar som om den här sidan inte finns. Försök att gå tillbaka eller klicka på knappen nedan så tar vi dig tillbaka.";
|
|
3
|
+
const btnHome = "Gå till startsidan";
|
|
4
|
+
const sv = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
sv as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Sayfa bulunamıyor";
|
|
2
|
+
const text = "Bu sayfa yok gibi görünüyor. Geri dönmeyi deneyin veya aşağıdaki düğmeye tıklayın, sizi ana sayfaya götürelim.";
|
|
3
|
+
const btnHome = "Ana sayfaya git";
|
|
4
|
+
const tr = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
tr as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "Không tìm thấy trang";
|
|
2
|
+
const text = "Có vẻ như trang này không tồn tại. Hãy thử quay lại hoặc nhấp vào nút bên dưới và chúng tôi sẽ đưa bạn về nhà.";
|
|
3
|
+
const btnHome = "Đi đến Trang chủ";
|
|
4
|
+
const vi = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
vi as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const title = "我们迷路了";
|
|
2
|
+
const text = "此页面似乎并不存在。请尝试返回或点击下方的按钮,我们将带您前往正确的位置。";
|
|
3
|
+
const btnHome = "前往主页";
|
|
4
|
+
const zh = {
|
|
5
|
+
title,
|
|
6
|
+
text,
|
|
7
|
+
btnHome
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
btnHome,
|
|
11
|
+
zh as default,
|
|
12
|
+
text,
|
|
13
|
+
title
|
|
11
14
|
};
|
|
@@ -1,63 +1,67 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { localizedMessages
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import createComponent, { assignProps, Component } from "@semcore/core";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import Button from "@semcore/button";
|
|
9
|
+
import FormatText from "@semcore/format-text";
|
|
10
|
+
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
11
|
+
import Error, { getIconPath } from "../Error.mjs";
|
|
12
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
13
|
+
var RootProjectNotFound = /* @__PURE__ */ function(_Component) {
|
|
14
|
+
_inherits(RootProjectNotFound2, _Component);
|
|
15
|
+
var _super = _createSuper(RootProjectNotFound2);
|
|
16
|
+
function RootProjectNotFound2() {
|
|
17
|
+
_classCallCheck(this, RootProjectNotFound2);
|
|
18
|
+
return _super.apply(this, arguments);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
_createClass(RootProjectNotFound2, [{
|
|
20
21
|
key: "render",
|
|
21
|
-
value: function() {
|
|
22
|
-
var
|
|
23
|
-
|
|
22
|
+
value: function render() {
|
|
23
|
+
var _ref = this.asProps;
|
|
24
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, getI18nText = _this$asProps.getI18nText, projectsLink = _this$asProps.projectsLink, contactsLink = _this$asProps.contactsLink, supportTeamLink = _this$asProps.supportTeamLink, titleTag = _this$asProps.titleTag;
|
|
25
|
+
var text = getI18nText("text", {
|
|
26
|
+
url: supportTeamLink
|
|
24
27
|
});
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
tag:
|
|
27
|
-
},
|
|
28
|
-
tag:
|
|
28
|
+
return /* @__PURE__ */ React.createElement(Error, assignProps({}, _ref), /* @__PURE__ */ React.createElement(Error.Title, {
|
|
29
|
+
tag: titleTag
|
|
30
|
+
}, getI18nText("title")), /* @__PURE__ */ React.createElement(Error.Description, {
|
|
31
|
+
tag: FormatText,
|
|
29
32
|
size: "l",
|
|
30
33
|
dangerouslySetInnerHTML: {
|
|
31
|
-
__html:
|
|
34
|
+
__html: text
|
|
32
35
|
}
|
|
33
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ React.createElement(Children, null), /* @__PURE__ */ React.createElement(Error.Controls, null, /* @__PURE__ */ React.createElement(Button, {
|
|
34
37
|
tag: "a",
|
|
35
38
|
type: "none",
|
|
36
39
|
size: "l",
|
|
37
40
|
use: "primary",
|
|
38
41
|
theme: "info",
|
|
39
|
-
href:
|
|
40
|
-
},
|
|
42
|
+
href: projectsLink
|
|
43
|
+
}, getI18nText("btnProjects")), /* @__PURE__ */ React.createElement(Button, {
|
|
41
44
|
size: "l",
|
|
42
45
|
tag: "a",
|
|
43
46
|
type: "none",
|
|
44
|
-
href:
|
|
45
|
-
},
|
|
47
|
+
href: contactsLink
|
|
48
|
+
}, getI18nText("btnContacts"))));
|
|
46
49
|
}
|
|
47
|
-
}])
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}]);
|
|
51
|
+
return RootProjectNotFound2;
|
|
52
|
+
}(Component);
|
|
53
|
+
_defineProperty(RootProjectNotFound, "displayName", "Maintenance");
|
|
54
|
+
_defineProperty(RootProjectNotFound, "enhance", [i18nEnhance(localizedMessages)]);
|
|
55
|
+
_defineProperty(RootProjectNotFound, "defaultProps", {
|
|
56
|
+
i18n: localizedMessages,
|
|
53
57
|
locale: "en",
|
|
54
|
-
icon:
|
|
58
|
+
icon: getIconPath("project_not_found"),
|
|
55
59
|
projectsLink: "/projects",
|
|
56
60
|
contactsLink: "/company/contacts",
|
|
57
61
|
supportTeamLink: "mailto:mail@semrush.com",
|
|
58
62
|
titleTag: "h2"
|
|
59
63
|
});
|
|
60
|
-
const
|
|
64
|
+
const index = createComponent(RootProjectNotFound);
|
|
61
65
|
export {
|
|
62
|
-
|
|
66
|
+
index as default
|
|
63
67
|
};
|