refactor: improve types in the frontend, misc fixes (#39142)

This commit is contained in:
silverwind
2026-08-31 04:12:25 -07:00
committed by GitHub
parent 535fc29ae8
commit 7c93ead628
46 changed files with 392 additions and 217 deletions
+12 -2
View File
@@ -1,16 +1,26 @@
<script setup lang="ts">
import WorkflowGraph from './WorkflowGraph.vue';
import WorkflowGraph, {type WorkflowGraphLocale} from './WorkflowGraph.vue';
import type {ActionRunViewStore} from './ActionRunView.ts';
import {computed, onBeforeUnmount, onMounted, toRefs} from 'vue';
import {trString} from '../modules/i18n.ts';
import type {ActionsStatus} from '../modules/gitea-actions.ts';
defineOptions({
name: 'ActionRunSummaryView',
});
export type ActionRunSummaryViewLocale = WorkflowGraphLocale & {
status: Record<ActionsStatus, string>,
statusLabel: string,
totalDuration: string,
artifactsTitle: string,
triggeredVia: string,
rerunTriggered: string,
};
const props = defineProps<{
store: ActionRunViewStore;
locale: Record<string, any>;
locale: ActionRunSummaryViewLocale;
artifactCount: number;
}>();