@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.
Files changed (38) hide show
  1. package/dist/multi/app-b491577c193a7caf8c74.js +2 -0
  2. package/dist/multi/{app-81fc0bb26fd1b73b22f9.js.LICENSE.txt → app-b491577c193a7caf8c74.js.LICENSE.txt} +7 -0
  3. package/dist/multi/manifest.json +22 -22
  4. package/dist/multi/{styles-02faf4bb6ebabe212265.css → styles-88c7772c6bdc61325e60.css} +1 -1
  5. package/dist/single/app-0a173e3f1e0c5c003891.js +2 -0
  6. package/dist/single/{app-997b57d6b8885a4f88c7.js.LICENSE.txt → app-0a173e3f1e0c5c003891.js.LICENSE.txt} +7 -0
  7. package/dist/single/manifest.json +1 -1
  8. package/package.json +6 -6
  9. package/src/components/BaseLayout/styles.scss +0 -3
  10. package/src/components/Overview/index.tsx +7 -3
  11. package/src/components/ThemeButton/ThemeButton.tsx +6 -17
  12. package/src/index.html +39 -36
  13. package/src/index.tsx +1 -2
  14. package/src/stores/index.ts +0 -1
  15. package/src/utils/treeFilters.ts +1 -0
  16. package/dist/multi/app-81fc0bb26fd1b73b22f9.js +0 -2
  17. package/dist/single/app-997b57d6b8885a4f88c7.js +0 -2
  18. package/src/stores/theme.ts +0 -30
  19. /package/dist/multi/{10.app-81fc0bb26fd1b73b22f9.js → 10.app-b491577c193a7caf8c74.js} +0 -0
  20. /package/dist/multi/{222.app-81fc0bb26fd1b73b22f9.js → 222.app-b491577c193a7caf8c74.js} +0 -0
  21. /package/dist/multi/{26.app-81fc0bb26fd1b73b22f9.js → 26.app-b491577c193a7caf8c74.js} +0 -0
  22. /package/dist/multi/{302.app-81fc0bb26fd1b73b22f9.js → 302.app-b491577c193a7caf8c74.js} +0 -0
  23. /package/dist/multi/{304.app-81fc0bb26fd1b73b22f9.js → 304.app-b491577c193a7caf8c74.js} +0 -0
  24. /package/dist/multi/{369.app-81fc0bb26fd1b73b22f9.js → 369.app-b491577c193a7caf8c74.js} +0 -0
  25. /package/dist/multi/{389.app-81fc0bb26fd1b73b22f9.js → 389.app-b491577c193a7caf8c74.js} +0 -0
  26. /package/dist/multi/{498.app-81fc0bb26fd1b73b22f9.js → 498.app-b491577c193a7caf8c74.js} +0 -0
  27. /package/dist/multi/{60.app-81fc0bb26fd1b73b22f9.js → 60.app-b491577c193a7caf8c74.js} +0 -0
  28. /package/dist/multi/{643.app-81fc0bb26fd1b73b22f9.js → 643.app-b491577c193a7caf8c74.js} +0 -0
  29. /package/dist/multi/{671.app-81fc0bb26fd1b73b22f9.js → 671.app-b491577c193a7caf8c74.js} +0 -0
  30. /package/dist/multi/{725.app-81fc0bb26fd1b73b22f9.js → 725.app-b491577c193a7caf8c74.js} +0 -0
  31. /package/dist/multi/{770.app-81fc0bb26fd1b73b22f9.js → 770.app-b491577c193a7caf8c74.js} +0 -0
  32. /package/dist/multi/{848.app-81fc0bb26fd1b73b22f9.js → 848.app-b491577c193a7caf8c74.js} +0 -0
  33. /package/dist/multi/{853.app-81fc0bb26fd1b73b22f9.js → 853.app-b491577c193a7caf8c74.js} +0 -0
  34. /package/dist/multi/{872.app-81fc0bb26fd1b73b22f9.js → 872.app-b491577c193a7caf8c74.js} +0 -0
  35. /package/dist/multi/{895.app-81fc0bb26fd1b73b22f9.js → 895.app-b491577c193a7caf8c74.js} +0 -0
  36. /package/dist/multi/{920.app-81fc0bb26fd1b73b22f9.js → 920.app-b491577c193a7caf8c74.js} +0 -0
  37. /package/dist/multi/{979.app-81fc0bb26fd1b73b22f9.js → 979.app-b491577c193a7caf8c74.js} +0 -0
  38. /package/dist/multi/{991.app-81fc0bb26fd1b73b22f9.js → 991.app-b491577c193a7caf8c74.js} +0 -0
