@allurereport/web-summary 3.0.0-beta.24 → 3.0.0-beta.26
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/app-8bb173292069c2824052.js +2 -0
- package/dist/manifest.json +1 -1
- package/package.json +4 -4
- package/src/assets/scss/theme.scss +12 -0
- package/src/index.tsx +25 -5
- package/dist/app-deb00dfc75698f63582e.js +0 -2
- package/src/components/MetadataRow/MetadataItem.tsx +0 -56
- package/src/components/MetadataRow/index.tsx +0 -26
- package/src/components/MetadataRow/styles.scss +0 -120
- package/src/components/ReportCard/index.tsx +0 -125
- package/src/components/ReportCard/styles.scss +0 -64
- /package/dist/{app-deb00dfc75698f63582e.js.LICENSE.txt → app-8bb173292069c2824052.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/web-summary",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.26",
|
|
4
4
|
"description": "The static files for Allure Report Summary",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"IE 11"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
31
|
-
"@allurereport/web-commons": "3.0.0-beta.
|
|
32
|
-
"@allurereport/web-components": "3.0.0-beta.
|
|
30
|
+
"@allurereport/core-api": "3.0.0-beta.26",
|
|
31
|
+
"@allurereport/web-commons": "3.0.0-beta.26",
|
|
32
|
+
"@allurereport/web-components": "3.0.0-beta.26",
|
|
33
33
|
"@preact/signals": "^1.3.0",
|
|
34
34
|
"clsx": "^2.1.1",
|
|
35
35
|
"i18next": "^24.0.2",
|
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
--on-support-capella: var(--on-support-capella-day);
|
|
46
46
|
--on-support-castor: var(--on-support-castor-day);
|
|
47
47
|
--on-support-sirius: var(--on-support-sirius-day);
|
|
48
|
+
--on-support-rau: var(--rau-day-darken-3);
|
|
49
|
+
--on-support-mirach: var(--mirach-day-darken-3);
|
|
50
|
+
--on-support-rigel: var(--rigel-day-darken-3);
|
|
51
|
+
--on-support-antares: var(--antares-day-darken-3);
|
|
52
|
+
--on-support-betelgeuse: var(--betelgeuse-day-darken-3);
|
|
53
|
+
--on-support-skat: var(--skat-day-darken-3);
|
|
48
54
|
--on-text-hint: var(--on-text-hint-day);
|
|
49
55
|
--on-text-primary: var(--on-text-primary-day);
|
|
50
56
|
--on-text-secondary: var(--on-text-secondary-day);
|
|
@@ -110,6 +116,12 @@
|
|
|
110
116
|
--on-support-castor-medium: var(--on-support-castor-medium-night);
|
|
111
117
|
--on-support-castor: var(--on-support-castor-night);
|
|
112
118
|
--on-support-sirius: var(--on-support-sirius-night);
|
|
119
|
+
--on-support-rau: var(--rau-night-base);
|
|
120
|
+
--on-support-mirach: var(--mirach-night-base);
|
|
121
|
+
--on-support-rigel: var(--rigel-night-base);
|
|
122
|
+
--on-support-antares: var(--antares-night-base);
|
|
123
|
+
--on-support-betelgeuse: var(--betelgeuse-night-base);
|
|
124
|
+
--on-support-skat: var(--skat-night-base);
|
|
113
125
|
--on-text-hint: var(--on-text-hint-night);
|
|
114
126
|
--on-text-primary: var(--on-text-primary-night);
|
|
115
127
|
--on-text-secondary: var(--on-text-secondary-night);
|
package/src/index.tsx
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
import { LANG_LOCALE } from "@allurereport/web-commons";
|
|
2
|
+
import { ReportSummaryCard } from "@allurereport/web-components";
|
|
1
3
|
import "@allurereport/web-components/index.css";
|
|
4
|
+
import { computed } from "@preact/signals";
|
|
2
5
|
import { render } from "preact";
|
|
3
6
|
import { useEffect, useState } from "preact/hooks";
|
|
4
7
|
import "@/assets/scss/index.scss";
|
|
5
8
|
import { EmptyPlaceholder } from "@/components/EmptyPlaceholder";
|
|
6
9
|
import { Footer } from "@/components/Footer";
|
|
7
10
|
import { Header } from "@/components/Header";
|
|
8
|
-
import {
|
|
9
|
-
import { getLocale, getTheme, useI18n, waitForI18next } from "@/stores";
|
|
11
|
+
import { currentLocale, getLocale, getTheme, useI18n, waitForI18next } from "@/stores";
|
|
10
12
|
import * as styles from "./styles.scss";
|
|
11
13
|
|
|
14
|
+
export const currentLocaleIso = computed(() => LANG_LOCALE[currentLocale.value]?.iso ?? LANG_LOCALE.en.iso);
|
|
15
|
+
|
|
12
16
|
const App = () => {
|
|
13
17
|
const [loaded, setLoaded] = useState(false);
|
|
14
18
|
const summaries = window.reportSummaries;
|
|
15
|
-
const { t } = useI18n("empty");
|
|
19
|
+
const { t: tEmpty } = useI18n("empty");
|
|
20
|
+
const { t: tSummary } = useI18n("summary");
|
|
16
21
|
|
|
17
22
|
useEffect(() => {
|
|
18
23
|
getLocale();
|
|
@@ -30,13 +35,28 @@ const App = () => {
|
|
|
30
35
|
<div className={styles.container}>
|
|
31
36
|
<Header />
|
|
32
37
|
<main>
|
|
33
|
-
{!summaries.length && <EmptyPlaceholder label={
|
|
38
|
+
{!summaries.length && <EmptyPlaceholder label={tEmpty("no-reports")} />}
|
|
34
39
|
{!!summaries.length && (
|
|
35
40
|
<ul className={styles["summary-showcase"]}>
|
|
36
41
|
{summaries.map((summary: any) => {
|
|
37
42
|
return (
|
|
38
43
|
<li key={summary.output}>
|
|
39
|
-
<
|
|
44
|
+
<ReportSummaryCard
|
|
45
|
+
localeIso={currentLocaleIso.value}
|
|
46
|
+
locales={{
|
|
47
|
+
failed: tSummary("failed"),
|
|
48
|
+
broken: tSummary("broken"),
|
|
49
|
+
passed: tSummary("passed"),
|
|
50
|
+
skipped: tSummary("skipped"),
|
|
51
|
+
unknown: tSummary("unknown"),
|
|
52
|
+
in: tSummary("in"),
|
|
53
|
+
new: tSummary("new"),
|
|
54
|
+
retry: tSummary("retry"),
|
|
55
|
+
flaky: tSummary("flaky"),
|
|
56
|
+
total: tSummary("total"),
|
|
57
|
+
}}
|
|
58
|
+
{...summary}
|
|
59
|
+
/>
|
|
40
60
|
</li>
|
|
41
61
|
);
|
|
42
62
|
})}
|