@allurereport/web-allure2 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.
- package/.babelrc.cjs +18 -0
- package/.eslintrc.cjs +125 -0
- package/README.md +27 -0
- package/dist/multi/154.app-9ac9d027.js +1 -0
- package/dist/multi/216.app-9ac9d027.js +1 -0
- package/dist/multi/232.app-9ac9d027.js +1 -0
- package/dist/multi/250.app-9ac9d027.js +1 -0
- package/dist/multi/256.app-9ac9d027.js +1 -0
- package/dist/multi/301.app-9ac9d027.js +1 -0
- package/dist/multi/323.app-9ac9d027.js +1 -0
- package/dist/multi/353.app-9ac9d027.js +1 -0
- package/dist/multi/411d15fc5bb62472eea6ead4fb276ca9.ico +0 -0
- package/dist/multi/564.app-9ac9d027.js +1 -0
- package/dist/multi/594.app-9ac9d027.js +1 -0
- package/dist/multi/623.app-9ac9d027.js +1 -0
- package/dist/multi/7.app-9ac9d027.js +1 -0
- package/dist/multi/729.app-9ac9d027.js +1 -0
- package/dist/multi/783.app-9ac9d027.js +1 -0
- package/dist/multi/826.app-9ac9d027.js +1 -0
- package/dist/multi/925.app-9ac9d027.js +1 -0
- package/dist/multi/app-9ac9d027.js +2 -0
- package/dist/multi/app-9ac9d027.js.LICENSE.txt +29 -0
- package/dist/multi/checkmark-c1a9ce12.svg +8 -0
- package/dist/multi/manifest.json +27 -0
- package/dist/multi/sort-down-icon-41195b0d.svg +8 -0
- package/dist/multi/sort-icon-fddc6c81.svg +8 -0
- package/dist/multi/sort-up-icon-d5bc65f6.svg +8 -0
- package/dist/multi/sprite.svg +4 -0
- package/dist/multi/styles-9ac9d027.css +558 -0
- package/dist/multi/vertical-5e6d1df4.png +0 -0
- package/dist/single/411d15fc5bb62472eea6ead4fb276ca9.ico +0 -0
- package/dist/single/app-f726ff87.js +2 -0
- package/dist/single/app-f726ff87.js.LICENSE.txt +29 -0
- package/dist/single/checkmark-c1a9ce12.svg +8 -0
- package/dist/single/manifest.json +10 -0
- package/dist/single/sort-down-icon-41195b0d.svg +8 -0
- package/dist/single/sort-icon-fddc6c81.svg +8 -0
- package/dist/single/sort-up-icon-d5bc65f6.svg +8 -0
- package/dist/single/sprite.svg +4 -0
- package/dist/single/styles-f726ff87.css +558 -0
- package/package.json +107 -0
- package/src/app.js +69 -0
- package/src/assets/icons/allure-logo.svg +45 -0
- package/src/assets/icons/bamboo.svg +31 -0
- package/src/assets/icons/bitbucket.svg +10 -0
- package/src/assets/icons/bomb.svg +7 -0
- package/src/assets/icons/broken.svg +10 -0
- package/src/assets/icons/bug.svg +10 -0
- package/src/assets/icons/chevron-down.svg +10 -0
- package/src/assets/icons/chevron-left.svg +10 -0
- package/src/assets/icons/chevron-right-fat.svg +10 -0
- package/src/assets/icons/chevron-right.svg +10 -0
- package/src/assets/icons/chevron-up.svg +10 -0
- package/src/assets/icons/circleci.svg +1 -0
- package/src/assets/icons/close.svg +10 -0
- package/src/assets/icons/collapse.svg +5 -0
- package/src/assets/icons/compare.svg +10 -0
- package/src/assets/icons/copy.svg +11 -0
- package/src/assets/icons/csv.svg +13 -0
- package/src/assets/icons/download.svg +11 -0
- package/src/assets/icons/draggable.svg +15 -0
- package/src/assets/icons/expand.svg +5 -0
- package/src/assets/icons/failed.svg +10 -0
- package/src/assets/icons/file.svg +3 -0
- package/src/assets/icons/folder.svg +10 -0
- package/src/assets/icons/github.svg +4 -0
- package/src/assets/icons/gitlab.svg +12 -0
- package/src/assets/icons/graphs.svg +11 -0
- package/src/assets/icons/history.svg +11 -0
- package/src/assets/icons/image.svg +3 -0
- package/src/assets/icons/info.svg +12 -0
- package/src/assets/icons/jenkins.svg +327 -0
- package/src/assets/icons/jobs.svg +12 -0
- package/src/assets/icons/link.svg +11 -0
- package/src/assets/icons/list.svg +13 -0
- package/src/assets/icons/maximize.svg +11 -0
- package/src/assets/icons/new-broken.svg +6 -0
- package/src/assets/icons/new-failed.svg +6 -0
- package/src/assets/icons/new-passed.svg +5 -0
- package/src/assets/icons/overview.svg +5 -0
- package/src/assets/icons/passed.svg +10 -0
- package/src/assets/icons/pdf.svg +13 -0
- package/src/assets/icons/refresh.svg +4 -0
- package/src/assets/icons/retries.svg +11 -0
- package/src/assets/icons/save.svg +10 -0
- package/src/assets/icons/skipped.svg +3 -0
- package/src/assets/icons/sort-down.svg +10 -0
- package/src/assets/icons/sort-up.svg +10 -0
- package/src/assets/icons/sort.svg +11 -0
- package/src/assets/icons/table.svg +10 -0
- package/src/assets/icons/task.svg +11 -0
- package/src/assets/icons/teamcity.svg +40 -0
- package/src/assets/icons/timeline.svg +12 -0
- package/src/assets/icons/tree.svg +10 -0
- package/src/assets/icons/txt.svg +11 -0
- package/src/assets/icons/unknown.svg +10 -0
- package/src/behaviors/ClipboardBehavior.js +34 -0
- package/src/behaviors/DownloadBehavior.js +42 -0
- package/src/behaviors/GaBehavior.js +27 -0
- package/src/behaviors/LoadBehavior.js +18 -0
- package/src/behaviors/TooltipBehavior.js +25 -0
- package/src/behaviors/index.js +7 -0
- package/src/blocks/alert/styles.scss +8 -0
- package/src/blocks/arrow/styles.scss +21 -0
- package/src/blocks/attachment-row/attachment-row.hbs +34 -0
- package/src/blocks/attachment-row/styles.scss +71 -0
- package/src/blocks/bar/styles.scss +22 -0
- package/src/blocks/button/styles.scss +60 -0
- package/src/blocks/clipboard-copy/clipboard-copy.hbs +5 -0
- package/src/blocks/executor-icon/bamboo.svg +31 -0
- package/src/blocks/executor-icon/bitbucket.svg +10 -0
- package/src/blocks/executor-icon/circleci.svg +1 -0
- package/src/blocks/executor-icon/default-icon.png +0 -0
- package/src/blocks/executor-icon/github.svg +4 -0
- package/src/blocks/executor-icon/gitlab.svg +12 -0
- package/src/blocks/executor-icon/jenkins.svg +327 -0
- package/src/blocks/executor-icon/styles.scss +15 -0
- package/src/blocks/executor-icon/teamcity.svg +40 -0
- package/src/blocks/island/styles.scss +7 -0
- package/src/blocks/label/styles.scss +15 -0
- package/src/blocks/link/styles.scss +10 -0
- package/src/blocks/pane/styles.scss +52 -0
- package/src/blocks/pane-header/pane-header.hbs +15 -0
- package/src/blocks/parameters-table/parameters-table.hbs +10 -0
- package/src/blocks/parameters-table/styles.scss +22 -0
- package/src/blocks/spinner/styles.scss +30 -0
- package/src/blocks/splash/styles.scss +13 -0
- package/src/blocks/status-details/status-details.hbs +13 -0
- package/src/blocks/status-details/styles.scss +32 -0
- package/src/blocks/step-stats/step-stats.hbs +15 -0
- package/src/blocks/step-stats/styles.scss +19 -0
- package/src/blocks/table/sort-down-icon.svg +1 -0
- package/src/blocks/table/sort-icon.svg +1 -0
- package/src/blocks/table/sort-up-icon.svg +1 -0
- package/src/blocks/table/sortable-col.hbs +4 -0
- package/src/blocks/table/styles.scss +64 -0
- package/src/blocks/tabs/styles.scss +29 -0
- package/src/blocks/tabs/tabs.hbs +5 -0
- package/src/blocks/text/styles.scss +5 -0
- package/src/blocks/widget/draggable.svg +1 -0
- package/src/blocks/widget/styles.scss +76 -0
- package/src/components/attachment/AttachmentView.hbs +58 -0
- package/src/components/attachment/AttachmentView.js +90 -0
- package/src/components/attachment/styles.scss +78 -0
- package/src/components/empty/EmptyView.hbs +3 -0
- package/src/components/empty/EmptyView.js +18 -0
- package/src/components/empty/styles.scss +4 -0
- package/src/components/error-splash/ErrorSplashView.hbs +4 -0
- package/src/components/error-splash/ErrorSplashView.js +19 -0
- package/src/components/error-splash/styles.scss +4 -0
- package/src/components/graph-base/BaseChartView.hbs +5 -0
- package/src/components/graph-base/BaseChartView.js +78 -0
- package/src/components/graph-base/styles.scss +66 -0
- package/src/components/graph-duration-chart/DurationChartView.js +100 -0
- package/src/components/graph-pie-chart/PieChartView.js +155 -0
- package/src/components/graph-severity-chart/SeverityChartView.js +100 -0
- package/src/components/graph-trend-chart/TrendChartView.js +202 -0
- package/src/components/graph-trend-chart/styles.scss +16 -0
- package/src/components/graph-trend-chart/trend-tooltip.hbs +9 -0
- package/src/components/language-select/LanguageSelectView.hbs +5 -0
- package/src/components/language-select/LanguageSelectView.js +42 -0
- package/src/components/language-select/checkmark.svg +1 -0
- package/src/components/language-select/styles.scss +34 -0
- package/src/components/loader/LoaderView.hbs +6 -0
- package/src/components/loader/LoaderView.js +21 -0
- package/src/components/loader/styles.scss +26 -0
- package/src/components/marks-toggle/MarksToggleView.hbs +14 -0
- package/src/components/marks-toggle/MarksToggleView.js +41 -0
- package/src/components/marks-toggle/styles.scss +38 -0
- package/src/components/modal/ModalView.hbs +13 -0
- package/src/components/modal/ModalView.js +43 -0
- package/src/components/modal/styles.scss +31 -0
- package/src/components/node-search/NodeSearchView.hbs +4 -0
- package/src/components/node-search/NodeSearchView.js +32 -0
- package/src/components/node-search/styles.scss +29 -0
- package/src/components/node-sorter/NodeSorterView.hbs +22 -0
- package/src/components/node-sorter/NodeSorterView.js +43 -0
- package/src/components/node-sorter/styles.scss +26 -0
- package/src/components/popover/PopoverView.js +8 -0
- package/src/components/popover/styles.scss +32 -0
- package/src/components/side-by-side/SideBySideView.hbs +2 -0
- package/src/components/side-by-side/SideBySideView.js +42 -0
- package/src/components/side-by-side/styles.scss +59 -0
- package/src/components/side-by-side/vertical.png +0 -0
- package/src/components/side-nav/SideNavView.hbs +39 -0
- package/src/components/side-nav/SideNavView.js +81 -0
- package/src/components/side-nav/styles.scss +118 -0
- package/src/components/status-toggle/StatusToggleView.hbs +16 -0
- package/src/components/status-toggle/StatusToggleView.js +42 -0
- package/src/components/status-toggle/styles.scss +35 -0
- package/src/components/testresult/TestResultView.hbs +32 -0
- package/src/components/testresult/TestResultView.js +90 -0
- package/src/components/testresult/styles.scss +29 -0
- package/src/components/testresult-execution/TestResultExecutionView.hbs +13 -0
- package/src/components/testresult-execution/TestResultExecutionView.js +85 -0
- package/src/components/testresult-execution/stages-block.hbs +47 -0
- package/src/components/testresult-execution/steps-list.hbs +31 -0
- package/src/components/testresult-execution/styles.scss +70 -0
- package/src/components/testresult-overview/TestResultOverviewView.hbs +8 -0
- package/src/components/testresult-overview/TestResultOverviewView.js +46 -0
- package/src/components/testresult-overview/styles.scss +22 -0
- package/src/components/testresult-tree/TestResultTreeView.js +60 -0
- package/src/components/tooltip/TooltipView.js +111 -0
- package/src/components/tooltip/styles.scss +43 -0
- package/src/components/tree/TreeView.hbs +9 -0
- package/src/components/tree/TreeView.js +200 -0
- package/src/components/tree/styles.scss +141 -0
- package/src/components/tree/tree-group.hbs +36 -0
- package/src/components/tree/tree-leaf.hbs +53 -0
- package/src/components/tree/tree-time.hbs +6 -0
- package/src/components/tree-view-container/TreeViewContainer.hbs +34 -0
- package/src/components/tree-view-container/TreeViewContainer.js +103 -0
- package/src/components/tree-view-container/styles.scss +38 -0
- package/src/components/widget-status/WidgetStatusView.hbs +21 -0
- package/src/components/widget-status/WidgetStatusView.js +17 -0
- package/src/components/widgets-grid/WidgetsGridView.js +90 -0
- package/src/components/widgets-grid/styles.scss +34 -0
- package/src/data/localstorage/LocalStorageModel.js +23 -0
- package/src/data/testresult/TestResultModel.js +36 -0
- package/src/data/tree/TreeCollection.js +153 -0
- package/src/data/tree/comparator.js +63 -0
- package/src/data/tree/filter.js +66 -0
- package/src/data/trend/TrendCollection.js +36 -0
- package/src/data/widgets/WidgetsModel.js +25 -0
- package/src/decorators/index.js +53 -0
- package/src/favicon.ico +0 -0
- package/src/helpers/allure-icon.js +228 -0
- package/src/helpers/and.js +3 -0
- package/src/helpers/angle.js +15 -0
- package/src/helpers/arrow.js +17 -0
- package/src/helpers/b.js +6 -0
- package/src/helpers/concat.js +3 -0
- package/src/helpers/date.js +11 -0
- package/src/helpers/default.js +8 -0
- package/src/helpers/duration.js +60 -0
- package/src/helpers/eq.js +3 -0
- package/src/helpers/fileicon.js +5 -0
- package/src/helpers/filesize.js +8 -0
- package/src/helpers/gt.js +3 -0
- package/src/helpers/inc.js +3 -0
- package/src/helpers/is-def.js +3 -0
- package/src/helpers/job-icon.js +8 -0
- package/src/helpers/linky.js +7 -0
- package/src/helpers/not.js +3 -0
- package/src/helpers/or.js +3 -0
- package/src/helpers/sort-class.js +6 -0
- package/src/helpers/statistic-bar.js +12 -0
- package/src/helpers/status-bar.js +14 -0
- package/src/helpers/t.js +5 -0
- package/src/helpers/text-with-links.js +18 -0
- package/src/helpers/time.js +18 -0
- package/src/helpers/timeago.js +10 -0
- package/src/index.html +17 -0
- package/src/index.js +52 -0
- package/src/layouts/application/AppLayout.hbs +2 -0
- package/src/layouts/application/AppLayout.js +50 -0
- package/src/layouts/application/styles.scss +17 -0
- package/src/layouts/error/ErrorLayout.js +11 -0
- package/src/layouts/overview/OverviewLayout.js +8 -0
- package/src/layouts/testresult/TestResultLayout.js +43 -0
- package/src/layouts/tree/TreeLayout.js +45 -0
- package/src/mixins.scss +128 -0
- package/src/pluginApi.js +26 -0
- package/src/plugins/.eslintrc +5 -0
- package/src/plugins/default/index.js +11 -0
- package/src/plugins/screen-diff/index.js +186 -0
- package/src/plugins/screen-diff/styles.css +30 -0
- package/src/plugins/tab-behaviors/index.js +239 -0
- package/src/plugins/tab-category/index.js +15 -0
- package/src/plugins/tab-graph/GraphCollection.js +12 -0
- package/src/plugins/tab-graph/GraphLayout.js +17 -0
- package/src/plugins/tab-graph/index.js +8 -0
- package/src/plugins/tab-packages/index.js +137 -0
- package/src/plugins/tab-suites/index.js +15 -0
- package/src/plugins/tab-timeline/TimelineLayout.js +18 -0
- package/src/plugins/tab-timeline/TimelineView.hbs +17 -0
- package/src/plugins/tab-timeline/TimelineView.js +250 -0
- package/src/plugins/tab-timeline/index.js +12 -0
- package/src/plugins/tab-timeline/styles.scss +76 -0
- package/src/plugins/testresult-category/CategoryView.hbs +6 -0
- package/src/plugins/testresult-category/CategoryView.js +17 -0
- package/src/plugins/testresult-category/index.js +3 -0
- package/src/plugins/testresult-description/DescriptionView.hbs +4 -0
- package/src/plugins/testresult-description/DescriptionView.js +16 -0
- package/src/plugins/testresult-description/index.js +3 -0
- package/src/plugins/testresult-duration/DurationView.hbs +7 -0
- package/src/plugins/testresult-duration/DurationView.js +16 -0
- package/src/plugins/testresult-duration/index.js +3 -0
- package/src/plugins/testresult-history/HistoryView.hbs +27 -0
- package/src/plugins/testresult-history/HistoryView.js +33 -0
- package/src/plugins/testresult-history/index.js +3 -0
- package/src/plugins/testresult-history/styles.scss +10 -0
- package/src/plugins/testresult-links/LinksView.hbs +17 -0
- package/src/plugins/testresult-links/LinksView.js +17 -0
- package/src/plugins/testresult-links/index.js +3 -0
- package/src/plugins/testresult-links/styles.scss +19 -0
- package/src/plugins/testresult-owner/OwnerView.hbs +4 -0
- package/src/plugins/testresult-owner/OwnerView.js +17 -0
- package/src/plugins/testresult-owner/index.js +3 -0
- package/src/plugins/testresult-parameters/ParametersView.hbs +13 -0
- package/src/plugins/testresult-parameters/ParametersView.js +22 -0
- package/src/plugins/testresult-parameters/index.js +3 -0
- package/src/plugins/testresult-parameters/styles.scss +8 -0
- package/src/plugins/testresult-retries/RetriesView.hbs +13 -0
- package/src/plugins/testresult-retries/RetriesView.js +28 -0
- package/src/plugins/testresult-retries/index.js +3 -0
- package/src/plugins/testresult-retries/styles.scss +11 -0
- package/src/plugins/testresult-severity/SeverityView.hbs +4 -0
- package/src/plugins/testresult-severity/SeverityView.js +17 -0
- package/src/plugins/testresult-severity/index.js +3 -0
- package/src/plugins/testresult-tags/TagsView.hbs +5 -0
- package/src/plugins/testresult-tags/TagsView.js +17 -0
- package/src/plugins/testresult-tags/index.js +3 -0
- package/src/plugins/widget-categories/index.js +12 -0
- package/src/plugins/widget-categories-trend/CategoriesTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-categories-trend/CategoriesTrendWidgetView.js +33 -0
- package/src/plugins/widget-categories-trend/index.js +4 -0
- package/src/plugins/widget-categories-trend/styles.scss +6 -0
- package/src/plugins/widget-duration/DurationWidgetView.hbs +4 -0
- package/src/plugins/widget-duration/DurationWidgetView.js +23 -0
- package/src/plugins/widget-duration/index.js +3 -0
- package/src/plugins/widget-duration-trend/DurationTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-duration-trend/DurationTrendWidgetView.js +49 -0
- package/src/plugins/widget-duration-trend/index.js +4 -0
- package/src/plugins/widget-duration-trend/styles.scss +6 -0
- package/src/plugins/widget-environment/EnvironmentWidget.hbs +27 -0
- package/src/plugins/widget-environment/EnvironmentWidget.js +25 -0
- package/src/plugins/widget-environment/index.js +3 -0
- package/src/plugins/widget-executor/ExecutorsWidgetView.hbs +40 -0
- package/src/plugins/widget-executor/ExecutorsWidgetView.js +8 -0
- package/src/plugins/widget-executor/index.js +3 -0
- package/src/plugins/widget-history-trend/HistoryTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-history-trend/HistoryTrendWidgetView.js +30 -0
- package/src/plugins/widget-history-trend/index.js +6 -0
- package/src/plugins/widget-history-trend/styles.scss +6 -0
- package/src/plugins/widget-launch/LaunchesWidgetView.hbs +23 -0
- package/src/plugins/widget-launch/LaunchesWidgetView.js +8 -0
- package/src/plugins/widget-launch/index.js +3 -0
- package/src/plugins/widget-retry-trend/RetryTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-retry-trend/RetryTrendWidgetView.js +33 -0
- package/src/plugins/widget-retry-trend/index.js +4 -0
- package/src/plugins/widget-retry-trend/styles.scss +6 -0
- package/src/plugins/widget-severity/SeverityWidgetView.hbs +4 -0
- package/src/plugins/widget-severity/SeverityWidgetView.js +23 -0
- package/src/plugins/widget-severity/index.js +3 -0
- package/src/plugins/widget-status/StatusWidgetView.hbs +4 -0
- package/src/plugins/widget-status/StatusWidgetView.js +44 -0
- package/src/plugins/widget-status/index.js +3 -0
- package/src/plugins/widget-suites/index.js +12 -0
- package/src/plugins/widget-summary/SummaryWidgetView.hbs +20 -0
- package/src/plugins/widget-summary/SummaryWidgetView.js +33 -0
- package/src/plugins/widget-summary/index.js +3 -0
- package/src/plugins/widget-summary/styles.scss +14 -0
- package/src/router.js +52 -0
- package/src/rtl.scss +19 -0
- package/src/styles.scss +91 -0
- package/src/translations/az.json +217 -0
- package/src/translations/br.json +205 -0
- package/src/translations/de.json +205 -0
- package/src/translations/en.json +222 -0
- package/src/translations/es.json +209 -0
- package/src/translations/fr.json +217 -0
- package/src/translations/he.json +205 -0
- package/src/translations/isv.json +216 -0
- package/src/translations/ja.json +210 -0
- package/src/translations/kr.json +210 -0
- package/src/translations/nl.json +217 -0
- package/src/translations/pl.json +220 -0
- package/src/translations/ru.json +215 -0
- package/src/translations/sv.json +222 -0
- package/src/translations/tr.json +217 -0
- package/src/translations/zh.json +191 -0
- package/src/utils/arrays.js +3 -0
- package/src/utils/attachmentType.js +101 -0
- package/src/utils/clipboard.js +38 -0
- package/src/utils/escape.js +5 -0
- package/src/utils/gtag.js +8 -0
- package/src/utils/highlight.js +14 -0
- package/src/utils/hotkeys.js +25 -0
- package/src/utils/loading.js +9 -0
- package/src/utils/marks.js +1 -0
- package/src/utils/pluginsRegistry.js +56 -0
- package/src/utils/settings.js +4 -0
- package/src/utils/settingsFactory.js +149 -0
- package/src/utils/sorting.js +21 -0
- package/src/utils/statuses.js +1 -0
- package/src/utils/translation.js +63 -0
- package/src/variables.scss +71 -0
- package/types.d.ts +5 -0
- package/webpack/utils.js +10 -0
- package/webpack.config.js +127 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chart": {
|
|
3
|
+
"duration": {
|
|
4
|
+
"empty": "Gösterilecek bir şey yok",
|
|
5
|
+
"name": "Süre"
|
|
6
|
+
},
|
|
7
|
+
"severity": {
|
|
8
|
+
"name": "Önem Derecesi"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"name": "Durum"
|
|
12
|
+
},
|
|
13
|
+
"trend": {
|
|
14
|
+
"empty": "Gösterilecek bir şey yok"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"component": {
|
|
18
|
+
"markToggle": {
|
|
19
|
+
"hideCases": "{{mark}} test sonuçlarını gizle",
|
|
20
|
+
"showCases": "{{mark}} test sonuçlarını göster"
|
|
21
|
+
},
|
|
22
|
+
"statusToggle": {
|
|
23
|
+
"hideCases": "{{status}} durumlu test sonuçlarını gizle",
|
|
24
|
+
"showCases": "{{status}} durumlu test sonuçlarını göster"
|
|
25
|
+
},
|
|
26
|
+
"tree": {
|
|
27
|
+
"download": "CSV indir",
|
|
28
|
+
"empty": "Öğe yok",
|
|
29
|
+
"filter": "Durum",
|
|
30
|
+
"filter-marks": "İşaretler",
|
|
31
|
+
"filtered": {
|
|
32
|
+
"shown": "{{count}} gösteriliyor",
|
|
33
|
+
"total": "{{count}} test sonucu",
|
|
34
|
+
"total_plural": "{{count}} test sonucu"
|
|
35
|
+
},
|
|
36
|
+
"groups": "Grup bilgisini aç/kapat",
|
|
37
|
+
"time": {
|
|
38
|
+
"max": {
|
|
39
|
+
"name": "Maks.",
|
|
40
|
+
"tooltip": "En uzun test süresi"
|
|
41
|
+
},
|
|
42
|
+
"sum": {
|
|
43
|
+
"name": "Toplam",
|
|
44
|
+
"tooltip": "Tüm test sürelerinin toplamı"
|
|
45
|
+
},
|
|
46
|
+
"total": {
|
|
47
|
+
"name": "Toplam Süre",
|
|
48
|
+
"tooltip": "İlk testin başlangıcından son testin bitişine kadar geçen süre"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"unknown": "<Boş>"
|
|
52
|
+
},
|
|
53
|
+
"widgetStatus": {
|
|
54
|
+
"showAll": "Hepsini Göster",
|
|
55
|
+
"total": "{{count}} öğe toplam",
|
|
56
|
+
"total_plural": "{{count}} öğe toplam"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"controls": {
|
|
60
|
+
"backto": "Geri Dön",
|
|
61
|
+
"clipboard": "Panoya Kopyala",
|
|
62
|
+
"clipboardError": "Değer panoya kopyalanamadı. Tarayıcınız tarafından desteklenmediği görünüyor.",
|
|
63
|
+
"clipboardSuccess": "Başarıyla kopyalandı",
|
|
64
|
+
"collapse": "Daralt",
|
|
65
|
+
"expand": "Genişlet",
|
|
66
|
+
"fullscreen": "Tam Ekran",
|
|
67
|
+
"language": "Dili Değiştir"
|
|
68
|
+
},
|
|
69
|
+
"errors": {
|
|
70
|
+
"missedAttachment": "Ek dosya bulunamadı",
|
|
71
|
+
"notFound": "Bulunamadı"
|
|
72
|
+
},
|
|
73
|
+
"marks": {
|
|
74
|
+
"flaky": "Kararsız",
|
|
75
|
+
"newBroken": "Yeni Bozuk",
|
|
76
|
+
"newFailed": "Yeni Başarısız",
|
|
77
|
+
"newPassed": "Yeni Başarılı",
|
|
78
|
+
"retriesStatusChange": "Yeniden deneme sonrası durum değişikliği"
|
|
79
|
+
},
|
|
80
|
+
"sorter": {
|
|
81
|
+
"duration": "süre",
|
|
82
|
+
"name": "ad",
|
|
83
|
+
"order": "sıralama",
|
|
84
|
+
"status": "durum"
|
|
85
|
+
},
|
|
86
|
+
"status": {
|
|
87
|
+
"broken": "Kırık",
|
|
88
|
+
"failed": "Başarısız",
|
|
89
|
+
"passed": "Başarılı",
|
|
90
|
+
"skipped": "Atlandı",
|
|
91
|
+
"unknown": "Bilinmeyen"
|
|
92
|
+
},
|
|
93
|
+
"tab": {
|
|
94
|
+
"categories": {
|
|
95
|
+
"name": "Kategoriler"
|
|
96
|
+
},
|
|
97
|
+
"graph": {
|
|
98
|
+
"name": "Grafikler"
|
|
99
|
+
},
|
|
100
|
+
"overview": {
|
|
101
|
+
"name": "Genel Bakış"
|
|
102
|
+
},
|
|
103
|
+
"suites": {
|
|
104
|
+
"name": "Test Suitleri"
|
|
105
|
+
},
|
|
106
|
+
"timeline": {
|
|
107
|
+
"name": "Zaman Çizelgesi",
|
|
108
|
+
"selected": "{{duration}} süreden fazla süren {{count}} test (%{{percent}}) seçildi",
|
|
109
|
+
"selected_plural": "{{duration}} süreden fazla süren {{count}} test (%{{percent}}) seçildi"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"testResult": {
|
|
113
|
+
"categories": {
|
|
114
|
+
"name": "Kategoriler"
|
|
115
|
+
},
|
|
116
|
+
"description": {
|
|
117
|
+
"name": "Açıklama"
|
|
118
|
+
},
|
|
119
|
+
"duration": {
|
|
120
|
+
"name": "Süre"
|
|
121
|
+
},
|
|
122
|
+
"execution": {
|
|
123
|
+
"body": "Test gövdesi",
|
|
124
|
+
"downloadAttachment": {
|
|
125
|
+
"tooltip": "Eki yeni bir sekmede aç"
|
|
126
|
+
},
|
|
127
|
+
"name": "Çalıştırma",
|
|
128
|
+
"setup": "Kurulum",
|
|
129
|
+
"teardown": "Kaldırma"
|
|
130
|
+
},
|
|
131
|
+
"history": {
|
|
132
|
+
"empty": "Geçmiş bilgisi yok.",
|
|
133
|
+
"name": "Geçmiş",
|
|
134
|
+
"statistic": "{{total}}'nin {{passed}} geçti",
|
|
135
|
+
"successRate": "Başarı oranı",
|
|
136
|
+
"time": "{{time}} tarihinde, {{date}}"
|
|
137
|
+
},
|
|
138
|
+
"links": {
|
|
139
|
+
"name": "Bağlantılar"
|
|
140
|
+
},
|
|
141
|
+
"overview": {
|
|
142
|
+
"name": "Genel Bakış"
|
|
143
|
+
},
|
|
144
|
+
"owner": {
|
|
145
|
+
"name": "Sahip"
|
|
146
|
+
},
|
|
147
|
+
"parameters": {
|
|
148
|
+
"name": "Parametreler"
|
|
149
|
+
},
|
|
150
|
+
"retries": {
|
|
151
|
+
"empty": "Test yeniden deneme hakkında bilgi yok",
|
|
152
|
+
"name": "Yeniden Denemeler",
|
|
153
|
+
"time": "{{time}} tarihinde, {{date}}"
|
|
154
|
+
},
|
|
155
|
+
"severity": {
|
|
156
|
+
"name": "Önem"
|
|
157
|
+
},
|
|
158
|
+
"stats": {
|
|
159
|
+
"count": {
|
|
160
|
+
"attachments": "{{count}} eklenti",
|
|
161
|
+
"attachments_plural": "{{count}} eklenti",
|
|
162
|
+
"parameters": "{{count}} parametre",
|
|
163
|
+
"parameters_plural": "{{count}} parametre",
|
|
164
|
+
"steps": "{{count}} alt adım",
|
|
165
|
+
"steps_plural": "{{count}} alt adım"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"status": {
|
|
169
|
+
"empty": "Boş durum ayrıntıları",
|
|
170
|
+
"trace": "İzlemeyi göster"
|
|
171
|
+
},
|
|
172
|
+
"tags": {
|
|
173
|
+
"name": "Etiketler"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"widget": {
|
|
177
|
+
"categories": {
|
|
178
|
+
"name": "Kategoriler"
|
|
179
|
+
},
|
|
180
|
+
"categoriesTrend": {
|
|
181
|
+
"name": "Kategoriler trendi"
|
|
182
|
+
},
|
|
183
|
+
"durationTrend": {
|
|
184
|
+
"name": "Süre trendi"
|
|
185
|
+
},
|
|
186
|
+
"environment": {
|
|
187
|
+
"empty": "Herhangi bir çevresel değişken yok",
|
|
188
|
+
"name": "Çevre",
|
|
189
|
+
"showAll": "Hepsini göster"
|
|
190
|
+
},
|
|
191
|
+
"executors": {
|
|
192
|
+
"empty": "Test yürütücüleri hakkında bilgi yok",
|
|
193
|
+
"name": "Yürütücüler",
|
|
194
|
+
"unknown": "Bilinmiyor"
|
|
195
|
+
},
|
|
196
|
+
"launches": {
|
|
197
|
+
"empty": "Başlatma hakkında bilgi yok",
|
|
198
|
+
"name": "Başlatmalar"
|
|
199
|
+
},
|
|
200
|
+
"retryTrend": {
|
|
201
|
+
"name": "Tekrar trendi"
|
|
202
|
+
},
|
|
203
|
+
"suites": {
|
|
204
|
+
"name": "Suitler"
|
|
205
|
+
},
|
|
206
|
+
"summary": {
|
|
207
|
+
"aggregatedName": "Toplu rapor",
|
|
208
|
+
"launches": "başlatma",
|
|
209
|
+
"launches_plural": "başlatmalar",
|
|
210
|
+
"testResults": "test durumu",
|
|
211
|
+
"testResults_plural": "test durumları"
|
|
212
|
+
},
|
|
213
|
+
"trend": {
|
|
214
|
+
"name": "Trend"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chart": {
|
|
3
|
+
"duration": {
|
|
4
|
+
"empty": "没有信息",
|
|
5
|
+
"name": "耗时"
|
|
6
|
+
},
|
|
7
|
+
"severity": {
|
|
8
|
+
"name": "优先级"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"name": "状态"
|
|
12
|
+
},
|
|
13
|
+
"trend": {
|
|
14
|
+
"empty": "没有信息"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"component": {
|
|
18
|
+
"statusToggle": {
|
|
19
|
+
"hideCases": "隐藏{{status}}状态的用例",
|
|
20
|
+
"showCases": "显示{{status}}状态的用例"
|
|
21
|
+
},
|
|
22
|
+
"tree": {
|
|
23
|
+
"empty": "没有记录",
|
|
24
|
+
"filter": "通过用例状态过滤",
|
|
25
|
+
"filtered": {
|
|
26
|
+
"shown": "显示{{count}}个",
|
|
27
|
+
"total": "共{{count}}个用例",
|
|
28
|
+
"total_plural": "共{{count}}个用例"
|
|
29
|
+
},
|
|
30
|
+
"groups": "开关测试套信息",
|
|
31
|
+
"time": {
|
|
32
|
+
"max": {
|
|
33
|
+
"name": "最长",
|
|
34
|
+
"tooltip": "好使最长的用例"
|
|
35
|
+
},
|
|
36
|
+
"sum": {
|
|
37
|
+
"name": "合并",
|
|
38
|
+
"tooltip": "所有用例耗时之和"
|
|
39
|
+
},
|
|
40
|
+
"total": {
|
|
41
|
+
"name": "整体",
|
|
42
|
+
"tooltip": "从首个用例的开始时间到最后一个用例的结束时间"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"unknown": "空小组"
|
|
46
|
+
},
|
|
47
|
+
"widgetStatus": {
|
|
48
|
+
"showAll": "显示所有",
|
|
49
|
+
"total": "总共{{count}}项",
|
|
50
|
+
"total_plural": "总共{{count}}项"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"controls": {
|
|
54
|
+
"backto": "返回",
|
|
55
|
+
"clipboard": "复制到剪贴板",
|
|
56
|
+
"collapse": "折叠",
|
|
57
|
+
"expand": "展开",
|
|
58
|
+
"fullscreen": "全屏",
|
|
59
|
+
"language": "切换地区语言"
|
|
60
|
+
},
|
|
61
|
+
"errors": {
|
|
62
|
+
"missedAttachment": "没有找到附件",
|
|
63
|
+
"notFound": "没有找到"
|
|
64
|
+
},
|
|
65
|
+
"marks": {
|
|
66
|
+
"flaky": "不稳定",
|
|
67
|
+
"newBroken": "新的故障",
|
|
68
|
+
"newFailed": "新的失败",
|
|
69
|
+
"newPassed": "新的通过",
|
|
70
|
+
"retriesStatusChange": "重试后状态改变"
|
|
71
|
+
},
|
|
72
|
+
"sorter": {
|
|
73
|
+
"duration": "用时",
|
|
74
|
+
"name": "名称",
|
|
75
|
+
"status": "状态"
|
|
76
|
+
},
|
|
77
|
+
"status": {
|
|
78
|
+
"broken": "故障",
|
|
79
|
+
"failed": "失败",
|
|
80
|
+
"passed": "通过",
|
|
81
|
+
"skipped": "跳过",
|
|
82
|
+
"unknown": "未知"
|
|
83
|
+
},
|
|
84
|
+
"tab": {
|
|
85
|
+
"categories": {
|
|
86
|
+
"name": "类别"
|
|
87
|
+
},
|
|
88
|
+
"graph": {
|
|
89
|
+
"name": "图表"
|
|
90
|
+
},
|
|
91
|
+
"overview": {
|
|
92
|
+
"name": "总览"
|
|
93
|
+
},
|
|
94
|
+
"suites": {
|
|
95
|
+
"name": "测试套"
|
|
96
|
+
},
|
|
97
|
+
"timeline": {
|
|
98
|
+
"name": "时间刻度",
|
|
99
|
+
"selected": "{{count}}个测试用例({{percent}}%)执行时间超过{{duration}}",
|
|
100
|
+
"selected_plural": "{{count}}个测试用例({{percent}}%)执行时间超过{{duration}}"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"testResult": {
|
|
104
|
+
"categories": {
|
|
105
|
+
"name": "类别"
|
|
106
|
+
},
|
|
107
|
+
"description": {
|
|
108
|
+
"name": "描述"
|
|
109
|
+
},
|
|
110
|
+
"duration": {
|
|
111
|
+
"name": "耗时"
|
|
112
|
+
},
|
|
113
|
+
"execution": {
|
|
114
|
+
"body": "测试步骤",
|
|
115
|
+
"name": "执行",
|
|
116
|
+
"setup": "前置",
|
|
117
|
+
"teardown": "后置"
|
|
118
|
+
},
|
|
119
|
+
"history": {
|
|
120
|
+
"name": "历史",
|
|
121
|
+
"successRate": "成功率"
|
|
122
|
+
},
|
|
123
|
+
"links": {
|
|
124
|
+
"name": "链接"
|
|
125
|
+
},
|
|
126
|
+
"overview": {
|
|
127
|
+
"name": "总览"
|
|
128
|
+
},
|
|
129
|
+
"owner": {
|
|
130
|
+
"name": "作者"
|
|
131
|
+
},
|
|
132
|
+
"parameters": {
|
|
133
|
+
"name": "参数"
|
|
134
|
+
},
|
|
135
|
+
"retries": {
|
|
136
|
+
"name": "重试次数"
|
|
137
|
+
},
|
|
138
|
+
"severity": {
|
|
139
|
+
"name": "优先级"
|
|
140
|
+
},
|
|
141
|
+
"stats": {
|
|
142
|
+
"count": {
|
|
143
|
+
"attachments": "{{count}}个附件",
|
|
144
|
+
"attachments_plural": "{{count}}个附件",
|
|
145
|
+
"parameters": "{{count}}个参数",
|
|
146
|
+
"parameters_plural": "{{count}}个参数",
|
|
147
|
+
"steps": "{{count}}个步骤",
|
|
148
|
+
"steps_plural": "{{count}}个步骤"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"status": {
|
|
152
|
+
"empty": "状态详情为空",
|
|
153
|
+
"trace": "展示堆栈"
|
|
154
|
+
},
|
|
155
|
+
"tags": {
|
|
156
|
+
"name": "标签"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"widget": {
|
|
160
|
+
"categories": {
|
|
161
|
+
"name": "类别"
|
|
162
|
+
},
|
|
163
|
+
"environment": {
|
|
164
|
+
"empty": "没有环境变量",
|
|
165
|
+
"name": "环境",
|
|
166
|
+
"showAll": "显示所有"
|
|
167
|
+
},
|
|
168
|
+
"executors": {
|
|
169
|
+
"empty": "没有运行器的信息",
|
|
170
|
+
"name": "运行器",
|
|
171
|
+
"unknown": "未知"
|
|
172
|
+
},
|
|
173
|
+
"launches": {
|
|
174
|
+
"empty": "没有用例启动执行的信息",
|
|
175
|
+
"name": "启动"
|
|
176
|
+
},
|
|
177
|
+
"suites": {
|
|
178
|
+
"name": "测试套"
|
|
179
|
+
},
|
|
180
|
+
"summary": {
|
|
181
|
+
"aggregatedName": "汇总报告",
|
|
182
|
+
"launches": "启动",
|
|
183
|
+
"launches_plural": "启动",
|
|
184
|
+
"testResults": "测试用例",
|
|
185
|
+
"testResults_plural": "测试用例"
|
|
186
|
+
},
|
|
187
|
+
"trend": {
|
|
188
|
+
"name": "趋势"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { csvParseRows, tsvParseRows } from "d3-dsv";
|
|
2
|
+
import pluginsRegistry from "./pluginsRegistry.js";
|
|
3
|
+
|
|
4
|
+
export default function typeByMime(type) {
|
|
5
|
+
if (pluginsRegistry.attachmentViews[type]) {
|
|
6
|
+
return {
|
|
7
|
+
type: "custom",
|
|
8
|
+
...pluginsRegistry.attachmentViews[type],
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
switch (type) {
|
|
12
|
+
case "image/bmp":
|
|
13
|
+
case "image/gif":
|
|
14
|
+
case "image/tiff":
|
|
15
|
+
case "image/jpeg":
|
|
16
|
+
case "image/jpg":
|
|
17
|
+
case "image/png":
|
|
18
|
+
case "image/*":
|
|
19
|
+
return {
|
|
20
|
+
type: "image",
|
|
21
|
+
icon: "image",
|
|
22
|
+
};
|
|
23
|
+
case "text/xml":
|
|
24
|
+
case "application/xml":
|
|
25
|
+
case "application/json":
|
|
26
|
+
case "text/json":
|
|
27
|
+
case "text/yaml":
|
|
28
|
+
case "application/yaml":
|
|
29
|
+
case "application/x-yaml":
|
|
30
|
+
case "text/x-yaml":
|
|
31
|
+
return {
|
|
32
|
+
type: "code",
|
|
33
|
+
icon: "file",
|
|
34
|
+
parser: (d) => d,
|
|
35
|
+
};
|
|
36
|
+
case "text/plain":
|
|
37
|
+
case "text/*":
|
|
38
|
+
return {
|
|
39
|
+
type: "text",
|
|
40
|
+
icon: "txt",
|
|
41
|
+
parser: (d) => d,
|
|
42
|
+
};
|
|
43
|
+
case "text/html":
|
|
44
|
+
return {
|
|
45
|
+
type: "html",
|
|
46
|
+
icon: "file",
|
|
47
|
+
};
|
|
48
|
+
case "text/csv":
|
|
49
|
+
return {
|
|
50
|
+
type: "table",
|
|
51
|
+
icon: "csv",
|
|
52
|
+
parser: (d) => csvParseRows(d),
|
|
53
|
+
};
|
|
54
|
+
case "text/tab-separated-values":
|
|
55
|
+
return {
|
|
56
|
+
type: "table",
|
|
57
|
+
icon: "table",
|
|
58
|
+
parser: (d) => tsvParseRows(d),
|
|
59
|
+
};
|
|
60
|
+
case "image/svg+xml":
|
|
61
|
+
return {
|
|
62
|
+
type: "svg",
|
|
63
|
+
icon: "file",
|
|
64
|
+
};
|
|
65
|
+
case "video/mp4":
|
|
66
|
+
case "video/ogg":
|
|
67
|
+
case "video/webm":
|
|
68
|
+
return {
|
|
69
|
+
type: "video",
|
|
70
|
+
icon: "file",
|
|
71
|
+
};
|
|
72
|
+
case "text/uri-list":
|
|
73
|
+
return {
|
|
74
|
+
type: "uri",
|
|
75
|
+
icon: "list",
|
|
76
|
+
parser: (d) =>
|
|
77
|
+
d
|
|
78
|
+
.split("\n")
|
|
79
|
+
.map((line) => line.trim())
|
|
80
|
+
.filter((line) => line.length > 0)
|
|
81
|
+
.map((line) => ({
|
|
82
|
+
comment: line.indexOf("#") === 0,
|
|
83
|
+
text: line,
|
|
84
|
+
})),
|
|
85
|
+
};
|
|
86
|
+
case "application/x-tar":
|
|
87
|
+
case "application/x-gtar":
|
|
88
|
+
case "application/x-bzip2":
|
|
89
|
+
case "application/gzip":
|
|
90
|
+
case "application/zip":
|
|
91
|
+
return {
|
|
92
|
+
type: "archive",
|
|
93
|
+
icon: "file",
|
|
94
|
+
};
|
|
95
|
+
default:
|
|
96
|
+
return {
|
|
97
|
+
type: null,
|
|
98
|
+
icon: "file",
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export default (input) => {
|
|
2
|
+
const el = document.createElement("textarea");
|
|
3
|
+
|
|
4
|
+
el.value = input;
|
|
5
|
+
|
|
6
|
+
// Prevent keyboard from showing on mobile
|
|
7
|
+
el.setAttribute("readonly", "");
|
|
8
|
+
|
|
9
|
+
el.style.contain = "strict";
|
|
10
|
+
el.style.position = "absolute";
|
|
11
|
+
el.style.left = "-9999px";
|
|
12
|
+
el.style.fontSize = "12pt"; // Prevent zooming on iOS
|
|
13
|
+
|
|
14
|
+
const selection = getSelection();
|
|
15
|
+
let originalRange = false;
|
|
16
|
+
if (selection.rangeCount > 0) {
|
|
17
|
+
originalRange = selection.getRangeAt(0);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
document.body.appendChild(el);
|
|
21
|
+
el.select();
|
|
22
|
+
|
|
23
|
+
let success = false;
|
|
24
|
+
try {
|
|
25
|
+
success = document.execCommand("copy");
|
|
26
|
+
} catch (err) {
|
|
27
|
+
// do nothing
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
document.body.removeChild(el);
|
|
31
|
+
|
|
32
|
+
if (originalRange) {
|
|
33
|
+
selection.removeAllRanges();
|
|
34
|
+
selection.addRange(originalRange);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return success;
|
|
38
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import highlight from "highlight.js/lib/core.js";
|
|
2
|
+
import bash from "highlight.js/lib/languages/bash.js";
|
|
3
|
+
import diff from "highlight.js/lib/languages/diff.js";
|
|
4
|
+
import json from "highlight.js/lib/languages/json.js";
|
|
5
|
+
import md from "highlight.js/lib/languages/markdown.js";
|
|
6
|
+
import xml from "highlight.js/lib/languages/xml.js";
|
|
7
|
+
|
|
8
|
+
highlight.registerLanguage("xml", xml);
|
|
9
|
+
highlight.registerLanguage("bash", bash);
|
|
10
|
+
highlight.registerLanguage("markdown", md);
|
|
11
|
+
highlight.registerLanguage("diff", diff);
|
|
12
|
+
highlight.registerLanguage("json", json);
|
|
13
|
+
|
|
14
|
+
export default highlight;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Object as BaseObject } from "backbone.marionette";
|
|
2
|
+
import $ from "jquery";
|
|
3
|
+
|
|
4
|
+
const codes = {
|
|
5
|
+
27: "esc",
|
|
6
|
+
37: "left",
|
|
7
|
+
38: "up",
|
|
8
|
+
39: "right",
|
|
9
|
+
40: "down",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
class HotkeysService extends BaseObject {
|
|
13
|
+
initialize() {
|
|
14
|
+
$(document).on("keydown", this.keyHandler.bind(this));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
keyHandler(event) {
|
|
18
|
+
const code = codes[event.keyCode];
|
|
19
|
+
if (code) {
|
|
20
|
+
this.trigger(`key:${code}`, event);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default new HotkeysService();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import LoaderView from "@/components/loader/LoaderView.js";
|
|
2
|
+
|
|
3
|
+
export function fetchAndShow(parent, region, collection, view, callback = () => {}) {
|
|
4
|
+
parent.showChildView(region, new LoaderView());
|
|
5
|
+
collection.fetch().then(() => {
|
|
6
|
+
parent.showChildView(region, view);
|
|
7
|
+
callback();
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const values = ["flaky", "newFailed", "newPassed", "newBroken", "retriesStatusChange"];
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { notFound, showView } from "@/app.js";
|
|
2
|
+
import WidgetsModel from "@/data/widgets/WidgetsModel.js";
|
|
3
|
+
import translate from "@/helpers/t.js";
|
|
4
|
+
import router from "@/router.js";
|
|
5
|
+
import { addTranslation } from "./translation.js";
|
|
6
|
+
|
|
7
|
+
class AllurePluginsRegistry {
|
|
8
|
+
tabs = [];
|
|
9
|
+
testResultTabs = [];
|
|
10
|
+
|
|
11
|
+
attachmentViews = {};
|
|
12
|
+
|
|
13
|
+
testResultBlocks = {
|
|
14
|
+
tag: [],
|
|
15
|
+
before: [],
|
|
16
|
+
after: [],
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
widgets = {};
|
|
20
|
+
|
|
21
|
+
addTab(tabName, { title, icon, route, onEnter = notFound } = {}) {
|
|
22
|
+
title = title || tabName;
|
|
23
|
+
this.tabs.push({ tabName, title, icon });
|
|
24
|
+
router.route(route, tabName);
|
|
25
|
+
router.on(`route:${tabName}`, showView(onEnter));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
addWidget(tabName, widgetName, widget, model = WidgetsModel) {
|
|
29
|
+
if (!this.widgets[tabName]) {
|
|
30
|
+
this.widgets[tabName] = {};
|
|
31
|
+
}
|
|
32
|
+
this.widgets[tabName][widgetName] = { widget, model };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
addTranslation(lang, json) {
|
|
36
|
+
addTranslation(lang, json);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
translate(name, options) {
|
|
40
|
+
return translate(name, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
addTestResultBlock(view, { position }) {
|
|
44
|
+
this.testResultBlocks[position].push(view);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
addAttachmentViewer(mimeType, { View, icon = "file" }) {
|
|
48
|
+
this.attachmentViews[mimeType] = { View, icon };
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
addTestResultTab(id, name, View) {
|
|
52
|
+
this.testResultTabs.push({ id, name, View });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export default new AllurePluginsRegistry();
|