@semcore/errors 4.48.0-prerelease.0 → 4.48.0-prerelease.1
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 +20 -2
- package/lib/cjs/Error.js +12 -10
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/style/errors.shadow.css +2 -2
- package/lib/es6/Error.js +12 -10
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/style/errors.shadow.css +2 -2
- 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 +8 -8
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const title = "无法找到此项目";
|
|
2
|
+
const text = '<p>我们找不到您尝试访问的项目。</p><p>检查是否存在以下问题:</p><ul><li>该项目可能已被删除,或者输入的 URL 中存在错误。</li><li>也许您没有查看该项目的权限。请向项目所有者请求访问权限。</li></ul><p>您可以在“项目”页面中找到所有项目。</p><p>如果您在访问项目时遇到任何其他问题,请联系我们的<a href="{url}">支持团队。</a></p>';
|
|
3
|
+
const btnProjects = "转到项目";
|
|
4
|
+
const btnContacts = "联系我们";
|
|
5
|
+
const zh = {
|
|
6
|
+
title,
|
|
7
|
+
text,
|
|
8
|
+
btnProjects,
|
|
9
|
+
btnContacts
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
btnContacts,
|
|
13
|
+
btnProjects,
|
|
14
|
+
zh as default,
|
|
15
|
+
text,
|
|
16
|
+
title
|
|
13
17
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
1
|
+
import { default as default2, getIconPath } from "./Error.mjs";
|
|
2
|
+
import { default as default3 } from "./AccessDenied/index.mjs";
|
|
3
|
+
import { default as default4 } from "./Maintenance/index.mjs";
|
|
4
|
+
import { default as default5 } from "./PageError/index.mjs";
|
|
5
|
+
import { default as default6 } from "./PageNotFound/index.mjs";
|
|
6
|
+
import { default as default7 } from "./ProjectNotFound/index.mjs";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
default3 as AccessDenied,
|
|
9
|
+
default4 as Maintenance,
|
|
10
|
+
default5 as PageError,
|
|
11
|
+
default6 as PageNotFound,
|
|
12
|
+
default7 as ProjectNotFound,
|
|
13
|
+
default2 as default,
|
|
14
|
+
getIconPath
|
|
15
15
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
SError {
|
|
2
|
+
padding: var(--intergalactic-spacing-20x, 80px) 0;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
max-width: 960px;
|
|
5
|
+
|
|
6
|
+
@media (max-width: 768px) {
|
|
7
|
+
padding: var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (max-width: 320px) {
|
|
11
|
+
padding: var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
SControls {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
|
|
18
|
+
&>*:not(:last-child) {
|
|
19
|
+
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
SInner {
|
|
24
|
+
width: 100%;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
|
|
31
|
+
SImageWrapper,
|
|
32
|
+
SImage {
|
|
33
|
+
width: 260px;
|
|
34
|
+
height: 260px;
|
|
35
|
+
|
|
36
|
+
@media (max-width: 320px) {
|
|
37
|
+
width: 200px;
|
|
38
|
+
height: 200px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
SImageWrapper {
|
|
43
|
+
margin-right: var(--intergalactic-spacing-10x, 40px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
SWrapper {
|
|
47
|
+
flex: 1 0 300px;
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
margin-top: var(--intergalactic-spacing-8x, 32px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
STitle[data-errors-title] {
|
|
53
|
+
font-size: var(--intergalactic-fs-700, 36px);
|
|
54
|
+
line-height: var(--intergalactic-lh-700, 110%);
|
|
55
|
+
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
56
|
+
font-weight: var(--intergalactic-semi-bold, 600);
|
|
57
|
+
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
SDescription {
|
|
61
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
62
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
63
|
+
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
64
|
+
margin: 0 0 var(--intergalactic-spacing-6x, 24px) 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "4.48.0-prerelease.
|
|
4
|
+
"version": "4.48.0-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "5.
|
|
18
|
-
"@semcore/flex-box": "5.
|
|
19
|
-
"@semcore/format-text": "4.
|
|
20
|
-
"@semcore/illustration": "2.
|
|
21
|
-
"@semcore/typography": "5.
|
|
22
|
-
"@semcore/utils": "4.
|
|
17
|
+
"@semcore/button": "5.44.0-prerelease.1",
|
|
18
|
+
"@semcore/flex-box": "5.42.0-prerelease.1",
|
|
19
|
+
"@semcore/format-text": "4.43.0-prerelease.1",
|
|
20
|
+
"@semcore/illustration": "2.45.0-prerelease.1",
|
|
21
|
+
"@semcore/typography": "5.54.0-prerelease.1",
|
|
22
|
+
"@semcore/utils": "4.49.0-prerelease.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/core": "^2.
|
|
25
|
+
"@semcore/core": "^2.40.0-prerelease.1",
|
|
26
26
|
"react": "16.8 - 18",
|
|
27
27
|
"react-dom": "16.8 - 18"
|
|
28
28
|
},
|