mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-02 19:13:25 +09:00
refactor: improve types in the frontend, misc fixes (#39142)
This commit is contained in:
@@ -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;
|
||||
}>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user