Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions web/server/vue-cli/src/components/Layout/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
:key="item.name"
:to="{
name: item.route,
params: $route.params.endpoint ?
{ endpoint: $route.params.endpoint } : {},
query: queries[item.query_namespace] === undefined
? item.query || {}
: queries[item.query_namespace]
Expand Down Expand Up @@ -94,11 +92,7 @@
<v-list-item
v-for="item in configureMenuItems"
:key="item.title"
:to="{
name: item.route,
params: $route.params.endpoint ?
{ endpoint: $route.params.endpoint } : {}
}"
:to="{ name: item.route }"
exact
>
<template v-slot:prepend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:limit="baseSelectOptionFilter.defaultLimit.value"
:panel="baseSelectOptionFilter.panel.value"
@clear="baseSelectOptionFilter.clear(true)"
@input="setSelectedItems"
@input="baseSelectOptionFilter.setSelectedItems"
>
<template v-slot:icon>
<v-icon color="grey">
Expand Down
1 change: 0 additions & 1 deletion web/server/vue-cli/src/components/Run/ExpandedRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ import VersionTag from "./VersionTag";
const props = defineProps({
histories: { type: Array, required: true },
run: { type: Object, required: true },
openAnalysisInfoDialog: { type: Function, default: () => {} },
openAnalyzerStatisticsDialog: { type: Function, default: () => {} },
selectedBaselineTags: { type: Array, required: true },
selectedComparedToTags: { type: Array, required: true }
Expand Down
1 change: 0 additions & 1 deletion web/server/vue-cli/src/components/Run/RunNameColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ defineProps({
versionTag: { type: String, default: null },
detectionStatusCount: { type: Object, default: () => {} },
showRunHistory: { type: Boolean, default: true },
openAnalysisInfoDialog: { type: Function, default: () => {} },
reportFilterQuery: { type: Object, default: () => {} },
statisticsFilterQuery: { type: Object, default: () => {} },
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function getNumberOfFailedFiles() {
ccService.getClient().getFailedFilesCount(
baseStats.runIds.value,
handleThriftError(_res => {
_resolve(_res);
_resolve(_res.toNumber());
}));
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defineProps({
label: { type: String, required: true },
helpMessage: { type: String, default: null },
bus: { type: Object, required: true },
value: { type: Array, required: true },
value: { type: Number, default: null },
loading: { type: Boolean, default: false }
});

Expand Down
15 changes: 0 additions & 15 deletions web/server/vue-cli/src/views/RunList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
:run-history-id="selectedRunHistoryId"
/>

<AnalysisInfoDialog
v-model="analysisInfoDialog"
:run-id="selectedRunId"
:run-history-id="selectedRunHistoryId"
/>

<v-data-table-server
v-model="selected"
v-model:page="page"
Expand Down Expand Up @@ -59,7 +53,6 @@
v-model:selected-compared-to-tags="selectedComparedToTags"
:histories="item.$history.values"
:run="item"
:open-analysis-info-dialog="openAnalysisInfoDialog"
:open-analyzer-statistics-dialog="openAnalyzerStatisticsDialog"
>
<v-btn
Expand All @@ -85,7 +78,6 @@
:detection-status-count="item.detectionStatusCount"
:report-filter-query="getReportFilterQuery(item)"
:statistics-filter-query="getStatisticsFilterQuery(item)"
:open-analysis-info-dialog="openAnalysisInfoDialog"
/>
</template>

Expand Down Expand Up @@ -204,7 +196,6 @@ const sortBy = ref(
);

const initialized = ref(false);
const analysisInfoDialog = ref(false);
const totalItems = ref(0);
const loading = ref(false);
const selected = ref([]);
Expand Down Expand Up @@ -509,12 +500,6 @@ async function fetchRuns() {
});
}

function openAnalysisInfoDialog(runId, runHistoryId=null) {
selectedRunId.value = runId;
selectedRunHistoryId.value = runHistoryId;
analysisInfoDialog.value = true;
}

function openAnalyzerStatisticsDialog(report, history=null) {
selectedRunId.value = report ? report.runId : null;
selectedRunHistoryId.value = history ? history.id : null;
Expand Down
42 changes: 23 additions & 19 deletions web/server/vue-cli/src/views/Statistics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
size="20"
:style="{ 'min-width': '300px' }"
>
<ReportFilter
v-fill-height
:namespace="namespace"
:show-remove-filtered-reports="false"
:report-count="reportCount"
:show-diff-type="false"
:show-compare-to="showCompareTo"
:refresh-filter="refreshFilterState"
@refresh="refresh"
@set-refresh-filter-state="setRefreshFilterState"
/>
<div v-fill-height>
<ReportFilter
:namespace="namespace"
:show-remove-filtered-reports="false"
:report-count="reportCount"
:show-diff-type="false"
:show-compare-to="showCompareTo"
:refresh-filter="refreshFilterState"
@refresh="refresh"
@set-refresh-filter-state="setRefreshFilterState"
/>
</div>
</pane>
<pane>
<div v-fill-height>
Expand All @@ -39,14 +40,17 @@
</v-tab>
</v-tabs>

<keep-alive>
<router-view
:key="$route.name"
:bus="bus"
:namespace="namespace"
@refresh-filter="setRefreshFilterState(true)"
/>
</keep-alive>
<router-view v-slot="{ Component }">
<keep-alive>
<component
:is="Component"
:key="$route.name"
:bus="bus"
:namespace="namespace"
@refresh-filter="setRefreshFilterState(true)"
/>
</keep-alive>
</router-view>
</div>
</pane>
</splitpanes>
Expand Down
Loading