mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
OverviewPage component for re-use.
This commit is contained in:
@@ -12,9 +12,9 @@ import { bytesLabelFormatter, bytesValueFormatter } from "./Charts/formatters";
|
||||
import { fetchAllHistoriesSizeSummary, type ItemSizeSummary, purgeHistoryById, undeleteHistoryById } from "./service";
|
||||
|
||||
import BarChart from "./Charts/BarChart.vue";
|
||||
import OverviewPage from "./OverviewPage.vue";
|
||||
import RecoverableItemSizeTooltip from "./RecoverableItemSizeTooltip.vue";
|
||||
import SelectedItemActions from "./SelectedItemActions.vue";
|
||||
import Heading from "@/components/Common/Heading.vue";
|
||||
import LoadingSpan from "@/components/LoadingSpan.vue";
|
||||
|
||||
const historyStore = useHistoryStore();
|
||||
@@ -151,9 +151,7 @@ async function onPermanentlyDeleteHistory(historyId: string) {
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div class="mx-3">
|
||||
<router-link :to="{ name: 'StorageDashboard' }">{{ localize("Back to Dashboard") }}</router-link>
|
||||
<Heading h1 bold class="my-3"> Histories Storage Overview </Heading>
|
||||
<OverviewPage title="Histories Storage Overview">
|
||||
<p class="text-justify">
|
||||
Here you can find various graphs displaying the storage size taken by <b>all your histories</b>.
|
||||
</p>
|
||||
@@ -230,5 +228,5 @@ async function onPermanentlyDeleteHistory(historyId: string) {
|
||||
</template>
|
||||
</BarChart>
|
||||
</div>
|
||||
</div>
|
||||
</OverviewPage>
|
||||
</template>
|
||||
|
||||
@@ -17,9 +17,9 @@ import {
|
||||
} from "./service";
|
||||
|
||||
import BarChart from "./Charts/BarChart.vue";
|
||||
import OverviewPage from "./OverviewPage.vue";
|
||||
import RecoverableItemSizeTooltip from "./RecoverableItemSizeTooltip.vue";
|
||||
import SelectedItemActions from "./SelectedItemActions.vue";
|
||||
import Heading from "@/components/Common/Heading.vue";
|
||||
import LoadingSpan from "@/components/LoadingSpan.vue";
|
||||
|
||||
const router = useRouter();
|
||||
@@ -27,12 +27,11 @@ const { success: successToast, error: errorToast } = useToast();
|
||||
const { confirm } = useConfirmDialog();
|
||||
const { getHistoryNameById } = useHistoryStore();
|
||||
|
||||
const props = defineProps({
|
||||
historyId: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
interface Props {
|
||||
historyId: string;
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
|
||||
const datasetsSizeSummaryMap = new Map<string, ItemSizeSummary>();
|
||||
const topTenDatasetsBySizeData = ref<DataValuePoint[] | null>(null);
|
||||
@@ -149,9 +148,7 @@ async function onPermanentlyDeleteDataset(datasetId: string) {
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div class="mx-3 history-storage-overview">
|
||||
<router-link :to="{ name: 'StorageDashboard' }">{{ localize("Back to Dashboard") }}</router-link>
|
||||
<Heading h1 bold class="my-3"> History Storage Overview </Heading>
|
||||
<OverviewPage class="history-storage-overview" title="History Storage Overview">
|
||||
<p class="text-justify">
|
||||
Here you will find some Graphs displaying the storage taken by datasets in your history:
|
||||
<b>{{ getHistoryNameById(props.historyId) }}</b
|
||||
@@ -231,5 +228,5 @@ async function onPermanentlyDeleteDataset(datasetId: string) {
|
||||
</template>
|
||||
</BarChart>
|
||||
</div>
|
||||
</div>
|
||||
</OverviewPage>
|
||||
</template>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import localize from "@/utils/localization";
|
||||
|
||||
import Heading from "@/components/Common/Heading.vue";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="mx-3">
|
||||
<router-link :to="{ name: 'StorageDashboard' }">{{ localize("Back to Dashboard") }}</router-link>
|
||||
<Heading h1 bold class="my-3">{{ localize(title) }}</Heading>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user