@@ -23,3 +23,10 @@
23
23
  * @license BSD-3-Clause
24
24
  * @version 10.1.6
25
25
  */
26
+
27
+ /**!
28
+ * Sortable 1.15.6
29
+ * @author RubaXa <trash@rubaxa.org>
30
+ * @author owenm <owen23355@gmail.com>
31
+ * @license MIT
32
+ */
@@ -1,3 +1,3 @@
1
1
  {
2
- "main.js": "app-997b57d6b8885a4f88c7.js"
2
+ "main.js": "app-0a173e3f1e0c5c003891.js"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/web-classic",
3
- "version": "3.0.1",
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.1",
35
- "@allurereport/core-api": "3.0.1",
36
- "@allurereport/web-commons": "3.0.1",
37
- "@allurereport/web-components": "3.0.1",
38
- "@preact/signals": "^1.3.0",
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 { themeStore, useI18n } from "@/stores";
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
- { t, empty }: Record<string, (key: string, options?: any) => string>,
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={themeStore.value}>
81
+ <ThemeProvider theme={currentTheme.value}>
78
82
  <Loadable
79
83
  source={chartsStore}
80
84
  renderLoader={() => <PageLoader />}
@@ -1,20 +1,9 @@
1
- import { IconButton, allureIcons } from "@allurereport/web-components";
2
- import { useEffect } from "preact/hooks";
3
- import { getTheme, themeStore, toggleTheme } from "@/stores/theme";
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
- export const ThemeButton = () => {
6
- const theme = themeStore.value;
7
-
8
- useEffect(() => {
9
- getTheme();
10
- }, []);
5
+ const selectedTheme = computed(() => themeStore.value.selected);
11
6
 
12
- return (
13
- <IconButton
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
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <!-- Inline favicon for single single-file build -->
6
- <link rel="icon" 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" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>Allure Report</title>
9
- </head>
10
- <body>
11
- <div id="app"></div>
12
- <script>
13
- </script>
14
- <script>
15
- window.allure = window.allure || {};
16
- </script>
17
- <script>
18
- const { origin, pathname } = window.location;
19
- const url = new URL(pathname, origin);
20
- const baseEl = document.createElement("base");
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
- baseEl.href = url.toString();
34
+ baseEl.href = url.toString();
23
35
 
24
- window.document.head.appendChild(baseEl);
25
- </script>
26
- <script>
27
- window.allureReportOptions = {
28
- reportName: "Allure Classic Report (Dev)",
29
- logo: "/data/logo.jpg",
30
- theme: "light",
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, getTheme } from "@/stores";
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
  }, []);
@@ -1,4 +1,3 @@
1
- export * from "./theme";
2
1
  export type * from "./types";
3
2
  export * from "./stats";
4
3
  export * from "./locale";
@@ -110,6 +110,7 @@ export const createRecursiveTree = (payload: {
110
110
  trees.forEach((rt: ClassicRecursiveTree) => {
111
111
  if (rt.statistic) {
112
112
  const additional: Statistic = rt.statistic;
113
+
113
114
  mergeStatistic(statistic, additional);
114
115
  }
115
116
  });