@allurereport/web-summary 3.3.0 → 3.4.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "main.js": "app-7f7b3d9669a062e8a3d6.js"
2
+ "main.js": "app-2ab9d19368f7cb7e494b.js"
3
3
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@allurereport/web-summary",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "The static files for Allure Report Summary",
5
5
  "keywords": [
6
6
  "allure",
7
- "testing",
7
+ "html",
8
8
  "report",
9
- "html"
9
+ "testing"
10
10
  ],
11
- "repository": "https://github.com/allure-framework/allure3",
12
11
  "license": "Apache-2.0",
13
12
  "author": "Qameta Software",
13
+ "repository": "https://github.com/allure-framework/allure3",
14
14
  "type": "module",
15
15
  "types": "./types.d.ts",
16
16
  "scripts": {
@@ -19,17 +19,13 @@
19
19
  "build": "run-s clean 'build:prod'",
20
20
  "build:prod": "webpack --mode production",
21
21
  "build:dev": "webpack --mode development",
22
- "lint": "eslint --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
22
+ "lint": "oxlint --import-plugin src test features stories",
23
+ "lint:fix": "oxlint --import-plugin --fix src test features stories"
23
24
  },
24
- "browserslist": [
25
- "last 1 version",
26
- "> 1%",
27
- "IE 11"
28
- ],
29
25
  "dependencies": {
30
- "@allurereport/core-api": "3.3.0",
31
- "@allurereport/web-commons": "3.3.0",
32
- "@allurereport/web-components": "3.3.0",
26
+ "@allurereport/core-api": "3.4.0",
27
+ "@allurereport/web-commons": "3.4.0",
28
+ "@allurereport/web-components": "3.4.0",
33
29
  "@preact/signals": "^2.6.1",
34
30
  "clsx": "^2.1.1",
35
31
  "i18next": "^24.0.2",
@@ -40,32 +36,14 @@
40
36
  "@babel/plugin-transform-react-jsx": "^7.27.1",
41
37
  "@babel/preset-env": "^7.27.2",
42
38
  "@babel/preset-typescript": "^7.27.1",
43
- "@eslint/js": "^9.10.0",
44
39
  "@floating-ui/dom": "^1.6.12",
45
40
  "@preact/compat": "^18.3.1",
46
- "@stylistic/eslint-plugin": "^2.6.1",
47
41
  "@types/babel__core": "^7.20.5",
48
- "@types/eslint": "^8.56.11",
49
42
  "@types/md5": "^2.3.5",
50
43
  "@types/node": "^20.17.9",
51
- "@typescript-eslint/eslint-plugin": "^8.0.0",
52
- "@typescript-eslint/parser": "^8.0.0",
53
44
  "autoprefixer": "^10.4.20",
54
45
  "babel-loader": "^9.2.1",
55
46
  "css-loader": "^7.1.2",
56
- "eslint": "^8.57.0",
57
- "eslint-config-preact": "^1.5.0",
58
- "eslint-config-prettier": "^9.1.0",
59
- "eslint-plugin-compat": "^6.0.1",
60
- "eslint-plugin-import": "^2.29.1",
61
- "eslint-plugin-jsdoc": "^50.0.0",
62
- "eslint-plugin-jsx-a11y": "^6.10.0",
63
- "eslint-plugin-n": "^17.10.1",
64
- "eslint-plugin-no-null": "^1.0.2",
65
- "eslint-plugin-preact": "^0.1.0",
66
- "eslint-plugin-prefer-arrow": "^1.2.3",
67
- "eslint-plugin-react": "^7.36.1",
68
- "eslint-plugin-react-hooks": "^4.6.2",
69
47
  "fork-ts-checker-webpack-plugin": "^9.0.2",
70
48
  "globals": "^15.9.0",
71
49
  "html-webpack-plugin": "^5.6.3",
@@ -78,10 +56,14 @@
78
56
  "style-loader": "^4.0.0",
79
57
  "svg-sprite-loader": "^6.0.11",
80
58
  "typescript": "^5.6.3",
81
- "typescript-eslint": "^8.6.0",
82
59
  "webpack": "^5.99.9",
83
60
  "webpack-cli": "^5.1.4",
84
61
  "webpack-dev-server": "^5.2.2",
85
62
  "webpack-manifest-plugin": "^5.0.0"
86
- }
63
+ },
64
+ "browserslist": [
65
+ "last 1 version",
66
+ "> 1%",
67
+ "IE 11"
68
+ ]
87
69
  }
@@ -1,5 +1,6 @@
1
1
  import { SvgIcon, Text, allureIcons } from "@allurereport/web-components";
2
2
  import { type FunctionalComponent } from "preact";
3
+
3
4
  import * as styles from "./styles.scss";
4
5
 
