@allurereport/web-classic 3.0.0-beta.10

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 (241) hide show
  1. package/.babelrc--old.cjs +18 -0
  2. package/.babelrc.js +46 -0
  3. package/.eslintrc--old.cjs +125 -0
  4. package/.eslintrc.cjs +22 -0
  5. package/README.md +27 -0
  6. package/dist/multi/10.app-970f027d.js +1 -0
  7. package/dist/multi/222.app-970f027d.js +1 -0
  8. package/dist/multi/26.app-970f027d.js +1 -0
  9. package/dist/multi/302.app-970f027d.js +1 -0
  10. package/dist/multi/304.app-970f027d.js +1 -0
  11. package/dist/multi/369.app-970f027d.js +1 -0
  12. package/dist/multi/389.app-970f027d.js +1 -0
  13. package/dist/multi/498.app-970f027d.js +1 -0
  14. package/dist/multi/60.app-970f027d.js +1 -0
  15. package/dist/multi/643.app-970f027d.js +1 -0
  16. package/dist/multi/671.app-970f027d.js +1 -0
  17. package/dist/multi/725.app-970f027d.js +1 -0
  18. package/dist/multi/770.app-970f027d.js +1 -0
  19. package/dist/multi/848.app-970f027d.js +1 -0
  20. package/dist/multi/853.app-970f027d.js +1 -0
  21. package/dist/multi/872.app-970f027d.js +1 -0
  22. package/dist/multi/895.app-970f027d.js +1 -0
  23. package/dist/multi/920.app-970f027d.js +1 -0
  24. package/dist/multi/979.app-970f027d.js +1 -0
  25. package/dist/multi/991.app-970f027d.js +1 -0
  26. package/dist/multi/JetBrainsMono_vf-9e9649b6..woff2 +0 -0
  27. package/dist/multi/JetBrainsMono_vf-b9a9c326..woff +0 -0
  28. package/dist/multi/app-970f027d.js +2 -0
  29. package/dist/multi/app-970f027d.js.LICENSE.txt +25 -0
  30. package/dist/multi/manifest.json +28 -0
  31. package/dist/multi/pt-root-ui_vf-22fe60ca..woff +0 -0
  32. package/dist/multi/pt-root-ui_vf-9d251e8b..woff2 +0 -0
  33. package/dist/multi/styles-970f027d.css +283 -0
  34. package/dist/single/app-2babff54.js +2 -0
  35. package/dist/single/app-2babff54.js.LICENSE.txt +25 -0
  36. package/dist/single/manifest.json +3 -0
  37. package/package--old.json +106 -0
  38. package/package.json +107 -0
  39. package/postcss.config.js +5 -0
  40. package/src/assets/scss/_common.scss +142 -0
  41. package/src/assets/scss/code.scss +71 -0
  42. package/src/assets/scss/day.scss +51 -0
  43. package/src/assets/scss/fonts.scss +3 -0
  44. package/src/assets/scss/index.scss +9 -0
  45. package/src/assets/scss/night.scss +61 -0
  46. package/src/assets/scss/palette.scss +393 -0
  47. package/src/assets/scss/theme.scss +117 -0
  48. package/src/assets/scss/typography.scss +218 -0
  49. package/src/assets/scss/vars.scss +8 -0
  50. package/src/components/ArrowButton/index.tsx +36 -0
  51. package/src/components/ArrowButton/styles.scss +35 -0
  52. package/src/components/BaseLayout/index.tsx +23 -0
  53. package/src/components/BaseLayout/styles.scss +63 -0
  54. package/src/components/Behaviors/BehaviorsList.tsx +67 -0
  55. package/src/components/Behaviors/index.tsx +60 -0
  56. package/src/components/Behaviors/styles.scss +196 -0
  57. package/src/components/Categories/CategoriesList.tsx +67 -0
  58. package/src/components/Categories/index.tsx +60 -0
  59. package/src/components/Categories/styles.scss +196 -0
  60. package/src/components/Footer/FooterLogo.tsx +16 -0
  61. package/src/components/Footer/FooterVersion.tsx +33 -0
  62. package/src/components/Footer/index.tsx +13 -0
  63. package/src/components/Footer/styles.scss +14 -0
  64. package/src/components/Graphs/index.tsx +2 -0
  65. package/src/components/Header/index.tsx +14 -0
  66. package/src/components/Header/styles.scss +26 -0
  67. package/src/components/HeaderActions/Filters.tsx +90 -0
  68. package/src/components/HeaderActions/HeaderActions.tsx +59 -0
  69. package/src/components/HeaderActions/SortBy.tsx +128 -0
  70. package/src/components/HeaderActions/styles.scss +82 -0
  71. package/src/components/LanguagePicker/index.tsx +41 -0
  72. package/src/components/LanguagePicker/styles.scss +3 -0
  73. package/src/components/MainReport/index.tsx +19 -0
  74. package/src/components/Metadata/index.tsx +121 -0
  75. package/src/components/Metadata/styles.scss +146 -0
  76. package/src/components/MetadataButton/index.tsx +32 -0
  77. package/src/components/MetadataButton/styles.scss +53 -0
  78. package/src/components/Modal/ModalView.hbs +13 -0
  79. package/src/components/Modal/ModalView.js +43 -0
  80. package/src/components/Modal/index.tsx +174 -0
  81. package/src/components/Modal/styles.scss +126 -0
  82. package/src/components/Overview/index.tsx +9 -0
  83. package/src/components/Packages/PackagesList.tsx +67 -0
  84. package/src/components/Packages/index.tsx +59 -0
  85. package/src/components/Packages/styles.scss +196 -0
  86. package/src/components/ReportBody/Filters.tsx +92 -0
  87. package/src/components/ReportBody/HeaderActions.tsx +21 -0
  88. package/src/components/ReportBody/SortBy.tsx +132 -0
  89. package/src/components/ReportBody/context.tsx +106 -0
  90. package/src/components/ReportBody/index.tsx +71 -0
  91. package/src/components/ReportBody/styles.scss +64 -0
  92. package/src/components/ReportHeader/ReportHeaderLabelList.tsx +12 -0
  93. package/src/components/ReportHeader/ReportHeaderLogo.tsx +10 -0
  94. package/src/components/ReportHeader/ReportHeaderPie.tsx +14 -0
  95. package/src/components/ReportHeader/index.tsx +33 -0
  96. package/src/components/ReportHeader/styles.scss +49 -0
  97. package/src/components/ReportLogo/index.tsx +16 -0
  98. package/src/components/ReportLogo/styles.scss +20 -0
  99. package/src/components/ReportLogoFull/index.tsx +20 -0
  100. package/src/components/ReportLogoFull/styles.scss +7 -0
  101. package/src/components/ReportMetadata/MetadataItem.tsx +45 -0
  102. package/src/components/ReportMetadata/MetadataSummary.tsx +81 -0
  103. package/src/components/ReportMetadata/MetadataTestType.tsx +16 -0
  104. package/src/components/ReportMetadata/MetadataWithIcon.tsx +21 -0
  105. package/src/components/ReportMetadata/index.tsx +46 -0
  106. package/src/components/ReportMetadata/styles.scss +99 -0
  107. package/src/components/SideBySide/index.tsx +54 -0
  108. package/src/components/SideBySide/styles.scss +59 -0
  109. package/src/components/SideNav/SideNav.tsx +78 -0
  110. package/src/components/SideNav/SideNavView.hbs +39 -0
  111. package/src/components/SideNav/SideNavView.js +81 -0
  112. package/src/components/SideNav/styles.scss +126 -0
  113. package/src/components/Suites/index.tsx +62 -0
  114. package/src/components/Suites/styles.scss +10 -0
  115. package/src/components/Tabs/index.tsx +33 -0
  116. package/src/components/Tabs/styles.scss +56 -0
  117. package/src/components/TestResult/TestResultAttachmentsView/index.tsx +27 -0
  118. package/src/components/TestResult/TestResultAttachmentsView/styles.scss +12 -0
  119. package/src/components/TestResult/TestResultDescription/index.tsx +27 -0
  120. package/src/components/TestResult/TestResultDescription/styles.scss +12 -0
  121. package/src/components/TestResult/TestResultDropdown/index.tsx +23 -0
  122. package/src/components/TestResult/TestResultDropdown/styles.scss +34 -0
  123. package/src/components/TestResult/TestResultEmpty/index.tsx +33 -0
  124. package/src/components/TestResult/TestResultEmpty/styles.scss +25 -0
  125. package/src/components/TestResult/TestResultError/index.tsx +48 -0
  126. package/src/components/TestResult/TestResultError/styles.scss +51 -0
  127. package/src/components/TestResult/TestResultHeader/index.tsx +53 -0
  128. package/src/components/TestResult/TestResultHeader/styles.scss +43 -0
  129. package/src/components/TestResult/TestResultHistory/TestResultHistoryItem.tsx +67 -0
  130. package/src/components/TestResult/TestResultHistory/index.tsx +26 -0
  131. package/src/components/TestResult/TestResultHistory/styles.scss +63 -0
  132. package/src/components/TestResult/TestResultInfo/TestResultInfoStatuses.tsx +30 -0
  133. package/src/components/TestResult/TestResultInfo/index.tsx +79 -0
  134. package/src/components/TestResult/TestResultInfo/styles.scss +50 -0
  135. package/src/components/TestResult/TestResultLinks/index.tsx +56 -0
  136. package/src/components/TestResult/TestResultLinks/styles.scss +30 -0
  137. package/src/components/TestResult/TestResultMetadata/index.tsx +27 -0
  138. package/src/components/TestResult/TestResultMetadata/styles.scss +8 -0
  139. package/src/components/TestResult/TestResultNavigation/index.tsx +80 -0
  140. package/src/components/TestResult/TestResultNavigation/styles.scss +48 -0
  141. package/src/components/TestResult/TestResultOverview.tsx +40 -0
  142. package/src/components/TestResult/TestResultParameters/index.tsx +30 -0
  143. package/src/components/TestResult/TestResultParameters/styles.scss +8 -0
  144. package/src/components/TestResult/TestResultPrevStatuses/index.tsx +49 -0
  145. package/src/components/TestResult/TestResultPrevStatuses/styles.scss +57 -0
  146. package/src/components/TestResult/TestResultRetriesView/TestResultRetriesItem.tsx +49 -0
  147. package/src/components/TestResult/TestResultRetriesView/index.tsx +20 -0
  148. package/src/components/TestResult/TestResultRetriesView/styles.scss +69 -0
  149. package/src/components/TestResult/TestResultSetup/index.tsx +49 -0
  150. package/src/components/TestResult/TestResultSeverity/index.tsx +27 -0
  151. package/src/components/TestResult/TestResultSeverity/styles.scss +29 -0
  152. package/src/components/TestResult/TestResultStatus/index.tsx +26 -0
  153. package/src/components/TestResult/TestResultStatus/styles.scss +36 -0
  154. package/src/components/TestResult/TestResultSteps/HtmlAttachmentPreview.tsx +12 -0
  155. package/src/components/TestResult/TestResultSteps/attachment.tsx +68 -0
  156. package/src/components/TestResult/TestResultSteps/attachmentCode.tsx +20 -0
  157. package/src/components/TestResult/TestResultSteps/attachmentImage.tsx +32 -0
  158. package/src/components/TestResult/TestResultSteps/attachmentVideo.tsx +15 -0
  159. package/src/components/TestResult/TestResultSteps/index.tsx +49 -0
  160. package/src/components/TestResult/TestResultSteps/styles.scss +225 -0
  161. package/src/components/TestResult/TestResultSteps/testResultAttachment.tsx +77 -0
  162. package/src/components/TestResult/TestResultSteps/testResultAttachmentInfo.tsx +83 -0
  163. package/src/components/TestResult/TestResultSteps/testResultStep.tsx +78 -0
  164. package/src/components/TestResult/TestResultSteps/testResultStepInfo.tsx +30 -0
  165. package/src/components/TestResult/TestResultSteps/wrongAttachment.tsx +8 -0
  166. package/src/components/TestResult/TestResultTabs/index.tsx +59 -0
  167. package/src/components/TestResult/TestResultTabs/styles.scss +76 -0
  168. package/src/components/TestResult/TestResultTeardown/index.tsx +49 -0
  169. package/src/components/TestResult/TestResultView.hbs +32 -0
  170. package/src/components/TestResult/TestResultView.js +90 -0
  171. package/src/components/TestResult/index.tsx +54 -0
  172. package/src/components/TestResult/styles.scss +29 -0
  173. package/src/components/TestResultView/index.tsx +31 -0
  174. package/src/components/ThemeButton/ThemeButton.tsx +20 -0
  175. package/src/components/Timeline/index.tsx +2 -0
  176. package/src/components/Tree/Tree.tsx +76 -0
  177. package/src/components/Tree/TreeHeader.tsx +82 -0
  178. package/src/components/Tree/TreeItem.tsx +49 -0
  179. package/src/components/Tree/TreeItemIcon.tsx +32 -0
  180. package/src/components/Tree/index.tsx +60 -0
  181. package/src/components/Tree/styles.scss +185 -0
  182. package/src/favicon.ico +0 -0
  183. package/src/index.html +40 -0
  184. package/src/index.js +52 -0
  185. package/src/index.tsx +60 -0
  186. package/src/mixins.scss +128 -0
  187. package/src/rtl.scss +19 -0
  188. package/src/stores/behaviors.ts +127 -0
  189. package/src/stores/categories.ts +127 -0
  190. package/src/stores/chart.ts +32 -0
  191. package/src/stores/envInfo.ts +34 -0
  192. package/src/stores/index.ts +4 -0
  193. package/src/stores/locale.ts +83 -0
  194. package/src/stores/packages.ts +127 -0
  195. package/src/stores/router.ts +55 -0
  196. package/src/stores/stats.ts +36 -0
  197. package/src/stores/tabs.ts +7 -0
  198. package/src/stores/testResults.ts +66 -0
  199. package/src/stores/theme.ts +33 -0
  200. package/src/stores/tree.ts +127 -0
  201. package/src/stores/types.ts +5 -0
  202. package/src/styles.scss +91 -0
  203. package/src/translations/am.json +127 -0
  204. package/src/translations/az.json +127 -0
  205. package/src/translations/br.json +214 -0
  206. package/src/translations/constants.ts +124 -0
  207. package/src/translations/de.json +127 -0
  208. package/src/translations/en.json +128 -0
  209. package/src/translations/es.json +118 -0
  210. package/src/translations/fr.json +118 -0
  211. package/src/translations/he.json +118 -0
  212. package/src/translations/isv.json +216 -0
  213. package/src/translations/it.json +118 -0
  214. package/src/translations/ja.json +118 -0
  215. package/src/translations/ka.json +118 -0
  216. package/src/translations/kr.json +118 -0
  217. package/src/translations/nl.json +118 -0
  218. package/src/translations/pl.json +116 -0
  219. package/src/translations/pt.json +118 -0
  220. package/src/translations/ru.json +116 -0
  221. package/src/translations/sv.json +118 -0
  222. package/src/translations/tr.json +118 -0
  223. package/src/translations/zh.json +118 -0
  224. package/src/types/globals.d.ts +13 -0
  225. package/src/types/window.d.ts +8 -0
  226. package/src/utils/attachments.ts +156 -0
  227. package/src/utils/capitalize.ts +6 -0
  228. package/src/utils/copyToClipboard.ts +16 -0
  229. package/src/utils/isMac.ts +8 -0
  230. package/src/utils/navigate.ts +7 -0
  231. package/src/utils/statuses.js +1 -0
  232. package/src/utils/statuses.ts +55 -0
  233. package/src/utils/time.ts +17 -0
  234. package/src/utils/treeFilters.ts +139 -0
  235. package/src/variables.scss +71 -0
  236. package/test/utils/treeFilters.test.ts +448 -0
  237. package/tsconfig.json +25 -0
  238. package/types.d.ts +85 -0
  239. package/vitest.config.ts +18 -0
  240. package/webpack.config--old.js +127 -0
  241. package/webpack.config.js +108 -0
