@allurereport/web-summary 3.0.1 → 3.2.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.
@@ -6,3 +6,10 @@
6
6
  * @namespace
7
7
  * @public
8
8
  */
9
+
10
+ /**!
11
+ * Sortable 1.15.6
12
+ * @author RubaXa <trash@rubaxa.org>
13
+ * @author owenm <owen23355@gmail.com>
14
+ * @license MIT
15
+ */
@@ -1,3 +1,3 @@
1
1
  {
2
- "main.js": "app-47bd4545267915e75245.js"
2
+ "main.js": "app-4049d48906080b36ee39.js"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/web-summary",
3
- "version": "3.0.1",
3
+ "version": "3.2.0",
4
4
  "description": "The static files for Allure Report Summary",
5
5
  "keywords": [
6
6
  "allure",
@@ -27,14 +27,13 @@
27
27
  "IE 11"
28
28
  ],
29
29
  "dependencies": {
30
- "@allurereport/core-api": "3.0.1",
31
- "@allurereport/web-commons": "3.0.1",
32
- "@allurereport/web-components": "3.0.1",
33
- "@preact/signals": "^1.3.0",
30
+ "@allurereport/core-api": "3.2.0",
31
+ "@allurereport/web-commons": "3.2.0",
32
+ "@allurereport/web-components": "3.2.0",
33
+ "@preact/signals": "^2.6.1",
34
34
  "clsx": "^2.1.1",
35
35
  "i18next": "^24.0.2",
36
- "preact": "^10.28.2",
37
- "reset.css": "^2.0.2"
36
+ "preact": "^10.28.2"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@babel/core": "^7.27.4",
@@ -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
  };
@@ -1,5 +1,6 @@
1
1
  export const AVAILABLE_LOCALES = [
2
2
  "en",
3
+ "en-iso",
3
4
  "ru",
4
5
  "pl",
5
6
  "es",
@@ -31,92 +32,97 @@ export const LANG_LOCALE: Record<
31
32
  iso: string;
32
33
  }
33
34
  > = {
34
- en: {
35
+ "en": {
35
36
  short: "Eng",
36
37
  full: "English",
37
38
  iso: "en-US",
38
39
  },
39
- ru: {
40
+ "en-iso": {
41
+ short: "En ISO",
42
+ full: "English (ISO-8601)",
43
+ iso: "en-CA",
44
+ },
45
+ "ru": {
40
46
  short: "Ру",
41
47
  full: "Русский",
42
48
  iso: "ru-RU",
43
49
  },
44
- pl: {
50
+ "pl": {
45
51
  short: "Pl",
46
52
  full: "Polski",
47
53
  iso: "pl-PL",
48
54
  },
49
- es: {
55
+ "es": {
50
56
  short: "Es",
51
57
  full: "Español",
52
58
  iso: "es-ES",
53
59
  },
54
- pt: {
60
+ "pt": {
55
61
  short: "Pt",
56
62
  full: "Português",
57
63
  iso: "pt-PT",
58
64
  },
59
- de: {
65
+ "de": {
60
66
  short: "De",
61
67
  full: "Deutsch",
62
68
  iso: "de-DE",
63
69
  },
64
- hy: {
70
+ "hy": {
65
71
  short: "Hy",
66
72
  full: "Հայերեն",
67
73
  iso: "hy-AM",
68
74
  },
69
- az: {
75
+ "az": {
70
76
  short: "Az",
71
77
  full: "Azərbaycan",
72
78
  iso: "az-AZ",
73
79
  },
74
- fr: {
80
+ "fr": {
75
81
  short: "Fr",
76
82
  full: "Français",
77
83
  iso: "fr-FR",
78
84
  },
79
- it: {
85
+ "it": {
80
86
  short: "It",
81
87
  full: "Italiano",
82
88
  iso: "it-IT",
83
89
  },
84
- ja: {
90
+ "ja": {
85
91
  short: "Ja",
86
92
  full: "日本語",
87
93
  iso: "ja-JP",
88
94
  },
89
- he: {
95
+ "he": {
90
96
  short: "He",
91
97
  full: "עברית",
92
98
  iso: "he-IL",
93
99
  },
94
- ka: {
100
+ "ka": {
95
101
  short: "Ka",
96
102
  full: "ქართული",
97
103
  iso: "ka-GE",
98
104
  },
99
- kr: {
105
+ "kr": {
100
106
  short: "Kr",
101
107
  full: "한국어",
102
108
  iso: "kr-KR",
103
109
  },
104
- nl: {
110
+ "nl": {
105
111
  short: "Nl",
106
112
  full: "Nederlands",
107
113
  iso: "nl-NL",
108
114
  },
109
- sv: {
115
+ "sv": {
110
116
  short: "Sv",
111
117
  full: "Svenska",
112
118
  iso: "sv-SE",
113
119
  },
114
- tr: {
120
+ "tr": {
115
121
  short: "Tr",
116
122
  full: "Türkçe",
117
123
  iso: "tr-TR",
118
124
  },
119
- zh: {
125
+ "zh": {
120
126
  short: "Zh",
121
127
  full: "中文",
122
128
  iso: "zh-CN",
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "keçdi",
4
- "failed": "uğursuz",
5
- "broken": "sınıq",
6
- "skipped": "keçildi",
7
- "unknown": "naməlum",
3
+ "status": {
4
+ "passed": "keçdi",
5
+ "failed": "uğursuz",
6
+ "broken": "sınıq",
7
+ "skipped": "keçildi",
8
+ "unknown": "naməlum"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "cəmi",
9
12
  "in": "içində",
10
- "new": "yeni testlər",
11
- "flaky": "qeyri-sabit testlər",
12
- "retry": "təkrar testlər"
13
+ "metadata": {
14
+ "new_zero": "Yeni test yoxdur",
15
+ "new_one": "{{count}} yeni test",
16
+ "new_other": "{{count}} yeni test",
17
+ "flaky_zero": "Qeyri-sabit test yoxdur",
18
+ "flaky_one": "{{count}} qeyri-sabit test",
19
+ "flaky_other": "{{count}} qeyri-sabit test",
20
+ "retry_zero": "Təkrar test yoxdur",
21
+ "retry_one": "{{count}} təkrar test",
22
+ "retry_other": "{{count}} təkrar test"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "saat"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "Hesabat tapılmadı"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "bestanden",
4
- "failed": "fehlgeschlagen",
5
- "broken": "defekt",
6
- "skipped": "übersprungen",
7
- "unknown": "unbekannt",
3
+ "status": {
4
+ "passed": "bestanden",
5
+ "failed": "fehlgeschlagen",
6
+ "broken": "defekt",
7
+ "skipped": "übersprungen",
8
+ "unknown": "unbekannt"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "gesamt",
9
12
  "in": "in",
10
- "new": "neue Tests",
11
- "flaky": "instabile Tests",
12
- "retry": "wiederholte Tests"
13
+ "metadata": {
14
+ "new_zero": "Keine neuen Tests",
15
+ "new_one": "{{count}} neuer Test",
16
+ "new_other": "{{count}} neue Tests",
17
+ "flaky_zero": "Keine instabilen Tests",
18
+ "flaky_one": "{{count}} instabiler Test",
19
+ "flaky_other": "{{count}} instabile Tests",
20
+ "retry_zero": "Keine wiederholten Tests",
21
+ "retry_one": "{{count}} wiederholter Test",
22
+ "retry_other": "{{count}} wiederholte Tests"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "um"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "Keine Berichte gefunden"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "passed",
4
- "failed": "failed",
5
- "broken": "broken",
6
- "skipped": "skipped",
7
- "unknown": "unknown",
8
- "total": "total",
3
+ "status": {
4
+ "passed": "passed",
5
+ "failed": "failed",
6
+ "broken": "broken",
7
+ "skipped": "skipped",
8
+ "unknown": "unknown"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
11
+ "total": "Total",
9
12
  "in": "in",
10
- "new": "new tests",
11
- "flaky": "flaky tests",
12
- "retry": "retry tests"
13
+ "metadata": {
14
+ "new_zero": "No new tests",
15
+ "new_one": "{{count}} new test",
16
+ "new_other": "{{count}} new tests",
17
+ "flaky_zero": "No flaky tests",
18
+ "flaky_one": "{{count}} flaky test",
19
+ "flaky_other": "{{count}} flaky tests",
20
+ "retry_zero": "No retry tests",
21
+ "retry_one": "{{count}} retry test",
22
+ "retry_other": "{{count}} retry tests"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "at"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "No reports found"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "aprobado",
4
- "failed": "fallido",
5
- "broken": "roto",
6
- "skipped": "omitido",
7
- "unknown": "desconocido",
3
+ "status": {
4
+ "passed": "aprobado",
5
+ "failed": "fallido",
6
+ "broken": "roto",
7
+ "skipped": "omitido",
8
+ "unknown": "desconocido"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "total",
9
12
  "in": "en",
10
- "new": "nuevos tests",
11
- "flaky": "tests inestables",
12
- "retry": "tests repetidos"
13
+ "metadata": {
14
+ "new_zero": "No hay tests nuevos",
15
+ "new_one": "{{count}} test nuevo",
16
+ "new_other": "{{count}} tests nuevos",
17
+ "flaky_zero": "No hay tests inestables",
18
+ "flaky_one": "{{count}} test inestable",
19
+ "flaky_other": "{{count}} tests inestables",
20
+ "retry_zero": "No hay tests repetidos",
21
+ "retry_one": "{{count}} test repetido",
22
+ "retry_other": "{{count}} tests repetidos"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "a las"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "No se encontraron informes"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "réussi",
4
- "failed": "échoué",
5
- "broken": "cassé",
6
- "skipped": "ignoré",
7
- "unknown": "inconnu",
3
+ "status": {
4
+ "passed": "réussi",
5
+ "failed": "échoué",
6
+ "broken": "cassé",
7
+ "skipped": "ignoré",
8
+ "unknown": "inconnu"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "total",
9
12
  "in": "dans",
10
- "new": "nouveaux tests",
11
- "flaky": "tests instables",
12
- "retry": "tests répétés"
13
+ "metadata": {
14
+ "new_zero": "Aucun nouveau test",
15
+ "new_one": "{{count}} nouveau test",
16
+ "new_other": "{{count}} nouveaux tests",
17
+ "flaky_zero": "Aucun test instable",
18
+ "flaky_one": "{{count}} test instable",
19
+ "flaky_other": "{{count}} tests instables",
20
+ "retry_zero": "Aucun test répété",
21
+ "retry_one": "{{count}} test répété",
22
+ "retry_other": "{{count}} tests répétés"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "à"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "Aucun rapport trouvé"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "עבר",
4
- "failed": "נכשל",
5
- "broken": "שבור",
6
- "skipped": "דלג",
7
- "unknown": "לא ידוע",
3
+ "status": {
4
+ "passed": "עבר",
5
+ "failed": "נכשל",
6
+ "broken": "שבור",
7
+ "skipped": "דלג",
8
+ "unknown": "לא ידוע"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "סה\"כ",
9
12
  "in": "ב-",
10
- "new": "בדיקות חדשות",
11
- "flaky": "בדיקות לא יציבות",
12
- "retry": "בדיקות חוזרות"
13
+ "metadata": {
14
+ "new_zero": "אין בדיקות חדשות",
15
+ "new_one": "{{count}} בדיקה חדשה",
16
+ "new_other": "{{count}} בדיקות חדשות",
17
+ "flaky_zero": "אין בדיקות לא יציבות",
18
+ "flaky_one": "{{count}} בדיקה לא יציבה",
19
+ "flaky_other": "{{count}} בדיקות לא יציבות",
20
+ "retry_zero": "אין בדיקות חוזרות",
21
+ "retry_one": "{{count}} בדיקה חוזרת",
22
+ "retry_other": "{{count}} בדיקות חוזרות"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "ב-"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "לא נמצאו דוחות"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "անցած",
4
- "failed": "ձախողված",
5
- "broken": "կոտրված",
6
- "skipped": "բաց թողնված",
7
- "unknown": "անհայտ",
3
+ "status": {
4
+ "passed": "անցած",
5
+ "failed": "ձախողված",
6
+ "broken": "կոտրված",
7
+ "skipped": "բաց թողնված",
8
+ "unknown": "անհայտ"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "ընդհանուր",
9
12
  "in": "մեջ",
10
- "new": "նոր թեստեր",
11
- "flaky": "անկայուն թեստեր",
12
- "retry": "կրկնվող թեստեր"
13
+ "metadata": {
14
+ "new_zero": "Նոր թեստեր չկան",
15
+ "new_one": "{{count}} նոր թեստ",
16
+ "new_other": "{{count}} նոր թեստ",
17
+ "flaky_zero": "Անկայուն թեստեր չկան",
18
+ "flaky_one": "{{count}} անկայուն թեստ",
19
+ "flaky_other": "{{count}} անկայուն թեստ",
20
+ "retry_zero": "Կրկնվող թեստեր չկան",
21
+ "retry_one": "{{count}} կրկնվող թեստ",
22
+ "retry_other": "{{count}} կրկնվող թեստ"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "ժամը"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "Ոչ մի հաշվետվություն չի գտնվել"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "superato",
4
- "failed": "fallito",
5
- "broken": "rotto",
6
- "skipped": "saltato",
7
- "unknown": "sconosciuto",
3
+ "status": {
4
+ "passed": "superato",
5
+ "failed": "fallito",
6
+ "broken": "rotto",
7
+ "skipped": "saltato",
8
+ "unknown": "sconosciuto"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "totale",
9
12
  "in": "in",
10
- "new": "nuovi test",
11
- "flaky": "test instabili",
12
- "retry": "test ripetuti"
13
+ "metadata": {
14
+ "new_zero": "Nessun nuovo test",
15
+ "new_one": "{{count}} nuovo test",
16
+ "new_other": "{{count}} nuovi test",
17
+ "flaky_zero": "Nessun test instabile",
18
+ "flaky_one": "{{count}} test instabile",
19
+ "flaky_other": "{{count}} test instabili",
20
+ "retry_zero": "Nessun test ripetuto",
21
+ "retry_one": "{{count}} test ripetuto",
22
+ "retry_other": "{{count}} test ripetuti"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "alle"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "Nessun report trovato"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "成功",
4
- "failed": "失敗",
5
- "broken": "壊れた",
6
- "skipped": "スキップ",
7
- "unknown": "不明",
3
+ "status": {
4
+ "passed": "成功",
5
+ "failed": "失敗",
6
+ "broken": "壊れた",
7
+ "skipped": "スキップ",
8
+ "unknown": "不明"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "合計",
9
12
  "in": "中",
10
- "new": "新規テスト",
11
- "flaky": "不安定テスト",
12
- "retry": "再試行テスト"
13
+ "metadata": {
14
+ "new_zero": "新規テストなし",
15
+ "new_one": "{{count}}件の新規テスト",
16
+ "new_other": "{{count}}件の新規テスト",
17
+ "flaky_zero": "不安定テストなし",
18
+ "flaky_one": "{{count}}件の不安定テスト",
19
+ "flaky_other": "{{count}}件の不安定テスト",
20
+ "retry_zero": "再試行テストなし",
21
+ "retry_one": "{{count}}件の再試行テスト",
22
+ "retry_other": "{{count}}件の再試行テスト"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "に"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "レポートが見つかりません"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "წარმატებული",
4
- "failed": "წარუმატებელი",
5
- "broken": "დამტვრეული",
6
- "skipped": "გამოტოვებული",
7
- "unknown": "უცნობი",
3
+ "status": {
4
+ "passed": "წარმატებული",
5
+ "failed": "წარუმატებელი",
6
+ "broken": "დამტვრეული",
7
+ "skipped": "გამოტოვებული",
8
+ "unknown": "უცნობი"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "ჯამი",
9
12
  "in": "ში",
10
- "new": "ახალი ტესტები",
11
- "flaky": "არასტაბილური ტესტები",
12
- "retry": "განმეორებითი ტესტები"
13
+ "metadata": {
14
+ "new_zero": "ახალი ტესტები არ არის",
15
+ "new_one": "{{count}} ახალი ტესტი",
16
+ "new_other": "{{count}} ახალი ტესტი",
17
+ "flaky_zero": "არასტაბილური ტესტები არ არის",
18
+ "flaky_one": "{{count}} არასტაბილური ტესტი",
19
+ "flaky_other": "{{count}} არასტაბილური ტესტი",
20
+ "retry_zero": "განმეორებითი ტესტები არ არის",
21
+ "retry_one": "{{count}} განმეორებითი ტესტი",
22
+ "retry_other": "{{count}} განმეორებითი ტესტი"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "ზე"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "არ მოიძებნა არცერთი ანგარიში"
@@ -1,15 +1,29 @@
1
1
  {
2
2
  "summary": {
3
- "passed": "통과",
4
- "failed": "실패",
5
- "broken": "손상됨",
6
- "skipped": "건너뜀",
7
- "unknown": "알 수 없음",
3
+ "status": {
4
+ "passed": "통과",
5
+ "failed": "실패",
6
+ "broken": "손상됨",
7
+ "skipped": "건너뜀",
8
+ "unknown": "알 수 없음"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
8
11
  "total": "총계",
9
12
  "in": "중",
10
- "new": "새로운 테스트",
11
- "flaky": "불안정한 테스트",
12
- "retry": "재시도 테스트"
13
+ "metadata": {
14
+ "new_zero": "새로운 테스트 없음",
15
+ "new_one": "{{count}}개의 새로운 테스트",
16
+ "new_other": "{{count}}개의 새로운 테스트",
17
+ "flaky_zero": "불안정한 테스트 없음",
18
+ "flaky_one": "{{count}}개의 불안정한 테스트",
19
+ "flaky_other": "{{count}}개의 불안정한 테스트",
20
+ "retry_zero": "재시도 테스트 없음",
21
+ "retry_one": "{{count}}개의 재시도 테스트",
22
+ "retry_other": "{{count}}개의 재시도 테스트"
23
+ }
24
+ },
25
+ "ui": {
26
+ "at": "에"
13
27
  },
14
28
  "empty": {
15
29
  "no-reports": "보고서가 없습니다"