5
6
  export type EmptyPlaceholderProps = {
@@ -1,6 +1,7 @@
1
1
  import { ReportLogoFull, Text } from "@allurereport/web-components";
2
2
  import cx from "clsx";
3
3
  import { type FunctionalComponent } from "preact";
4
+
4
5
  import * as styles from "./styles.scss";
5
6
 
6
7
  export type FooterProps = {
@@ -1,7 +1,9 @@
1
1
  import { ReportLogo } from "@allurereport/web-components";
2
2
  import { type FunctionalComponent } from "preact";
3
+
3
4
  import { LanguagePicker } from "@/components/LanguagePicker";
4
5
  import { ThemeButton } from "@/components/ThemeButton";
6
+
5
7
  import * as styles from "./styles.scss";
6
8
 
7
9
  export const Header: FunctionalComponent = () => {
@@ -1,4 +1,5 @@
1
1
  import { DropdownButton, Menu } from "@allurereport/web-components";
2
+
2
3
  import { LANG_LOCALE, type LangLocale } from "@/i18n/constants";
3
4
  import { currentLocale } from "@/stores";
4
5
  import { setLocale } from "@/stores/locale";
@@ -7,6 +7,7 @@ export const AVAILABLE_LOCALES = [
7
7
  "pt",
8
8
  "de",
9
9
  "hy",
10
+ "ar",
10
11
  "az",
11
12
  "fr",
12
13
  "it",
@@ -72,6 +73,11 @@ export const LANG_LOCALE: Record<
72
73
  full: "Հայերեն",
73
74
  iso: "hy-AM",
74
75
  },
76
+ "ar": {
77
+ short: "Ar",
78
+ full: "العربية",
79
+ iso: "ar-SA",
80
+ },
75
81
  "az": {
76
82
  short: "Az",
77
83
  full: "Azərbaycan",
@@ -0,0 +1,31 @@
1
+ {
2
+ "summary": {
3
+ "status": {
4
+ "passed": "ناجح",
5
+ "failed": "فشل",
6
+ "broken": "معطل",
7
+ "skipped": "تم تجاوزه",
8
+ "unknown": "غير معروف"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
11
+ "total": "الإجمالي",
12
+ "in": "في",
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": "في"
27
+ },
28
+ "empty": {
29
+ "no-reports": "لم يتم العثور على تقارير"
30
+ }
31
+ }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "summary": {
3
3
  "status": {
4
- "passed": "keçdi",
4
+ "passed": "uğurlu",
5
5
  "failed": "uğursuz",
6
6
  "broken": "sınıq",
7
- "skipped": "keçildi",
7
+ "skipped": "buraxılmış",
8
8
  "unknown": "naməlum"
9
9
  },
10
10
  "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
11
- "total": "cəmi",
11
+ "total": "Cəmi",
12
12
  "in": "içində",
13
13
  "metadata": {
14
14
  "new_zero": "Yeni test yoxdur",
@@ -0,0 +1,31 @@
1
+ {
2
+ "summary": {
3
+ "status": {
4
+ "passed": "通過",
5
+ "failed": "失敗",
6
+ "broken": "損壞",
7
+ "skipped": "跳過",
8
+ "unknown": "未知"
9
+ },
10
+ "createdAt": "{{createdAt, timestamp_long_no_seconds}}",
11
+ "total": "總計",
12
+ "in": "在",
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": "於"
27
+ },
28
+ "empty": {
29
+ "no-reports": "未找到報告"
30
+ }
31
+ }
package/src/index.tsx CHANGED
@@ -1,11 +1,14 @@
1
1
  import { ReportSummaryCard } from "@allurereport/web-components";
2
+
2
3
  import "@allurereport/web-components/index.css";
3
4
  import { render } from "preact";
5
+
4
6
  import "@/assets/scss/index.scss";
5
7
  import { EmptyPlaceholder } from "@/components/EmptyPlaceholder";
6
8
  import { Footer } from "@/components/Footer";
7
9
  import { Header } from "@/components/Header";
8
10
  import { getLocale, useI18n, waitForI18next } from "@/stores";
11
+
9
12
  import * as styles from "./styles.scss";
10
13
 
11
14
  const getSummaries = () => {
@@ -1,6 +1,7 @@
1
1
  import { getLocaleDateTimeOverride } from "@allurereport/web-commons";
2
2
  import { computed, signal } from "@preact/signals";
3
3
  import i18next, { type TOptions } from "i18next";
4
+
4
5
  import { DEFAULT_LOCALE, LANG_LOCALE, type LangLocale } from "@/i18n/constants";
5
6
 
6
7
  const namespaces = ["empty", "summary", "ui"];
@@ -73,4 +74,5 @@ export const setLocale = async (locale: LangLocale) => {
73
74
  await i18next.changeLanguage(locale as string);
74
75
  localStorage.setItem("currentLocale", locale as string);
75
76
  currentLocale.value = locale;
77
+ document.documentElement.dir = ["ar", "he", "fa"].includes(locale as string) ? "rtl" : "ltr";
76
78
  };
package/tsconfig.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "strictNullChecks": true,
4
- "baseUrl": "./",
5
4
  "paths": {
6
- "@/*": ["src/*"]
5
+ "@/*": ["./src/*"]
7
6
  },
8
7
  "jsx": "preserve",
9
8
  "jsxFactory": "h",
package/types.d.ts CHANGED
@@ -38,6 +38,7 @@ export type AwesomeTestStepResult = TestStepResult;
38
38
  type AwesomeBreadcrumbItem = string[] | string[][];
39
39
 
40
40
  export interface AwesomeCategory {
41
+ id?: string;
41
42
  name: string;
42
43
  description?: string;
43
44
  descriptionHtml?: string;
package/.eslintrc.cjs DELETED
@@ -1,18 +0,0 @@
1
- module.exports = {
2
- env: { browser: true, es2020: true },
3
- extends: [
4
- "eslint-config-preact",
5
- "../../.eslintrc.cjs",
6
- ],
7
- ignorePatterns: ["dist/", ".eslintrc.cjs", "postcss.config.js", "webpack.config.js", "types.d.ts"],
8
- parser: "@typescript-eslint/parser",
9
- overrides: [
10
- {
11
- extends: ["plugin:@typescript-eslint/disable-type-checked"],
12
- files: [".eslintrc.cjs", ".babelrc.js"],
13
- },
14
- ],
15
- rules: {
16
- "n/file-extension-in-import": "off"
17
- }
18
- };