@@ -0,0 +1,116 @@
1
+ {
2
+ "statuses": {
3
+ "passed": "успешный",
4
+ "failed": "неуспешный",
5
+ "broken": "сломанный",
6
+ "skipped": "пропущенный",
7
+ "unknown": "неизвестный",
8
+ "total": "все"
9
+ },
10
+ "testSummary": {
11
+ "all": "Все тесты",
12
+ "flaky": "Flaky тесты",
13
+ "retry": "Повторные тесты",
14
+ "new": "Новые тесты"
15
+ },
16
+ "tabs": {
17
+ "total": "Все"
18
+ },
19
+ "search": {
20
+ "search": "Поиск",
21
+ "search-placeholder": "Название или ID"
22
+ },
23
+ "filters": {
24
+ "more-filters": "Фильтры",
25
+ "enable-filter": "Включить фильтр по \"{filter}\"",
26
+ "flaky": "Нестабильные",
27
+ "retry": "Повторенные",
28
+ "new": "Новые"
29
+ },
30
+ "sort-by": {
31
+ "sort-by-text": "Сортировать по:",
32
+ "sort-by-category": "Сортировать по",
33
+ "direction-category": "Направление"
34
+ },
35
+ "sort-by.values": {
36
+ "order": "Порядок",
37
+ "alphabet": "Название",
38
+ "duration": "Длительность",
39
+ "status": "Статус"
40
+ },
41
+ "sort-by.directions": {
42
+ "order-asc": "Поздние – Ранние",
43
+ "order-desc": "Ранние – Поздние",
44
+ "order-asc-short": "Поздние",
45
+ "order-desc-short": "Ранние",
46
+ "alphabet-asc": "Я – А",
47
+ "alphabet-desc": "А – Я",
48
+ "alphabet-asc-short": "Я – А",
49
+ "alphabet-desc-short": "Я – А",
50
+ "duration-asc": "9 – 1",
51
+ "duration-desc": "1 – 9",
52
+ "duration-asc-short": "9 – 1",
53
+ "duration-desc-short": "1 – 9",
54
+ "status-asc": "Инвертировано",
55
+ "status-desc": "Как в списке фильтра",
56
+ "status-asc-short": "Инвертировано",
57
+ "status-desc-short": "По обычному"
58
+ },
59
+ "empty": {
60
+ "no-results": "Нет результатов",
61
+ "no-tests-found": "Результаты не найдены",
62
+ "clear-filters": "Очистить фильтры",
63
+ "no-attachments-results": "Информация о вложениях отсутствует",
64
+ "no-history-results": "Информация об истории отсутствует",
65
+ "no-retries-results": "Информация о перезапусках отсутствует"
66
+ },
67
+ "severity": {
68
+ "name": "Важность",
69
+ "blocker": "блокер",
70
+ "critical": "критическая",
71
+ "normal": "обычная",
72
+ "minor": "невысокая",
73
+ "trivial": "минимальная"
74
+ },
75
+ "execution": {
76
+ "body": "Тело теста",
77
+ "name": "Выполнение",
78
+ "setup": "Подготовка",
79
+ "teardown": "Завершение"
80
+ },
81
+ "ui": {
82
+ "labels": "Лейблы",
83
+ "metadata": "Метаданные",
84
+ "parameters": "Параметры",
85
+ "description": "Описание",
86
+ "links": "Ссылки",
87
+ "overview": "Обзор",
88
+ "history": "История",
89
+ "attachments": "Вложения",
90
+ "retries": "Перезапуски",
91
+ "error": "Ошибка",
92
+ "goToStep": "Перейти к шагу",
93
+ "showLess": "Показать меньше",
94
+ "showMore": "Показать больше",
95
+ "copy": "Скопировать",
96
+ "at": "в"
97
+ },
98
+ "controls": {
99
+ "newTabAttachment": "Открыть в новой вкладке",
100
+ "downloadAttachment": "Загрузить вложение",
101
+ "nextTR": "Следующий тест",
102
+ "prevTR": "Предыдущий тест",
103
+ "backto": "Вернуться на",
104
+ "clipboard": "Скопировать в буфер обмена",
105
+ "clipboardError": "Ошибка. Скорее всего ваш браузер не поддерживает данную функциональность",
106
+ "clipboardSuccess": "Значение успешно скопировано",
107
+ "collapse": "Свернуть",
108
+ "expand": "Развернуть",
109
+ "fullscreen": "На весь экран",
110
+ "language": "Сменить язык",
111
+ "openInNewTab": "Открыть в новой вкладке"
112
+ },
113
+ "errors": {
114
+ "missedAttachment": "Вложение не найдено"
115
+ }
116
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "statuses": {
3
+ "passed": "godkänd",
4
+ "failed": "misslyckad",
5
+ "broken": "trasig",
6
+ "skipped": "hoppad över",
7
+ "unknown": "okänd",
8
+ "total": "totalt",
9
+ "flakyTests": "ostadig",
10
+ "newTests": "ny",
11
+ "retryTests": "försök igen"
12
+ },
13
+ "testSummary": {
14
+ "all": "Alla tester",
15
+ "flaky": "Ostadiga tester",
16
+ "retry": "Omtestade tester",
17
+ "new": "Nya tester"
18
+ },
19
+ "tabs": {
20
+ "total": "Alla"
21
+ },
22
+ "search": {
23
+ "search": "Sök",
24
+ "search-placeholder": "Namn eller ID"
25
+ },
26
+ "filters": {
27
+ "more-filters": "Fler filter",
28
+ "enable-filter": "Aktivera filtret \"{filter}\"",
29
+ "flaky": "Ostadig",
30
+ "retry": "Försök igen",
31
+ "new": "Ny"
32
+ },
33
+ "sort-by": {
34
+ "sort-by-text": "Sortera efter:",
35
+ "sort-by-category": "Sortera efter",
36
+ "direction-category": "Riktning"
37
+ },
38
+ "sort-by.values": {
39
+ "order": "Ordning",
40
+ "alphabet": "Alfabet",
41
+ "duration": "Varaktighet",
42
+ "status": "Status"
43
+ },
44
+ "sort-by.directions": {
45
+ "order-desc": "Senast – Tidigare",
46
+ "order-asc": "Tidigare – Senast",
47
+ "order-asc-short": "Tidigare",
48
+ "order-desc-short": "Senast",
49
+ "alphabet-asc": "A – Ö",
50
+ "alphabet-desc": "Ö – A",
51
+ "alphabet-asc-short": "A – Ö",
52
+ "alphabet-desc-short": "Ö – A",
53
+ "duration-asc": "1 – 9",
54
+ "duration-desc": "9 – 1",
55
+ "duration-asc-short": "1 – 9",
56
+ "duration-desc-short": "9 – 1",
57
+ "status-asc": "Som i filterlistan",
58
+ "status-desc": "Omvänd",
59
+ "status-asc-short": "Vanlig",
60
+ "status-desc-short": "Omvänd"
61
+ },
62
+ "empty": {
63
+ "no-results": "Inga resultat",
64
+ "no-tests-found": "Inga resultat hittades",
65
+ "clear-filters": "Rensa filter",
66
+ "no-attachments-results": "Ingen bilaga information tillgänglig",
67
+ "no-history-results": "Ingen historik information tillgänglig",
68
+ "no-retries-results": "Ingen omtagningar information tillgänglig"
69
+ },
70
+ "severity": {
71
+ "blocker": "blockerare",
72
+ "critical": "kritisk",
73
+ "normal": "normal",
74
+ "minor": "mindre",
75
+ "trivial": "obetydlig"
76
+ },
77
+ "execution": {
78
+ "name": "Utförande",
79
+ "body": "Testkropp",
80
+ "setup": "Förberedelse",
81
+ "teardown": "Avslutning"
82
+ },
83
+ "ui": {
84
+ "labels": "Etiketter",
85
+ "metadata": "Metadata",
86
+ "parameters": "Parametrar",
87
+ "description": "Beskrivning",
88
+ "links": "Länkar",
89
+ "overview": "Översikt",
90
+ "history": "Historik",
91
+ "attachments": "Bilagor",
92
+ "retries": "Omtagningar",
93
+ "error": "Fel",
94
+ "goToStep": "Gå till steg",
95
+ "showLess": "Visa mindre",
96
+ "showMore": "Visa mer",
97
+ "copy": "Kopiera",
98
+ "at": "vid"
99
+ },
100
+ "controls": {
101
+ "newTabAttachment": "Öppna bilaga i ny flik",
102
+ "nextTR": "Nästa testresultat",
103
+ "prevTR": "Föregående testresultat",
104
+ "downloadAttachment": "Ladda ner bilaga",
105
+ "backto": "Tillbaka till",
106
+ "clipboard": "Kopiera till urklipp",
107
+ "clipboardError": "Kan inte kopiera värde till urklipp. Det verkar som om den här funktionen inte stöds av din webbläsare",
108
+ "clipboardSuccess": "Kopierat framgångsrikt",
109
+ "collapse": "Minimera",
110
+ "expand": "Expandera",
111
+ "fullscreen": "Helskärm",
112
+ "language": "Byt språk",
113
+ "openInNewTab": "Öppna i ny flik"
114
+ },
115
+ "errors": {
116
+ "missedAttachment": "Bilaga hittades inte"
117
+ }
118
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "statuses": {
3
+ "passed": "başarılı",
4
+ "failed": "başarısız",
5
+ "broken": "bozuk",
6
+ "skipped": "atlandı",
7
+ "unknown": "bilinmeyen",
8
+ "total": "toplam",
9
+ "flakyTests": "istikrarsız",
10
+ "newTests": "yeni",
11
+ "retryTests": "tekrar dene"
12
+ },
13
+ "testSummary": {
14
+ "all": "Tüm Testler",
15
+ "flaky": "İstikrarsız Testler",
16
+ "retry": "Tekrarlanan Testler",
17
+ "new": "Yeni Testler"
18
+ },
19
+ "tabs": {
20
+ "total": "Tümü"
21
+ },
22
+ "search": {
23
+ "search": "Ara",
24
+ "search-placeholder": "Ad veya ID"
25
+ },
26
+ "filters": {
27
+ "more-filters": "Daha fazla filtre",
28
+ "enable-filter": "\"{filter}\" filtresini etkinleştir",
29
+ "flaky": "İstikrarsız",
30
+ "retry": "Tekrar",
31
+ "new": "Yeni"
32
+ },
33
+ "sort-by": {
34
+ "sort-by-text": "Sıralama ölçütü:",
35
+ "sort-by-category": "Sıralama",
36
+ "direction-category": "Yön"
37
+ },
38
+ "sort-by.values": {
39
+ "order": "Sıra",
40
+ "alphabet": "Alfabe",
41
+ "duration": "Süre",
42
+ "status": "Durum"
43
+ },
44
+ "sort-by.directions": {
45
+ "order-desc": "Son – İlk",
46
+ "order-asc": "İlk – Son",
47
+ "order-asc-short": "İlk",
48
+ "order-desc-short": "Son",
49
+ "alphabet-asc": "A – Z",
50
+ "alphabet-desc": "Z – A",
51
+ "alphabet-asc-short": "A – Z",
52
+ "alphabet-desc-short": "Z – A",
53
+ "duration-asc": "1 – 9",
54
+ "duration-desc": "9 – 1",
55
+ "duration-asc-short": "1 – 9",
56
+ "duration-desc-short": "9 – 1",
57
+ "status-asc": "Filtre listesi gibi",
58
+ "status-desc": "Ters",
59
+ "status-asc-short": "Normal",
60
+ "status-desc-short": "Ters"
61
+ },
62
+ "empty": {
63
+ "no-results": "Sonuç yok",
64
+ "no-tests-found": "Sonuç bulunamadı",
65
+ "clear-filters": "Filtreleri temizle",
66
+ "no-attachments-results": "Ek bilgisi mevcut değil",
67
+ "no-history-results": "Geçmiş bilgisi mevcut değil",
68
+ "no-retries-results": "Tekrar deneme bilgisi mevcut değil"
69
+ },
70
+ "severity": {
71
+ "blocker": "engelleyici",
72
+ "critical": "kritik",
73
+ "normal": "normal",
74
+ "minor": "küçük",
75
+ "trivial": "önemsiz"
76
+ },
77
+ "execution": {
78
+ "name": "Yürütme",
79
+ "body": "Test içeriği",
80
+ "setup": "Kurulum",
81
+ "teardown": "Kapatma"
82
+ },
83
+ "ui": {
84
+ "labels": "Etiketler",
85
+ "metadata": "Meta Veriler",
86
+ "parameters": "Parametreler",
87
+ "description": "Açıklama",
88
+ "links": "Bağlantılar",
89
+ "overview": "Genel Bakış",
90
+ "history": "Geçmiş",
91
+ "attachments": "Ekler",
92
+ "retries": "Tekrar Denemeler",
93
+ "error": "Hata",
94
+ "goToStep": "Adıma git",
95
+ "showLess": "Daha az göster",
96
+ "showMore": "Daha fazla göster",
97
+ "copy": "Kopyala",
98
+ "at": "tarihinde"
99
+ },
100
+ "controls": {
101
+ "newTabAttachment": "Eki yeni sekmede aç",
102
+ "nextTR": "Sonraki test sonucu",
103
+ "prevTR": "Önceki test sonucu",
104
+ "downloadAttachment": "Eki indir",
105
+ "backto": "Geri dön",
106
+ "clipboard": "Panoya kopyala",
107
+ "clipboardError": "Değer panoya kopyalanamıyor. Bu özellik tarayıcınız tarafından desteklenmiyor olabilir",
108
+ "clipboardSuccess": "Başarıyla kopyalandı",
109
+ "collapse": "Daralt",
110
+ "expand": "Genişlet",
111
+ "fullscreen": "Tam ekran",
112
+ "language": "Dili değiştir",
113
+ "openInNewTab": "Yeni sekmede aç"
114
+ },
115
+ "errors": {
116
+ "missedAttachment": "Ek bulunamadı"
117
+ }
118
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "statuses": {
3
+ "passed": "通过",
4
+ "failed": "失败",
5
+ "broken": "损坏",
6
+ "skipped": "跳过",
7
+ "unknown": "未知",
8
+ "total": "总计",
9
+ "flakyTests": "不稳定",
10
+ "newTests": "新的",
11
+ "retryTests": "重试"
12
+ },
13
+ "testSummary": {
14
+ "all": "所有测试",
15
+ "flaky": "不稳定的测试",
16
+ "retry": "重试的测试",
17
+ "new": "新的测试"
18
+ },
19
+ "tabs": {
20
+ "total": "所有"
21
+ },
22
+ "search": {
23
+ "search": "搜索",
24
+ "search-placeholder": "名称或ID"
25
+ },
26
+ "filters": {
27
+ "more-filters": "更多过滤器",
28
+ "enable-filter": "启用 \"{filter}\" 过滤器",
29
+ "flaky": "不稳定",
30
+ "retry": "重试",
31
+ "new": "新的"
32
+ },
33
+ "sort-by": {
34
+ "sort-by-text": "排序依据:",
35
+ "sort-by-category": "排序类别",
36
+ "direction-category": "方向"
37
+ },
38
+ "sort-by.values": {
39
+ "order": "顺序",
40
+ "alphabet": "字母",
41
+ "duration": "持续时间",
42
+ "status": "状态"
43
+ },
44
+ "sort-by.directions": {
45
+ "order-desc": "最新 – 最早",
46
+ "order-asc": "最早 – 最新",
47
+ "order-asc-short": "最早",
48
+ "order-desc-short": "最新",
49
+ "alphabet-asc": "A – Z",
50
+ "alphabet-desc": "Z – A",
51
+ "alphabet-asc-short": "A – Z",
52
+ "alphabet-desc-short": "Z – A",
53
+ "duration-asc": "1 – 9",
54
+ "duration-desc": "9 – 1",
55
+ "duration-asc-short": "1 – 9",
56
+ "duration-desc-short": "9 – 1",
57
+ "status-asc": "按照过滤列表",
58
+ "status-desc": "反转",
59
+ "status-asc-short": "正常",
60
+ "status-desc-short": "反转"
61
+ },
62
+ "empty": {
63
+ "no-results": "没有结果",
64
+ "no-tests-found": "未找到结果",
65
+ "clear-filters": "清除过滤器",
66
+ "no-attachments-results": "没有附件信息",
67
+ "no-history-results": "没有历史信息",
68
+ "no-retries-results": "没有重试信息"
69
+ },
70
+ "severity": {
71
+ "blocker": "阻断",
72
+ "critical": "严重",
73
+ "normal": "正常",
74
+ "minor": "次要",
75
+ "trivial": "轻微"
76
+ },
77
+ "execution": {
78
+ "name": "执行",
79
+ "body": "测试内容",
80
+ "setup": "设置",
81
+ "teardown": "拆解"
82
+ },
83
+ "ui": {
84
+ "labels": "标签",
85
+ "metadata": "元数据",
86
+ "parameters": "参数",
87
+ "description": "描述",
88
+ "links": "链接",
89
+ "overview": "概览",
90
+ "history": "历史",
91
+ "attachments": "附件",
92
+ "retries": "重试",
93
+ "error": "错误",
94
+ "goToStep": "跳转到步骤",
95
+ "showLess": "显示更少",
96
+ "showMore": "显示更多",
97
+ "copy": "复制",
98
+ "at": "在"
99
+ },
100
+ "controls": {
101
+ "newTabAttachment": "在新标签页中打开附件",
102
+ "nextTR": "下一个测试结果",
103
+ "prevTR": "上一个测试结果",
104
+ "downloadAttachment": "下载附件",
105
+ "backto": "返回",
106
+ "clipboard": "复制到剪贴板",
107
+ "clipboardError": "无法复制到剪贴板。可能是浏览器不支持此功能",
108
+ "clipboardSuccess": "复制成功",
109
+ "collapse": "折叠",
110
+ "expand": "展开",
111
+ "fullscreen": "全屏",
112
+ "language": "更改语言",
113
+ "openInNewTab": "在新标签页中打开"
114
+ },
115
+ "errors": {
116
+ "missedAttachment": "未找到附件"
117
+ }
118
+ }
@@ -0,0 +1,13 @@
1
+ declare module "*.svg" {
2
+ const content: {
3
+ id: string;
4
+ };
5
+
6
+ export default content;
7
+ }
8
+
9
+ declare module "*.scss" {
10
+ const content: Record<string, string>;
11
+
12
+ export = content;
13
+ }
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ interface Window {
3
+ reportDataReady: boolean;
4
+ reportData: Record<string, any>;
5
+ }
6
+ }
7
+
8
+ export {};
@@ -0,0 +1,156 @@
1
+ import { fetchReportAttachment } from "@allurereport/web-commons";
2
+
3
+ export interface Attachments {
4
+ id?: string;
5
+ ext?: string;
6
+ contentType?: string;
7
+ }
8
+
9
+ const fetchFromUrl = async ({ id, ext, contentType }: Attachments) => {
10
+ const fileName = `${id || "-"}${ext || ""}`;
11
+
12
+ return fetchReportAttachment(`data/attachments/${fileName}?attachment`, contentType);
13
+ };
14
+
15
+ export const fetchAttachment = async (id: string, ext: string, contentType: string) => {
16
+ if (!id && !ext) {
17
+ return;
18
+ }
19
+ const response = await fetchFromUrl({ id, ext, contentType });
20
+ const fileType = attachmentType(contentType);
21
+
22
+ switch (fileType.type) {
23
+ case "svg":
24
+ case "image": {
25
+ const blob = await response.blob();
26
+ const img = URL.createObjectURL(blob);
27
+ return { img, id };
28
+ }
29
+ case "uri":
30
+ case "code":
31
+ case "html":
32
+ case "table":
33
+ case "text": {
34
+ const text = await response.text();
35
+ return { text };
36
+ }
37
+ case "video": {
38
+ const blob = await response.blob();
39
+ const src = URL.createObjectURL(blob);
40
+ return { src, id, contentType };
41
+ }
42
+ default:
43
+ return;
44
+ }
45
+ };
46
+
47
+ export const blobAttachment = async (id: string, ext: string, contentType: string) => {
48
+ const response = await fetchFromUrl({ id, ext, contentType });
49
+ return await response.blob();
50
+ };
51
+
52
+ export const downloadAttachment = async (id: string, ext: string, contentType: string) => {
53
+ if (!id && !ext) {
54
+ return;
55
+ }
56
+
57
+ const fileName = `${id}${ext}`;
58
+ const blob = await blobAttachment(id, ext, contentType);
59
+ const linkUrl = URL.createObjectURL(blob);
60
+ const link = document.createElement("a");
61
+ link.href = linkUrl;
62
+ link.download = fileName;
63
+ link.click();
64
+ URL.revokeObjectURL(linkUrl);
65
+ };
66
+
67
+ export const openAttachmentInNewTab = async (id: string, ext: string, contentType: string) => {
68
+ if (!id && !ext) {
69
+ return;
70
+ }
71
+ const blob = await blobAttachment(id, ext, contentType);
72
+ const linkUrl = URL.createObjectURL(blob);
73
+ globalThis.open(linkUrl, "_blank");
74
+ };
75
+
76
+ export const attachmentType = (type: string) => {
77
+ switch (type) {
78
+ case "image/bmp":
79
+ case "image/gif":
80
+ case "image/tiff":
81
+ case "image/jpeg":
82
+ case "image/jpg":
83
+ case "image/png":
84
+ case "image/*":
85
+ return {
86
+ type: "image",
87
+ icon: "file",
88
+ };
89
+ case "text/xml":
90
+ case "application/xml":
91
+ case "application/json":
92
+ case "text/json":
93
+ case "text/yaml":
94
+ case "application/yaml":
95
+ case "application/x-yaml":
96
+ case "text/x-yaml":
97
+ case "text/css":
98
+ return {
99
+ type: "code",
100
+ icon: "file",
101
+ };
102
+ case "text/plain":
103
+ case "text/*":
104
+ return {
105
+ type: "text",
106
+ icon: "txt",
107
+ };
108
+ case "text/html":
109
+ return {
110
+ type: "html",
111
+ icon: "file",
112
+ };
113
+ case "text/csv":
114
+ return {
115
+ type: "table",
116
+ icon: "csv",
117
+ };
118
+ case "text/tab-separated-values":
119
+ return {
120
+ type: "table",
121
+ icon: "table",
122
+ };
123
+ case "image/svg+xml":
124
+ return {
125
+ type: "svg",
126
+ icon: "file",
127
+ };
128
+ case "video/mp4":
129
+ case "video/ogg":
130
+ case "video/webm":
131
+ return {
132
+ type: "video",
133
+ icon: "file",
134
+ };
135
+ case "text/uri-list":
136
+ return {
137
+ type: "uri",
138
+ icon: "list",
139
+ };
140
+ case "application/x-tar":
141
+ case "application/x-gtar":
142
+ case "application/x-bzip2":
143
+ case "application/gzip":
144
+ case "application/zip":
145
+ return {
146
+ type: "archive",
147
+ icon: "file",
148
+ };
149
+ default:
150
+ return {
151
+ type: null,
152
+ icon: "file",
153
+ };
154
+ }
155
+ };
156
+ export const restrictedContentTypes = ["application/gzip"];
@@ -0,0 +1,6 @@
1
+ export const capitalize = (str: string) => {
2
+ if (!str) {
3
+ return;
4
+ }
5
+ return str.charAt(0).toLocaleUpperCase() + str.slice(1);
6
+ };
@@ -0,0 +1,16 @@
1
+ export const copyToClipboard = async (text: string) => {
2
+ if (navigator.clipboard) {
3
+ await navigator.clipboard.writeText(text);
4
+ return;
5
+ }
6
+
7
+ const textarea = document.createElement("textarea");
8
+ textarea.value = text;
9
+ textarea.style.position = "fixed";
10
+ textarea.style.opacity = "0";
11
+ document.body.appendChild(textarea);
12
+ textarea.focus();
13
+ textarea.select();
14
+ document.execCommand("copy");
15
+ document.body.removeChild(textarea);
16
+ };
@@ -0,0 +1,8 @@
1
+ export const testPlatform = (re: RegExp) => {
2
+ // @ts-ignore
3
+ const platform: string = window?.navigator?.userAgentData?.platform ?? window?.navigator?.platform;
4
+
5
+ return platform ? re.test(platform) : false;
6
+ };
7
+
8
+ export const isMac = testPlatform(/^Mac/i);