mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-02 11:03:23 +09:00
refactor: improve types in the frontend, misc fixes (#39142)
This commit is contained in:
@@ -4,8 +4,8 @@ import ActionStatusIcon from './ActionStatusIcon.vue';
|
||||
import {computed, onBeforeUnmount, ref, toRefs, watch} from 'vue';
|
||||
import {resetActionFavicon, syncActionRunFavicon} from '../modules/favicon-status.ts';
|
||||
import {POST, DELETE} from '../modules/fetch.ts';
|
||||
import ActionRunSummaryView from './ActionRunSummaryView.vue';
|
||||
import ActionRunJobView from './ActionRunJobView.vue';
|
||||
import ActionRunSummaryView, {type ActionRunSummaryViewLocale} from './ActionRunSummaryView.vue';
|
||||
import ActionRunJobView, {type ActionRunJobViewLocale} from './ActionRunJobView.vue';
|
||||
import type {ActionsJob, ActionsRunAttempt} from '../modules/gitea-actions.ts';
|
||||
import {buildJobsByParentJobID, createActionRunViewStore} from './ActionRunView.ts';
|
||||
import {buildArtifactTooltipHtml} from './ActionRunArtifacts.ts';
|
||||
@@ -15,10 +15,35 @@ defineOptions({
|
||||
name: 'RepoActionView',
|
||||
});
|
||||
|
||||
type RepoActionViewLocale = ActionRunSummaryViewLocale & ActionRunJobViewLocale & {
|
||||
approve: string,
|
||||
cancel: string,
|
||||
rerun: string,
|
||||
rerun_all: string,
|
||||
rerun_failed: string,
|
||||
latest: string,
|
||||
latestAttempt: string,
|
||||
attempt: string,
|
||||
summary: string,
|
||||
allJobs: string,
|
||||
jobSummaries: string,
|
||||
expandCallerJobs: string,
|
||||
collapseCallerJobs: string,
|
||||
backToPullRequest: string,
|
||||
backToWorkflow: string,
|
||||
artifactExpired: string,
|
||||
artifactExpiresAt: string,
|
||||
artifactExpiredAt: string,
|
||||
confirmDeleteArtifact: string,
|
||||
workflowFile: string,
|
||||
workflowFileNoPermission: string,
|
||||
runDetails: string,
|
||||
};
|
||||
|
||||
const props = defineProps<{
|
||||
jobId: number;
|
||||
actionsViewUrl: string;
|
||||
locale: Record<string, any>;
|
||||
locale: RepoActionViewLocale;
|
||||
}>();
|
||||
|
||||
const locale = props.locale;
|
||||
|
||||
Reference in New Issue
Block a user