@allurereport/web-awesome 3.0.0-beta.8 → 3.0.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.
Files changed (282) hide show
  1. package/dist/multi/173.app-9931797d1602fc52db5b.js +1 -0
  2. package/dist/multi/174.app-9931797d1602fc52db5b.js +1 -0
  3. package/dist/multi/252.app-9931797d1602fc52db5b.js +1 -0
  4. package/dist/multi/282.app-9931797d1602fc52db5b.js +1 -0
  5. package/dist/multi/29.app-9931797d1602fc52db5b.js +1 -0
  6. package/dist/multi/416.app-9931797d1602fc52db5b.js +1 -0
  7. package/dist/multi/527.app-9931797d1602fc52db5b.js +1 -0
  8. package/dist/multi/600.app-9931797d1602fc52db5b.js +1 -0
  9. package/dist/multi/605.app-9931797d1602fc52db5b.js +1 -0
  10. package/dist/multi/638.app-9931797d1602fc52db5b.js +1 -0
  11. package/dist/multi/672.app-9931797d1602fc52db5b.js +1 -0
  12. package/dist/multi/686.app-9931797d1602fc52db5b.js +1 -0
  13. package/dist/multi/725.app-9931797d1602fc52db5b.js +1 -0
  14. package/dist/multi/741.app-9931797d1602fc52db5b.js +1 -0
  15. package/dist/multi/755.app-9931797d1602fc52db5b.js +1 -0
  16. package/dist/multi/894.app-9931797d1602fc52db5b.js +1 -0
  17. package/dist/multi/91.app-9931797d1602fc52db5b.js +1 -0
  18. package/dist/multi/943.app-9931797d1602fc52db5b.js +1 -0
  19. package/dist/multi/980.app-9931797d1602fc52db5b.js +1 -0
  20. package/dist/multi/app-9931797d1602fc52db5b.js +2 -0
  21. package/dist/multi/app-9931797d1602fc52db5b.js.LICENSE.txt +10 -0
  22. package/dist/multi/manifest.json +25 -24
  23. package/dist/multi/styles-8fe37354d1c2270c691e.css +48 -0
  24. package/dist/single/app-6199dc1c2fd3bddc2526.js +2 -0
  25. package/dist/single/app-6199dc1c2fd3bddc2526.js.LICENSE.txt +10 -0
  26. package/dist/single/manifest.json +1 -1
  27. package/package.json +30 -17
  28. package/src/assets/scss/day.scss +2 -0
  29. package/src/assets/scss/index.scss +1 -3
  30. package/src/assets/scss/night.scss +2 -0
  31. package/src/assets/scss/palette.scss +391 -391
  32. package/src/assets/scss/theme.scss +292 -79
  33. package/src/components/BaseLayout/index.tsx +10 -31
  34. package/src/components/BaseLayout/styles.scss +14 -4
  35. package/src/components/Charts/index.tsx +245 -0
  36. package/src/components/Charts/styles.scss +27 -0
  37. package/src/components/EnvironmentPicker/index.tsx +60 -0
  38. package/src/components/EnvironmentPicker/styles.scss +9 -0
  39. package/src/components/Footer/FooterLogo.tsx +1 -2
  40. package/src/components/Footer/FooterVersion.tsx +7 -3
  41. package/src/components/Footer/index.tsx +6 -2
  42. package/src/components/Header/CiInfo/index.tsx +67 -0
  43. package/src/components/Header/CiInfo/styles.scss +7 -0
  44. package/src/components/Header/index.tsx +21 -8
  45. package/src/components/Header/styles.scss +9 -1
  46. package/src/components/HeaderControls/index.tsx +20 -0
  47. package/src/components/MainReport/index.tsx +84 -6
  48. package/src/components/MainReport/styles.scss +20 -0
  49. package/src/components/Metadata/index.tsx +6 -4
  50. package/src/components/MetadataButton/index.tsx +14 -6
  51. package/src/components/MetadataButton/styles.scss +3 -0
  52. package/src/components/Modal/index.tsx +15 -167
  53. package/src/components/NavTabs/index.tsx +70 -0
  54. package/src/components/{TestResult/TestResultTabs → NavTabs}/styles.scss +0 -3
  55. package/src/components/Report/index.tsx +7 -0
  56. package/src/components/ReportBody/Filters.tsx +45 -66
  57. package/src/components/ReportBody/index.tsx +29 -17
  58. package/src/components/ReportBody/styles.scss +9 -3
  59. package/src/components/ReportGlobalAttachments/index.tsx +34 -0
  60. package/src/components/ReportGlobalAttachments/styles.scss +11 -0
  61. package/src/components/ReportGlobalErrors/index.tsx +30 -0
  62. package/src/components/ReportGlobalErrors/styles.scss +12 -0
  63. package/src/components/ReportHeader/ReportHeaderLogo.tsx +6 -2
  64. package/src/components/ReportHeader/ReportHeaderPie.tsx +1 -2
  65. package/src/components/ReportHeader/index.tsx +38 -12
  66. package/src/components/ReportHeader/styles.scss +9 -1
  67. package/src/components/ReportMetadata/MetadataSummary.tsx +57 -65
  68. package/src/components/ReportMetadata/MetadataWithIcon.tsx +11 -13
  69. package/src/components/ReportMetadata/index.tsx +50 -3
  70. package/src/components/ReportMetadata/styles.scss +0 -2
  71. package/src/components/ReportQualityGateResults/index.tsx +42 -0
  72. package/src/components/ReportQualityGateResults/styles.scss +44 -0
  73. package/src/components/SectionPicker/index.tsx +55 -0
  74. package/src/components/SectionPicker/styles.scss +5 -0
  75. package/src/components/SectionSwitcher/index.tsx +16 -0
  76. package/src/components/SectionSwitcher/styles.scss +4 -0
  77. package/src/components/SectionTabs/index.tsx +0 -0
  78. package/src/components/SideBySide/index.tsx +52 -0
  79. package/src/components/SideBySide/styles.scss +64 -0
  80. package/src/components/SplitLayout/index.tsx +73 -0
  81. package/src/components/SplitLayout/styles.scss +84 -0
  82. package/src/components/Tabs/index.tsx +5 -0
  83. package/src/components/TestResult/TestStepsEmpty/index.tsx +23 -0
  84. package/src/components/TestResult/TestStepsEmpty/styles.scss +25 -0
  85. package/src/components/TestResult/TrAttachmentsView/index.tsx +29 -0
  86. package/src/components/TestResult/{TestResultDescription → TrDescription}/index.tsx +5 -5
  87. package/src/components/TestResult/{TestResultDropdown → TrDropdown}/index.tsx +7 -5
  88. package/src/components/TestResult/{TestResultEmpty → TrEmpty}/index.tsx +10 -9
  89. package/src/components/TestResult/TrEnvironmentItem/index.tsx +82 -0
  90. package/src/components/TestResult/TrEnvironmentItem/styles.scss +60 -0
  91. package/src/components/TestResult/TrEnvironmentsView/index.tsx +64 -0
  92. package/src/components/TestResult/TrEnvironmentsView/styles.scss +11 -0
  93. package/src/components/TestResult/TrError/TrDiff.tsx +121 -0
  94. package/src/components/TestResult/TrError/index.tsx +104 -0
  95. package/src/components/TestResult/TrError/styles.scss +223 -0
  96. package/src/components/TestResult/TrHeader/TrBreadcrumbs.tsx +44 -0
  97. package/src/components/TestResult/TrHeader/index.tsx +15 -0
  98. package/src/components/TestResult/{TestResultHeader → TrHeader}/styles.scss +7 -2
  99. package/src/components/TestResult/TrHistory/TrHistoryItem.tsx +94 -0
  100. package/src/components/TestResult/TrHistory/index.tsx +26 -0
  101. package/src/components/TestResult/{TestResultHistory → TrHistory}/styles.scss +2 -1
  102. package/src/components/TestResult/{TestResultInfo/TestResultInfoStatuses.tsx → TrInfo/TrInfoStatuses.tsx} +6 -4
  103. package/src/components/TestResult/TrInfo/index.tsx +99 -0
  104. package/src/components/TestResult/{TestResultInfo → TrInfo}/styles.scss +18 -0
  105. package/src/components/TestResult/{TestResultLinks → TrLinks}/index.tsx +8 -8
  106. package/src/components/TestResult/{TestResultMetadata → TrMetadata}/index.tsx +6 -6
  107. package/src/components/TestResult/{TestResultNavigation → TrNavigation}/index.tsx +7 -9
  108. package/src/components/TestResult/TrOverview.tsx +46 -0
  109. package/src/components/TestResult/{TestResultParameters → TrParameters}/index.tsx +4 -4
  110. package/src/components/TestResult/TrPrevStatuses/index.tsx +63 -0
  111. package/src/components/TestResult/TrPwTraces/PwTrace.tsx +34 -0
  112. package/src/components/TestResult/TrPwTraces/PwTraceButton.tsx +32 -0
  113. package/src/components/TestResult/TrPwTraces/index.tsx +32 -0
  114. package/src/components/TestResult/TrPwTraces/styles.scss +20 -0
  115. package/src/components/TestResult/TrRetriesView/TrRetriesItem.tsx +70 -0
  116. package/src/components/TestResult/TrRetriesView/index.tsx +29 -0
  117. package/src/components/TestResult/{TestResultSetup → TrSetup}/index.tsx +24 -15
  118. package/src/components/TestResult/{TestResultSeverity → TrSeverity}/index.tsx +2 -2
  119. package/src/components/TestResult/{TestResultStatus → TrStatus}/index.tsx +5 -5
  120. package/src/components/TestResult/TrSteps/TrAttachment.tsx +118 -0
  121. package/src/components/TestResult/{TestResultSteps/testResultAttachmentInfo.tsx → TrSteps/TrAttachmentInfo.tsx} +11 -11
  122. package/src/components/TestResult/TrSteps/TrStep.tsx +98 -0
  123. package/src/components/TestResult/TrSteps/TrStepInfo.tsx +90 -0
  124. package/src/components/TestResult/TrSteps/index.tsx +58 -0
  125. package/src/components/TestResult/{TestResultSteps → TrSteps}/styles.scss +49 -10
  126. package/src/components/TestResult/{TestResultSteps → TrSteps}/wrongAttachment.tsx +1 -1
  127. package/src/components/TestResult/TrTabs/index.tsx +42 -0
  128. package/src/components/TestResult/{TestResultTeardown → TrTeardown}/index.tsx +25 -15
  129. package/src/components/TestResult/index.tsx +54 -38
  130. package/src/components/TestResult/styles.scss +12 -0
  131. package/src/components/Timeline/index.tsx +100 -0
  132. package/src/components/Timeline/styles.scss +45 -0
  133. package/src/components/ToggleLayout/index.tsx +17 -0
  134. package/src/components/Tree/index.tsx +122 -16
  135. package/src/components/Tree/styles.scss +23 -5
  136. package/src/index.html +23 -6
  137. package/src/index.tsx +91 -20
  138. package/src/locales/az.json +376 -0
  139. package/src/locales/de.json +376 -0
  140. package/src/locales/en.json +376 -0
  141. package/src/locales/es.json +376 -0
  142. package/src/locales/fr.json +376 -0
  143. package/src/locales/he.json +376 -0
  144. package/src/locales/hy.json +376 -0
  145. package/src/locales/it.json +376 -0
  146. package/src/locales/ja.json +376 -0
  147. package/src/locales/ka.json +376 -0
  148. package/src/locales/kr.json +376 -0
  149. package/src/locales/nl.json +376 -0
  150. package/src/locales/pl.json +384 -0
  151. package/src/locales/pt.json +376 -0
  152. package/src/locales/ru.json +384 -0
  153. package/src/locales/sv.json +376 -0
  154. package/src/locales/tr.json +376 -0
  155. package/src/locales/ua.json +327 -0
  156. package/src/locales/zh.json +376 -0
  157. package/src/stores/chart.ts +41 -6
  158. package/src/stores/env.ts +88 -0
  159. package/src/stores/envInfo.ts +2 -2
  160. package/src/stores/globals.ts +28 -0
  161. package/src/stores/layout.ts +36 -0
  162. package/src/stores/locale.ts +77 -29
  163. package/src/stores/modal.ts +22 -0
  164. package/src/stores/qualityGate.ts +28 -0
  165. package/src/stores/router.ts +108 -0
  166. package/src/stores/sections.ts +63 -0
  167. package/src/stores/stats.ts +52 -7
  168. package/src/stores/testResults.ts +13 -9
  169. package/src/stores/theme.ts +15 -18
  170. package/src/stores/timeline.ts +39 -0
  171. package/src/stores/tree.ts +101 -31
  172. package/src/stores/variables.ts +40 -0
  173. package/src/styles.scss +66 -0
  174. package/src/utils/loadFromLocalStorage.ts +8 -0
  175. package/src/utils/time.ts +1 -0
  176. package/src/utils/tree.ts +23 -0
  177. package/src/utils/treeFilters.ts +27 -21
  178. package/test/components/Header/CiInfo.test.tsx +177 -0
  179. package/test/components/Header.test.tsx +122 -0
  180. package/test/utils/treeFilters.test.ts +44 -44
  181. package/tsconfig.json +7 -2
  182. package/tsconfig.node.json +8 -0
  183. package/types.d.ts +53 -21
  184. package/vitest.config.ts +15 -2
  185. package/vitest.setup.ts +1 -0
  186. package/webpack.config.js +37 -5
  187. package/dist/multi/141.app-4375537b.js +0 -1
  188. package/dist/multi/222.app-4375537b.js +0 -1
  189. package/dist/multi/335.app-4375537b.js +0 -1
  190. package/dist/multi/34.app-4375537b.js +0 -1
  191. package/dist/multi/349.app-4375537b.js +0 -1
  192. package/dist/multi/378.app-4375537b.js +0 -1
  193. package/dist/multi/406.app-4375537b.js +0 -1
  194. package/dist/multi/476.app-4375537b.js +0 -1
  195. package/dist/multi/53.app-4375537b.js +0 -1
  196. package/dist/multi/584.app-4375537b.js +0 -1
  197. package/dist/multi/690.app-4375537b.js +0 -1
  198. package/dist/multi/747.app-4375537b.js +0 -1
  199. package/dist/multi/767.app-4375537b.js +0 -1
  200. package/dist/multi/816.app-4375537b.js +0 -1
  201. package/dist/multi/83.app-4375537b.js +0 -1
  202. package/dist/multi/873.app-4375537b.js +0 -1
  203. package/dist/multi/920.app-4375537b.js +0 -1
  204. package/dist/multi/991.app-4375537b.js +0 -1
  205. package/dist/multi/app-4375537b.js +0 -2
  206. package/dist/multi/app-4375537b.js.LICENSE.txt +0 -16
  207. package/dist/multi/styles-4375537b.css +0 -283
  208. package/dist/single/app-f16f6693.js +0 -2
  209. package/dist/single/app-f16f6693.js.LICENSE.txt +0 -16
  210. package/src/assets/scss/code.scss +0 -71
  211. package/src/assets/scss/typography.scss +0 -218
  212. package/src/components/ArrowButton/index.tsx +0 -36
  213. package/src/components/ArrowButton/styles.scss +0 -35
  214. package/src/components/LanguagePicker/index.tsx +0 -40
  215. package/src/components/Modal/styles.scss +0 -126
  216. package/src/components/ReportLogo/index.tsx +0 -16
  217. package/src/components/ReportLogo/styles.scss +0 -20
  218. package/src/components/ReportLogoFull/index.tsx +0 -20
  219. package/src/components/ReportLogoFull/styles.scss +0 -7
  220. package/src/components/TestResult/TestResultAttachmentsView/index.tsx +0 -27
  221. package/src/components/TestResult/TestResultError/index.tsx +0 -59
  222. package/src/components/TestResult/TestResultError/styles.scss +0 -51
  223. package/src/components/TestResult/TestResultHeader/index.tsx +0 -55
  224. package/src/components/TestResult/TestResultHistory/TestResultHistoryItem.tsx +0 -67
  225. package/src/components/TestResult/TestResultHistory/index.tsx +0 -26
  226. package/src/components/TestResult/TestResultInfo/index.tsx +0 -79
  227. package/src/components/TestResult/TestResultOverview.tsx +0 -40
  228. package/src/components/TestResult/TestResultPrevStatuses/index.tsx +0 -49
  229. package/src/components/TestResult/TestResultRetriesView/TestResultRetriesItem.tsx +0 -52
  230. package/src/components/TestResult/TestResultRetriesView/index.tsx +0 -24
  231. package/src/components/TestResult/TestResultSteps/HtmlAttachmentPreview.tsx +0 -12
  232. package/src/components/TestResult/TestResultSteps/attachment.tsx +0 -68
  233. package/src/components/TestResult/TestResultSteps/attachmentCode.tsx +0 -20
  234. package/src/components/TestResult/TestResultSteps/attachmentImage.tsx +0 -32
  235. package/src/components/TestResult/TestResultSteps/attachmentVideo.tsx +0 -15
  236. package/src/components/TestResult/TestResultSteps/index.tsx +0 -49
  237. package/src/components/TestResult/TestResultSteps/testResultAttachment.tsx +0 -77
  238. package/src/components/TestResult/TestResultSteps/testResultStep.tsx +0 -78
  239. package/src/components/TestResult/TestResultSteps/testResultStepInfo.tsx +0 -30
  240. package/src/components/TestResult/TestResultTabs/index.tsx +0 -59
  241. package/src/components/ThemeButton/ThemeButton.tsx +0 -20
  242. package/src/components/Tree/Tree.tsx +0 -68
  243. package/src/components/Tree/TreeHeader.tsx +0 -82
  244. package/src/components/Tree/TreeItem.tsx +0 -35
  245. package/src/components/Tree/TreeItemIcon.tsx +0 -32
  246. package/src/i18n/constants.ts +0 -124
  247. package/src/i18n/locales/am.json +0 -118
  248. package/src/i18n/locales/az.json +0 -118
  249. package/src/i18n/locales/de.json +0 -118
  250. package/src/i18n/locales/en.json +0 -119
  251. package/src/i18n/locales/es.json +0 -118
  252. package/src/i18n/locales/fr.json +0 -118
  253. package/src/i18n/locales/he.json +0 -118
  254. package/src/i18n/locales/it.json +0 -118
  255. package/src/i18n/locales/ja.json +0 -118
  256. package/src/i18n/locales/ka.json +0 -118
  257. package/src/i18n/locales/kr.json +0 -118
  258. package/src/i18n/locales/nl.json +0 -118
  259. package/src/i18n/locales/pl.json +0 -116
  260. package/src/i18n/locales/pt.json +0 -118
  261. package/src/i18n/locales/ru.json +0 -116
  262. package/src/i18n/locales/sv.json +0 -118
  263. package/src/i18n/locales/tr.json +0 -118
  264. package/src/i18n/locales/zh.json +0 -118
  265. package/src/utils/attachments.ts +0 -156
  266. package/src/utils/capitalize.ts +0 -6
  267. /package/dist/multi/{JetBrainsMono_vf-b9a9c326..woff → JetBrainsMono_vf.woff} +0 -0
  268. /package/dist/multi/{JetBrainsMono_vf-9e9649b6..woff2 → JetBrainsMono_vf.woff2} +0 -0
  269. /package/dist/multi/{pt-root-ui_vf-22fe60ca..woff → pt-root-ui_vf.woff} +0 -0
  270. /package/dist/multi/{pt-root-ui_vf-9d251e8b..woff2 → pt-root-ui_vf.woff2} +0 -0
  271. /package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/styles.scss +0 -0
  272. /package/src/components/TestResult/{TestResultDescription → TrDescription}/styles.scss +0 -0
  273. /package/src/components/TestResult/{TestResultDropdown → TrDropdown}/styles.scss +0 -0
  274. /package/src/components/TestResult/{TestResultEmpty → TrEmpty}/styles.scss +0 -0
  275. /package/src/components/TestResult/{TestResultLinks → TrLinks}/styles.scss +0 -0
  276. /package/src/components/TestResult/{TestResultMetadata → TrMetadata}/styles.scss +0 -0
  277. /package/src/components/TestResult/{TestResultNavigation → TrNavigation}/styles.scss +0 -0
  278. /package/src/components/TestResult/{TestResultParameters → TrParameters}/styles.scss +0 -0
  279. /package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/styles.scss +0 -0
  280. /package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/styles.scss +0 -0
  281. /package/src/components/TestResult/{TestResultSeverity → TrSeverity}/styles.scss +0 -0
  282. /package/src/components/TestResult/{TestResultStatus → TrStatus}/styles.scss +0 -0
@@ -1,118 +0,0 @@
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
- }
@@ -1,118 +0,0 @@
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
- }
@@ -1,118 +0,0 @@
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
- }
@@ -1,156 +0,0 @@
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"];
@@ -1,6 +0,0 @@
1
- export const capitalize = (str: string) => {
2
- if (!str) {
3
- return;
4
- }
5
- return str.charAt(0).toLocaleUpperCase() + str.slice(1);
6
- };