@allurereport/web-awesome 3.0.0-beta.11 → 3.0.0-beta.13
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/173.app-01ff983b.js +1 -0
- package/dist/multi/174.app-01ff983b.js +1 -0
- package/dist/multi/252.app-01ff983b.js +1 -0
- package/dist/multi/282.app-01ff983b.js +1 -0
- package/dist/multi/29.app-01ff983b.js +1 -0
- package/dist/multi/{747.app-f4b5d260.js → 416.app-01ff983b.js} +1 -1
- package/dist/multi/527.app-01ff983b.js +1 -0
- package/dist/multi/600.app-01ff983b.js +1 -0
- package/dist/multi/605.app-01ff983b.js +1 -0
- package/dist/multi/638.app-01ff983b.js +1 -0
- package/dist/multi/672.app-01ff983b.js +1 -0
- package/dist/multi/686.app-01ff983b.js +1 -0
- package/dist/multi/725.app-01ff983b.js +1 -0
- package/dist/multi/741.app-01ff983b.js +1 -0
- package/dist/multi/755.app-01ff983b.js +1 -0
- package/dist/multi/{873.app-f4b5d260.js → 894.app-01ff983b.js} +1 -1
- package/dist/multi/943.app-01ff983b.js +1 -0
- package/dist/multi/980.app-01ff983b.js +1 -0
- package/dist/multi/app-01ff983b.js +2 -0
- package/dist/multi/app-01ff983b.js.LICENSE.txt +23 -0
- package/dist/multi/manifest.json +20 -20
- package/dist/multi/{styles-f4b5d260.css → styles-01ff983b.css} +3 -3
- package/dist/single/app-607f21f7.js +2 -0
- package/dist/single/app-607f21f7.js.LICENSE.txt +23 -0
- package/dist/single/manifest.json +1 -1
- package/package.json +4 -4
- package/src/components/Header/index.tsx +2 -10
- package/src/components/HeaderControls/index.tsx +20 -0
- package/src/components/ReportBody/Filters.tsx +2 -2
- package/src/components/ReportMetadata/MetadataSummary.tsx +11 -8
- package/src/components/ReportMetadata/MetadataWithIcon.tsx +2 -2
- package/src/components/TestResult/TrEnvironmentItem/index.tsx +2 -1
- package/src/components/TestResult/TrEnvironmentsView/index.tsx +2 -2
- package/src/components/TestResult/TrHeader/index.tsx +2 -10
- package/src/components/TestResult/TrInfo/index.tsx +16 -12
- package/src/components/TestResult/TrSteps/TrAttachment.tsx +3 -2
- package/src/components/TestResult/TrSteps/TrStep.tsx +9 -4
- package/src/components/TestResult/TrSteps/styles.scss +0 -4
- package/src/components/TestResult/TrTabs/index.tsx +11 -3
- package/src/components/TestResult/TrTabs/styles.scss +0 -3
- package/src/components/Tree/index.tsx +5 -1
- package/src/index.tsx +1 -0
- package/src/{i18n/locales → locales}/az.json +2 -2
- package/src/{i18n/locales → locales}/de.json +2 -2
- package/src/{i18n/locales → locales}/en.json +4 -4
- package/src/{i18n/locales → locales}/es.json +2 -2
- package/src/{i18n/locales → locales}/fr.json +2 -2
- package/src/{i18n/locales → locales}/he.json +2 -2
- package/src/{i18n/locales → locales}/hy.json +2 -2
- package/src/{i18n/locales → locales}/it.json +2 -2
- package/src/{i18n/locales → locales}/ja.json +2 -2
- package/src/{i18n/locales → locales}/ka.json +5 -5
- package/src/{i18n/locales → locales}/kr.json +4 -4
- package/src/{i18n/locales → locales}/nl.json +2 -2
- package/src/{i18n/locales → locales}/pl.json +3 -3
- package/src/{i18n/locales → locales}/pt.json +2 -2
- package/src/{i18n/locales → locales}/ru.json +3 -3
- package/src/{i18n/locales → locales}/sv.json +2 -2
- package/src/{i18n/locales → locales}/tr.json +2 -2
- package/src/{i18n/locales → locales}/zh.json +2 -2
- package/src/stores/locale.ts +2 -3
- package/src/utils/time.ts +1 -0
- package/types.d.ts +2 -1
- package/dist/multi/141.app-f4b5d260.js +0 -1
- package/dist/multi/222.app-f4b5d260.js +0 -1
- package/dist/multi/335.app-f4b5d260.js +0 -1
- package/dist/multi/34.app-f4b5d260.js +0 -1
- package/dist/multi/349.app-f4b5d260.js +0 -1
- package/dist/multi/378.app-f4b5d260.js +0 -1
- package/dist/multi/406.app-f4b5d260.js +0 -1
- package/dist/multi/457.app-f4b5d260.js +0 -1
- package/dist/multi/53.app-f4b5d260.js +0 -1
- package/dist/multi/584.app-f4b5d260.js +0 -1
- package/dist/multi/690.app-f4b5d260.js +0 -1
- package/dist/multi/767.app-f4b5d260.js +0 -1
- package/dist/multi/816.app-f4b5d260.js +0 -1
- package/dist/multi/83.app-f4b5d260.js +0 -1
- package/dist/multi/920.app-f4b5d260.js +0 -1
- package/dist/multi/991.app-f4b5d260.js +0 -1
- package/dist/multi/app-f4b5d260.js +0 -2
- package/dist/multi/app-f4b5d260.js.LICENSE.txt +0 -8
- package/dist/single/app-b182550e.js +0 -2
- package/dist/single/app-b182550e.js.LICENSE.txt +0 -8
- package/src/components/LanguagePicker/index.tsx +0 -40
- package/src/components/ThemeButton/ThemeButton.tsx +0 -20
- package/src/i18n/constants.ts +0 -124
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { DropdownButton, Menu } from "@allurereport/web-components";
|
|
2
|
-
import { LANG_LOCALE, type LangLocale } from "@/i18n/constants";
|
|
3
|
-
import { currentLocale } from "@/stores";
|
|
4
|
-
import { setLocale } from "@/stores/locale";
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7
|
-
const langPickerOptions = Object.entries(LANG_LOCALE).map(([key, { full }]) => ({
|
|
8
|
-
key: key as LangLocale,
|
|
9
|
-
value: full,
|
|
10
|
-
}));
|
|
11
|
-
|
|
12
|
-
export const LanguagePicker = () => {
|
|
13
|
-
const locale = currentLocale.value;
|
|
14
|
-
const handleSelect = (selectedOption: LangLocale) => {
|
|
15
|
-
setLocale(selectedOption);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<Menu
|
|
20
|
-
size="s"
|
|
21
|
-
menuTrigger={({ isOpened, onClick }) => (
|
|
22
|
-
<DropdownButton
|
|
23
|
-
style="ghost"
|
|
24
|
-
size="s"
|
|
25
|
-
text={(LANG_LOCALE[locale] && LANG_LOCALE[locale].short) || LANG_LOCALE.en.short}
|
|
26
|
-
isExpanded={isOpened}
|
|
27
|
-
onClick={onClick}
|
|
28
|
-
/>
|
|
29
|
-
)}
|
|
30
|
-
>
|
|
31
|
-
<Menu.Section>
|
|
32
|
-
{langPickerOptions.map(({ key, value }) => (
|
|
33
|
-
<Menu.ItemWithCheckmark onClick={() => handleSelect(key)} key={key} isChecked={locale === key}>
|
|
34
|
-
{value}
|
|
35
|
-
</Menu.ItemWithCheckmark>
|
|
36
|
-
))}
|
|
37
|
-
</Menu.Section>
|
|
38
|
-
</Menu>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconButton, allureIcons } from "@allurereport/web-components";
|
|
2
|
-
import { useEffect } from "preact/hooks";
|
|
3
|
-
import { getTheme, themeStore, toggleTheme } from "@/stores/theme";
|
|
4
|
-
|
|
5
|
-
export const ThemeButton = () => {
|
|
6
|
-
const theme = themeStore.value;
|
|
7
|
-
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
getTheme();
|
|
10
|
-
}, []);
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<IconButton
|
|
14
|
-
onClick={toggleTheme}
|
|
15
|
-
style="ghost"
|
|
16
|
-
icon={theme === "light" ? allureIcons.lineShapesMoon : allureIcons.lineShapesSun}
|
|
17
|
-
size="s"
|
|
18
|
-
/>
|
|
19
|
-
);
|
|
20
|
-
};
|
package/src/i18n/constants.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
export const AVAILABLE_LOCALES = [
|
|
2
|
-
"en",
|
|
3
|
-
"ru",
|
|
4
|
-
"pl",
|
|
5
|
-
"es",
|
|
6
|
-
"pt",
|
|
7
|
-
"de",
|
|
8
|
-
"hy",
|
|
9
|
-
"az",
|
|
10
|
-
"fr",
|
|
11
|
-
"it",
|
|
12
|
-
"ja",
|
|
13
|
-
"he",
|
|
14
|
-
"ka",
|
|
15
|
-
"kr",
|
|
16
|
-
"nl",
|
|
17
|
-
"sv",
|
|
18
|
-
"tr",
|
|
19
|
-
"zh",
|
|
20
|
-
] as const;
|
|
21
|
-
|
|
22
|
-
export const DEFAULT_LOCALE = "en";
|
|
23
|
-
|
|
24
|
-
export type LangLocale = (typeof AVAILABLE_LOCALES)[number];
|
|
25
|
-
|
|
26
|
-
export const LANG_LOCALE: Record<
|
|
27
|
-
LangLocale,
|
|
28
|
-
{
|
|
29
|
-
short: string;
|
|
30
|
-
full: string;
|
|
31
|
-
iso: string;
|
|
32
|
-
}
|
|
33
|
-
> = {
|
|
34
|
-
en: {
|
|
35
|
-
short: "Eng",
|
|
36
|
-
full: "English",
|
|
37
|
-
iso: "en-US",
|
|
38
|
-
},
|
|
39
|
-
ru: {
|
|
40
|
-
short: "Ру",
|
|
41
|
-
full: "Русский",
|
|
42
|
-
iso: "ru-RU",
|
|
43
|
-
},
|
|
44
|
-
pl: {
|
|
45
|
-
short: "Pl",
|
|
46
|
-
full: "Polski",
|
|
47
|
-
iso: "pl-PL",
|
|
48
|
-
},
|
|
49
|
-
es: {
|
|
50
|
-
short: "Es",
|
|
51
|
-
full: "Español",
|
|
52
|
-
iso: "es-ES",
|
|
53
|
-
},
|
|
54
|
-
pt: {
|
|
55
|
-
short: "Pt",
|
|
56
|
-
full: "Português",
|
|
57
|
-
iso: "pt-PT",
|
|
58
|
-
},
|
|
59
|
-
de: {
|
|
60
|
-
short: "De",
|
|
61
|
-
full: "Deutsch",
|
|
62
|
-
iso: "de-DE",
|
|
63
|
-
},
|
|
64
|
-
hy: {
|
|
65
|
-
short: "Hy",
|
|
66
|
-
full: "Հայերեն",
|
|
67
|
-
iso: "hy-AM",
|
|
68
|
-
},
|
|
69
|
-
az: {
|
|
70
|
-
short: "Az",
|
|
71
|
-
full: "Azərbaycan",
|
|
72
|
-
iso: "az-AZ",
|
|
73
|
-
},
|
|
74
|
-
fr: {
|
|
75
|
-
short: "Fr",
|
|
76
|
-
full: "Français",
|
|
77
|
-
iso: "fr-FR",
|
|
78
|
-
},
|
|
79
|
-
it: {
|
|
80
|
-
short: "It",
|
|
81
|
-
full: "Italiano",
|
|
82
|
-
iso: "it-IT",
|
|
83
|
-
},
|
|
84
|
-
ja: {
|
|
85
|
-
short: "Ja",
|
|
86
|
-
full: "日本語",
|
|
87
|
-
iso: "ja-JP",
|
|
88
|
-
},
|
|
89
|
-
he: {
|
|
90
|
-
short: "He",
|
|
91
|
-
full: "עברית",
|
|
92
|
-
iso: "he-IL",
|
|
93
|
-
},
|
|
94
|
-
ka: {
|
|
95
|
-
short: "Ka",
|
|
96
|
-
full: "ქართული",
|
|
97
|
-
iso: "ka-GE",
|
|
98
|
-
},
|
|
99
|
-
kr: {
|
|
100
|
-
short: "Kr",
|
|
101
|
-
full: "한국어",
|
|
102
|
-
iso: "kr-KR",
|
|
103
|
-
},
|
|
104
|
-
nl: {
|
|
105
|
-
short: "Nl",
|
|
106
|
-
full: "Nederlands",
|
|
107
|
-
iso: "nl-NL",
|
|
108
|
-
},
|
|
109
|
-
sv: {
|
|
110
|
-
short: "Sv",
|
|
111
|
-
full: "Svenska",
|
|
112
|
-
iso: "sv-SE",
|
|
113
|
-
},
|
|
114
|
-
tr: {
|
|
115
|
-
short: "Tr",
|
|
116
|
-
full: "Türkçe",
|
|
117
|
-
iso: "tr-TR",
|
|
118
|
-
},
|
|
119
|
-
zh: {
|
|
120
|
-
short: "Zh",
|
|
121
|
-
full: "中文",
|
|
122
|
-
iso: "zh-CN",
|
|
123
|
-
},
|
|
124
|
-
};
|