@allurereport/web-classic 3.0.1 → 3.1.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/multi/app-b491577c193a7caf8c74.js +2 -0
- package/dist/multi/{app-81fc0bb26fd1b73b22f9.js.LICENSE.txt → app-b491577c193a7caf8c74.js.LICENSE.txt} +7 -0
- package/dist/multi/manifest.json +22 -22
- package/dist/multi/{styles-02faf4bb6ebabe212265.css → styles-88c7772c6bdc61325e60.css} +1 -1
- package/dist/single/app-0a173e3f1e0c5c003891.js +2 -0
- package/dist/single/{app-997b57d6b8885a4f88c7.js.LICENSE.txt → app-0a173e3f1e0c5c003891.js.LICENSE.txt} +7 -0
- package/dist/single/manifest.json +1 -1
- package/package.json +6 -6
- package/src/components/BaseLayout/styles.scss +0 -3
- package/src/components/Overview/index.tsx +7 -3
- package/src/components/ThemeButton/ThemeButton.tsx +6 -17
- package/src/index.html +39 -36
- package/src/index.tsx +1 -2
- package/src/stores/index.ts +0 -1
- package/src/utils/treeFilters.ts +1 -0
- package/dist/multi/app-81fc0bb26fd1b73b22f9.js +0 -2
- package/dist/single/app-997b57d6b8885a4f88c7.js +0 -2
- package/src/stores/theme.ts +0 -30
- /package/dist/multi/{10.app-81fc0bb26fd1b73b22f9.js → 10.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{222.app-81fc0bb26fd1b73b22f9.js → 222.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{26.app-81fc0bb26fd1b73b22f9.js → 26.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{302.app-81fc0bb26fd1b73b22f9.js → 302.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{304.app-81fc0bb26fd1b73b22f9.js → 304.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{369.app-81fc0bb26fd1b73b22f9.js → 369.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{389.app-81fc0bb26fd1b73b22f9.js → 389.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{498.app-81fc0bb26fd1b73b22f9.js → 498.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{60.app-81fc0bb26fd1b73b22f9.js → 60.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{643.app-81fc0bb26fd1b73b22f9.js → 643.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{671.app-81fc0bb26fd1b73b22f9.js → 671.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{725.app-81fc0bb26fd1b73b22f9.js → 725.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{770.app-81fc0bb26fd1b73b22f9.js → 770.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{848.app-81fc0bb26fd1b73b22f9.js → 848.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{853.app-81fc0bb26fd1b73b22f9.js → 853.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{872.app-81fc0bb26fd1b73b22f9.js → 872.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{895.app-81fc0bb26fd1b73b22f9.js → 895.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{920.app-81fc0bb26fd1b73b22f9.js → 920.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{979.app-81fc0bb26fd1b73b22f9.js → 979.app-b491577c193a7caf8c74.js} +0 -0
- /package/dist/multi/{991.app-81fc0bb26fd1b73b22f9.js → 991.app-b491577c193a7caf8c74.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/web-classic",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "The static files for Allure Classic Report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"IE 11"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@allurereport/charts-api": "3.0
|
|
35
|
-
"@allurereport/core-api": "3.0
|
|
36
|
-
"@allurereport/web-commons": "3.0
|
|
37
|
-
"@allurereport/web-components": "3.0
|
|
38
|
-
"@preact/signals": "^
|
|
34
|
+
"@allurereport/charts-api": "3.1.0",
|
|
35
|
+
"@allurereport/core-api": "3.1.0",
|
|
36
|
+
"@allurereport/web-commons": "3.1.0",
|
|
37
|
+
"@allurereport/web-components": "3.1.0",
|
|
38
|
+
"@preact/signals": "^2.6.1",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"d3-shape": "^3.2.0",
|
|
41
41
|
"i18next": "^24.0.2",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.layout {
|
|
2
2
|
margin: auto;
|
|
3
|
-
//padding: 12px 32px;
|
|
4
3
|
background: var(--bg-base-primary);
|
|
5
4
|
color: var(--on-text-primary);
|
|
6
5
|
font-size: 14px;
|
|
@@ -11,10 +10,8 @@
|
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
.wrapper {
|
|
14
|
-
//max-width: 920px;
|
|
15
13
|
width: 100%;
|
|
16
14
|
flex-direction: column;
|
|
17
|
-
//margin: auto;
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
.content {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
4
4
|
import { ChartType } from "@allurereport/charts-api";
|
|
5
5
|
import type { UIChartData } from "@allurereport/web-commons";
|
|
6
|
+
import { themeStore } from "@allurereport/web-commons";
|
|
6
7
|
import {
|
|
7
8
|
Grid,
|
|
8
9
|
GridItem,
|
|
@@ -12,14 +13,15 @@ import {
|
|
|
12
13
|
ThemeProvider,
|
|
13
14
|
TreeMapChartWidget,
|
|
14
15
|
} from "@allurereport/web-components";
|
|
16
|
+
import { computed } from "@preact/signals";
|
|
15
17
|
import { useEffect } from "preact/hooks";
|
|
16
|
-
import {
|
|
18
|
+
import { useI18n } from "@/stores";
|
|
17
19
|
import { chartsStore, fetchChartsData } from "@/stores/charts";
|
|
18
20
|
import * as styles from "./Overview.module.scss";
|
|
19
21
|
|
|
20
22
|
const getChartWidgetByType = (
|
|
21
23
|
chartData: UIChartData,
|
|
22
|
-
{
|
|
24
|
+
{ empty }: Record<string, (key: string, options?: any) => string>,
|
|
23
25
|
) => {
|
|
24
26
|
switch (chartData.type) {
|
|
25
27
|
case ChartType.CoverageDiff: {
|
|
@@ -65,6 +67,8 @@ const getChartWidgetByType = (
|
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
69
|
|
|
70
|
+
const currentTheme = computed(() => themeStore.value.current);
|
|
71
|
+
|
|
68
72
|
const Overview = () => {
|
|
69
73
|
const { t } = useI18n("charts");
|
|
70
74
|
const { t: empty } = useI18n("empty");
|
|
@@ -74,7 +78,7 @@ const Overview = () => {
|
|
|
74
78
|
}, []);
|
|
75
79
|
|
|
76
80
|
return (
|
|
77
|
-
<ThemeProvider theme={
|
|
81
|
+
<ThemeProvider theme={currentTheme.value}>
|
|
78
82
|
<Loadable
|
|
79
83
|
source={chartsStore}
|
|
80
84
|
renderLoader={() => <PageLoader />}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { themeStore, toggleUserTheme } from "@allurereport/web-commons";
|
|
2
|
+
import { ThemeButton as UIThemeButton } from "@allurereport/web-components";
|
|
3
|
+
import { computed } from "@preact/signals";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
const theme = themeStore.value;
|
|
7
|
-
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
getTheme();
|
|
10
|
-
}, []);
|
|
5
|
+
const selectedTheme = computed(() => themeStore.value.selected);
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onClick={toggleTheme}
|
|
15
|
-
style="ghost"
|
|
16
|
-
icon={theme === "light" ? allureIcons.lineShapesMoon : allureIcons.lineShapesSun}
|
|
17
|
-
size="s"
|
|
18
|
-
/>
|
|
19
|
-
);
|
|
7
|
+
export const ThemeButton = () => {
|
|
8
|
+
return <UIThemeButton theme={selectedTheme.value} toggleTheme={toggleUserTheme} />;
|
|
20
9
|
};
|
package/src/index.html
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<link
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
<script>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<!-- Inline favicon for single single-file build -->
|
|
6
|
+
<link
|
|
7
|
+
rel="icon"
|
|
8
|
+
href="data:image/svg+xml,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.232 4.662a3.6 3.6 0 0 1 5.09.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.981-4.61-2.587-6.24a3.6 3.6 0 0 1 .035-5.09Z' fill='url(%23a)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.392 3.6a3.6 3.6 0 0 1 3.6-3.6c4.41 0 8.401 1.807 11.296 4.662a3.6 3.6 0 1 1-5.056 5.126C20.602 8.18 18.398 7.2 15.992 7.2a3.6 3.6 0 0 1-3.6-3.6Z' fill='url(%23b)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 15.992C0 7.157 7.157 0 15.992 0a3.6 3.6 0 0 1 0 7.2A8.789 8.789 0 0 0 7.2 15.992c0 2.406.981 4.61 2.588 6.24a3.6 3.6 0 0 1-5.126 5.056C1.807 24.393 0 20.402 0 15.992Z' fill='url(%23c)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.661 22.232a3.6 3.6 0 0 1 5.091-.035c1.63 1.606 3.834 2.587 6.24 2.587a3.6 3.6 0 0 1 0 7.2c-4.41 0-8.401-1.807-11.295-4.661a3.6 3.6 0 0 1-.036-5.091Z' fill='url(%23d)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.384 12.392a3.6 3.6 0 0 1 3.6 3.6c0 8.835-7.157 15.992-15.992 15.992a3.6 3.6 0 0 1 0-7.2 8.789 8.789 0 0 0 8.792-8.792 3.6 3.6 0 0 1 3.6-3.6Z' fill='url(%23e)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.385 12.392a3.6 3.6 0 0 1 3.6 3.6v12.392a3.6 3.6 0 0 1-7.2 0V15.992a3.6 3.6 0 0 1 3.6-3.6Z' fill='url(%23f)'/%3E%3Cg clip-path='url(%23g)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.232 4.662a3.6 3.6 0 0 1 5.091.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.982-4.61-2.588-6.24a3.6 3.6 0 0 1 .035-5.09Z' fill='url(%23h)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='a' x1='26.4' y1='9.6' x2='28.8' y2='15' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237E22CE'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='26.8' y1='9.4' x2='17.8' y2='3.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EF4444'/%3E%3Cstop offset='1' stop-color='%23DC2626'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='3.6' y1='14' x2='5.4' y2='24.8' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2322C55E'/%3E%3Cstop offset='1' stop-color='%2315803D'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' x1='4.8' y1='22.2' x2='14.4' y2='29.2' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2394A3B8'/%3E%3Cstop offset='.958' stop-color='%2364748B'/%3E%3Cstop offset='1' stop-color='%2364748B'/%3E%3C/linearGradient%3E%3ClinearGradient id='e' x1='28.4' y1='22.173' x2='22.188' y2='28.384' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23D97706'/%3E%3Cstop offset='1' stop-color='%23FBBF24'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='29.2' y1='54.4' x2='30.626' y2='54.256' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23FBBF24'/%3E%3Cstop offset='1' stop-color='%23FBBF24'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='26.4' y1='9.6' x2='28.8' y2='15' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237E22CE'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3CclipPath id='g'%3E%3Cpath fill='%23fff' transform='translate(24.8 12)' d='M0 0h7.2v8H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E"
|
|
9
|
+
/>
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
|
+
<title>Allure Report</title>
|
|
12
|
+
<script>
|
|
13
|
+
window.allureReportOptions = {
|
|
14
|
+
reportName: "Allure Classic Report (Dev)",
|
|
15
|
+
logo: "/data/logo.jpg",
|
|
16
|
+
theme: "light",
|
|
17
|
+
reportLanguage: "ru",
|
|
18
|
+
createdAt: 1731513697651,
|
|
19
|
+
groupBy: "suite",
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
<div id="app"></div>
|
|
25
|
+
<script></script>
|
|
26
|
+
<script>
|
|
27
|
+
window.allure = window.allure || {};
|
|
28
|
+
</script>
|
|
29
|
+
<script>
|
|
30
|
+
const { origin, pathname } = window.location;
|
|
31
|
+
const url = new URL(pathname, origin);
|
|
32
|
+
const baseEl = document.createElement("base");
|
|
21
33
|
|
|
22
|
-
|
|
34
|
+
baseEl.href = url.toString();
|
|
23
35
|
|
|
24
|
-
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
reportLanguage: "ru",
|
|
32
|
-
createdAt: 1731513697651,
|
|
33
|
-
groupBy: "suite",
|
|
34
|
-
};
|
|
35
|
-
</script>
|
|
36
|
-
<script async>
|
|
37
|
-
window.allureReportDataReady = true;
|
|
38
|
-
</script>
|
|
39
|
-
</body>
|
|
36
|
+
window.document.head.appendChild(baseEl);
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<script async>
|
|
40
|
+
window.allureReportDataReady = true;
|
|
41
|
+
</script>
|
|
42
|
+
</body>
|
|
40
43
|
</html>
|
package/src/index.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import Packages from "@/components/Packages";
|
|
|
12
12
|
import Suites from "@/components/Suites";
|
|
13
13
|
import { TestResultView } from "@/components/TestResultView";
|
|
14
14
|
import Timeline from "@/components/Timeline";
|
|
15
|
-
import { currentLocale, getLocale
|
|
15
|
+
import { currentLocale, getLocale } from "@/stores";
|
|
16
16
|
import { handleHashChange, route } from "@/stores/router";
|
|
17
17
|
|
|
18
18
|
const tabComponents = {
|
|
@@ -28,7 +28,6 @@ const tabComponents = {
|
|
|
28
28
|
|
|
29
29
|
const App = () => {
|
|
30
30
|
useEffect(() => {
|
|
31
|
-
getTheme();
|
|
32
31
|
getLocale();
|
|
33
32
|
handleHashChange();
|
|
34
33
|
}, []);
|
package/src/stores/index.ts
CHANGED
package/src/utils/treeFilters.ts
CHANGED