@semcore/errors 4.48.0-prerelease.1 → 4.48.0-prerelease.5
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/lib/cjs/AccessDenied/{index.js → AccessDenied.js} +11 -14
- package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -0
- package/lib/cjs/AccessDenied/AccessDenied.type.js +2 -0
- package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -0
- package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/Error.js +24 -29
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/Error.type.js +2 -0
- package/lib/cjs/Error.type.js.map +1 -0
- package/lib/cjs/Maintenance/{index.js → Maintenance.js} +11 -14
- package/lib/cjs/Maintenance/Maintenance.js.map +1 -0
- package/lib/cjs/Maintenance/Maintenance.type.js +2 -0
- package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -0
- package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/PageError/{index.js → PageError.js} +20 -24
- package/lib/cjs/PageError/PageError.js.map +1 -0
- package/lib/cjs/PageError/PageError.type.js +2 -0
- package/lib/cjs/PageError/PageError.type.js.map +1 -0
- package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/PageNotFound/{index.js → PageNotFound.js} +12 -15
- package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -0
- package/lib/cjs/PageNotFound/PageNotFound.type.js +2 -0
- package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -0
- package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/ProjectNotFound/{index.js → ProjectNotFound.js} +32 -24
- package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -0
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +2 -0
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
- package/lib/cjs/ProjectNotFound/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/ProjectNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/ProjectNotFound/translations/de.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/en.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/es.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/fr.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/it.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/ja.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/ko.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/nl.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/pl.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/pt.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/ru.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/sv.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/tr.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/vi.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/zh.json +1 -1
- package/lib/cjs/index.js +78 -10
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/errors.shadow.css +11 -13
- package/lib/es6/AccessDenied/{index.js → AccessDenied.js} +8 -10
- package/lib/es6/AccessDenied/AccessDenied.js.map +1 -0
- package/lib/es6/AccessDenied/AccessDenied.type.js +2 -0
- package/lib/es6/AccessDenied/AccessDenied.type.js.map +1 -0
- package/lib/es6/AccessDenied/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/Error.js +19 -20
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/Error.type.js +2 -0
- package/lib/es6/Error.type.js.map +1 -0
- package/lib/es6/Maintenance/{index.js → Maintenance.js} +8 -10
- package/lib/es6/Maintenance/Maintenance.js.map +1 -0
- package/lib/es6/Maintenance/Maintenance.type.js +2 -0
- package/lib/es6/Maintenance/Maintenance.type.js.map +1 -0
- package/lib/es6/Maintenance/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/PageError/{index.js → PageError.js} +17 -19
- package/lib/es6/PageError/PageError.js.map +1 -0
- package/lib/es6/PageError/PageError.type.js +2 -0
- package/lib/es6/PageError/PageError.type.js.map +1 -0
- package/lib/es6/PageError/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/PageNotFound/{index.js → PageNotFound.js} +9 -11
- package/lib/es6/PageNotFound/PageNotFound.js.map +1 -0
- package/lib/es6/PageNotFound/PageNotFound.type.js +2 -0
- package/lib/es6/PageNotFound/PageNotFound.type.js.map +1 -0
- package/lib/es6/PageNotFound/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/ProjectNotFound/{index.js → ProjectNotFound.js} +29 -20
- package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +1 -0
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +2 -0
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
- package/lib/es6/ProjectNotFound/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/ProjectNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/ProjectNotFound/translations/de.json +1 -1
- package/lib/es6/ProjectNotFound/translations/en.json +1 -1
- package/lib/es6/ProjectNotFound/translations/es.json +1 -1
- package/lib/es6/ProjectNotFound/translations/fr.json +1 -1
- package/lib/es6/ProjectNotFound/translations/it.json +1 -1
- package/lib/es6/ProjectNotFound/translations/ja.json +1 -1
- package/lib/es6/ProjectNotFound/translations/ko.json +1 -1
- package/lib/es6/ProjectNotFound/translations/nl.json +1 -1
- package/lib/es6/ProjectNotFound/translations/pl.json +1 -1
- package/lib/es6/ProjectNotFound/translations/pt.json +1 -1
- package/lib/es6/ProjectNotFound/translations/ru.json +1 -1
- package/lib/es6/ProjectNotFound/translations/sv.json +1 -1
- package/lib/es6/ProjectNotFound/translations/tr.json +1 -1
- package/lib/es6/ProjectNotFound/translations/vi.json +1 -1
- package/lib/es6/ProjectNotFound/translations/zh.json +1 -1
- package/lib/es6/index.js +12 -7
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/errors.shadow.css +11 -13
- package/lib/esm/AccessDenied/{index.mjs → AccessDenied.mjs} +11 -13
- package/lib/esm/AccessDenied/AccessDenied.type.mjs +1 -0
- package/lib/esm/AccessDenied/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/Error.mjs +24 -27
- package/lib/esm/Error.type.mjs +1 -0
- package/lib/esm/Maintenance/{index.mjs → Maintenance.mjs} +11 -13
- package/lib/esm/Maintenance/Maintenance.type.mjs +1 -0
- package/lib/esm/Maintenance/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/PageError/{index.mjs → PageError.mjs} +19 -21
- package/lib/esm/PageError/PageError.type.mjs +1 -0
- package/lib/esm/PageError/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/PageNotFound/{index.mjs → PageNotFound.mjs} +12 -14
- package/lib/esm/PageNotFound/PageNotFound.type.mjs +1 -0
- package/lib/esm/PageNotFound/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/ProjectNotFound/{index.mjs → ProjectNotFound.mjs} +32 -23
- package/lib/esm/ProjectNotFound/ProjectNotFound.type.mjs +1 -0
- package/lib/esm/ProjectNotFound/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/ProjectNotFound/translations/de.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/en.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/es.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/fr.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/it.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/ja.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/ko.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/nl.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/pl.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/pt.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/ru.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/sv.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/tr.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/vi.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/zh.json.mjs +1 -1
- package/lib/esm/index.mjs +11 -5
- package/lib/esm/style/errors.shadow.css +11 -13
- package/lib/types/AccessDenied/AccessDenied.d.ts +3 -0
- package/lib/types/AccessDenied/AccessDenied.type.d.ts +21 -0
- package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/Error.d.ts +4 -0
- package/lib/types/Error.type.d.ts +40 -0
- package/lib/types/Maintenance/Maintenance.d.ts +3 -0
- package/lib/types/Maintenance/Maintenance.type.d.ts +25 -0
- package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/PageError/PageError.d.ts +3 -0
- package/lib/types/PageError/PageError.type.d.ts +21 -0
- package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/PageNotFound/PageNotFound.d.ts +3 -0
- package/lib/types/PageNotFound/PageNotFound.type.d.ts +21 -0
- package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +3 -0
- package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +31 -0
- package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +92 -0
- package/lib/types/index.d.ts +12 -120
- package/package.json +8 -8
- package/lib/cjs/AccessDenied/index.js.map +0 -1
- package/lib/cjs/Maintenance/index.js.map +0 -1
- package/lib/cjs/PageError/index.js.map +0 -1
- package/lib/cjs/PageNotFound/index.js.map +0 -1
- package/lib/cjs/ProjectNotFound/index.js.map +0 -1
- package/lib/cjs/index.d.js +0 -16
- package/lib/cjs/index.d.js.map +0 -1
- package/lib/es6/AccessDenied/index.js.map +0 -1
- package/lib/es6/Maintenance/index.js.map +0 -1
- package/lib/es6/PageError/index.js.map +0 -1
- package/lib/es6/PageNotFound/index.js.map +0 -1
- package/lib/es6/ProjectNotFound/index.js.map +0 -1
- package/lib/es6/index.d.js +0 -16
- package/lib/es6/index.d.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const title = "Không tìm thấy trang";
|
|
2
|
-
const text =
|
|
2
|
+
const text = "<p>Chúng tôi không thể tìm thấy dự án bạn đang muốn truy cập.</p><p>Hãy kiểm tra một trong các vấn đề sau:</p><ul><li>Dự án có thể đã bị xóa hoặc có lỗi trong URL đã nhập.</li><li>Có thể bạn không có quyền xem dự án. Vui lòng yêu cầu quyền truy cập từ chủ sở hữu dự án.</li></ul><p>Bạn có thể tìm thấy tất cả các dự án của mình trên trang Dự án.</p><p>Nếu bạn gặp bất kỳ sự cố nàokhác về quyền truy cập vào dự án, vui lòng liên hệ với <supportLink>Đội hỗ trợ của chúng tôi.</supportLink></p>";
|
|
3
3
|
const btnProjects = "Chuyển đến dự án";
|
|
4
4
|
const btnContacts = "Liên hệ chúng tôi";
|
|
5
5
|
const vi = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const title = "无法找到此项目";
|
|
2
|
-
const text =
|
|
2
|
+
const text = "<p>我们找不到您尝试访问的项目。</p><p>检查是否存在以下问题:</p><ul><li>该项目可能已被删除,或者输入的 URL 中存在错误。</li><li>也许您没有查看该项目的权限。请向项目所有者请求访问权限。</li></ul><p>您可以在“项目”页面中找到所有项目。</p><p>如果您在访问项目时遇到任何其他问题,请联系我们的<supportLink>支持团队。</supportLink></p>";
|
|
3
3
|
const btnProjects = "转到项目";
|
|
4
4
|
const btnContacts = "联系我们";
|
|
5
5
|
const zh = {
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { default as default2, getIconPath } from "./Error.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { default as
|
|
4
|
-
import
|
|
5
|
-
import { default as
|
|
6
|
-
import
|
|
2
|
+
import "./Error.type.mjs";
|
|
3
|
+
import { default as default3 } from "./AccessDenied/AccessDenied.mjs";
|
|
4
|
+
import "./AccessDenied/AccessDenied.type.mjs";
|
|
5
|
+
import { default as default4 } from "./Maintenance/Maintenance.mjs";
|
|
6
|
+
import "./Maintenance/Maintenance.type.mjs";
|
|
7
|
+
import { default as default5 } from "./PageError/PageError.mjs";
|
|
8
|
+
import "./PageError/PageError.type.mjs";
|
|
9
|
+
import { default as default6 } from "./PageNotFound/PageNotFound.mjs";
|
|
10
|
+
import "./PageNotFound/PageNotFound.type.mjs";
|
|
11
|
+
import { default as default7 } from "./ProjectNotFound/ProjectNotFound.mjs";
|
|
12
|
+
import "./ProjectNotFound/ProjectNotFound.type.mjs";
|
|
7
13
|
export {
|
|
8
14
|
default3 as AccessDenied,
|
|
9
15
|
default4 as Maintenance,
|
|
@@ -1,50 +1,47 @@
|
|
|
1
1
|
SError {
|
|
2
|
-
padding: var(--intergalactic-spacing-20x, 80px)
|
|
2
|
+
padding: var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
max-width: 960px;
|
|
5
5
|
|
|
6
|
-
@media (max-width:
|
|
7
|
-
padding: var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media (max-width: 320px) {
|
|
6
|
+
@media (max-width: 647px) {
|
|
11
7
|
padding: var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px);
|
|
12
8
|
}
|
|
13
9
|
|
|
14
10
|
SControls {
|
|
15
11
|
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
gap: var(--intergalactic-spacing-3x, 12px);
|
|
16
14
|
align-items: center;
|
|
17
|
-
|
|
18
|
-
&>*:not(:last-child) {
|
|
19
|
-
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
20
|
-
}
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
SInner {
|
|
24
18
|
width: 100%;
|
|
25
19
|
display: flex;
|
|
26
20
|
justify-content: flex-start;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
21
|
align-items: flex-start;
|
|
29
22
|
box-sizing: border-box;
|
|
30
23
|
|
|
24
|
+
@media (max-width: 647px) {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
31
28
|
SImageWrapper,
|
|
32
29
|
SImage {
|
|
33
30
|
width: 260px;
|
|
34
31
|
height: 260px;
|
|
35
32
|
|
|
36
|
-
@media (max-width:
|
|
33
|
+
@media (max-width: 647px) {
|
|
37
34
|
width: 200px;
|
|
38
35
|
height: 200px;
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
SImageWrapper {
|
|
40
|
+
flex-shrink: 0;
|
|
43
41
|
margin-right: var(--intergalactic-spacing-10x, 40px);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
SWrapper {
|
|
47
|
-
flex: 1 0 300px;
|
|
48
45
|
max-width: 100%;
|
|
49
46
|
margin-top: var(--intergalactic-spacing-8x, 32px);
|
|
50
47
|
}
|
|
@@ -58,6 +55,7 @@ SError {
|
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
SDescription {
|
|
58
|
+
display: block;
|
|
61
59
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
62
60
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
63
61
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSAccessDenied {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* href of the home link
|
|
8
|
+
* @default /
|
|
9
|
+
*/
|
|
10
|
+
homeLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* HTML tag of the error title
|
|
13
|
+
* @default h2
|
|
14
|
+
*/
|
|
15
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
+
};
|
|
17
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated It will be removed in v18. */
|
|
20
|
+
export type AccessDeniedProps = NSAccessDenied.Props;
|
|
21
|
+
export type { NSAccessDenied };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
btnHome: string;
|
|
6
|
+
};
|
|
7
|
+
en: {
|
|
8
|
+
title: string;
|
|
9
|
+
text: string;
|
|
10
|
+
btnHome: string;
|
|
11
|
+
};
|
|
12
|
+
es: {
|
|
13
|
+
title: string;
|
|
14
|
+
text: string;
|
|
15
|
+
btnHome: string;
|
|
16
|
+
};
|
|
17
|
+
fr: {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
btnHome: string;
|
|
21
|
+
};
|
|
22
|
+
it: {
|
|
23
|
+
title: string;
|
|
24
|
+
text: string;
|
|
25
|
+
btnHome: string;
|
|
26
|
+
};
|
|
27
|
+
ja: {
|
|
28
|
+
title: string;
|
|
29
|
+
text: string;
|
|
30
|
+
btnHome: string;
|
|
31
|
+
};
|
|
32
|
+
ko: {
|
|
33
|
+
title: string;
|
|
34
|
+
text: string;
|
|
35
|
+
btnHome: string;
|
|
36
|
+
};
|
|
37
|
+
nl: {
|
|
38
|
+
title: string;
|
|
39
|
+
text: string;
|
|
40
|
+
btnHome: string;
|
|
41
|
+
};
|
|
42
|
+
pt: {
|
|
43
|
+
title: string;
|
|
44
|
+
text: string;
|
|
45
|
+
btnHome: string;
|
|
46
|
+
};
|
|
47
|
+
ru: {
|
|
48
|
+
title: string;
|
|
49
|
+
text: string;
|
|
50
|
+
btnHome: string;
|
|
51
|
+
};
|
|
52
|
+
tr: {
|
|
53
|
+
title: string;
|
|
54
|
+
text: string;
|
|
55
|
+
btnHome: string;
|
|
56
|
+
};
|
|
57
|
+
vi: {
|
|
58
|
+
title: string;
|
|
59
|
+
text: string;
|
|
60
|
+
btnHome: string;
|
|
61
|
+
};
|
|
62
|
+
zh: {
|
|
63
|
+
title: string;
|
|
64
|
+
text: string;
|
|
65
|
+
btnHome: string;
|
|
66
|
+
};
|
|
67
|
+
pl: {
|
|
68
|
+
title: string;
|
|
69
|
+
text: string;
|
|
70
|
+
btnHome: string;
|
|
71
|
+
};
|
|
72
|
+
sv: {
|
|
73
|
+
title: string;
|
|
74
|
+
text: string;
|
|
75
|
+
btnHome: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Box, FlexProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic, PropGetterFn } from '@semcore/core';
|
|
3
|
+
import type { TIllustrationNamesErrors } from '@semcore/illustration';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
declare namespace NSErrors {
|
|
6
|
+
type Props = FlexProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Error icon
|
|
9
|
+
* Icon as a string is a URL to an image.
|
|
10
|
+
*/
|
|
11
|
+
icon?: string | React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
type Ctx = {
|
|
14
|
+
getTextProps: PropGetterFn;
|
|
15
|
+
getDescriptionProps: PropGetterFn;
|
|
16
|
+
getControlsProps: PropGetterFn;
|
|
17
|
+
};
|
|
18
|
+
type IconName = TIllustrationNamesErrors;
|
|
19
|
+
namespace Title {
|
|
20
|
+
type Component = typeof Box;
|
|
21
|
+
}
|
|
22
|
+
namespace Description {
|
|
23
|
+
type Component = typeof Box;
|
|
24
|
+
}
|
|
25
|
+
namespace Controls {
|
|
26
|
+
type Component = typeof Box;
|
|
27
|
+
}
|
|
28
|
+
type Component = Intergalactic.Component<'div', Props, Ctx> & {
|
|
29
|
+
Title: Title.Component;
|
|
30
|
+
Description: Description.Component;
|
|
31
|
+
Controls: Controls.Component;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** @deprecated It will be removed in v18. */
|
|
35
|
+
export type ErrorsProps = NSErrors.Props;
|
|
36
|
+
/** @deprecated It will be removed in v18. */
|
|
37
|
+
export type ErrorsContext = NSErrors.Ctx;
|
|
38
|
+
/** @deprecated It will be removed in v18. */
|
|
39
|
+
export type IconNamesErrors = NSErrors.IconName;
|
|
40
|
+
export type { NSErrors };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSMaintenance {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* Tool name
|
|
8
|
+
*/
|
|
9
|
+
toolName: string;
|
|
10
|
+
/**
|
|
11
|
+
* href of the home link
|
|
12
|
+
* @default /
|
|
13
|
+
*/
|
|
14
|
+
homeLink?: string;
|
|
15
|
+
/**
|
|
16
|
+
* HTML tag of the error title
|
|
17
|
+
* @default h2
|
|
18
|
+
*/
|
|
19
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
20
|
+
};
|
|
21
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
22
|
+
}
|
|
23
|
+
/** @deprecated It will be removed in v18. */
|
|
24
|
+
export type MaintenanceProps = NSMaintenance.Props;
|
|
25
|
+
export type { NSMaintenance };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
btnHome: string;
|
|
6
|
+
};
|
|
7
|
+
en: {
|
|
8
|
+
title: string;
|
|
9
|
+
text: string;
|
|
10
|
+
btnHome: string;
|
|
11
|
+
};
|
|
12
|
+
es: {
|
|
13
|
+
title: string;
|
|
14
|
+
text: string;
|
|
15
|
+
btnHome: string;
|
|
16
|
+
};
|
|
17
|
+
fr: {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
btnHome: string;
|
|
21
|
+
};
|
|
22
|
+
it: {
|
|
23
|
+
title: string;
|
|
24
|
+
text: string;
|
|
25
|
+
btnHome: string;
|
|
26
|
+
};
|
|
27
|
+
ja: {
|
|
28
|
+
title: string;
|
|
29
|
+
text: string;
|
|
30
|
+
btnHome: string;
|
|
31
|
+
};
|
|
32
|
+
ko: {
|
|
33
|
+
title: string;
|
|
34
|
+
text: string;
|
|
35
|
+
btnHome: string;
|
|
36
|
+
};
|
|
37
|
+
nl: {
|
|
38
|
+
title: string;
|
|
39
|
+
text: string;
|
|
40
|
+
btnHome: string;
|
|
41
|
+
};
|
|
42
|
+
pt: {
|
|
43
|
+
title: string;
|
|
44
|
+
text: string;
|
|
45
|
+
btnHome: string;
|
|
46
|
+
};
|
|
47
|
+
ru: {
|
|
48
|
+
title: string;
|
|
49
|
+
text: string;
|
|
50
|
+
btnHome: string;
|
|
51
|
+
};
|
|
52
|
+
tr: {
|
|
53
|
+
title: string;
|
|
54
|
+
text: string;
|
|
55
|
+
btnHome: string;
|
|
56
|
+
};
|
|
57
|
+
vi: {
|
|
58
|
+
title: string;
|
|
59
|
+
text: string;
|
|
60
|
+
btnHome: string;
|
|
61
|
+
};
|
|
62
|
+
zh: {
|
|
63
|
+
title: string;
|
|
64
|
+
text: string;
|
|
65
|
+
btnHome: string;
|
|
66
|
+
};
|
|
67
|
+
pl: {
|
|
68
|
+
title: string;
|
|
69
|
+
text: string;
|
|
70
|
+
btnHome: string;
|
|
71
|
+
};
|
|
72
|
+
sv: {
|
|
73
|
+
title: string;
|
|
74
|
+
text: string;
|
|
75
|
+
btnHome: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSPageError {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* Page reloading button click handler
|
|
8
|
+
* @default () => { if (canUseDOM()) { location.reload(); } }
|
|
9
|
+
*/
|
|
10
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
11
|
+
/**
|
|
12
|
+
* HTML tag of the error title
|
|
13
|
+
* @default h2
|
|
14
|
+
*/
|
|
15
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
+
};
|
|
17
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated It will be removed in v18. */
|
|
20
|
+
export type PageErrorProps = NSPageError.Props;
|
|
21
|
+
export type { NSPageError };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
btnRetry: string;
|
|
6
|
+
};
|
|
7
|
+
en: {
|
|
8
|
+
title: string;
|
|
9
|
+
text: string;
|
|
10
|
+
btnRetry: string;
|
|
11
|
+
};
|
|
12
|
+
es: {
|
|
13
|
+
title: string;
|
|
14
|
+
text: string;
|
|
15
|
+
btnRetry: string;
|
|
16
|
+
};
|
|
17
|
+
fr: {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
btnRetry: string;
|
|
21
|
+
};
|
|
22
|
+
it: {
|
|
23
|
+
title: string;
|
|
24
|
+
text: string;
|
|
25
|
+
btnRetry: string;
|
|
26
|
+
};
|
|
27
|
+
ja: {
|
|
28
|
+
title: string;
|
|
29
|
+
text: string;
|
|
30
|
+
btnRetry: string;
|
|
31
|
+
};
|
|
32
|
+
ko: {
|
|
33
|
+
title: string;
|
|
34
|
+
text: string;
|
|
35
|
+
btnRetry: string;
|
|
36
|
+
};
|
|
37
|
+
nl: {
|
|
38
|
+
title: string;
|
|
39
|
+
text: string;
|
|
40
|
+
btnRetry: string;
|
|
41
|
+
};
|
|
42
|
+
pt: {
|
|
43
|
+
title: string;
|
|
44
|
+
text: string;
|
|
45
|
+
btnRetry: string;
|
|
46
|
+
};
|
|
47
|
+
ru: {
|
|
48
|
+
title: string;
|
|
49
|
+
text: string;
|
|
50
|
+
btnRetry: string;
|
|
51
|
+
};
|
|
52
|
+
tr: {
|
|
53
|
+
title: string;
|
|
54
|
+
text: string;
|
|
55
|
+
btnRetry: string;
|
|
56
|
+
};
|
|
57
|
+
vi: {
|
|
58
|
+
title: string;
|
|
59
|
+
text: string;
|
|
60
|
+
btnRetry: string;
|
|
61
|
+
};
|
|
62
|
+
zh: {
|
|
63
|
+
title: string;
|
|
64
|
+
text: string;
|
|
65
|
+
btnRetry: string;
|
|
66
|
+
};
|
|
67
|
+
pl: {
|
|
68
|
+
title: string;
|
|
69
|
+
text: string;
|
|
70
|
+
btnRetry: string;
|
|
71
|
+
};
|
|
72
|
+
sv: {
|
|
73
|
+
title: string;
|
|
74
|
+
text: string;
|
|
75
|
+
btnRetry: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSPageNotFound {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* href of the home link
|
|
8
|
+
* @default /
|
|
9
|
+
*/
|
|
10
|
+
homeLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* HTML tag of the error title
|
|
13
|
+
* @default h2
|
|
14
|
+
*/
|
|
15
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
+
};
|
|
17
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated It will be removed in v18. */
|
|
20
|
+
export type PageNotFoundProps = NSPageNotFound.Props;
|
|
21
|
+
export type { NSPageNotFound };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
btnHome: string;
|
|
6
|
+
};
|
|
7
|
+
en: {
|
|
8
|
+
title: string;
|
|
9
|
+
text: string;
|
|
10
|
+
btnHome: string;
|
|
11
|
+
};
|
|
12
|
+
es: {
|
|
13
|
+
title: string;
|
|
14
|
+
text: string;
|
|
15
|
+
btnHome: string;
|
|
16
|
+
};
|
|
17
|
+
fr: {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
btnHome: string;
|
|
21
|
+
};
|
|
22
|
+
it: {
|
|
23
|
+
title: string;
|
|
24
|
+
text: string;
|
|
25
|
+
btnHome: string;
|
|
26
|
+
};
|
|
27
|
+
ja: {
|
|
28
|
+
title: string;
|
|
29
|
+
text: string;
|
|
30
|
+
btnHome: string;
|
|
31
|
+
};
|
|
32
|
+
ko: {
|
|
33
|
+
title: string;
|
|
34
|
+
text: string;
|
|
35
|
+
btnHome: string;
|
|
36
|
+
};
|
|
37
|
+
nl: {
|
|
38
|
+
title: string;
|
|
39
|
+
text: string;
|
|
40
|
+
btnHome: string;
|
|
41
|
+
};
|
|
42
|
+
pt: {
|
|
43
|
+
title: string;
|
|
44
|
+
text: string;
|
|
45
|
+
btnHome: string;
|
|
46
|
+
};
|
|
47
|
+
ru: {
|
|
48
|
+
title: string;
|
|
49
|
+
text: string;
|
|
50
|
+
btnHome: string;
|
|
51
|
+
};
|
|
52
|
+
tr: {
|
|
53
|
+
title: string;
|
|
54
|
+
text: string;
|
|
55
|
+
btnHome: string;
|
|
56
|
+
};
|
|
57
|
+
vi: {
|
|
58
|
+
title: string;
|
|
59
|
+
text: string;
|
|
60
|
+
btnHome: string;
|
|
61
|
+
};
|
|
62
|
+
zh: {
|
|
63
|
+
title: string;
|
|
64
|
+
text: string;
|
|
65
|
+
btnHome: string;
|
|
66
|
+
};
|
|
67
|
+
pl: {
|
|
68
|
+
title: string;
|
|
69
|
+
text: string;
|
|
70
|
+
btnHome: string;
|
|
71
|
+
};
|
|
72
|
+
sv: {
|
|
73
|
+
title: string;
|
|
74
|
+
text: string;
|
|
75
|
+
btnHome: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSProjectNotFound {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* URL for the "Go to Projects" button
|
|
8
|
+
* @default /projects
|
|
9
|
+
*/
|
|
10
|
+
projectsLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* URL for the "Contact us" button
|
|
13
|
+
* @default /company/contacts
|
|
14
|
+
*/
|
|
15
|
+
contactsLink?: string;
|
|
16
|
+
/**
|
|
17
|
+
* URL for the "Support Team" link
|
|
18
|
+
* @default /company/contacts
|
|
19
|
+
*/
|
|
20
|
+
supportTeamLink?: string;
|
|
21
|
+
/**
|
|
22
|
+
* HTML tag of the error title
|
|
23
|
+
* @default h2
|
|
24
|
+
*/
|
|
25
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
26
|
+
};
|
|
27
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
28
|
+
}
|
|
29
|
+
/** @deprecated It will be removed in v18. */
|
|
30
|
+
export type ProjectNotFoundProps = NSProjectNotFound.Props;
|
|
31
|
+
export type { NSProjectNotFound };
|